:root {
  --bg: #e6f1f7;
  --card: #f3f8fb;
  --well: #e4eef4;
  --accent: #2aaf8a;
  --text: #1e2c36;
  --text-2: #6e8190;
  --text-3: #8a9aaa;
  --rpx: clamp(0.45px, calc(100vw / 750), 0.72px);
  --page-max: 920px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

body {
  min-height: 100dvh;
}

button,
textarea {
  font: inherit;
}

.page,
.reader-page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
}

.page {
  padding: 0 calc(28 * var(--rpx)) calc(48 * var(--rpx) + env(safe-area-inset-bottom));
}

.app-header {
  padding: calc(18 * var(--rpx)) 0 calc(4 * var(--rpx));
}

.app-header__inner {
  display: flex;
  align-items: center;
}

.app-header__logo {
  width: calc(58 * var(--rpx));
  height: calc(58 * var(--rpx));
  border-radius: calc(14 * var(--rpx));
  margin-right: calc(16 * var(--rpx));
}

.app-header__title {
  margin: 0;
  font-size: calc(36 * var(--rpx));
  font-weight: 700;
  line-height: 1.2;
}

.app-header__sub {
  margin: calc(16 * var(--rpx)) 0 0;
  padding-right: calc(24 * var(--rpx));
  font-size: calc(24 * var(--rpx));
  line-height: 1.6;
  color: var(--text-2);
}

.input-card,
.status-card,
.list-card,
.guide-card {
  margin-top: calc(32 * var(--rpx));
  background: var(--card);
  border-radius: calc(28 * var(--rpx));
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.input-card {
  margin-top: calc(40 * var(--rpx));
  padding: calc(28 * var(--rpx)) calc(36 * var(--rpx));
}

.input-card__editor {
  position: relative;
  height: calc(160 * var(--rpx));
  border-radius: calc(20 * var(--rpx));
  background: var(--well);
  box-shadow:
    inset 0 calc(8 * var(--rpx)) calc(18 * var(--rpx)) rgba(62, 102, 128, 0.05),
    inset 0 calc(2 * var(--rpx)) calc(6 * var(--rpx)) rgba(62, 102, 128, 0.03),
    inset 0 0 0 calc(2 * var(--rpx)) rgba(255, 255, 255, 0.8);
}

.input-card__hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(30 * var(--rpx));
  color: var(--text-2);
  pointer-events: none;
}

.input-card textarea {
  width: 100%;
  height: 100%;
  padding: calc(16 * var(--rpx)) calc(20 * var(--rpx));
  border: 0;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: calc(30 * var(--rpx));
  line-height: 1.6;
  outline: none;
}

.input-card__actions {
  margin-top: calc(32 * var(--rpx));
  display: flex;
  align-items: center;
}

.btn {
  height: calc(72 * var(--rpx));
  border: 0;
  border-radius: calc(36 * var(--rpx));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(28 * var(--rpx));
  cursor: pointer;
}

.btn:active {
  opacity: 0.72;
}

.btn--ghost {
  flex: 1;
  margin-right: calc(14 * var(--rpx));
  background: var(--well);
  color: #3d5160;
}

.btn--primary {
  flex: 1.15;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 calc(6 * var(--rpx)) calc(14 * var(--rpx)) rgba(42, 175, 138, 0.16);
}

.btn--primary:disabled {
  opacity: 0.7;
}

.ico {
  width: calc(30 * var(--rpx));
  height: calc(30 * var(--rpx));
  margin-right: calc(8 * var(--rpx));
}

.status-card {
  padding: calc(28 * var(--rpx));
  font-size: calc(26 * var(--rpx));
  line-height: 1.5;
  color: #8a5a3a;
}

.list-card,
.guide-card {
  padding: calc(32 * var(--rpx)) calc(28 * var(--rpx)) calc(20 * var(--rpx));
}

.list-card {
  padding-bottom: calc(12 * var(--rpx));
}

.list-card__head {
  display: flex;
  align-items: center;
  margin-bottom: calc(8 * var(--rpx));
}

.list-card__title {
  flex: 1;
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.list-card__hint {
  font-size: calc(20 * var(--rpx));
  color: var(--text-3);
  background: var(--well);
  padding: calc(4 * var(--rpx)) calc(12 * var(--rpx));
  border-radius: calc(16 * var(--rpx));
}

.list-card__scroll {
  max-height: calc(550 * var(--rpx));
  overflow: auto;
}

.hit {
  display: block;
  width: 100%;
  padding: calc(24 * var(--rpx)) 0;
  border: 0;
  border-top: 1px solid rgba(62, 102, 128, 0.08);
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.hit.is-first {
  border-top: 0;
}

.hit.is-muted {
  opacity: 0.55;
  cursor: default;
}

.hit:active {
  opacity: 0.72;
}

.hit__top {
  display: flex;
  align-items: center;
}

.hit__type {
  font-size: calc(20 * var(--rpx));
  color: var(--accent);
  background: rgba(42, 175, 138, 0.12);
  padding: calc(2 * var(--rpx)) calc(12 * var(--rpx));
  border-radius: calc(12 * var(--rpx));
}

.hit__votes {
  margin-left: calc(12 * var(--rpx));
  font-size: calc(20 * var(--rpx));
  color: var(--text-3);
}

.hit__title {
  display: block;
  margin-top: calc(10 * var(--rpx));
  font-size: calc(30 * var(--rpx));
  font-weight: 700;
  line-height: 1.4;
}

.hit__meta {
  display: block;
  margin-top: calc(8 * var(--rpx));
  font-size: calc(22 * var(--rpx));
  color: var(--text-2);
}

.hit__excerpt {
  display: block;
  margin-top: calc(8 * var(--rpx));
  font-size: calc(24 * var(--rpx));
  line-height: 1.55;
  color: #3a4d5a;
}

.guide-card__title {
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
  margin-bottom: calc(16 * var(--rpx));
}

.guide-item {
  display: flex;
  align-items: center;
  padding: calc(26 * var(--rpx)) 0;
}

.guide-item__num {
  width: calc(40 * var(--rpx));
  height: calc(40 * var(--rpx));
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: calc(24 * var(--rpx));
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: calc(16 * var(--rpx));
  flex-shrink: 0;
}

.guide-item__text {
  font-size: calc(26 * var(--rpx));
  line-height: 1.5;
  color: #3a4d5a;
}

.feature-row {
  margin-top: calc(32 * var(--rpx));
  display: flex;
}

.feature {
  flex: 1;
  width: 0;
  aspect-ratio: 1 / 1;
  margin-right: calc(12 * var(--rpx));
  background: var(--card);
  border-radius: calc(22 * var(--rpx));
  padding: calc(12 * var(--rpx)) calc(8 * var(--rpx));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.feature:last-child {
  margin-right: 0;
}

.feature__icon {
  width: calc(52 * var(--rpx));
  height: calc(52 * var(--rpx));
  margin-bottom: calc(12 * var(--rpx));
}

.feature__badge {
  width: calc(52 * var(--rpx));
  height: calc(52 * var(--rpx));
  margin-bottom: calc(12 * var(--rpx));
  border-radius: 50%;
  background: #d8eef4;
  color: #2f8aa3;
  font-size: calc(18 * var(--rpx));
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__text {
  font-size: calc(22 * var(--rpx));
  color: var(--text-2);
  line-height: 1.2;
}

.reader-page {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.nav-bar {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
}

.nav-bar__back {
  position: absolute;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(80, 110, 130, 0.22);
  background: rgba(255, 255, 255, 0.55)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24'%3E%3Cpath fill='%231E2C36' fill-rule='evenodd' d='M10 19.438L8.955 20.5l-7.666-7.79a1.02 1.02 0 0 1 0-1.42L8.955 3.5 10 4.563 2.682 12 10 19.438z'/%3E%3C/svg%3E")
    no-repeat 44% 50%;
  background-size: 10px 18px;
  cursor: pointer;
}

.nav-bar__title {
  margin: 0;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
}

.reader {
  flex: 1;
  overflow: auto;
  padding: 12px 18px 110px;
}

.reader__meta {
  margin: 0 0 10px;
  font-size: 11px;
  color: #8b949e;
}

.reader__lock {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(138, 90, 58, 0.08);
  color: #8a5a3a;
  font-size: 12px;
}

.reader__body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.9;
  color: #2a3036;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--page-max));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 18px calc(16px + env(safe-area-inset-bottom));
  background: rgba(232, 244, 252, 0.94);
}

.dock__btn {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: var(--card);
  color: #5d6670;
  font-size: 14px;
  cursor: pointer;
}

.dock__btn--primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.dock__btn:active {
  opacity: 0.75;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(30, 44, 54, 0.88);
  color: #fff;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .page {
    padding: 8px 32px calc(40px + env(safe-area-inset-bottom));
  }

  .app-header {
    padding-top: 28px;
  }

  .section-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .input-card__editor {
    height: 120px;
  }

  .list-card__scroll {
    max-height: 380px;
  }

  .feature {
    aspect-ratio: auto;
    height: 118px;
  }

  .reader {
    padding: 20px 40px 120px;
  }

  .reader__body {
    max-width: 42em;
    font-size: 18px;
    line-height: 2;
  }

  .dock {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 800px) {
  :root {
    --rpx: 0.54px;
    --page-max: 690px;
  }

  .page {
    padding: 6px 24px calc(30px + env(safe-area-inset-bottom));
  }

  .app-header {
    padding-top: 21px;
  }

  .input-card__editor {
    height: 90px;
  }

  .list-card__scroll {
    max-height: 285px;
  }

  .feature {
    height: 88px;
  }

  .reader {
    padding: 15px 30px 90px;
  }

  .reader__body {
    font-size: 14px;
  }

  .dock {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1100px) {
  :root {
    --page-max: 735px;
  }

  .input-card__actions {
    max-width: 390px;
    margin-left: auto;
  }
}

.board {
  margin-top: calc(36 * var(--rpx));
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--rpx));
  margin-bottom: calc(16 * var(--rpx));
}

.section-head h2 {
  margin: 0;
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.section-head p {
  margin: 0;
  font-size: calc(22 * var(--rpx));
  color: var(--text-2);
}

.tool-list {
  margin-top: calc(24 * var(--rpx));
}

.tool {
  background: var(--card);
  border-radius: calc(24 * var(--rpx));
  padding: calc(34 * var(--rpx)) calc(28 * var(--rpx));
  margin-bottom: calc(20 * var(--rpx));
  display: flex;
  align-items: center;
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.tool__info {
  flex: 1;
  min-width: 0;
  padding-right: calc(20 * var(--rpx));
}

.tool__title {
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.tool__desc {
  margin-top: calc(10 * var(--rpx));
  font-size: calc(24 * var(--rpx));
  line-height: 1.5;
  color: var(--text-2);
}

.tool__btn {
  width: calc(120 * var(--rpx));
  height: calc(64 * var(--rpx));
  border: 0;
  border-radius: calc(32 * var(--rpx));
  background: var(--accent);
  color: #fff;
  font-size: calc(28 * var(--rpx));
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
}

.action-row {
  margin-top: calc(24 * var(--rpx));
  display: flex;
  gap: calc(16 * var(--rpx));
}

.action {
  flex: 1;
  min-height: calc(176 * var(--rpx));
  border: 0;
  border-radius: calc(24 * var(--rpx));
  padding: calc(28 * var(--rpx)) calc(22 * var(--rpx));
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.action--slate {
  background: #5d7d96;
}

.action--green {
  background: #3aa88a;
}

.action__text {
  display: flex;
  flex-direction: column;
}

.action__title {
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
  color: #fff;
}

.action__desc {
  margin-top: calc(10 * var(--rpx));
  font-size: calc(22 * var(--rpx));
  color: rgba(255, 255, 255, 0.78);
}

.action__icon {
  width: calc(64 * var(--rpx));
  height: calc(64 * var(--rpx));
}

.section-title {
  margin: calc(32 * var(--rpx)) calc(8 * var(--rpx)) calc(18 * var(--rpx));
  font-size: calc(30 * var(--rpx));
  font-weight: 600;
  color: #5d6670;
}

.empty-card {
  background: var(--card);
  border-radius: calc(28 * var(--rpx));
  min-height: calc(420 * var(--rpx));
  padding: calc(48 * var(--rpx)) calc(32 * var(--rpx));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.empty-card__icon {
  width: calc(128 * var(--rpx));
  height: calc(128 * var(--rpx));
  margin-bottom: calc(28 * var(--rpx));
}

.empty-card__title {
  font-size: calc(34 * var(--rpx));
  font-weight: 700;
}

.empty-card__desc {
  margin-top: calc(12 * var(--rpx));
  font-size: calc(26 * var(--rpx));
  color: #9aa3ab;
}

.record-list,
.book-list {
  background: var(--card);
  border-radius: calc(28 * var(--rpx));
  overflow: hidden;
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.record,
.book {
  width: 100%;
  padding: calc(28 * var(--rpx)) calc(24 * var(--rpx));
  border: 0;
  border-bottom: 1px solid #f0f3f6;
  background: transparent;
  display: flex;
  align-items: center;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.record:last-child,
.book:last-child {
  border-bottom: 0;
}

.book__icon {
  width: calc(56 * var(--rpx));
  height: calc(56 * var(--rpx));
  margin-right: calc(20 * var(--rpx));
}

.record__main,
.book__main {
  flex: 1;
  min-width: 0;
}

.record__title,
.book__title {
  display: block;
  font-size: calc(30 * var(--rpx));
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record__meta,
.book__meta {
  display: block;
  margin-top: calc(8 * var(--rpx));
  font-size: calc(22 * var(--rpx));
  color: var(--text-2);
}

.record__del,
.book__del {
  margin-left: calc(16 * var(--rpx));
  padding: calc(10 * var(--rpx)) calc(18 * var(--rpx));
  border: 0;
  background: transparent;
  font-size: calc(22 * var(--rpx));
  color: #9aa3ab;
  cursor: pointer;
}

.sub-page {
  position: fixed;
  inset: 0;
  z-index: 6;
  width: min(100%, var(--page-max));
  margin: 0 auto;
  overflow: auto;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.sub-body {
  padding: calc(24 * var(--rpx)) calc(28 * var(--rpx)) calc(48 * var(--rpx));
}

.field-list {
  display: flex;
  flex-direction: column;
}

.field {
  margin-bottom: calc(16 * var(--rpx));
  min-height: calc(88 * var(--rpx));
  padding: 0 calc(8 * var(--rpx)) 0 calc(22 * var(--rpx));
  border-radius: calc(22 * var(--rpx));
  background: var(--well);
  display: flex;
  align-items: center;
  box-shadow:
    inset 0 calc(8 * var(--rpx)) calc(18 * var(--rpx)) rgba(62, 102, 128, 0.05),
    inset 0 0 0 calc(2 * var(--rpx)) rgba(255, 255, 255, 0.8);
}

.field__index {
  width: calc(36 * var(--rpx));
  font-size: calc(26 * var(--rpx));
  font-weight: 700;
  color: var(--text-2);
}

.field__input {
  flex: 1;
  min-width: 0;
  height: calc(88 * var(--rpx));
  border: 0;
  background: transparent;
  padding: 0 calc(12 * var(--rpx));
  font-size: calc(30 * var(--rpx));
  color: var(--text);
  outline: none;
}

.field__remove {
  padding: 0 calc(18 * var(--rpx));
  border: 0;
  background: transparent;
  height: calc(88 * var(--rpx));
  font-size: calc(24 * var(--rpx));
  color: #9aa3ab;
  cursor: pointer;
}

.add-btn {
  width: 100%;
  height: calc(80 * var(--rpx));
  margin-bottom: calc(8 * var(--rpx));
  border-radius: calc(22 * var(--rpx));
  border: 1px dashed rgba(93, 125, 150, 0.28);
  background: rgba(255, 255, 255, 0.35);
  font-size: calc(28 * var(--rpx));
  font-weight: 600;
  color: #5d7d96;
  cursor: pointer;
}

.tip-card {
  margin-top: calc(24 * var(--rpx));
  background: var(--card);
  border-radius: calc(28 * var(--rpx));
  padding: calc(32 * var(--rpx)) calc(28 * var(--rpx));
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.tip-card__title {
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.tip-card__desc {
  margin-top: calc(12 * var(--rpx));
  font-size: calc(26 * var(--rpx));
  line-height: 1.7;
  color: #8b949e;
}

.result-list {
  margin-top: calc(24 * var(--rpx));
  background: var(--card);
  border-radius: calc(28 * var(--rpx));
  padding: calc(28 * var(--rpx));
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.result-list__title {
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.result {
  padding: calc(28 * var(--rpx)) 0;
  border-top: 1px solid rgba(62, 102, 128, 0.08);
}

.result.is-first {
  border-top: 0;
}

.result__title {
  display: block;
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.result__meta,
.result__preview {
  display: block;
  margin-top: calc(10 * var(--rpx));
  color: var(--text-2);
  font-size: calc(24 * var(--rpx));
}

.result__preview {
  font-size: calc(26 * var(--rpx));
  color: #3a4d5a;
  line-height: 1.6;
}

.result__ops {
  margin-top: calc(20 * var(--rpx));
  display: flex;
}

.pick {
  margin-top: calc(16 * var(--rpx));
  min-height: calc(140 * var(--rpx));
  padding: calc(24 * var(--rpx)) calc(28 * var(--rpx));
  border-radius: calc(22 * var(--rpx));
  border: 1px dashed rgba(93, 125, 150, 0.28);
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.pick.is-ready {
  border-style: solid;
  border-color: rgba(42, 175, 138, 0.28);
  background: rgba(42, 175, 138, 0.06);
}

.pick__icon {
  width: calc(56 * var(--rpx));
  height: calc(56 * var(--rpx));
  margin-right: calc(20 * var(--rpx));
}

.pick__text {
  display: flex;
  flex-direction: column;
}

.pick__title {
  font-size: calc(30 * var(--rpx));
  font-weight: 600;
}

.pick__desc {
  margin-top: calc(8 * var(--rpx));
  font-size: calc(24 * var(--rpx));
  color: var(--text-2);
}

.faq {
  background: var(--card);
  border-radius: calc(24 * var(--rpx));
  padding: calc(32 * var(--rpx));
  margin-bottom: calc(20 * var(--rpx));
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
  cursor: pointer;
}

.faq__head {
  display: flex;
  align-items: center;
}

.faq__text {
  flex: 1;
}

.faq__title {
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.faq__desc {
  margin-top: calc(10 * var(--rpx));
  font-size: calc(24 * var(--rpx));
  color: var(--text-2);
}

.faq__arrow {
  width: 8px;
  height: 8px;
  border-top: 2px solid #b4c2cc;
  border-right: 2px solid #b4c2cc;
  transform: rotate(45deg);
}

.faq.is-open .faq__arrow {
  transform: rotate(135deg);
}

.faq__body {
  display: none;
  margin-top: calc(22 * var(--rpx));
  padding: calc(22 * var(--rpx));
  background: var(--well);
  border-radius: calc(16 * var(--rpx));
  font-size: calc(26 * var(--rpx));
  line-height: 1.7;
  color: #3a4d5a;
}

.faq.is-open .faq__body {
  display: block;
}

.faq-foot {
  display: block;
  margin-top: calc(12 * var(--rpx));
  text-align: center;
  font-size: calc(22 * var(--rpx));
  color: var(--text-3);
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(16 * var(--rpx));
}

.tile {
  border: 0;
  border-radius: calc(28 * var(--rpx));
  padding: calc(28 * var(--rpx)) calc(24 * var(--rpx)) calc(26 * var(--rpx));
  background: var(--card);
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
  text-align: left;
  color: inherit;
  min-height: calc(196 * var(--rpx));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
}

.tile--hero {
  grid-column: 1 / -1;
  min-height: calc(220 * var(--rpx));
  background:
    linear-gradient(135deg, rgba(42, 175, 138, 0.16), transparent 42%),
    var(--card);
}

.tile--ghost {
  background: transparent;
  box-shadow: none;
  border: 1px dashed rgba(93, 125, 150, 0.28);
  grid-column: 1 / -1;
  min-height: calc(140 * var(--rpx));
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8 * var(--rpx)) calc(16 * var(--rpx));
}

.tile--ghost .tile__name {
  margin-top: 0;
}

.tile--ghost .tile__desc {
  margin-top: 0;
  padding-top: 0;
}

.tile:active {
  transform: translateY(1px);
}

.tile__idx {
  font-size: calc(20 * var(--rpx));
  letter-spacing: 0.18em;
  color: var(--accent);
}

.tile__name {
  margin-top: calc(18 * var(--rpx));
  font-size: calc(32 * var(--rpx));
  font-weight: 700;
}

.tile__desc {
  margin-top: auto;
  padding-top: calc(16 * var(--rpx));
  font-size: calc(22 * var(--rpx));
  line-height: 1.5;
  color: var(--text-2);
}

.mine-links {
  display: flex;
  gap: calc(16 * var(--rpx));
  margin: calc(24 * var(--rpx)) 0 calc(28 * var(--rpx));
}

.mine-link {
  flex: 1;
  border: 0;
  border-radius: calc(24 * var(--rpx));
  padding: calc(22 * var(--rpx)) calc(20 * var(--rpx));
  background: var(--card);
  text-align: left;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 calc(8 * var(--rpx)) calc(20 * var(--rpx)) rgba(62, 102, 128, 0.04);
}

.mine-link span {
  display: block;
  font-size: calc(28 * var(--rpx));
  font-weight: 700;
}

.mine-link em {
  display: block;
  margin-top: calc(8 * var(--rpx));
  font-style: normal;
  font-size: calc(22 * var(--rpx));
  color: var(--text-2);
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .tile--hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 0;
  }

  .tile--ghost {
    grid-column: 2 / -1;
    min-height: 0;
  }
}
