.page-home {
  --home-cut: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  --home-cut-sm: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  --home-rule: rgba(201, 165, 106, 0.4);
  --home-softmoon: rgba(220, 235, 226, 0.8);
  padding: 0;
  background: var(--paper);
  color: var(--night);
  font-family: var(--font-body);
  line-height: 1.85;
  overflow-x: hidden;
}

.page-home .home-h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(25px, 4.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink-green);
}

.page-home .home-h2--light {
  color: var(--paper);
}

.page-home .eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  color: var(--deep-amber);
}

.page-home .eyebrow.on-dark {
  color: var(--amber);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(54px, 9vw, 104px) 0 clamp(56px, 8vw, 96px);
  background: var(--ink-green);
  color: var(--moon);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -190px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(230, 162, 60, 0.4), rgba(230, 162, 60, 0) 68%);
  pointer-events: none;
  z-index: 1;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(18, 53, 43, 0.97) 6%, rgba(18, 53, 43, 0.78) 46%, rgba(18, 53, 43, 0.32) 100%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 30px;
  min-width: 0;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-copy h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(34px, 7.2vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--paper);
}

.page-home .hero-copy h1 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--amber);
}

.page-home .hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.14em;
  background: linear-gradient(90deg, rgba(244, 124, 60, 0.85), rgba(244, 124, 60, 0));
}

.page-home .hero-lede {
  max-width: 34em;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(220, 235, 226, 0.86);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-home .hero-actions .btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14.5px;
  text-decoration: none;
  clip-path: var(--home-cut-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .hero-actions .btn--lamp {
  background: var(--amber);
  color: var(--ink-green);
  border: 1px solid var(--amber);
}

.page-home .hero-actions .btn--lamp:hover {
  background: var(--wick);
  border-color: var(--wick);
  transform: translate(-1px, -2px);
}

.page-home .hero-actions .btn--line {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(201, 165, 106, 0.62);
}

.page-home .hero-actions .btn--line:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translate(-1px, -2px);
}

.page-home .lamp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.page-home .lamp-card {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 18px 16px 22px;
  background: rgba(31, 74, 61, 0.55);
  border: 1px solid rgba(201, 165, 106, 0.34);
  clip-path: var(--home-cut-sm);
  text-decoration: none;
  color: var(--paper);
  scroll-snap-align: start;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .lamp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 3px;
  height: 22px;
  background: var(--mist);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-home .lamp-card:hover {
  background: linear-gradient(135deg, rgba(230, 162, 60, 0.24), rgba(244, 124, 60, 0.08));
  border-color: rgba(230, 162, 60, 0.85);
  transform: translate(-2px, -2px);
}

.page-home .lamp-card:hover::before {
  background: var(--wick);
  box-shadow: 0 0 12px rgba(244, 124, 60, 0.85);
}

.page-home .lamp-card-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.page-home .lamp-card-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .lamp-card-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(220, 235, 226, 0.62);
}

/* ---------- 本地记录条 ---------- */
.page-home .recall {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  padding: clamp(46px, 6vw, 64px) 0 clamp(30px, 4vw, 46px);
  background: var(--moon);
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
}

.page-home .recall-inner {
  display: grid;
  gap: 16px;
}

.page-home .recall-stamp {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--amber);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--deep-amber);
}

.page-home .recall-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink-green);
}

.page-home .recall-text p {
  margin: 0;
  font-size: 15.5px;
  color: var(--night);
}

.page-home .recall-link {
  justify-self: start;
  display: inline-block;
  padding: 11px 20px;
  background: var(--ink-green);
  color: var(--paper);
  font-size: 14.5px;
  text-decoration: none;
  clip-path: var(--home-cut-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .recall-link:hover {
  background: var(--wick);
  transform: translate(-1px, -2px);
}

/* ---------- 三条产品线 ---------- */
.page-home .lines {
  padding: clamp(50px, 8vw, 92px) 0 clamp(44px, 6vw, 76px);
}

.page-home .lines-head {
  display: grid;
  gap: 16px;
}

.page-home .lines-head-main {
  min-width: 0;
}

.page-home .lines-lede {
  margin: 0;
  max-width: 40em;
  font-size: clamp(15px, 1.6vw, 16.5px);
  color: var(--warm-gray);
}

.page-home .lines-figure {
  margin: 26px 0 0;
  background: var(--pine);
  clip-path: var(--home-cut);
}

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

.page-home .lines-figure .media-caption {
  padding: 10px 16px 12px;
  margin: 0;
  font-size: 12.5px;
  color: rgba(220, 235, 226, 0.7);
}

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

.page-home .line-card {
  position: relative;
  padding: 24px 20px 20px;
  background: var(--moon);
  clip-path: var(--home-cut);
  transition: transform 0.22s var(--ease);
}

.page-home .line-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--amber);
  transition: background 0.22s var(--ease);
}

.page-home .line-card:hover {
  transform: translateY(-4px);
}

.page-home .line-card:hover::before {
  background: var(--wick);
}

.page-home .line-card-tag {
  margin: 0 0 6px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--deep-amber);
}

.page-home .line-card-name {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink-green);
}

.page-home .line-card-fit {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--deep-amber);
}

.page-home .line-card-text {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--night);
}

.page-home .line-card-link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--ink-green);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .line-card-link:hover {
  color: var(--wick);
  border-color: var(--wick);
}

/* ---------- 手机切换两版 ---------- */
.page-home .switch {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0;
  background: var(--night);
  color: var(--moon);
  overflow: hidden;
}

.page-home .switch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(230, 162, 60, 0.07) 0 1px, transparent 1px 46px);
  pointer-events: none;
}

.page-home .switch .wrap {
  position: relative;
  z-index: 1;
}

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

.page-home .switch-grid {
  display: grid;
  gap: 24px;
}

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

.page-home .switch-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: var(--home-cut);
}

.page-home .switch-figure .media-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(220, 235, 226, 0.6);
}

.page-home .switch-compare {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.page-home .switch-card {
  padding: 20px 18px;
  background: rgba(31, 74, 61, 0.72);
  border: 1px solid rgba(201, 165, 106, 0.34);
  clip-path: var(--home-cut-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .switch-card:hover {
  border-color: rgba(230, 162, 60, 0.8);
  transform: translateY(-3px);
}

.page-home .switch-card--alt {
  background: rgba(18, 53, 43, 0.84);
  border-color: rgba(230, 162, 60, 0.48);
}

.page-home .switch-card-tag {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .switch-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .switch-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--home-softmoon);
}

.page-home .switch-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .switch-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.8px;
  line-height: 1.8;
  color: rgba(220, 235, 226, 0.74);
}

.page-home .switch-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- 版本索引 ---------- */
.page-home .versions {
  padding: clamp(50px, 8vw, 92px) 0;
  background: var(--paper);
}

.page-home .versions-inner {
  display: grid;
  gap: 30px;
}

.page-home .versions-main {
  min-width: 0;
}

.page-home .versions-lede {
  margin: 0 0 22px;
  max-width: 42em;
  font-size: clamp(15px, 1.6vw, 16.5px);
  color: var(--warm-gray);
}

.page-home .version-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-rule);
}

.page-home .version-row {
  display: grid;
  gap: 4px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--home-rule);
  transition: background 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.page-home .version-row:hover {
  background: rgba(220, 235, 226, 0.55);
  padding-left: 12px;
}

.page-home .version-device {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--ink-green);
}

.page-home .version-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--night);
}

.page-home .version-meta {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--deep-amber);
  white-space: nowrap;
}

.page-home .versions-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .versions-figure {
  margin: 0;
  clip-path: var(--home-cut);
}

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

.page-home .versions-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.page-home .versions-aside .btn--deep {
  justify-self: start;
  display: inline-block;
  padding: 11px 20px;
  background: var(--ink-green);
  color: var(--paper);
  font-size: 14.5px;
  text-decoration: none;
  clip-path: var(--home-cut-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .versions-aside .btn--deep:hover {
  background: var(--pine);
  transform: translate(-1px, -2px);
}

/* ---------- 每周更新 ---------- */
.page-home .weekly {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0;
  background: var(--ink-green);
  color: var(--moon);
  overflow: hidden;
}

.page-home .weekly::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -210px;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 162, 60, 0.22), rgba(230, 162, 60, 0) 70%);
  pointer-events: none;
}

.page-home .weekly-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
}

.page-home .weekly-lead {
  min-width: 0;
}

.page-home .weekly-lead p {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: rgba(220, 235, 226, 0.8);
}

.page-home .weekly-lead .btn--lamp {
  display: inline-block;
  padding: 11px 20px;
  background: var(--amber);
  color: var(--ink-green);
  font-size: 14.5px;
  text-decoration: none;
  clip-path: var(--home-cut-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .weekly-lead .btn--lamp:hover {
  background: var(--wick);
  transform: translate(-1px, -2px);
}

.page-home .weekly-team {
  margin: 20px 0 0 !important;
  padding-left: 12px;
  border-left: 2px solid rgba(230, 162, 60, 0.5);
  font-size: 12.8px !important;
  line-height: 1.8;
  color: rgba(220, 235, 226, 0.58) !important;
}

.page-home .weekly-list {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.page-home .weekly-item {
  padding: 16px 0;
  border-top: 1px solid rgba(201, 165, 106, 0.28);
}

.page-home .weekly-item:last-child {
  border-bottom: 1px solid rgba(201, 165, 106, 0.28);
}

.page-home .weekly-when {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .weekly-item-title {
  margin: 4px 0 4px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 17.5px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .weekly-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(220, 235, 226, 0.72);
}

/* ---------- 页尾入口 ---------- */
.page-home .tail {
  padding: clamp(36px, 5vw, 62px) 0 clamp(44px, 6vw, 76px);
  background: var(--paper);
  border-top: 1px solid var(--home-rule);
}

.page-home .tail-inner {
  display: grid;
  gap: 18px;
}

.page-home .tail-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--ink-green);
}

.page-home .tail-links {
  display: grid;
  gap: 10px;
}

.page-home .tail-link {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: var(--moon);
  clip-path: var(--home-cut-sm);
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .tail-link:hover {
  background: rgba(230, 162, 60, 0.18);
  transform: translateY(-2px);
}

.page-home .tail-link-q {
  font-size: 13px;
  color: var(--warm-gray);
}

.page-home .tail-link-a {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--ink-green);
}

/* ---------- 断点 ---------- */
@media (min-width: 560px) {
  .page-home .lamp-rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }
}

@media (min-width: 680px) {
  .page-home .switch-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 760px) {
  .page-home .tail-inner {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }
}

@media (min-width: 720px) {
  .page-home .version-row {
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
  }
}

@media (min-width: 880px) {
  .page-home .recall-inner {
    grid-template-columns: 168px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
  }

  .page-home .lines-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.72fr);
    align-items: end;
    gap: clamp(24px, 4vw, 56px);
  }

  .page-home .line-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 26px);
    align-items: start;
  }

  .page-home .line-card:nth-child(2) {
    margin-top: 32px;
  }

  .page-home .line-card:nth-child(3) {
    margin-top: 64px;
  }
}

@media (min-width: 900px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: clamp(28px, 4vw, 64px);
  }

  .page-home .lamp-rail {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .page-home .switch-grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    align-items: start;
    gap: clamp(24px, 4vw, 52px);
  }

  .page-home .weekly-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 4vw, 60px);
  }
}

@media (min-width: 980px) {
  .page-home .versions-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
    gap: clamp(28px, 4vw, 60px);
  }
}
