/* ================= 首页 · page-home ================= */
.page-home {
  --band-y: clamp(3rem, 7vw, 5.5rem);
  --card-line: rgba(31, 58, 68, .14);
  overflow-x: hidden;
}

.page-home .figure__caption {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: .65rem;
}

.page-home .section__index {
  display: inline-block;
  margin-right: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--brass);
  vertical-align: .18em;
}

.page-home .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 首屏 ---------- */
.page-home .hero-tide {
  position: relative;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 0;
  background:
    radial-gradient(92% 70% at 6% 0%, rgba(127, 168, 166, .32), transparent 62%),
    radial-gradient(66% 58% at 98% 10%, rgba(201, 162, 39, .16), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  overflow: hidden;
}

.page-home .hero-tide::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -6%;
  height: 46%;
  background-image: repeating-linear-gradient(100deg, rgba(127, 168, 166, .18) 0 1px, transparent 1px 24px);
  transform: rotate(-2deg);
  pointer-events: none;
}

.page-home .hero-tide__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.page-home .hero-tide__eyebrow {
  margin-bottom: 1rem;
}

.page-home .hero-tide__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 9vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: .01em;
  color: var(--ink);
}

.page-home .hero-tide__title-em {
  position: relative;
  color: var(--ink-2);
}

.page-home .hero-tide__title-em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: .1em;
  background: linear-gradient(90deg, var(--brass), rgba(201, 162, 39, .12));
}

.page-home .hero-tide__lede {
  max-width: 42rem;
  color: var(--ink-2);
}

.page-home .hero-tide__jump {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
}

.page-home .hero-tide__jump a {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px dashed var(--tide);
  padding-bottom: 2px;
}

.page-home .hero-tide__jump a:hover,
.page-home .hero-tide__jump a:focus-visible {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

.page-home .hero-tide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.page-home .hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem .9rem;
  margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.page-home .hero-facts dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-home .hero-facts dd {
  margin: .35rem 0 0;
  font-size: .94rem;
  line-height: 1.55;
  color: var(--ink);
}

.page-home .hero-facts .mono {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--stone);
}

.page-home .hero-tide__stage {
  position: relative;
}

.page-home .hero-tide__figure {
  position: relative;
  margin: 0;
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

.page-home .hero-tide__figure::before {
  content: "";
  position: absolute;
  top: 14px;
  right: -14px;
  bottom: -14px;
  left: 14px;
  border: 1px solid var(--line-2);
  z-index: -1;
}

.page-home .hero-tide__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .hero-tide__figure .figure__caption {
  padding: 0 .85rem .75rem;
}

.page-home .hero-tide__vertical {
  display: none;
}

/* ---------- 横向时间轴 ---------- */
.page-home .roundline {
  position: relative;
  padding: var(--band-y) 0;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 140%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .roundline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-bottom: 1.4rem;
}

.page-home .roundline__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2.35rem);
  line-height: 1.2;
  color: var(--ink);
}

.page-home .roundline__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.page-home .roundline__track {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: .3rem .1rem 1.3rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: .1rem;
  -webkit-overflow-scrolling: touch;
}

.page-home .roundline__item {
  flex: 0 0 min(19rem, 78vw);
  scroll-snap-align: start;
  display: flex;
}

.page-home .round-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: 100%;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--stone);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-top-color .35s var(--ease);
}

.page-home .round-card:hover,
.page-home .round-card:focus-within {
  transform: translateY(-4px);
  border-top-color: var(--seal);
  box-shadow: var(--shadow-lift);
}

.page-home .round-card__no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-2);
}

.page-home .round-card__phase {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.page-home .round-card__title {
  margin: .15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.page-home .round-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--stone);
}

.page-home .round-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .2rem 0 .4rem;
  padding: 0;
  list-style: none;
}

.page-home .round-card__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--seal);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 69, 58, .4);
  align-self: flex-start;
  padding-bottom: 2px;
}

.page-home .round-card__link:hover,
.page-home .round-card__link:focus-visible {
  color: var(--seal-deep);
  border-bottom-color: var(--seal-deep);
}

.page-home .roundline__strip {
  margin: 1.6rem 0 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-3);
}

.page-home .roundline__strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .roundline__strip .figure__caption {
  margin: 0;
  padding: .65rem .85rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* ---------- 换设备 ---------- */
.page-home .swap {
  background: var(--paper);
}

.page-home .swap__split {
  gap: clamp(1.6rem, 4vw, 3.4rem);
}

.page-home .swap__title {
  margin: .5rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2.35rem);
  line-height: 1.2;
  color: var(--ink);
}

.page-home .swap__text .btn {
  margin-top: 1.4rem;
}

.page-home .swap__steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .swap__card {
  border-top: 1px solid var(--line);
}

.page-home .swap__card .card__body p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- 焕新版面板（深色段） ---------- */
.page-home .panel-ink {
  position: relative;
  padding: var(--band-y) 0;
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(127, 168, 166, .28), transparent 60%),
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 74%);
  color: var(--paper);
  overflow: hidden;
}

.page-home .panel-ink::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 60%;
  background-image: repeating-linear-gradient(94deg, rgba(244, 241, 234, .06) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.page-home .panel-ink__head {
  position: relative;
  z-index: 1;
}

.page-home .panel-ink .section-head__title {
  color: var(--paper);
}

.page-home .panel-ink .section-head__aside {
  color: rgba(244, 241, 234, .78);
}

.page-home .panel-ink__panel {
  position: relative;
  z-index: 1;
  margin-top: 1.8rem;
  background: rgba(244, 241, 234, .05);
  border: 1px solid rgba(244, 241, 234, .18);
  color: var(--paper);
}

.page-home .panel-ink__col {
  padding: 1.2rem 1.1rem 1.4rem;
}

.page-home .panel-ink__col .panel__head {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper);
}

.page-home .flags {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .flags__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem .7rem;
  background: rgba(244, 241, 234, .06);
  border-left: 3px solid var(--tide);
}

.page-home .flags__round {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: rgba(244, 241, 234, .82);
  white-space: nowrap;
}

.page-home .flags__dots {
  display: flex;
  gap: .22rem;
  align-items: center;
}

.page-home .dot {
  display: inline-block;
  width: .62rem;
  height: 1.05rem;
  border-radius: 2px;
}

.page-home .dot--amber {
  background: var(--amber);
}

.page-home .dot--crimson {
  background: var(--crimson);
}

.page-home .flags__count {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
}

.page-home .panel-ink .data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .82rem;
}

.page-home .panel-ink .data-table th,
.page-home .panel-ink .data-table td {
  padding: .55rem .55rem;
  text-align: left;
  white-space: nowrap;
}

.page-home .panel-ink .data-table thead th {
  color: rgba(244, 241, 234, .62);
  font-weight: 500;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(244, 241, 234, .26);
}

.page-home .panel-ink .data-table tbody th {
  color: rgba(244, 241, 234, .82);
  font-weight: 500;
  border-bottom: 1px dashed rgba(244, 241, 234, .14);
}

.page-home .panel-ink .data-table tbody td {
  color: var(--paper);
  border-bottom: 1px dashed rgba(244, 241, 234, .14);
}

.page-home .panel-ink .data-table tbody tr:hover th,
.page-home .panel-ink .data-table tbody tr:hover td {
  background: rgba(127, 168, 166, .16);
}

.page-home .panel-ink__foot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.page-home .panel-ink__figure {
  margin: 0;
  border: 1px solid rgba(244, 241, 234, .2);
  background: rgba(244, 241, 234, .05);
  overflow: hidden;
}

.page-home .panel-ink__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.page-home .panel-ink__figure .figure__caption {
  margin: 0;
  padding: .6rem .8rem;
  color: rgba(244, 241, 234, .72);
}

.page-home .panel-ink__note p {
  margin: 0 0 1rem;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(244, 241, 234, .82);
}

/* ---------- 战报 ---------- */
.page-home .news {
  background: var(--paper);
}

.page-home .news__grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.page-home .news__figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-3);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.page-home .news__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .news__card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.page-home .news__card .card__body p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.page-home .news__card .card__foot {
  margin: auto 0 0;
  padding-top: .6rem;
  border-top: 1px dashed var(--line);
}

.page-home .news__more {
  margin: 1.8rem 0 0;
}

/* ---------- 价格 ---------- */
.page-home .pricing {
  background: var(--paper-2);
}

.page-home .pricing__folds {
  display: grid;
  gap: .85rem;
  margin-top: 1.6rem;
}

.page-home .pricing .fold {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
}

.page-home .pricing .fold__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1.2rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.page-home .pricing .fold__head::-webkit-details-marker {
  display: none;
}

.page-home .fold__label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.page-home .fold__no {
  display: inline-block;
  margin-right: .55rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--stone);
  border: 1px solid var(--line);
  padding: .1rem .35rem;
}

.page-home .fold__price {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--seal);
}

.page-home .pricing .fold__body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px dashed var(--line);
}

.page-home .pricing .fold__body p {
  margin: .9rem 0 0;
  font-size: .93rem;
  line-height: 1.78;
  color: var(--ink-2);
}

.page-home .pricing__more {
  margin: 1.8rem 0 0;
}

/* ---------- 水纹路径导航 ---------- */
.page-home .tide-nav {
  position: relative;
  padding: var(--band-y) 0 calc(var(--band-y) * .85);
  background: linear-gradient(180deg, var(--stone) 0%, var(--ink-2) 78%);
  color: var(--paper);
  overflow: hidden;
}

.page-home .tide-nav__svg {
  display: block;
  width: 100%;
  height: clamp(70px, 12vw, 140px);
  margin-bottom: -1px;
}

.page-home .tide-nav__inner {
  position: relative;
  z-index: 1;
}

.page-home .tide-nav__title {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 2.1rem);
  line-height: 1.25;
  color: var(--paper);
}

.page-home .tide-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .tide-nav__links a {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  height: 100%;
  padding: .95rem .85rem;
  color: var(--paper);
  text-decoration: none;
  background: rgba(244, 241, 234, .07);
  border: 1px solid rgba(244, 241, 234, .18);
  border-top: 2px solid var(--tide);
  transition: background .3s var(--ease), transform .3s var(--ease), border-top-color .3s var(--ease);
}

.page-home .tide-nav__links a:hover,
.page-home .tide-nav__links a:focus-visible {
  background: rgba(244, 241, 234, .14);
  border-top-color: var(--amber);
  transform: translateY(-3px);
}

.page-home .tide-nav__no {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--brass);
}

.page-home .tide-nav__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.page-home .tide-nav__desc {
  font-size: .8rem;
  line-height: 1.55;
  color: rgba(244, 241, 234, .68);
}

.page-home .tide-nav__brand {
  margin: 2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(244, 241, 234, .2);
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: .06em;
  color: rgba(244, 241, 234, .9);
}

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .page-home .hero-facts {
    gap: 1.2rem 1.4rem;
  }

  .page-home .news__figure {
    aspect-ratio: 16 / 6;
  }
}

@media (min-width: 760px) {
  .page-home .panel-ink__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .panel-ink__foot {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
}

@media (min-width: 900px) {
  .page-home .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .news__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
  }

  .page-home .news__figure {
    grid-column: 1 / -1;
    max-height: 420px;
  }

  .page-home .tide-nav__links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-home .hero-tide__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: end;
  }

  .page-home .roundline__item {
    flex: 0 0 18.5rem;
  }

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

@media (min-width: 1280px) {
  .page-home .hero-tide__vertical {
    display: block;
    position: absolute;
    right: -2.4rem;
    bottom: .8rem;
    margin: 0;
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: .42em;
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .round-card,
  .page-home .tide-nav__links a {
    transition: none;
  }
}
