/* ============================================================
   Nockklat Smart Product – Main Stylesheet
   现代科技风格 · 简洁专业
   ============================================================ */

/* ---- 动态内容预加载隐藏 ---- */
/* JS加载完成前隐藏动态区域，避免闪烁旧数据 */
.preload-hidden {
  visibility: hidden;
}
/* JS执行后移除hidden，同时淡入显示 */
.preload-hidden.loaded {
  visibility: visible;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent:  #06b6d4;
  --success: #10b981;
  --navy:    #0f172a;
  --navy-2:  #1e293b;
  --white:   #ffffff;
  --off-wh:  #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100:#e2e8f0;
  --gray-200:#cbd5e1;
  --gray-400:#94a3b8;
  --gray-600:#475569;
  --gray-800:#1e293b;
  --text:    #0f172a;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --shadow-primary: 0 4px 20px rgba(37,99,235,.15);
  --trans:   0.25s ease;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Inter', sans-serif;
  --header-h: 70px;
  /* Semantic aliases (used in component rules) */
  --blue:    #2563eb;
  --blue-lt: #3b82f6;
  --gold:    #f59e0b;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-light { background: var(--gray-50); }
.section-dark  { background: var(--navy); color: var(--white); }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); background: rgba(37,99,235,.08); padding: 4px 14px; border-radius: 20px; margin-bottom: 14px; }
.section-label.light { color: var(--accent); background: rgba(6,182,212,.12); }
.section-header h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--text); margin-bottom: 16px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { max-width: 580px; margin: 0 auto; color: var(--gray-600); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: var(--header-h);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.5rem; color: var(--accent); }
.logo-text { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--white); letter-spacing: .01em; }
.logo-accent { color: var(--primary); }

/* Nav links */
.main-nav ul { display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 18px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8); border-radius: var(--radius); transition: all var(--trans); }
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,.1); }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); color: var(--white); padding: 6px 12px; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; }
.mobile-menu { display: none; flex-direction: column; background: var(--navy-2); padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.06); }
.mobile-menu a { padding: 12px 0; color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.06); font-size: .95rem; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* 移动端菜单关闭按钮 */
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.mobile-menu.open .mobile-menu-close {
  display: flex;
}
.mobile-menu-close:hover {
  background: rgba(255,255,255,.2);
}

/* #10 – 移动端语言切换器 */
.mobile-lang-switcher {
  padding: 14px 0 6px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
}
.mobile-lang-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}
.mobile-lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mobile-lang-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
}
.mobile-lang-btn:hover,
.mobile-lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: relative;
  margin-left: 14px;
  flex-shrink: 0;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  padding: 6px 12px 6px 10px;
  border-radius: 20px;
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { letter-spacing: .06em; }
.lang-arrow {
  font-size: .65rem;
  opacity: .7;
  transition: transform var(--trans);
}
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

/* Dropdown */
.lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 162px;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  z-index: 2000;
  animation: langFadeIn .18s ease;
  list-style: none;
}
.lang-switcher.open .lang-dropdown { display: block; }
@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 16px;
  background: none; border: none;
  color: rgba(255,255,255,.72);
  font-size: .88rem; font-family: var(--font-body);
  cursor: pointer; text-align: left;
  transition: background var(--trans), color var(--trans);
}
.lang-option span { font-size: 1.05rem; line-height: 1; }
.lang-option:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
}
.lang-option.active {
  color: var(--gold);
  font-weight: 600;
}
.lang-option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: .8rem;
  color: var(--gold);
}

/* Divider between EU langs and Chinese */
.lang-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 4px 10px;
  list-style: none;
}

/* Responsive: hide lang code on very small screens */
@media (max-width: 360px) {
  .lang-code { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0f2744 60%, #1a3a5c 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.15) 0%, transparent 60%); }

/* Hero split layout */
.hero-split {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-split > * { min-width: 0; } /* 防止 grid 子项溢出 */
.hero-content { max-width: 560px; }
.hero-badge { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(6,182,212,.4); padding: 6px 16px; border-radius: 20px; margin-bottom: 24px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 4rem); color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.72); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.35); font-size: .8rem; letter-spacing: .1em; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* Hero product image */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 36px; /* 底部留 36px 给 badge（bottom:-14px + 自身高约22px） */
  min-width: 0;         /* 防止 grid 子元素溢出 */
  max-width: 100%;      /* 不超出 grid 列宽 */
  overflow: visible;    /* 允许 badge 超出容器底部，不裁剪 */
}
.hero-product-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;     /* 图片圆角裁剪保留在图片容器本身 */
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  width: 100%;
  max-width: 520px;     /* 限制最大宽度，防止撑满屏幕 */
  max-height: 420px;    /* 直接用 max-height 约束，比 aspect-ratio 更可靠 */
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.04);
  filter: drop-shadow(0 0 60px rgba(37,99,235,.35));
}
.hero-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
  max-width: 100%;
  max-height: 100%;
}
.hero-product-img:hover img { transform: scale(1.03); }

/* Floating badge on hero image */
.hero-img-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .04em;
}
.hero-img-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.3); }
}

/* Hero responsive */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-product-img { max-width: 440px; max-height: 360px; margin: 0 auto; }
  .hero-img-badge { bottom: -14px; } /* hero-image-wrap padding-bottom:36px 已留空间 */
}
@media (max-width: 480px) {
  .hero-split { padding-top: 40px; padding-bottom: 60px; }
  .hero-product-img { max-width: 320px; max-height: 260px; aspect-ratio: 4/3; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-size: .92rem; font-weight: 600; cursor: pointer; transition: all var(--trans); border: 2px solid transparent; letter-spacing: .02em; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); transition: all 0.3s ease; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.full-width { width: 100%; justify-content: center; }
.center-action { text-align: center; margin-top: 40px; }
.btn-amazon { background: #FF9900; color: #111; border-color: #FF9900; font-weight: 700; }
.btn-amazon:hover { background: #e88900; border-color: #e88900; color: #111; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,153,0,.4); }
.btn-amazon svg { flex-shrink: 0; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 28px 0; box-shadow: var(--shadow); }
.features-strip-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.fi-icon { font-size: 1.8rem; }
.feature-item strong { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.feature-item p { font-size: .8rem; color: var(--gray-600); margin: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text .section-label { margin-bottom: 12px; }
.about-text h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 20px; color: var(--navy); }
.about-text p { color: var(--gray-600); margin-bottom: 16px; font-size: .98rem; line-height: 1.75; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 36px; }
.stat { text-align: center; padding: 20px 12px; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-100); }
.stat span { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--blue); font-weight: 700; margin-bottom: 4px; }
.stat label { font-size: .78rem; color: var(--gray-600); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.about-image { position: relative; }
.about-image img { border-radius: 8px; box-shadow: var(--shadow-lg); width: 100%; height: 420px; object-fit: cover; }
.about-badge { position: absolute; bottom: -18px; right: 24px; background: var(--navy); color: var(--white); padding: 10px 20px; border-radius: var(--radius); font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); }

/* ============================================================
   VISION
   ============================================================ */
.vision-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.vision-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 36px; transition: all var(--trans); }
.vision-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.vc-icon { font-size: 2rem; margin-bottom: 16px; }
.vision-card h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold); margin-bottom: 12px; }
.vision-card p { color: rgba(255,255,255,.7); font-size: .93rem; line-height: 1.75; }

/* ============================================================
   PRODUCT PREVIEW (homepage)
   ============================================================ */
.product-preview-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.pp-card { border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--gray-100); transition: all var(--trans); }
.pp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pp-img-wrap { position: relative; overflow: hidden; height: 260px; }
.pp-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pp-card:hover .pp-img-wrap img { transform: scale(1.04); }
.pp-badge { position: absolute; top: 14px; left: 14px; background: var(--blue); color: var(--white); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: .05em; text-transform: uppercase; }
.pp-badge.new { background: var(--gold); color: var(--navy); }
.pp-info { padding: 22px 24px; }
.pp-info h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 6px; color: var(--navy); }
.pp-info p { font-size: .85rem; color: var(--gray-600); margin-bottom: 16px; }

/* ============================================================
   NEWS (homepage preview)
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.news-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 22px; }
.news-date { font-size: .78rem; color: var(--gray-400); font-weight: 500; display: block; margin-bottom: 8px; }
.news-body h3 { font-family: var(--font-head); font-size: 1rem; color: var(--navy); margin-bottom: 10px; line-height: 1.45; }
.news-body p { font-size: .85rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 14px; }
.link-arrow { font-size: .82rem; font-weight: 600; color: var(--blue); transition: gap .2s; }
.link-arrow:hover { color: var(--blue-lt); }

/* ============================================================
   CERTIFICATIONS  (升级：卡片式，带图标和说明)
   ============================================================ */
.certifications { background: var(--gray-50); }
.cert-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; margin-top: 8px; }
.cert-badge {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 24px 12px 18px;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.cert-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-logo {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-weight: 800; font-size: .88rem; color: var(--white); letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
/* 认证徽章基础样式 */
.cert-logo-svg {
  background: none !important;
  box-shadow: none !important;
  transition: transform var(--trans);
}
.cert-badge:hover .cert-logo-svg {
  transform: scale(1.1);
}
.cert-logo-svg svg {
  color: white;
}
.cert-logo-svg .cert-bg {
  fill: rgba(255, 255, 255, 0.15);
}

/* CE - 欧盟蓝色 */
.cert-ce .cert-logo-svg {
  background: linear-gradient(135deg, #0052a5, #0082ca) !important;
  border-radius: 12px;
}
.cert-ce:hover .cert-logo-svg {
  background: linear-gradient(135deg, #004080, #0077bb) !important;
}

/* RoHS - 绿色 */
.cert-rohs .cert-logo-svg {
  background: linear-gradient(135deg, #2d7a2d, #43a843) !important;
  border-radius: 12px;
}
.cert-rohs:hover .cert-logo-svg {
  background: linear-gradient(135deg, #256625, #389538) !important;
}

/* WEEE - 蓝色 */
.cert-weee .cert-logo-svg {
  background: linear-gradient(135deg, #1a6fa8, #2596e0) !important;
  border-radius: 12px;
}
.cert-weee:hover .cert-logo-svg {
  background: linear-gradient(135deg, #156090, #2085cc) !important;
}

/* GDPR - 深蓝色 */
.cert-gdpr .cert-logo-svg {
  background: linear-gradient(135deg, #0f3460, #1a6fa8) !important;
  border-radius: 12px;
}
.cert-gdpr:hover .cert-logo-svg {
  background: linear-gradient(135deg, #0c284d, #156090) !important;
}

/* FCC - 红色 */
.cert-fcc .cert-logo-svg {
  background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
  border-radius: 12px;
}
.cert-fcc:hover .cert-logo-svg {
  background: linear-gradient(135deg, #a33025, #d04030) !important;
}

/* ISO - 紫色 */
.cert-iso .cert-logo-svg {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border-radius: 12px;
}
.cert-iso:hover .cert-logo-svg {
  background: linear-gradient(135deg, #6c2edb, #9845e7) !important;
}
.cert-badge-name { font-size: .82rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.cert-badge-desc { font-size: .72rem; color: var(--gray-600); text-align: center; line-height: 1.4; margin-top: -2px; }
@media (max-width: 900px) {
  .cert-row { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
  .cert-row { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info h2 { font-family: var(--font-head); font-size: clamp(1.6rem,2.8vw,2.2rem); color: var(--white); margin-bottom: 16px; }
.contact-info > p { color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: .98rem; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.ci { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.ci strong { display: block; color: var(--gold); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.ci p { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0; line-height: 1.6; }

/* Contact form */
.contact-form-wrap { }
.contact-form { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: var(--shadow-lg); }
.contact-form h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; letter-spacing: .03em; }
.form-group input, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-100); border-radius: var(--radius); font-size: .92rem; font-family: var(--font-body); color: var(--text); background: var(--white); transition: border-color var(--trans); outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success { margin-top: 14px; padding: 12px 16px; background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: var(--radius); color: #065f46; font-size: .88rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .85rem; margin: 16px 0 20px; line-height: 1.65; }
.social-links { display: flex; gap: 10px; }
.social-links a { font-size: .8rem; padding: 5px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; color: rgba(255,255,255,.5); transition: all var(--trans); }
.social-links a:hover { border-color: rgba(255,255,255,.4); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: .85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.5); font-size: .85rem; transition: color var(--trans); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom span { font-size: .8rem; color: rgba(255,255,255,.35); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #14304f 100%); padding: 72px 0 56px; }
.page-hero-sm { padding: 52px 0 40px; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,3rem); color: var(--white); margin: 12px 0 10px; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1rem; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   PRODUCTS PAGE – FILTER BAR
   ============================================================ */
.filter-bar { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { padding: 9px 22px; border: 1.5px solid var(--gray-100); border-radius: 24px; background: var(--white); color: var(--gray-600); font-size: .85rem; font-weight: 500; cursor: pointer; transition: all var(--trans); }
.filter-btn.active, .filter-btn:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* PRODUCTS GRID */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-100); cursor: pointer; transition: all var(--trans); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.pc-img-wrap { position: relative; height: 280px; overflow: hidden; background: var(--gray-50); }
.pc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .pc-img-wrap img { transform: scale(1.05); }
.pc-badge { position: absolute; top: 14px; left: 14px; background: var(--blue); color: var(--white); font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }
.pc-badge.new { background: var(--gold); color: var(--navy); }
.pc-body { padding: 24px; }
.pc-body h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.pc-body > p { font-size: .87rem; color: var(--gray-600); margin-bottom: 14px; }
.pc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pc-specs span { font-size: .75rem; padding: 3px 10px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 20px; color: var(--gray-600); font-weight: 500; }
.pc-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gray-100); padding-top: 16px; }
.pc-price { font-weight: 700; color: var(--navy); font-size: 1rem; }
.pc-link { font-size: .82rem; font-weight: 600; color: var(--blue); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; background: var(--gray-50); border: 1.5px solid var(--gray-100); border-radius: var(--radius); color: var(--gray-600); font-size: .85rem; font-weight: 500; cursor: pointer; margin-bottom: 36px; transition: all var(--trans); }
.btn-back:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.detail-images { position: sticky; top: calc(var(--header-h) + 24px); }
.main-img-wrap { border-radius: 10px; overflow: hidden; background: var(--gray-50); border: 1px solid var(--gray-100); height: 420px; }
.main-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; cursor: zoom-in; border: 2px solid var(--gray-100); transition: border-color var(--trans); }
.thumb.active, .thumb:hover { border-color: var(--blue); }

/* ============================================================
   IMAGE ZOOM MODAL
   ============================================================ */
.image-zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.image-zoom-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.image-zoom-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.zoom-close-btn {
  position: absolute;
  top: -50px;
  right: -20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}

.zoom-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.main-img-wrap img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.main-img-wrap img:hover {
  transform: scale(1.02);
}

.detail-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.badge-ce, .badge-rohs, .badge-gdpr, .badge-new { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: .06em; text-transform: uppercase; }
.badge-ce   { background: #eff6ff; color: #1a56db; border: 1px solid #bfdbfe; }
.badge-rohs { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-gdpr { background: #fefce8; color: #ca8a04; border: 1px solid #fde68a; }
.badge-new  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.detail-info h1 { font-family: var(--font-head); font-size: clamp(1.6rem,3vw,2.4rem); color: var(--navy); margin-bottom: 8px; }
.detail-tagline { color: var(--gray-600); font-size: 1rem; margin-bottom: 18px; }
.detail-price { font-size: 1.3rem; color: var(--navy); margin-bottom: 28px; }
.detail-price strong { color: var(--blue); }
.detail-price span { font-size: .82rem; color: var(--gray-400); margin-left: 6px; }

.spec-table { margin-bottom: 28px; }
.spec-table h3, .key-features h3 { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 14px; }
.spec-table table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 9px 12px; font-size: .88rem; border-bottom: 1px solid var(--gray-100); }
.spec-table td:first-child { color: var(--gray-600); width: 46%; }
.spec-table td:last-child { color: var(--navy); font-weight: 500; }

.key-features ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.key-features li { font-size: .9rem; color: var(--gray-600); padding-left: 4px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Product detail lower sections */
.detail-desc, .detail-compliance { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--gray-100); }
.detail-desc h2, .detail-compliance h2 { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); margin-bottom: 20px; }
.detail-desc p { color: var(--gray-600); font-size: .96rem; line-height: 1.8; margin-bottom: 16px; }
.compliance-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.comp-item { padding: 24px; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-100); }
.comp-item strong { display: block; color: var(--navy); font-size: .9rem; margin-bottom: 8px; }
.comp-item p { color: var(--gray-600); font-size: .85rem; line-height: 1.65; margin: 0; }

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-list-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.news-list-card { display: grid; grid-template-columns: 280px 1fr; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-100); cursor: pointer; transition: all var(--trans); }
.news-list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.nlc-img { overflow: hidden; }
.nlc-img img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform .4s; }
.news-list-card:hover .nlc-img img { transform: scale(1.05); }
.nlc-body { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.news-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); background: rgba(26,86,219,.08); padding: 3px 10px; border-radius: 12px; margin-right: 10px; }
.news-list-card .news-date { font-size: .8rem; color: var(--gray-400); }
.nlc-body h2 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin: 12px 0 8px; line-height: 1.4; }
.nlc-body > p { font-size: .86rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 14px; }

/* News detail */
.nd-wrap { max-width: 800px; }
.nd-meta { margin-bottom: 16px; }
.nd-meta .news-cat, .nd-meta .news-date { display: inline-block; }
.nd-meta .news-date { margin-left: 10px; font-size: .85rem; color: var(--gray-400); }
.nd-wrap h1 { font-family: var(--font-head); font-size: clamp(1.6rem,3vw,2.2rem); color: var(--navy); margin-bottom: 28px; line-height: 1.3; }
.nd-hero-img { border-radius: 10px; overflow: hidden; margin-bottom: 36px; height: 420px; }
.nd-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.nd-content p { color: var(--gray-600); font-size: .96rem; line-height: 1.85; margin-bottom: 18px; }
.nd-content strong { color: var(--navy); }
.nd-content blockquote { border-left: 3px solid var(--gold); padding: 16px 24px; background: var(--gray-50); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--gray-800); margin: 24px 0; font-size: .94rem; line-height: 1.75; }
.nd-content a { color: var(--blue); font-weight: 500; }

/* ============================================================
   HIDDEN / VISIBLE STATES
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   SCROLL FADE-IN ANIMATION
   ============================================================ */
.fade-in-el {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in-el.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  /* #7 fix: About 图片改为堆叠展示，而非直接隐藏 */
  .about-image { display: block; max-width: 560px; margin: 0 auto; }
  .about-image img { height: 300px; }
  .detail-images { position: static; }
  .features-strip-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid, .product-preview-grid { grid-template-columns: repeat(2,1fr); }
  .vision-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .news-list-grid { grid-template-columns: 1fr; }
  .news-list-card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .news-grid, .products-grid, .product-preview-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .compliance-grid { grid-template-columns: 1fr; }
  .features-strip-grid { grid-template-columns: 1fr; }
  .news-list-card { grid-template-columns: 1fr; }
  .nlc-img img { min-height: 180px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .cert-row { gap: 20px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero { min-height: 80vh; }
  .hero-actions { flex-direction: column; }
  /* #6 fix: 只对 hero / contact form 按钮应用全宽，避免影响 footer 内联链接等 */
  .hero-actions .btn,
  .contact-form .btn,
  .detail-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   LEGAL & SUPPORT PAGE
   ============================================================ */
.legal-grid { display: grid; gap: 48px; }
.legal-card { background: var(--white); border-radius: 10px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.legal-card h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-100); }
.legal-body p { color: var(--gray-600); font-size: .95rem; line-height: 1.75; margin-bottom: 16px; }
.legal-body strong { color: var(--navy); font-weight: 600; }
.legal-body h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin: 24px 0 12px; }
.legal-body ul { list-style: disc; margin-left: 20px; margin-bottom: 16px; }
.legal-body li { color: var(--gray-600); font-size: .93rem; line-height: 1.7; margin-bottom: 8px; }
.legal-body ol { list-style: decimal; margin-left: 20px; margin-bottom: 16px; }
.legal-body ol li { color: var(--gray-600); font-size: .93rem; line-height: 1.7; margin-bottom: 8px; }
.legal-body small { color: var(--gray-400); font-size: .8rem; }

/* Support contact items */
.support-contact { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 24px 0; }
.sc-item { background: var(--gray-50); padding: 20px; border-radius: var(--radius); border: 1px solid var(--gray-100); }
.sc-item strong { display: block; color: var(--navy); font-size: .9rem; margin-bottom: 6px; }
.sc-item p { color: var(--gray-600); font-size: .88rem; margin-bottom: 4px; }
.sc-item small { color: var(--gray-400); font-size: .75rem; }

/* FAQ items */
.faq-item { background: var(--gray-50); padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--gray-100); margin-bottom: 12px; }
.faq-item h4 { font-family: var(--font-head); font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.faq-item p { color: var(--gray-600); font-size: .88rem; line-height: 1.6; margin: 0; }

/* Dynamic content highlighting */
.dynamic-content { position: relative; }
.dynamic-content::before { content: ''; position: absolute; left: -20px; top: 0; bottom: 0; width: 3px; background: var(--blue); border-radius: 2px; }

/* Legal page responsive */
@media (max-width: 768px) {
  .legal-card { padding: 28px 20px; }
  .support-contact { grid-template-columns: 1fr; }
  .legal-body h2 { font-size: 1.2rem; }
}

/* ============================================================
   #11 – EMPTY STATE（空状态设计）
   ============================================================ */
.empty-state {
  display: none;          /* JS 控制 show/hide */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 80px;
  gap: 16px;
}
.empty-state.visible { display: flex; }
.empty-state-icon {
  font-size: 3.5rem;
  line-height: 1;
  opacity: .45;
  margin-bottom: 8px;
}
.empty-state h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
}
.empty-state p {
  max-width: 340px;
  color: var(--gray-600);
  font-size: .95rem;
  line-height: 1.6;
}
.empty-state .btn-reset-filter {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all var(--trans);
}
.empty-state .btn-reset-filter:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   #14 – FONT DISPLAY OPTIMIZATION
   font-display: swap 防止 FOIT（不可见文字闪烁）
   Google Fonts URL 已含 &display=swap，
   此处对本地 fallback 字体栈做声明
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local('Inter');
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.back-to-top:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   SKIP LINK (无障碍)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
