/* =========================================================
   三沣智能 · 企业站样式
   配色：墨蓝（结构）/ 锻造橙（强调）/ 混凝土纸（分区）
   版式：硬边、细线、网格，避免圆角卡片堆叠
   ========================================================= */

:root {
  --ink: #0f1b24;
  --ink-soft: #1b2b37;
  --steel: #4f6270;
  --mute: #74838d;
  --line: #d8d6cf;
  --line-strong: #bdbbb2;
  --paper: #f4f3ef;
  --paper-deep: #eae8e2;
  --white: #ffffff;
  --accent: #de4e22;
  --accent-deep: #b23a15;
  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Consolas", "Roboto Mono", monospace;
}

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

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

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

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

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 900px;
}

/* 富文本区块：标题与网格线对齐，正文限制阅读宽度 */
.rt-wrap .prose,
.rt-wrap .prose--lead {
  max-width: 980px;
}

/* ---------------- 顶栏 ---------------- */

.topbar {
  background: var(--ink);
  color: #c6cfd6;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-contact a {
  color: #dfe5e9;
  font-variant-numeric: tabular-nums;
}

.topbar-contact a:hover {
  color: var(--accent);
}

.dot {
  width: 3px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-slogan {
  color: #8d9aa4;
  letter-spacing: 0.1em;
}

.lang-switch {
  color: #dfe5e9;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 9px;
  letter-spacing: 0.08em;
  transition: 0.2s;
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------- 主导航 ---------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

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

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 后台上传的自定义 LOGO */
.brand-mark--img {
  width: auto;
  height: 44px;
  flex: 0 0 auto;
}

.brand-mark--img img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.brand--footer .brand-mark--img {
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: 0.06em;
}

.brand-text small {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 15px;
  padding: 8px 0;
  color: var(--ink);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  font-weight: 700;
}

.masthead-cta {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  white-space: nowrap;
  transition: 0.2s;
}

.masthead-cta:hover {
  background: var(--ink);
  color: #fff;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 100%;
  transition: 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px var(--gutter) 18px;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile .nav-link {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .nav-link::after {
  display: none;
}

.nav-mobile-cta {
  display: block;
  margin-top: 16px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 13px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ---------------- 通用文本元素 ---------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.kicker--light {
  color: #f2a08a;
}

.kicker--light::before {
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-soft);
}

.btn-line {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}

.link-arrow span {
  color: var(--accent);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.prose {
  color: #33424e;
  font-size: 16px;
  line-height: 1.95;
}

.prose p + p {
  margin-top: 1em;
}

.prose--lead {
  font-size: 16.5px;
}

.tick-list {
  margin: 26px 0 0;
}

.tick-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #3b4a56;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

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

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 730px);
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(9, 17, 23, 0.94) 0%,
      rgba(9, 17, 23, 0.82) 34%,
      rgba(9, 17, 23, 0.42) 66%,
      rgba(9, 17, 23, 0.12) 100%
    ),
    linear-gradient(to top, rgba(9, 17, 23, 0.9) 0%, rgba(9, 17, 23, 0) 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #fff;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 15em;
  margin: 20px 0 22px;
}

html[lang="en"] .hero-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -0.02em;
  max-width: 17em;
}

.hero-lead {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------------- 内页头部 ---------------- */

.pagehead {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.pagehead-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.07) 0 1px,
      transparent 1px 120px
    ),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

.pagehead::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
}

.pagehead-inner {
  position: relative;
  z-index: 2;
}

.pagehead h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  margin: 18px 0 16px;
  max-width: 20em;
}

.pagehead-lead {
  color: rgba(255, 255, 255, 0.74);
  max-width: 620px;
  font-size: 16px;
}

/* ---------------- 数据带 ---------------- */

.band-stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 42px 0;
}

.stat-list li {
  padding: 0 26px;
  border-left: 1px solid var(--line-strong);
}

.stat-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat-value {
  display: block;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------------- 通用区块 ---------------- */

.section {
  padding: clamp(60px, 8vw, 104px) 0;
}

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

.sec-head {
  max-width: 800px;
  margin-bottom: clamp(32px, 4.4vw, 56px);
}

.sec-head h2 {
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  margin-top: 14px;
}

.sec-intro {
  margin-top: 16px;
  color: var(--mute);
  font-size: 15.5px;
  max-width: 640px;
  line-height: 1.85;
}

.sec-foot {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}

.rt-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 24px;
}

/* ---------------- 图片 + 文字 ---------------- */

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 5px;
  background: var(--accent);
}

.split-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 14px 0 20px;
}

/* ---------------- 能力卡片 ---------------- */

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

.cap-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 34px 28px 32px;
  min-height: 240px;
  transition: background 0.25s;
}

.section--paper .cap-card {
  background: var(--paper);
}

.cap-card:hover {
  background: #fff;
}

/* 单列时取消跨列，避免生成隐式列 */
@media (max-width: 620px) {
  .cap-grid > * {
    grid-column: auto !important;
  }
}

.cap-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: var(--font-mono);
}

.cap-card h3 {
  font-size: 18.5px;
  line-height: 1.45;
}

.cap-card p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mute);
}

/* ---------------- 产品 ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.045);
}

.product-tag {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(15, 27, 36, 0.88);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 11px;
}

.product-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card-body h3 {
  font-size: 18px;
  line-height: 1.5;
}

.product-card-body p {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.8;
  flex: 1;
}

.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-chips li {
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--steel);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.product-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 84px);
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.product-row--flip .product-row-media {
  order: 2;
}

.product-row-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
}

.product-row-copy h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin: 14px 0 16px;
}

.product-row-summary {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.product-row-copy .model-chips {
  margin-bottom: 28px;
}

/* ---------------- 案例 ---------------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
}

.case-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.case-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

/* 有视频的案例：图片区变成「点一下直接播」的按钮 */
.case-media--play {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b1318;
  cursor: pointer;
  appearance: none;
  text-align: left;
}

.case-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(15, 27, 36, 0.78);
  border: 1px solid rgba(244, 243, 239, 0.55);
  transition: background 0.25s ease, transform 0.25s ease;
}

.case-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #de4e22;
}

.case-card:hover .case-play,
.case-media--play:focus-visible .case-play {
  background: #de4e22;
  transform: scale(1.06);
}

.case-card:hover .case-play::after,
.case-media--play:focus-visible .case-play::after {
  border-left-color: #ffffff;
}

.case-card--wide .case-media {
  width: 52%;
  flex: 0 0 52%;
  aspect-ratio: 16 / 9;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.case-card:hover .case-media img {
  transform: scale(1.04);
}

.case-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.case-card--wide .case-body {
  justify-content: center;
  padding: clamp(24px, 3.6vw, 48px);
}

.case-industry {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-body h3 {
  font-size: 19px;
  line-height: 1.45;
}

.case-card--wide .case-body h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.case-body p {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ---------------- CTA ---------------- */

.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(52px, 6.4vw, 82px) 0;
  overflow: hidden;
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px 96px
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: #fff;
  max-width: 20em;
}

.cta-inner p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  font-size: 15.5px;
}

/* ---------------- 联系 ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
}

.contact-list {
  margin-top: 22px;
}

.contact-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.contact-list dd {
  margin: 6px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
}

.contact-list dd a:hover {
  color: var(--accent);
}

.contact-side .link-arrow {
  margin-top: 26px;
}

.form-note {
  color: var(--mute);
  font-size: 14px;
  margin: 10px 0 26px;
  max-width: 520px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.field span {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 9px 0;
  transition: border-color 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

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

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  font-size: 13.5px;
  min-height: 1.2em;
}

.form-status.ok {
  color: #1f7a4d;
}

.form-status.err {
  color: var(--accent-deep);
}

.inquiry-form .btn {
  align-self: flex-start;
}

/* ---------------- 产品详情 ---------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin-bottom: 26px;
}

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

.pd-hero {
  background: var(--paper);
  padding: 30px 0 clamp(48px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4.6vw, 64px);
  align-items: center;
}

.pd-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.pd-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 14px 0 18px;
  line-height: 1.25;
}

.pd-summary {
  color: #465663;
  font-size: 16px;
  line-height: 1.9;
}

.pd-copy .model-chips {
  margin: 24px 0 30px;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-body-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.pd-side {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.side-title {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}

.mini-products {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.mini-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-product img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.mini-product span {
  font-size: 14px;
  line-height: 1.5;
}

.mini-product:hover span {
  color: var(--accent);
}

.spec-hint {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: #fff;
}

.spec-table tbody td:first-child,
.spec-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--line);
}

.spec-table thead th:first-child {
  z-index: 3;
}

.spec-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.spec-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 13px;
  padding: 13px 14px;
  text-align: center;
  white-space: nowrap;
}

.spec-table thead th:first-child {
  text-align: left;
}

.spec-table tbody td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: center;
  white-space: nowrap;
}

.spec-table tbody td.spec-model {
  text-align: left;
  font-weight: 700;
  background: var(--paper);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.spec-table tbody tr:nth-child(even) td:not(.spec-model) {
  background: #fbfaf7;
}

.spec-empty {
  color: var(--mute);
}

.spec-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--mute);
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.feature-list li span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.band-links {
  background: var(--paper);
  padding: clamp(30px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-link {
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink);
  transition: 0.2s;
}

.chip-link:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------------- 案例详情 ---------------- */

.cs-hero {
  background: var(--ink);
  color: #fff;
  padding: 30px 0 0;
  overflow: hidden;
}

.cs-hero .crumbs {
  color: rgba(255, 255, 255, 0.55);
}

.cs-hero .crumbs a:hover {
  color: var(--accent);
}

.cs-hero .case-industry {
  color: #f2a08a;
}

.cs-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: #fff;
  margin: 12px 0 16px;
}

.cs-hero .pagehead-lead {
  margin-bottom: 40px;
}

.cs-media {
  position: relative;
  z-index: 2;
  transform: translateY(0);
}

.cs-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* 案例详情页视频播放器 */
.cs-video-wrap {
  margin: 0;
}

.cs-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  background: #0b1318;
  object-fit: contain;
}

.cs-video-cap {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(244, 243, 239, 0.62);
}

/* 列表页视频弹窗 */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 17, 0.86);
  backdrop-filter: blur(2px);
}

.video-lightbox__frame {
  position: relative;
  width: min(1080px, 100%);
  max-height: 100%;
}

.video-lightbox video {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: #000;
}

.video-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(244, 243, 239, 0.4);
  background: transparent;
  color: #f4f3ef;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.video-lightbox__close:hover {
  border-color: #de4e22;
  color: #de4e22;
}

.video-lightbox__cap {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 243, 239, 0.68);
}

body.has-lightbox {
  overflow: hidden;
}

/* 案例详情：图文小节（图与文字左右交替） */
.cs-sections {
  padding-top: 0;
}

.cs-sec {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 46px;
  align-items: center;
  margin-bottom: 64px;
}

.cs-sec:last-child {
  margin-bottom: 0;
}

.cs-sec--flip .cs-sec-media {
  order: 2;
}

.cs-sec-media {
  margin: 0;
  overflow: hidden;
  background: #eceae4;
}

.cs-sec-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cs-sec-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.35;
  color: #0f1b24;
}

.cs-sec-text p {
  color: #33424e;
  font-size: 15.5px;
  line-height: 1.95;
}

.cs-sec-text p + p {
  margin-top: 1em;
}

.cs-sec--solo {
  display: block;
}

.cs-sec--solo .cs-sec-media img {
  aspect-ratio: 21 / 9;
}

.cs-sec--text {
  display: block;
}

.cs-sec--text .cs-sec-text {
  max-width: 820px;
}

.cs-body {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.cs-side {
  background: var(--paper);
  padding: 28px;
  border-top: 3px solid var(--accent);
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.5fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 52px;
}

.brand--footer .brand-text strong {
  color: #fff;
}

.brand--footer .brand-text small {
  color: rgba(255, 255, 255, 0.45);
}

.footer-slogan {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contact p {
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.footer-contact p span {
  display: inline-block;
  min-width: 46px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px var(--gutter) 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sepdot {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .nav-desktop,
  .masthead-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .topbar-slogan {
    display: none;
  }

  .split,
  .pd-grid,
  .contact-grid,
  .pd-body-grid,
  .cs-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split-media,
  .product-row--flip .product-row-media {
    order: 0;
  }

  .pd-side,
  .cs-side {
    border-left: 0;
    padding-left: 0;
  }

  .cs-side {
    padding: 24px;
  }

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

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

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 560px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .stat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 0;
    padding: 32px 0;
  }

  .stat-list li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .product-row,
  .case-card--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-card--wide {
    flex-direction: column;
  }

  .case-card--wide .case-media {
    width: 100%;
    flex: none;
  }

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

  .cs-media img {
    aspect-ratio: 4 / 3;
  }

  .cs-sec {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 44px;
  }

  .cs-sec--flip .cs-sec-media {
    order: 0;
  }

  .cs-sec--solo .cs-sec-media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    font-size: 11.5px;
  }

  .masthead-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-mark--img {
    width: auto;
    height: 36px;
    flex-basis: auto;
  }

  .brand-mark--img img {
    max-width: 130px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero {
    min-height: 480px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    margin: 16px 0 18px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .product-grid,
  .cap-grid,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .spec-table {
    min-width: 0;
    font-size: 12.5px;
  }

  .spec-table thead th {
    white-space: normal;
    line-height: 1.35;
    font-size: 11.5px;
    padding: 10px 9px;
    min-width: 62px;
  }

  .spec-table tbody td {
    padding: 9px;
  }

  .spec-table tbody td:first-child {
    min-width: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
