/* 广州润普 · 电网 AI 案例站 — 共用样式 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-16);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--amber);
  color: #1b1206;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* ---------- 布局 ---------- */
.wrap {
  width: min(100% - 64px, var(--wrap));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - 64px, var(--wrap-wide));
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.section--raise {
  background: var(--ink-raise);
}

.section--flush {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
}

.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 22em;
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  color: var(--amber);
}

.section-note {
  color: var(--muted);
  font-size: var(--t-14);
  max-width: 32em;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--s-5);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow--dim {
  color: var(--muted);
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 36em;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* 细刻度分隔线，像图纸的标尺 */
.ticks {
  height: 12px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 14px);
  background-size: 14px 6px;
  background-repeat: repeat-x;
  background-position: left top;
  opacity: 0.55;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--amber);
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  position: relative;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  border: 1px solid var(--amber);
}

.brand__mark::before {
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  opacity: 0.55;
}

.brand__mark::after {
  width: 4px;
  height: 4px;
  background: var(--amber);
  border: 0;
}

.brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: var(--t-16);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  margin-left: auto;
}

.nav a {
  font-size: var(--t-14);
  color: var(--text-dim);
  padding: 6px 0;
  position: relative;
  transition: color 0.18s var(--ease);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav .btn {
  margin-left: var(--s-2);
}

.nav a.btn--primary {
  color: #1c1304;
}

.nav a.btn::after {
  display: none;
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--text);
}

.menu-btn span::before {
  top: -5px;
}

.menu-btn span::after {
  top: 5px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: var(--t-14);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--amber);
  color: #1c1304;
}

.btn--primary:hover {
  background: var(--amber-bright);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: var(--t-13);
}

.btn .arw {
  font-family: var(--font-mono);
  font-size: 0.95em;
  transition: transform 0.18s var(--ease);
}

.btn:hover .arw {
  transform: translateX(3px);
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 128px) 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 45%;
  opacity: 0.72;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 11, 18, 0.94) 40%, rgba(7, 11, 18, 0.42) 72%, rgba(7, 11, 18, 0.7) 100%),
    linear-gradient(0deg, var(--ink) 2%, rgba(7, 11, 18, 0.1) 45%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 120px 100%;
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, var(--wrap));
}

.display {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15em;
  margin-bottom: var(--s-6);
  text-wrap: balance;
}

.nw {
  white-space: nowrap;
}

.display em {
  font-style: normal;
  color: var(--amber);
  position: relative;
  white-space: nowrap;
}

.display em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.hero .lede {
  max-width: 33em;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--s-8);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 860px;
}

.hero__stats > div {
  background: rgba(10, 16, 25, 0.72);
  padding: var(--s-5) var(--s-5);
}

.stat__n {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 500;
}

.stat__n small {
  font-size: 0.5em;
  color: var(--amber);
  margin-left: 3px;
  letter-spacing: 0;
}

.stat__l {
  display: block;
  margin-top: 8px;
  font-size: var(--t-12);
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 首页：主线 ---------- */
.mainline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mainline > div {
  background: var(--ink-raise);
  padding: var(--s-6) var(--s-5) var(--s-8);
  position: relative;
}

.mainline__k {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--amber);
  letter-spacing: 0.14em;
}

.mainline h3 {
  font-size: var(--t-18);
  margin: 10px 0 6px;
  font-weight: 600;
}

.mainline p {
  font-size: var(--t-13);
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 首页：案例索引行 ---------- */
.crows {
  border-top: 1px solid var(--line);
}

.crow {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 168px 208px 26px;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6) var(--s-4);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
  position: relative;
}

.crow:hover {
  background: var(--ink-raise);
}

.crow__no {
  font-family: var(--font-mono);
  font-size: var(--t-22);
  color: var(--muted-soft);
  letter-spacing: -0.02em;
  transition: color 0.2s var(--ease);
}

.crow:hover .crow__no {
  color: var(--amber);
}

.crow__tag {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.crow h3 {
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.crow__desc {
  font-size: var(--t-13);
  color: var(--muted);
  margin-top: 6px;
  max-width: 40em;
}

.crow__kpi b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-18);
  font-weight: 500;
  color: var(--amber);
  letter-spacing: -0.01em;
}

.crow__kpi span {
  display: block;
  font-size: var(--t-12);
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

.crow__thumb {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
}

.crow__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.crow:hover .crow__thumb img {
  transform: scale(1.04);
}

.crow__arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.crow:hover .crow__arrow {
  color: var(--amber);
  transform: translate(2px, -2px);
}

/* ---------- 卡片 / 网格 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-4 > * {
  background: var(--ink-raise);
  padding: var(--s-6) var(--s-5);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card__k {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  letter-spacing: 0.12em;
  color: var(--amber);
}

.card h3 {
  font-size: var(--t-18);
  font-weight: 600;
  margin: 10px 0 8px;
  line-height: 1.45;
}

.card p {
  font-size: var(--t-14);
  color: var(--muted);
  line-height: 1.8;
}

.card--flat {
  background: transparent;
}

.card--quote {
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: linear-gradient(90deg, var(--amber-dim), transparent 70%);
}

/* ---------- 案例页 ---------- */
.casenav {
  border-bottom: 1px solid var(--line);
  background: var(--ink-raise);
  position: relative;
}

.casenav::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, var(--ink-raise));
  pointer-events: none;
}

.casenav__in {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.casenav__in::-webkit-scrollbar {
  display: none;
}

.casenav a {
  padding: 13px 16px 12px;
  font-size: var(--t-13);
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.casenav a b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--t-11);
  color: var(--muted-soft);
}

.casenav a:hover {
  color: var(--text);
}

.casenav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--amber);
}

.casenav a[aria-current="page"] b {
  color: var(--amber);
}

.casehero {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.casehero__no {
  position: absolute;
  right: max(24px, calc((100vw - var(--wrap)) / 2 - 40px));
  top: 26px;
  font-family: var(--font-mono);
  font-size: clamp(150px, 22vw, 320px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 174, 204, 0.14);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.casehero__inner {
  position: relative;
  z-index: 2;
}

.casehero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18em;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}

.casehero .lede {
  max-width: 42em;
}

.casetags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  line-height: 1.4;
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(245, 185, 66, 0.42);
  background: var(--amber-dim);
}

/* 流程 */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 48px);
}

.flow > div {
  background: var(--ink);
  padding: var(--s-5);
  position: relative;
}

.flow__k {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  color: var(--amber);
  letter-spacing: 0.14em;
}

.flow h4 {
  font-size: var(--t-16);
  font-weight: 600;
  margin: 8px 0 4px;
}

.flow p {
  font-size: var(--t-12);
  color: var(--muted);
  line-height: 1.65;
}

/* 案例 KPI */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-8);
}

.kpi {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s-4);
}

.kpi__n {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  font-weight: 500;
}

.kpi__n em {
  font-style: normal;
  color: var(--amber);
}

.kpi__l {
  display: block;
  margin-top: 8px;
  font-size: var(--t-13);
  color: var(--muted);
  line-height: 1.6;
}

/* 贴图墙 */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

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

.tile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}

/* 贴图统一按 16:10 取景，像一面系统截图墙 */
.tiles .tile__open {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: none;
}

.tiles .tile__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tiles .tile--contain .tile__open {
  background: var(--surface-2);
}

.tiles .tile--contain .tile__open img {
  object-fit: contain;
}

.tile:hover {
  border-color: var(--line-strong);
}

.tile__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.tile__open img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease), opacity 0.2s var(--ease);
}

.tile__open:hover img {
  transform: scale(1.012);
  opacity: 0.94;
}

.tile__open::after {
  content: "＋";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: var(--r-xs);
  background: rgba(7, 11, 18, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.tile:hover .tile__open::after {
  opacity: 1;
}

.tile figcaption {
  padding: 12px 14px 14px;
  font-size: var(--t-13);
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  align-items: baseline;
  border-top: 1px solid var(--line-soft);
  line-height: 1.6;
}

.tile__k {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  color: var(--amber);
  flex: none;
  letter-spacing: 0.06em;
}

.tile__note {
  color: var(--muted);
  font-size: var(--t-12);
}

/* 案例页小标题 */
.block {
  margin-top: clamp(40px, 5vw, 64px);
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.block-head h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.block-head span {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* 引用 */
.quote {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px var(--s-6);
  margin: clamp(40px, 5vw, 64px) 0 0;
  max-width: 48em;
}

.quote p {
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.75;
  color: var(--text);
  letter-spacing: -0.01em;
}

.quote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.14em;
  color: var(--muted);
  font-style: normal;
  text-transform: uppercase;
}

/* 列表 */
.checks {
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 18px;
  font-size: var(--t-14);
  color: var(--text-dim);
  line-height: 1.75;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--amber);
  transform: rotate(45deg);
}

.checks b {
  color: var(--text);
  font-weight: 600;
}

/* 表格 */
.tablewrap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
  background: var(--ink-raise);
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-14);
  min-width: 720px;
}

.spec th {
  text-align: left;
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.spec td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.65;
}

.spec tr:last-child td {
  border-bottom: 0;
}

.spec td:first-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.spec td.cap {
  color: var(--text);
}

.spec .num {
  font-family: var(--font-mono);
  color: var(--amber);
}

/* 上一案例 / 下一案例 */
.prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.prevnext a {
  background: var(--ink-raise);
  padding: var(--s-8) 0;
  display: block;
  transition: background 0.2s var(--ease);
}

.prevnext a:hover {
  background: var(--surface);
}

.prevnext__k {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.prevnext__t {
  font-size: var(--t-18);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.prevnext a:hover .prevnext__t {
  color: var(--amber);
}

.prevnext .right {
  text-align: right;
}

/* 联系表单 */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-14);
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color 0.18s var(--ease);
  width: 100%;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-soft);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form__note {
  font-size: var(--t-12);
  color: var(--muted);
  margin-top: var(--s-3);
  grid-column: 1 / -1;
}

/* ---------- CTA 区 ---------- */
.cta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-raise), var(--ink));
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(0deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}

.cta__in {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16em;
  text-wrap: balance;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink);
  padding: var(--s-16) 0 var(--s-8);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-10);
  border-bottom: 1px solid var(--line);
}

.footer__desc {
  font-size: var(--t-13);
  color: var(--muted);
  line-height: 1.9;
  margin-top: var(--s-4);
  max-width: 26em;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
  font-weight: 400;
}

.footer ul {
  display: grid;
  gap: 4px;
}

.footer ul a {
  display: inline-block;
  padding: 4px 0;
  font-size: var(--t-13);
  color: var(--text-dim);
  transition: color 0.18s var(--ease);
}

.footer ul a:hover {
  color: var(--amber);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  flex-wrap: wrap;
  font-size: var(--t-12);
  color: var(--muted-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 7, 12, 0.95);
  display: grid;
  place-items: center;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(96vw, 1500px);
  max-height: 82vh;
  width: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.lightbox__cap {
  margin-top: 14px;
  font-size: var(--t-13);
  color: var(--muted);
  text-align: center;
  max-width: 70ch;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(14, 22, 34, 0.9);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.lightbox__close:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---------- 杂项 ---------- */
.note {
  font-size: var(--t-12);
  color: var(--muted-soft);
  line-height: 1.8;
  margin-top: var(--s-5);
  max-width: 40em;
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--s-10) 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* 首页证据墙 */
.wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 146px;
  grid-auto-flow: dense;
  gap: 12px;
}

.wall figure {
  grid-column: span 4;
  grid-row: span 1;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.wall figure:nth-child(1),
.wall figure:nth-child(8) {
  grid-column: span 8;
  grid-row: span 2;
}

.wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.2s var(--ease);
}

.wall figure:hover img {
  opacity: 0.88;
}

.wall a {
  display: block;
  position: relative;
  height: 100%;
}

.wall img {
  filter: saturate(0.94) brightness(0.94);
}

.wall figure:hover img {
  filter: none;
}

.wall__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(7, 11, 18, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 4px 7px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.wall figure:hover .wall__tag {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .crow {
    grid-template-columns: 56px minmax(0, 1fr) 190px 24px;
  }
  .crow__kpi {
    display: none;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--s-10);
  }
}

@media (max-width: 920px) {
  .wrap,
  .wrap--wide,
  .hero__inner {
    width: min(100% - 40px, var(--wrap));
  }
  .menu-btn {
    display: grid;
  }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) 20px var(--s-6);
    display: none;
    max-height: calc(100vh - var(--nav-h));
    overflow: auto;
    z-index: 59;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--t-16);
  }
  .nav a::after {
    display: none;
  }
  .nav .btn {
    margin: var(--s-4) 0 0;
    justify-content: center;
  }
  .hero {
    min-height: 0;
    padding: 64px 0 40px;
  }
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mainline,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpis {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .kpis .kpi {
    padding-top: 12px;
  }
  .tiles,
  .tiles--3 {
    grid-template-columns: 1fr;
  }
  .casehero__no {
    font-size: 130px;
    right: 12px;
    top: 20px;
  }
  .wall {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  .wall figure,
  .wall figure:nth-child(1),
  .wall figure:nth-child(8) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .wall figure:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .prevnext {
    grid-template-columns: 1fr;
  }
  .prevnext .right {
    text-align: left;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .crow {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: var(--s-4);
    padding: var(--s-5) 0;
  }
  .crow__thumb {
    display: none;
  }
  .crow__desc {
    display: none;
  }
}

@media (max-width: 560px) {
  .display {
    font-size: clamp(32px, 9vw, 44px);
  }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .mainline,
  .flow {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-bottom: var(--s-6);
  }
  .casenav a {
    padding: 12px 12px 10px;
    font-size: var(--t-12);
  }
  .tile__note {
    display: none;
  }
  .kpi__n {
    white-space: nowrap;
  }
}

/* ---------- 全幅照片带 ---------- */
.photoband {
  position: relative;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.photoband img {
  width: 100%;
  height: clamp(300px, 38vw, 500px);
  object-fit: cover;
  object-position: center 55%;
  opacity: 0.9;
}

.photoband::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.15) 45%, rgba(7, 11, 18, 0.35) 100%);
  pointer-events: none;
}

.photoband figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: var(--s-8);
}

.photoband figcaption .wrap {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}

.photoband__k {
  font-family: var(--font-mono);
  font-size: var(--t-11);
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}

.photoband figcaption p {
  font-size: var(--t-14);
  color: var(--text-dim);
  max-width: 52em;
}

/* ---------- 时间线 ---------- */
.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line-strong);
  margin-top: var(--s-8);
}

.timeline > div {
  position: relative;
  padding: 0 0 var(--s-8) var(--s-6);
}

.timeline > div::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

.timeline > div:last-child {
  padding-bottom: 0;
}

.timeline__when {
  font-family: var(--font-mono);
  font-size: var(--t-12);
  color: var(--amber);
  letter-spacing: 0.08em;
}

.timeline h4 {
  font-size: var(--t-18);
  font-weight: 600;
  margin: 6px 0 4px;
}

.timeline p {
  font-size: var(--t-14);
  color: var(--muted);
  line-height: 1.75;
  max-width: 44em;
}

/* ---------- 对比两栏 ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.compare > div {
  background: var(--ink-raise);
  padding: var(--s-6);
}

.compare--dark > div:last-child {
  background: var(--surface);
}

.compare h3 {
  font-size: var(--t-16);
  font-weight: 600;
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare ul {
  display: grid;
  gap: 10px;
}

.compare li {
  font-size: var(--t-13);
  color: var(--muted);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.compare li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--muted-soft);
  transform: rotate(45deg);
}

.compare li b {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 920px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
  margin-top: var(--s-8);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: var(--t-16);
  font-weight: 500;
  color: var(--text);
  transition: color 0.18s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "＋";
  position: absolute;
  right: 4px;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.faq details[open] summary::after {
  content: "－";
  color: var(--amber);
}

.faq summary:hover {
  color: var(--amber);
}

.faq__a {
  padding: 0 40px 22px 0;
  font-size: var(--t-14);
  color: var(--muted);
  line-height: 1.85;
  max-width: 40em;
}

/* ---------- 表单状态 ---------- */
.form__status {
  grid-column: 1 / -1;
  font-size: var(--t-13);
  line-height: 1.7;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-dim);
  background: var(--ink-raise);
  display: none;
}

.form__status.is-on {
  display: block;
}

.form__status strong {
  color: var(--amber);
  font-weight: 600;
}
