/* ==========================================================================
   product.css — 产品子站共用版式
   ========================================================================== */

.product-page {
  --accent: #55e2b8;
}

.product-page ::selection {
  background: var(--accent);
  color: #07100d;
}

.product-page .btn {
  --btn-bg: var(--accent);
  --btn-fg: #07100d;
}

.product-page .btn:hover {
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 55%, transparent);
}

.product-page .btn-ghost {
  --btn-bg: transparent;
  --btn-fg: #f3f5f1;
  border-color: var(--line-strong);
}

.product-page .btn-outline-dark {
  --btn-bg: transparent;
  --btn-fg: #10140f;
  border-color: rgba(16, 20, 15, 0.26);
}

.product-page .btn-outline-dark:hover {
  background: rgba(16, 20, 15, 0.06);
  box-shadow: none;
}

.product-page .eyebrow {
  color: var(--accent);
}

.product-page .pill i {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.product-page .text-link.accent {
  color: var(--accent);
}

.product-page .product-hero h1 {
  font-size: clamp(38px, 4.1vw, 59px);
  line-height: 1.06;
}

.product-page .product-hero h1 .accent {
  color: var(--accent);
}

.product-page .section-paper .eyebrow {
  color: color-mix(in srgb, var(--accent) 42%, #10140f);
}

/* Hero decorations ---------------------------------------------------------- */

.product-hero .hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.product-hero .deco-ring {
  right: -220px;
  top: 10%;
  width: 640px;
  height: 640px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
}

.product-hero .deco-ring::before {
  content: "";
  position: absolute;
  inset: 90px;
  border: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 50%;
}

.product-hero .deco-line {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
}

.product-hero .hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.product-hero .hero-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.product-hero .shot-frame {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 50px 100px -40px rgba(0, 0, 0, 0.9),
    0 0 100px -30px color-mix(in srgb, var(--accent) 26%, transparent);
}

/* Accent block helpers ------------------------------------------------------ */

.accent-card {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    radial-gradient(420px 240px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.025);
}

.section-paper .accent-card {
  background:
    radial-gradient(420px 240px at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.38);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
}

.section-paper .section-label {
  color: #4f642e;
}

.section-paper .section-label::after {
  background: linear-gradient(90deg, rgba(16, 20, 15, 0.14), transparent);
}

/* Highlight strip ----------------------------------------------------------- */

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
}

.section-paper .highlight-strip {
  border-color: var(--line-paper);
  background: var(--line-paper);
}

.highlight-item {
  padding: 24px;
  background: var(--ink-2);
}

.section-paper .highlight-item {
  background: var(--paper);
}

.highlight-item .h-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.section-paper .highlight-item .h-num {
  color: #667d3e;
}

.highlight-item h3 {
  margin-top: 20px;
  font-size: 15.5px;
  font-weight: 650;
}

.highlight-item p {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.section-paper .highlight-item p {
  color: var(--muted-paper);
}

/* Feature grid variants ----------------------------------------------------- */

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

.feature-grid.feature-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card.is-wide {
  grid-column: span 2;
}

.feature-card .feature-kpi {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
}

.feature-card .feature-kpi strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* Gallery ------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0f13;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.section-paper .gallery figure {
  border-color: var(--line-paper);
  background: #fff;
}

.gallery figure:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.section-paper .gallery img {
  border-bottom-color: var(--line-paper);
}

.gallery figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.section-paper .gallery figcaption {
  color: #7b8275;
}

.gallery figcaption em {
  font-style: normal;
  color: var(--accent);
}

.gallery figure.is-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #0d1318;
}

/* Edition cards ------------------------------------------------------------- */

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.edition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.edition-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
}

.edition-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    radial-gradient(400px 260px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.028);
}

.edition-flag {
  position: absolute;
  top: -1px;
  right: 20px;
  padding: 3px 9px;
  border-radius: 0 0 7px 7px;
  background: var(--accent);
  color: #07100d;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-card .ed-index {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.edition-card h3 {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.edition-card .ed-sub {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
}

.edition-card ul {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.65;
  color: #b1bcc1;
}

.edition-card li {
  display: flex;
  gap: 8px;
}

.edition-card li svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.edition-card .ed-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.edition-card .ed-foot .btn {
  width: 100%;
}

.section-paper .edition-card {
  border-color: var(--line-paper);
  background: rgba(255, 255, 255, 0.5);
}

.section-paper .edition-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 46%, #10140f);
  background:
    radial-gradient(420px 260px at 100% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.56);
}

.section-paper .edition-card .ed-index {
  color: color-mix(in srgb, var(--accent) 46%, #10140f);
}

.section-paper .edition-card .ed-sub {
  color: var(--muted-paper);
}

.section-paper .edition-card ul {
  border-top-color: var(--line-paper);
  color: #3f473c;
}

.section-paper .edition-card li svg {
  color: color-mix(in srgb, var(--accent) 58%, #10140f);
}

.section-paper .edition-card .ed-foot {
  border-top-color: var(--line-paper);
}

/* Architecture diagram ------------------------------------------------------ */

.arch-card {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(500px 260px at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    #0a0f14;
}

.section-paper .arch-card {
  border-color: var(--line-paper);
  background:
    radial-gradient(500px 260px at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.4);
}

.arch-layers {
  display: grid;
  gap: 9px;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.section-paper .arch-layer {
  border-color: var(--line-paper);
  background: rgba(255, 255, 255, 0.5);
}

.arch-layer .al-tag {
  flex: none;
  width: 62px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.arch-layer .al-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.arch-layer .al-body span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10.5px;
  color: #a9b4b9;
}

.section-paper .arch-layer .al-body span {
  border-color: var(--line-paper);
  color: #4a5145;
}

.arch-layer .al-desc {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-2);
}

/* Product quote ------------------------------------------------------------- */

.product-quote {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(500px 260px at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.product-quote .q-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.75;
}

.product-quote blockquote {
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: #e4e9e6;
}

.product-quote .q-by {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* Inline help cards --------------------------------------------------------- */

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.section-paper .info-card {
  border-color: var(--line-paper);
  background: rgba(255, 255, 255, 0.4);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
}

.info-card h3 svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.info-card p {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}

.section-paper .info-card p {
  color: var(--muted-paper);
}

/* Phone stage --------------------------------------------------------------- */

.phone-stage {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(420px 420px at 50% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 68%),
    #0a0f14;
  overflow: hidden;
}

.section-paper .phone-stage {
  border-color: var(--line-paper);
  background:
    radial-gradient(420px 420px at 50% 20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%),
    rgba(255, 255, 255, 0.42);
}

.phone-stage img {
  width: min(320px, 82%);
  border: 7px solid #0b0f13;
  border-radius: 30px;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.section-paper .phone-stage img {
  border-color: #151a17;
}

/* Product switcher ---------------------------------------------------------- */

.product-switcher {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.switch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.switch-head h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.switch-head a {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.switch-head a:hover {
  color: var(--accent);
}

.switch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1120px) {
  .switch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.switch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.switch-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--sw-accent) 30%, transparent);
}

.switch-card img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}

.switch-card .sw-body {
  min-width: 0;
}

.switch-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.switch-card span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch-card .sw-arrow {
  margin-left: auto;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease), color 0.25s;
}

.switch-card:hover .sw-arrow {
  color: var(--sw-accent);
  transform: translate(2px, -2px);
}

/* Product page footer spacing ----------------------------------------------- */

.product-page .site-footer {
  margin-top: 0;
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 980px) {
  .highlight-strip,
  .edition-grid,
  .info-cards {
    grid-template-columns: 1fr;
  }

  .switch-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-grid.feature-grid-3,
  .feature-grid.feature-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card.is-wide {
    grid-column: auto;
  }

  .product-quote {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .arch-layer .al-desc {
    display: none;
  }
}

@media (max-width: 720px) {
  .gallery,
  .feature-grid.feature-grid-3,
  .feature-grid.feature-grid-4 {
    grid-template-columns: 1fr;
  }

  .product-cta .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.11em;
    max-width: 320px;
    margin-inline: auto;
    line-height: 1.7;
  }

  .arch-layer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .arch-layer .al-tag {
    width: auto;
  }

  .product-quote {
    padding: 22px;
  }

  .product-hero .float-tag {
    display: none;
  }
}
