/* ==========================================================================
   Tonglian Wire & Cable — Design System v2.0 (Light)
   --------------------------------------------------------------------------
   基调:淡色、克制、以内容为主。白 + 浅灰蓝底,深海军蓝字,品牌蓝做链接与按钮,
   标志黄只在极小面积出现(强调线),不做大面积色块。
   版式靠留白、字重对比、1px 细线建立秩序,不用大圆角、不用花哨动效。
   所有尺寸基于 4px 网格。断点:1200 / 1024 / 860 / 560。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --navy-900: #0B2033;
  --navy-800: #0E2A47;
  --blue-700: #0A4290;
  --blue-600: #0B4EA2;
  --blue-500: #1668D0;
  --blue-050: #EAF1FB;
  --yellow-500: #F5B301;

  /* 中性色:淡色系的基础 */
  --ink-700: #2E4356;
  --ink-500: #5C7184;
  --ink-400: #8399AC;
  --ink-300: #A6B7C6;
  --line: #E5EBF2;
  --line-strong: #CFDBE7;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-tint: #EDF4FC;

  /* 间距(4px 网格) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 88px;

  /* 圆角 */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;

  /* 阴影:极轻,淡色页面靠线条而非投影分层 */
  --shadow-sm: 0 2px 8px rgba(16, 36, 55, 0.05), 0 1px 2px rgba(16, 36, 55, 0.04);
  --shadow-md: 0 16px 36px -20px rgba(16, 36, 55, 0.18);

  /* 布局 */
  --container: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 字体:系统字体栈,不依赖外链 */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New",
    monospace;
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--blue-700);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background: #CFE0F7;
  color: var(--navy-900);
}

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

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout / Typography
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--s9);
}

.section--soft {
  background: var(--bg-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--yellow-500);
}

h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--blue-600);
}

/* 中文标题:字号略小、行高略松,避免长句在 390px 屏上溢出 */
html[lang^="zh"] h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.9rem);
  line-height: 1.26;
  letter-spacing: -0.01em;
}

h2.title {
  margin-top: var(--s3);
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--navy-900);
  text-wrap: balance;
}

.lead {
  margin-top: var(--s4);
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-500);
}

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

.section-head__title {
  max-width: 660px;
}

.section-head .lead {
  margin-top: var(--s3);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

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

.btn--primary:hover {
  background: var(--blue-700);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--navy-800);
  color: var(--navy-900);
}

.btn--sm {
  height: 40px;
  padding-inline: 18px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn svg {
  transition: transform 0.2s var(--ease);
}

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

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 20px -18px rgba(16, 36, 55, 0.3);
}

@supports (backdrop-filter: blur(8px)) {
  .header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(10px);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header__logo:hover {
  color: inherit;
}

.logo-mark {
  width: auto;
  height: 44px;
  flex: none;
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
}

.logo-text__en {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}

/* width:0 + min-width:100% 让副标不参与父宽度计算:
   父宽由中文/英文主标决定,副标撑满同一宽度并两端对齐 */
.logo-text__sub {
  width: 0;
  min-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  white-space: nowrap;
  color: var(--ink-400);
}

html[lang^="zh"] .logo-text__sub {
  letter-spacing: 0.37em;
}

/* 页脚 logo 保持自然宽度,不做两端对齐 */
.footer .logo-text__sub {
  width: auto;
  min-width: 0;
  white-space: normal;
  text-align: left;
  text-align-last: auto;
  letter-spacing: 0.14em;
}

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

.nav__link {
  position: relative;
  padding-block: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--navy-900);
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-left: auto;
}

.nav + .header__actions {
  margin-left: 0;
}

.header__cta {
  margin-left: 2px;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}

.lang-switch .is-active {
  color: var(--navy-900);
  font-weight: 600;
}

.lang-switch:hover {
  color: var(--blue-600);
}

.lang-switch__sep {
  color: var(--line-strong);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy-900);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 4.5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: var(--s4) 24px var(--s5);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__link {
  padding: 12px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-900);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: var(--s4);
}

/* --------------------------------------------------------------------------
   6. Hero（淡色:白 → 浅灰蓝渐变）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--s8));
  padding-bottom: var(--s8);
  background: linear-gradient(180deg, #fff 0%, #F8FAFD 48%, #F2F6FB 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 9px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-500);
}

.hero h1 {
  margin-top: var(--s5);
}

/* 首屏左栏只有约 330px，全局 3.25rem 会把标题撑到 4 行，这里单独收一档 */
.hero__title {
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  line-height: 1.2;
}

html[lang^="zh"] .hero__title {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.32;
}

.hero__lead {
  margin-top: var(--s5);
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-500);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

/* 全站唯一一张实拍：公司名称墙 */
.hero__photo {
  margin: 0;
  overflow: hidden;
  background: #F3F7FB;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px -38px rgba(14, 42, 71, 0.45);
}

.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
  padding-block: var(--s7);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.stat {
  padding-inline: var(--s5);
  border-left: 1px solid var(--line);
}

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

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.stat__num span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-400);
}

.stat__label {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   9. 产品卡片
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy-800);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  border-top-color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card__kicker {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.card__title {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy-900);
}

.card__desc {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-500);
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: auto;
  padding-top: var(--s4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   10. 优势栅格（四块并列，不配图）
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
  margin-top: var(--s6);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue-600);
  background: var(--blue-050);
  border-radius: var(--r-sm);
}

.feature__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-900);
}

.feature__desc {
  margin-top: 7px;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   11. 认证清单
   -------------------------------------------------------------------------- */
.badge-grid {
  display: grid;
  /* 徽章数量会变（删过 ISO 9001），固定 6 列会留空位 */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s4);
  margin-bottom: var(--s7);
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.badge:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.badge__img {
  display: block;
  width: 100%;
  max-width: 92px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.badge__name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--navy-900);
}

.badge__org {
  margin-top: -6px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-400);
}

.tm-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: var(--s6);
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue-600);
  border-radius: var(--r-md);
}

.tm-note__region {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.tm-note__text {
  flex: 1 1 260px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-500);
}

.tm-note__text strong {
  font-weight: 700;
  color: var(--navy-900);
}

/* 证书查看器 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 44px 24px;
  background: rgba(11, 32, 51, 0.92);
}

.lightbox.is-open {
  display: grid;
}

.lightbox__img {
  width: auto;
  max-width: min(860px, 92vw);
  max-height: 86vh;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   13. CTA
   -------------------------------------------------------------------------- */
.cta {
  padding-block: var(--s8);
  background: var(--bg-tint);
  border-top: 1px solid #DCE8F6;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s7);
}

.cta__title {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}

.cta__desc {
  margin-top: var(--s3);
  max-width: 56ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-500);
}

.cta__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* --------------------------------------------------------------------------
   14. Footer（浅灰底 + 细线）
   -------------------------------------------------------------------------- */
.footer {
  padding-top: var(--s8);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.85fr));
  gap: var(--s7);
  padding-bottom: var(--s7);
}

.footer__desc {
  margin-top: var(--s4);
  max-width: 42ch;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-500);
}

.footer__title {
  margin-bottom: var(--s4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}

.footer__list a {
  color: var(--ink-700);
}

.footer__list a:hover {
  color: var(--blue-600);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-700);
}

.contact-item + .contact-item {
  margin-top: 12px;
}

.contact-item svg {
  flex: none;
  margin-top: 4px;
  color: var(--ink-400);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding-block: var(--s5);
  font-size: 0.8125rem;
  color: var(--ink-400);
  border-top: 1px solid var(--line);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.footer__legal a {
  color: var(--ink-400);
}

.footer__legal a:hover {
  color: var(--blue-600);
}

.footer__icp {
  margin: 0;
}

.footer__icp a {
  color: var(--ink-400);
}

.footer__icp a:hover {
  color: var(--blue-600);
}

/* --------------------------------------------------------------------------
   15. 内页
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + var(--s7));
  padding-bottom: var(--s7);
  background: linear-gradient(180deg, #fff 0%, #F7FAFD 100%);
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-400);
}

.crumbs a {
  color: var(--ink-400);
}

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

.crumbs span {
  color: var(--ink-300);
}

.page-hero h1 {
  margin-top: var(--s4);
}

.page-hero .lead {
  margin-top: var(--s4);
}

.about-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.about-main__body p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--ink-500);
}

.about-main__body p + p {
  margin-top: var(--s4);
}

.about-main__side .spec-table {
  margin-top: 0;
}

.spec-table {
  margin-top: var(--s6);
  border-top: 1px solid var(--line-strong);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: var(--s4);
  padding-block: 12px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  color: var(--ink-400);
}

.spec-row dd {
  margin: 0;
  color: var(--ink-700);
}

/* --------------------------------------------------------------------------
   15.1 出口市场(内页使用)
   -------------------------------------------------------------------------- */
.markets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
}

.market {
  padding-top: var(--s4);
  border-top: 2px solid var(--navy-800);
}

.market__region {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-900);
}

.market__count {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-500);
}

/* 联系页 */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.info-card {
  padding: var(--s5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.info-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--s3);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}

.info-item:first-child {
  padding-top: 0;
}

.info-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-item__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue-600);
  background: var(--blue-050);
  border-radius: var(--r-sm);
}

.info-item__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.info-item__value {
  margin-top: 2px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--navy-900);
}

.info-item__value a {
  color: var(--navy-900);
}

.info-item__value a:hover {
  color: var(--blue-600);
}

.info-item__note {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--ink-500);
}

/* 二维码卡（微信 / WhatsApp） */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.qr-card {
  padding: 20px 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}

.qr-card__img {
  display: block;
  width: 100%;
  max-width: 132px;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 4px;
}

.qr-card__img[data-cert] {
  cursor: zoom-in;
}

.qr-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

.qr-card__note {
  margin-top: 3px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-500);
}

/* 工厂视频 */
.video-block {
  margin: 0;
}

.video-block__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  object-fit: cover;
}

.video-block figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-500);
}

.form-card {
  padding: var(--s6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}

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

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

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
}

.field label .req {
  color: var(--blue-600);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235C7184' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(22, 104, 208, 0.12);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #C2410C;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.65;
}

.field__err {
  font-size: 0.75rem;
  color: #C2410C;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.form-foot p {
  max-width: 42ch;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-400);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: var(--s4);
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--blue-700);
  background: var(--blue-050);
  border: 1px solid #CFE0F7;
  border-radius: var(--r-xs);
}

.form-status.is-visible {
  display: flex;
}

.form-status svg {
  flex: none;
  margin-top: 2px;
}

.map-box {
  display: grid;
  place-items: center;
  gap: var(--s3);
  min-height: 240px;
  padding: var(--s5);
  text-align: center;
  background: #F3F7FB;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.map-box__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.map-box address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   16. 滚动进入动画
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --s9: 76px;
  }
}

@media (max-width: 1024px) {
  .hero__inner,
  .about-main,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s6);
  }

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

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .nav + .header__actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .stats__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s5) 0;
  }

  .stat {
    padding-left: var(--s4);
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s4);
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
  }
}

@media (max-width: 560px) {
  :root {
    --s9: 56px;
  }

  h1 {
    font-size: 1.85rem;
  }

  html[lang^="zh"] h1 {
    font-size: 1.8rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .container {
    padding-inline: 18px;
  }

  .header__cta {
    display: none;
  }

  .header__actions {
    gap: var(--s4);
  }

  .qr-card {
    padding: 16px 12px 14px;
  }

  .qr-card__img {
    max-width: 112px;
    margin-bottom: 10px;
  }

  .header__inner {
    gap: var(--s3);
    padding-inline: 18px;
  }

  .logo-mark {
    height: 38px;
  }

  .logo-text__en {
    font-size: 1rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + var(--s6));
  }

  .cards,
  .feature-grid,
  .markets,
  .footer__top {
    grid-template-columns: 1fr;
  }

  /* 6 个认证图标在手机端保持一行 3 个，两行看完，不拉成一长串 */
  .badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .badge {
    padding: 14px 6px 12px;
    gap: 8px;
  }

  .badge__img {
    max-width: 56px;
  }

  .badge__name {
    font-size: 0.8125rem;
  }

  .badge__org {
    font-size: 0.6875rem;
    line-height: 1.3;
    text-align: center;
  }

  .stat {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    padding-top: var(--s4);
    border-top: 1px solid var(--line);
  }

  .form-card {
    padding: var(--s5) var(--s4);
  }

  .form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__legal {
    flex-wrap: wrap;
    gap: var(--s4);
  }

  .page-hero {
    padding-top: calc(var(--header-h) + var(--s5));
  }
}

/* --------------------------------------------------------------------------
   18. 降低动效 / 打印
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .mobile-nav,
  .cta,
  .lightbox {
    display: none !important;
  }

  body {
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   18. 404 页面
   -------------------------------------------------------------------------- */
.err404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--s8) 0;
  background: var(--bg-soft);
  text-align: center;
}

.err404__inner {
  max-width: 560px;
  margin: 0 auto;
}

.err404__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy-900);
}

.err404__brand img {
  height: 40px;
  width: auto;
}

.err404__code {
  margin-top: var(--s7);
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}

.err404__title {
  margin-top: var(--s4);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--navy-900);
}

.err404__text {
  margin-top: var(--s3);
  color: var(--ink-500);
  line-height: 1.7;
}

.err404__text + .err404__text {
  margin-top: var(--s1);
}

.err404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
  margin-top: var(--s6);
}

/* -------------------------------------------------------------------------- */
/* 隐私政策等法律页正文排版                                                    */
/* -------------------------------------------------------------------------- */
.legal-body {
  max-width: 760px;
}

.legal-meta {
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-500);
}

.legal-body h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p {
  margin-top: 12px;
  line-height: 1.85;
  color: var(--ink-500);
}

.legal-body ul {
  margin-top: 12px;
  padding-left: 1.2em;
  list-style: disc;
  line-height: 1.85;
  color: var(--ink-500);
}

.legal-body ul li {
  margin-top: 6px;
  display: list-item;
}

.legal-body a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--navy-900);
}

.legal-body h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.legal-body ol {
  margin-top: 12px;
  padding-left: 1.4em;
  list-style: decimal;
  line-height: 1.85;
  color: var(--ink-500);
}

.legal-body ol li {
  margin-top: 6px;
  display: list-item;
}

.legal-body strong {
  color: var(--ink-700);
}

/* 目录 */
.legal-toc {
  margin: 0 0 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.legal-toc__t {
  margin: 0 0 8px !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.legal-toc ol {
  margin: 0 !important;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 32px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-toc ol li {
  margin: 0;
  break-inside: avoid;
}

/* 保存期限等表格 */
.legal-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-500);
}

.legal-table th {
  font-weight: 700;
  color: var(--navy-900);
  background: var(--bg-soft);
  white-space: nowrap;
}

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

@media (max-width: 640px) {
  .legal-toc {
    padding: 16px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
}

/* 首页品类卡片：跳转产品列表 */
.card__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
}

.card__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 首页品类卡片：链接统一贴底，四张卡片高度不齐时也对齐 */
.cards .card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.cards .card__more {
  margin-top: auto;
}

/* 品类数量超过 4 个时，首页卡片仍保持一行 */
.cards--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

@media (max-width: 1024px) {
  .cards--5,
  .cards--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cards--5,
  .cards--6 {
    grid-template-columns: 1fr;
  }
}
