/* ==========================================================================
   Sisdin Coatings — front-end design system
   Palette: brand deep blue (logo blue) + white / warm white / warm grey
   ========================================================================== */

:root {
  --ink: #10205e;          /* 深蓝：页脚 / CTA 底色 */
  --ink-soft: #172b78;
  --accent: #172b78;       /* 品牌深蓝：按钮 / 链接 / 重点标题 */
  --accent-dark: #10205e;
  --accent-soft: #eef1f9;
  --paper: #ffffff;
  --paper-alt: #f8f6f1;    /* 暖白：区块区分 */
  --line: #e7e3da;
  --line-soft: #d8dff0;
  --text: #263247;
  --muted: #64748b;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 6px 18px rgba(23, 43, 120, 0.06);
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  display: block;
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(23, 43, 120, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  /* 导航紧跟 Logo 左锚定（而非 space-between 拉伸），中英文下导航项起点 x 才能一致 */
  justify-content: flex-start;
  gap: 16px;
  min-height: 68px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.brand-name {
  font-size: 17px;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  /* 桌面占满剩余宽度但导航项靠左；nowrap 避免中英折行数不一致导致页头高度跳动 */
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-item {
  position: relative;
}

/* 导航槽位固定宽度：取两种语言里较宽的英文实测值（+2px 余量），
   使中英文切换时每个菜单项的水平位置完全一致。
   序号与 header.html 中 .site-nav 的 7 个顶层项一一对应，增删导航项时需同步调整 */
.site-nav > :nth-child(1) {
  min-width: 66px;
}

.site-nav > :nth-child(2) {
  min-width: 86px;
}

.site-nav > :nth-child(3) {
  min-width: 110px;
}

.site-nav > :nth-child(4) {
  min-width: 136px;
}

.site-nav > :nth-child(5) {
  min-width: 170px;
}

.site-nav > :nth-child(6) {
  min-width: 88px;
}

.site-nav > :nth-child(7) {
  /* 中文“联系我们”比英文 “Contact” 宽，取较宽者 */
  min-width: 86px;
}

/* 槽位定宽后文字居中，避免短文案贴在槽位左侧、右侧留白 */
.site-nav > .nav-link,
.site-nav > .nav-item > .nav-link {
  display: block;
  text-align: center;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}

/* 下拉仅在桌面端跟随悬停展开，移动端由 nav.js 的 is-open 控制 */
@media (min-width: 769px) {
  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown {
    display: block;
  }
}

.nav-dropdown-link {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.nav-dropdown-link:hover {
  background: var(--paper-alt);
  color: var(--accent);
}

.nav-dropdown-all {
  font-weight: 600;
  color: var(--accent);
}

.nav-lang {
  /* 把语言切换与询价按钮推到行尾：组靠右对齐后，两种语言下的位置不随文字长度变化 */
  margin-left: auto;
  /* 固定盒宽（取较宽的“中文”）：“EN” 不会把按钮压窄，避免它的位置左右偏移 */
  min-width: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.nav-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 子菜单展开按钮：桌面隐藏（hover 即可），移动端显示 */
.nav-caret {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.nav-caret svg {
  width: 12px;
  height: 12px;
  transition: transform 0.18s ease;
}

.nav-item.is-open .nav-caret svg {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 16px;
}

.nav-cta {
  margin-left: 8px;
  /* 固定最小宽度（取较长文案 “Request a Quote” 的宽度）：
     避免中文“获取报价”把按钮缩短后，左侧的语言切换按钮跟着左右偏移 */
  min-width: 140px;
}

/* --------------------------------------------------------------- hero */
/* 首页首屏：整幅通栏背景图（宽度跟随页面）+ 左侧压白遮罩 + 文字叠在上，对应设计稿 banner。
   旧版为「左文字 + 右小图卡片」两栏，图被限制在容器右列且强制 4:3 裁切 */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-alt) 100%);
  color: var(--text);
}

/* 背景图层：脱离文档流，铺满整个 section 宽度 */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  /* 通栏后按高度铺满，原图主体（厂区建筑 / 金属屋面）偏右，取靠右取景 */
  object-fit: cover;
  object-position: 62% 50%;
}

/* 文字层：与页头、其他区块共用 .container 左边线，垂直居中 */
.hero-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 33vw, 520px);
  padding-top: 76px;
  padding-bottom: 84px;
}

/* 左侧压白遮罩绑在文字块上（而不是按视口百分比）：
   这样 769～1024 较窄的桌面宽度下，文字右端也不会落在未遮罩的照片上 */
.hero-copy {
  position: relative;
  max-width: 620px;
  min-width: 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -34px;
  right: -110px;
  bottom: -34px;
  /* 兜底：不支持 max() 的旧内核从文字块左边界开始压白 */
  left: 0;
  /* 遮罩从视口左边线开始：容器左边距 = max(20, (100vw - 内容宽) / 2 + 内边距)。
     不能写 -50vw：那会把渐变起点推到屏外，文字区反而落在遮罩尾段 */
  left: calc(-1 * max(20px, (100vw - var(--max)) / 2 + 20px));
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.95) 78%,
    rgba(255, 255, 255, 0.8) 92%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* 窄桌面（769～1024）：照片可见区本来就小，文字块收窄以留出右侧画面 */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-copy {
    max-width: 520px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  max-width: 15em;
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.16;
  color: var(--ink-soft);
  /* 文字直接压在照片上，加一层极淡白色阴影兜底遮罩不够强的区域 */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-sub {
  max-width: 560px;
  margin: 0 0 26px;
  font-size: 16.5px;
  /* 不用 --muted（#64748b）：文字压在照片上，该颜色即使叠加 90% 白也不到 AA 4.5:1 */
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  max-width: 560px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* 信任标签：纯文字，不带未核实的性能数字与认证徐章 */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-circle svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------- sections */

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 0 32px;
}

.section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 8px;
}

.section-sub {
  margin: 0;
  color: var(--muted);
}

.section-text {
  color: var(--text);
}

.section-actions {
  margin-top: 30px;
}

.page-head {
  padding: 52px 0 30px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 10px;
}

.page-sub {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* 区块标题左 + 说明右（首页核心产品区） */
.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  max-width: none;
  margin-bottom: 36px;
}

.section-head-split .section-sub {
  padding-bottom: 6px;
}

/* --------------------------------------------------------------- homepage blocks */

/* Why SISDIN：四项横向排列 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.feature-item {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink-soft);
}

.feature-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.why-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr);
  gap: 44px;
  align-items: start;
}

.why-copy {
  min-width: 0;
}

/* 工厂能力：图标 + 文本行 */
.capability-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.capability-item svg {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

/* 产品卡上的圆形图标徒章 */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.card-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------- breadcrumb */

.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.breadcrumb-link {
  color: var(--muted);
}

.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: #b9c0cf;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-link {
  color: inherit;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-soft);
  box-shadow: var(--shadow);
  color: inherit;
}

.card-media {
  position: relative;
  /* 分类封面图为横版实拍，3/2 比 4/3 保留更多画面，主体不易被裁掉 */
  aspect-ratio: 3 / 2;
  background: var(--paper-alt);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card-link:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px 22px 24px;
}

.card-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.card-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

.card-date {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.card-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.card-more::after {
  content: " \2192";
}

/* --------------------------------------------------------------- tiles */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  box-shadow: var(--shadow);
  color: inherit;
}

.tile-title {
  font-weight: 700;
  color: var(--ink);
}

.tile-text {
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------- filters */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip.is-active:hover {
  color: #fff;
}

.empty-state {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------- pagination */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.page-link {
  min-width: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  text-align: center;
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------- product */

.product-hero {
  padding: 46px 0;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.product-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.product-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-model {
  color: var(--muted);
  font-size: 14px;
}

.product-summary {
  color: var(--text);
  font-size: 16.5px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.detail-aside {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.banner-figure {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.banner-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.prose {
  font-size: 16.5px;
  color: var(--text);
}

/* 单页正文（隐私政策等）：限制行长以保证可读性 */
.prose-narrow {
  max-width: 780px;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 24px;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 19px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose img {
  border-radius: var(--radius);
}

.info-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.info-title {
  font-size: 15px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.info-list {
  margin: 0;
}

.info-list dt {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-list dt:first-child {
  margin-top: 0;
}

.info-list dd {
  margin: 4px 0 0;
  font-size: 15px;
}

.info-line {
  margin: 0 0 8px;
  font-size: 14.5px;
  word-break: break-word;
}

.info-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.doc-item:first-child {
  border-top: 0;
}

.doc-type {
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--paper-alt);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doc-link {
  font-weight: 600;
}

.doc-version {
  color: var(--muted);
  font-size: 12.5px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14.5px;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  background: var(--paper-alt);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------- article */

.article-wrap {
  max-width: 860px;
}

.article-head {
  margin-bottom: 26px;
}

.article-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-section {
  margin-top: 48px;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: 0;
}

.meta-date {
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------------------- cta band */

.cta-band {
  padding: 56px 0;
  background: var(--ink);
  color: #fff;
}

.cta-band-inline {
  margin-top: 48px;
  border-radius: var(--radius-lg);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
}

.cta-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
}

/* 深蓝底上的主按钮统一反转为白底蓝字，保证对比度 */
.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
}

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* --------------------------------------------------------------- split blocks */

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.split-block-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.split-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step-no {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step-title {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.step-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note-card {
  padding: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.note-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.note-text {
  margin: 0;
  color: #33405e;
  font-size: 14.5px;
}

.process-list {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-item {
  position: relative;
  padding: 0 0 18px 38px;
  border-left: 2px solid var(--line);
  margin-left: 12px;
  color: var(--text);
}

.process-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -13px;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* --------------------------------------------------------------- forms */

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.lead-form {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.form-field label em {
  color: #c0392b;
  font-style: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 43, 120, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #c0392b;
}

.field-error {
  color: #c0392b;
  font-size: 12.5px;
}

.form-status {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.form-status.is-error {
  background: #fdf1ef;
  border: 1px solid #f3c8c1;
  color: #9c2f22;
}

.form-status.is-success {
  background: var(--accent-soft);
  border: 1px solid var(--line-soft);
  color: var(--accent-dark);
}

.form-actions {
  margin-top: 22px;
}

.form-privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.form-aside {
  position: sticky;
  top: 88px;
}

/* --------------------------------------------------------------- thank you */

.thank-you-inner {
  max-width: 720px;
  text-align: center;
}

.thank-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
}

.thank-ref {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 8px 16px;
  border: 1px dashed var(--line-soft);
  border-radius: 8px;
  background: var(--paper-alt);
  font-size: 14px;
}

.thank-note {
  color: var(--muted);
  font-size: 13.5px;
}

.thank-actions {
  justify-content: center;
  margin-top: 22px;
}

/* --------------------------------------------------------------- error pages */

.error-inner {
  max-width: 680px;
  text-align: center;
}

.error-code {
  margin: 0 0 6px;
  font-size: clamp(64px, 12vw, 104px);
  font-weight: 800;
  line-height: 1;
  color: #dfe3ee;
  letter-spacing: -0.04em;
}

.error-detail {
  color: var(--muted);
  font-size: 14px;
}

.error-inner .hero-actions {
  justify-content: center;
}

.error-inner .btn-outline {
  background: #fff;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  padding: 60px 0 26px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  margin-bottom: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-follow {
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-social a:hover {
  border-color: #fff;
  color: #fff;
}

.footer-social svg {
  display: block;
  width: 15px;
  height: 15px;
}

.footer-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-text {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-link {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal a {
  margin-left: 16px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-legal a:hover {
  color: #fff;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
  }

  .product-hero-inner,
  .detail-grid,
  .form-wrap,
  .split-block,
  .split-block-reverse,
  .why-block,
  .section-head-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-block,
  .section-head-split {
    gap: 22px;
  }

  .section-head-split {
    margin-bottom: 30px;
  }

  .detail-aside,
  .form-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 页头折叠断点：1180 以下统一走汉堡菜单
   原因：英文导航单行约需 970px，1180 以下放不下，而中文一行就够；
   两种语言折行数不同会让页头高度与导航起点随语言切换跳动 */
@media (max-width: 1180px) {
  .nav-toggle {
    display: flex;
  }

  .nav-caret {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 14px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-item > .nav-link {
    flex: 1 1 auto;
  }

  .nav-dropdown {
    position: static;
    display: none;
    flex: 1 0 100%;
    order: 3;
    min-width: 0;
    padding: 4px 0 4px 14px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .nav-dropdown.is-open {
    display: block;
  }

  .nav-cta {
    margin: 10px 0 0;
  }

  .nav-lang {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* 窄屏不再把文字压在照片上：改为文字在上 + 通栏图带在下，图仍按页面宽度铺开 */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 2;
    /* 图带高度上限：否则 768 下 3:2 原图会撑出 500px 高、把首屏占满 */
    height: clamp(200px, 42vw, 320px);
    overflow: hidden;
  }

  .hero-media img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
  }

  /* 图与文字已分开，不再需要压白遮罩 */
  .hero-copy {
    max-width: none;
  }

  .hero-copy::before {
    display: none;
  }

  .hero-banner {
    order: 1;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 34px;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .section {
    padding: 52px 0;
  }

  /* 卡片与 Why 区在 768 仍保持两列，到 600 以下才单列 */
  .tile-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 工厂能力区：移动端图在上、文案在下 */
  .split-block .split-media {
    order: -1;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .card-grid-3,
  .card-grid-2,
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-item {
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-form {
    padding: 22px;
  }

  .step-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-legal a {
    margin: 0 16px 0 0;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 42px 0;
  }

  .hero-banner {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .trust-chips {
    gap: 12px 16px;
  }

  .card-body {
    padding: 18px;
  }

  .lead-form {
    padding: 18px;
  }
}
