.page-home {
  --home-shadow: 0 22px 44px -28px rgba(21, 19, 21, 0.62);
  --home-gold-line: rgba(201, 164, 92, 0.42);
  --home-on-dark: rgba(247, 240, 229, 0.82);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 52px;
  background: var(--wine);
  color: var(--paper);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  background:
    radial-gradient(115% 78% at 12% 4%, rgba(122, 18, 32, 0.86), transparent 62%),
    linear-gradient(178deg, rgba(21, 19, 19, 0.42) 0%, rgba(74, 12, 20, 0.9) 58%, var(--ink) 100%);
}

.page-home .home-hero__inner {
  position: relative;
}

.page-home .home-hero__crumb {
  margin-bottom: 26px;
}

.page-home .home-hero__crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 240, 229, 0.66);
}

.page-home .home-hero__crumb li {
  margin: 0;
  color: inherit;
}

.page-home .home-hero__cols {
  display: grid;
  gap: 34px;
}

.page-home .home-hero__lead .display-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 8.6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--white);
  word-break: break-word;
}

.page-home .home-hero__lead .display-title em {
  font-style: normal;
  color: var(--gold-lit);
}

.page-home .home-hero .eyebrow {
  color: var(--gold-lit);
}

.page-home .home-hero__seal {
  display: block;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border: 1px solid var(--home-gold-line);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(21, 19, 19, 0.5);
}

.page-home .home-hero__lede {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--home-on-dark);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-hero__panel {
  position: relative;
  padding: 26px 22px 22px;
  background: linear-gradient(158deg, rgba(31, 27, 27, 0.94), rgba(74, 12, 20, 0.92));
  border: 1px solid var(--home-gold-line);
  border-radius: 22px;
  box-shadow: var(--home-shadow);
}

.page-home .home-hero__panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-lit), transparent);
}

.page-home .home-hero__panel-kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .home-hero__quick {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .home-hero__quick a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 240, 229, 0.14);
  border-radius: 999px;
  color: var(--paper);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .home-hero__quick a:hover,
.page-home .home-hero__quick a:focus-visible {
  background: rgba(201, 164, 92, 0.14);
  border-color: var(--gold);
  transform: translateX(3px);
}

.page-home .home-hero__quick-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .home-hero__panel-note {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(247, 240, 229, 0.62);
}

/* ---------- 任务目录 ---------- */
.page-home .home-tasks {
  padding: 56px 0;
  background: var(--paper);
}

.page-home .task-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.page-home .task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.page-home .task-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  background: linear-gradient(225deg, rgba(201, 164, 92, 0.28), transparent 62%);
  border-top-right-radius: var(--radius-card);
  pointer-events: none;
}

.page-home .task-card:hover,
.page-home .task-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--home-shadow);
}

.page-home .task-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--royal);
}

.page-home .task-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}

.page-home .task-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(21, 19, 19, 0.72);
}

.page-home .task-card__go {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--royal);
}

/* ---------- 能力速览 ---------- */
.page-home .home-ability {
  padding: 56px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .ability-tabs {
  margin: 26px 0 30px;
}

.page-home .ability-tabs .chip {
  text-decoration: none;
  white-space: nowrap;
}

.page-home .ability-wrap {
  display: grid;
  gap: 30px;
}

.page-home .ability-grid {
  display: grid;
  gap: 14px;
}

.page-home .ability-card {
  padding: 22px 20px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 4px 14px 14px 4px;
}

.page-home .ability-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--slate);
}

.page-home .ability-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .ability-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(21, 19, 19, 0.72);
}

.page-home .ability-figure {
  margin: 0;
}

.page-home .ability-figure .media-frame {
  border-radius: 16px;
  overflow: hidden;
}

.page-home .ability-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .ability-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 近期内容 ---------- */
.page-home .home-index {
  padding: 56px 0;
  background: var(--ink);
  color: var(--paper);
}

.page-home .index-wrap {
  display: grid;
  gap: 32px;
  margin-top: 8px;
}

.page-home .entry-list {
  display: block;
}

.page-home .entry {
  padding: 16px 0;
  border-bottom: 1px solid rgba(201, 164, 92, 0.24);
}

.page-home .entry summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
  color: var(--paper);
}

.page-home .entry summary::-webkit-details-marker {
  display: none;
}

.page-home .entry summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}

.page-home .entry[open] summary::after {
  content: "–";
}

.page-home .entry__tag {
  flex: none;
  padding: 3px 9px;
  border: 1px solid var(--home-gold-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-lit);
}

.page-home .entry__body {
  margin: 12px 0 0;
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.82;
  color: rgba(247, 240, 229, 0.76);
}

.page-home .entry-more {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-lit);
  text-decoration: none;
}

.page-home .entry-more:hover,
.page-home .entry-more:focus-visible {
  color: var(--white);
}

.page-home .index-aside__text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 240, 229, 0.66);
}

.page-home .index-aside .media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 信任信息 ---------- */
.page-home .home-trust {
  padding: 56px 0;
  background: linear-gradient(168deg, var(--royal) 0%, var(--wine) 62%, var(--ink) 100%);
  color: var(--paper);
}

.page-home .trust-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(201, 164, 92, 0.32);
  border: 1px solid rgba(201, 164, 92, 0.32);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .trust-stat {
  padding: 20px 16px;
  background: rgba(47, 68, 72, 0.9);
}

.page-home .trust-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-lit);
}

.page-home .trust-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 240, 229, 0.72);
}

.page-home .trust-contact {
  margin-top: 34px;
  padding: 26px 22px;
  background: rgba(21, 19, 19, 0.62);
  border: 1px solid var(--home-gold-line);
  border-radius: 18px;
}

.page-home .trust-contact__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}

.page-home .trust-contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-home .trust-contact__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(247, 240, 229, 0.16);
}

.page-home .trust-contact__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .trust-contact__key {
  flex: none;
  min-width: 72px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .trust-contact__val {
  flex: 1 1 220px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.page-home .trust-legal {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(247, 240, 229, 0.55);
}

/* ---------- 关联推荐 ---------- */
.page-home .home-more {
  padding: 56px 0 64px;
  background: var(--paper);
}

.page-home .more-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.page-home .more-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--royal);
  border-radius: 6px 6px 16px 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.page-home .more-card:hover,
.page-home .more-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--home-shadow);
}

.page-home .more-card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.page-home .more-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .more-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(21, 19, 19, 0.72);
}

.page-home .more-card__go {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--royal);
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: calc(var(--header-h) + 56px) 0 72px;
  }

  .page-home .home-hero__quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .ability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    padding: calc(var(--header-h) + 72px) 0 92px;
  }

  .page-home .home-hero__cols {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.86fr);
    align-items: start;
    gap: 60px;
  }

  .page-home .home-hero__panel {
    margin-top: 8px;
    padding: 30px 26px 26px;
  }

  .page-home .home-hero__quick {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-hero__lede {
    font-size: 17px;
  }

  .page-home .home-tasks,
  .page-home .home-ability,
  .page-home .home-index,
  .page-home .home-trust,
  .page-home .home-more {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .page-home .ability-wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 44px;
  }

  .page-home .index-wrap {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
    gap: 48px;
  }

  .page-home .trust-contact {
    padding: 30px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .task-card,
  .page-home .more-card,
  .page-home .home-hero__quick a {
    transition: none;
  }

  .page-home .task-card:hover,
  .page-home .more-card:hover,
  .page-home .home-hero__quick a:hover {
    transform: none;
  }
}
