/* ==========================================================================
   宝佳钙业 BaoJia Calcium — Design System
   UI Designer: 像素君 | 品牌色：深蓝 #1B4F8E / 草绿 #5A9A3D / 红 #C41E3A
   字体：全系统字体（无硬编码 web 字体）| 间距：4px 基准 | WCAG AA
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — Primary (Deep Blue) */
  --c-blue-50:  #eef4fb;
  --c-blue-100: #d6e4f5;
  --c-blue-200: #aec9ea;
  --c-blue-300: #7da7d6;
  --c-blue-400: #3f78b0;
  --c-blue-500: #1B4F8E;   /* primary */
  --c-blue-600: #163f73;
  --c-blue-700: #143C6E;
  --c-blue-900: #0d2647;

  /* Brand — Secondary (Eco Green) */
  --c-green-50:  #eef6e9;
  --c-green-100: #d4e8c9;
  --c-green-300: #8cbf72;
  --c-green-400: #74ab57;
  --c-green-500: #5A9A3D;  /* secondary */
  --c-green-600: #4a8033;
  --c-green-700: #3c6a29;

  /* Brand — Accent (Action Red) */
  --c-red-500: #C41E3A;
  --c-red-600: #a81830;

  /* Neutrals */
  --c-white: #ffffff;
  --c-gray-50:  #f7f9fb;
  --c-gray-100: #eef1f4;
  --c-gray-200: #e2e7ec;
  --c-gray-300: #cbd3da;
  --c-gray-400: #9aa5b1;
  --c-gray-500: #6b7682;
  --c-gray-600: #4a535c;
  --c-gray-700: #333a42;
  --c-gray-800: #222831;
  --c-gray-900: #161b21;

  /* Semantic / text / surface */
  --c-text:       #2b333b;
  --c-text-muted: #5b6571;
  --c-bg:         #ffffff;
  --c-bg-soft:    #f5f8fb;
  --c-bg-dark:    #0f2a4d;
  --c-border:     #e2e7ec;

  --c-success: #2e9e5b;
  --c-warning: #e0a106;
  --c-error:   #d93636;
  --c-info:    #1B4F8E;

  /* Typography (system stack only) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  --fs-xs:   0.75rem;   /* 12 */
  --fs-sm:   0.875rem;  /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-lg:   1.125rem;  /* 18 */
  --fs-xl:   1.25rem;   /* 20 */
  --fs-2xl:  1.5rem;    /* 24 */
  --fs-3xl:  1.875rem;  /* 30 */
  --fs-4xl:  2.25rem;   /* 36 */
  --fs-5xl:  3rem;      /* 48 */
  --fs-6xl:  3.75rem;   /* 60 */

  /* Spacing — 4px base scale */
  --sp-1: 0.25rem;  /* 4 */
  --sp-2: 0.5rem;   /* 8 */
  --sp-3: 0.75rem;  /* 12 */
  --sp-4: 1rem;     /* 16 */
  --sp-5: 1.25rem;  /* 20 */
  --sp-6: 1.5rem;   /* 24 */
  --sp-8: 2rem;     /* 32 */
  --sp-10: 2.5rem;  /* 40 */
  --sp-12: 3rem;    /* 48 */
  --sp-16: 4rem;    /* 64 */
  --sp-20: 5rem;    /* 80 */
  --sp-24: 6rem;    /* 96 */

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,42,77,.06);
  --sh-md: 0 4px 14px rgba(15,42,77,.10);
  --sh-lg: 0 12px 32px rgba(15,42,77,.14);
  --sh-blue: 0 10px 28px rgba(27,79,142,.28);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-norm: 280ms ease;
  --t-slow: 480ms cubic-bezier(.2,.7,.2,1);

  /* Layout */
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--c-gray-900); }
:focus-visible { outline: 3px solid var(--c-blue-300); outline-offset: 2px; border-radius: var(--r-sm); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.container--narrow { max-width: 920px; }
.section { padding-block: var(--sp-16); }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-bg-dark); color: #dbe7f5; }
.section--dark h1,.section--dark h2,.section--dark h3 { color: #fff; }
.grid { display: grid; gap: var(--sp-6); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.gap { gap: var(--sp-4); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-green-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--c-green-500); border-radius: 2px; }
.section-title { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.section-lead { color: var(--c-text-muted); max-width: 640px; font-size: var(--fs-lg); }
.section-head { margin-bottom: var(--sp-10); }
.section--dark .section-lead { color: #b9cfe6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.72rem 1.4rem; border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--fs-base); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-blue-500); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--c-blue-600); transform: translateY(-1px); }
.btn--accent { background: var(--c-red-500); color: #fff; }
.btn--accent:hover { background: var(--c-red-600); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-blue-500); border-color: var(--c-blue-200); }
.btn--ghost:hover { background: var(--c-blue-50); }
.btn--light { background: #fff; color: var(--c-blue-700); }
.btn--light:hover { background: var(--c-blue-50); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: .5rem 1rem; font-size: var(--fs-sm); }
.btn--lg { padding: .9rem 1.9rem; font-size: var(--fs-lg); }
.btn--block { width: 100%; }
.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.35); }
.btn--whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }
.btn--whatsapp svg { margin-right: .5rem; vertical-align: -3px; }
.wa-link { color: #1ebe5a; font-weight: 600; text-decoration: none; }
.wa-link:hover { text-decoration: underline; }

/* ---------- Badge / Tag ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .28rem .7rem; font-size: var(--fs-xs); font-weight: 600;
  border-radius: var(--r-pill); background: var(--c-blue-50); color: var(--c-blue-600);
}
.badge--green { background: var(--c-green-50); color: var(--c-green-600); }
.badge--red { background: #fdeaed; color: var(--c-red-600); }
.badge--outline { background: transparent; border: 1px solid var(--c-border); color: var(--c-text-muted); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--t-norm);
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: var(--sp-6); }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 800; color: var(--c-gray-900); }
.brand__mark {
  width: 40px; height: 40px; border-radius: var(--r-md); flex: none;
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-green-500));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.375rem; letter-spacing: .02em; }
/* 英文版 logo 文字“BaoJia Calcium”较长，缩小 4px 避免溢出 */
html[lang="en"] .brand__name { font-size: 1.125rem; }
.brand__sub { font-size: 11px; color: var(--c-text-muted); font-weight: 600; letter-spacing: .06em; }
/* logo image (replaces text mark) */
.brand__logo { height: 40px; width: auto; display: block; border-radius: 6px; object-fit: contain; }
/* dark footer: brand logo hidden per request — text name aligns flush-left with description */
.footer-brand .brand__logo { display: none; }
.footer-brand .brand { display: flex; align-items: center; gap: 1px; padding: 0; }
.nav__links { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.nav__link {
  padding: .5rem .8rem; border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-sm);
  color: var(--c-gray-700); transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover, .nav__link.is-active { background: var(--c-blue-50); color: var(--c-blue-600); }
.nav__utils { display: flex; align-items: center; gap: var(--sp-2); margin-left: var(--sp-2); }
.lang-switch { display: inline-flex; border: 1px solid var(--c-border); border-radius: var(--r-pill); overflow: hidden; }
.lang-switch a { padding: .35rem .7rem; font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-muted); }
.lang-switch a.is-active { background: var(--c-blue-500); color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--c-gray-800); margin: 4px 0; transition: var(--t-fast); }

/* mobile menu */
.mobile-menu { display: none; border-top: 1px solid var(--c-border); background: #fff; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: .9rem var(--sp-4); border-bottom: 1px solid var(--c-gray-100); font-weight: 600; }
.mobile-menu .lang-switch { margin: var(--sp-4); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(90,154,61,.45), transparent 60%),
    linear-gradient(120deg, #0d2647 0%, #143C6E 45%, #1B4F8E 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; padding-block: var(--sp-20) var(--sp-16); display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-8); align-items: center; }
.hero__text { }
.hero__eyebrow { color: #9fe0a4; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-sm); }
.hero h1 { color: #fff; font-size: var(--fs-5xl); max-width: 16ch; margin-block: var(--sp-4) var(--sp-5); }
html[lang="zh-CN"] .hero h1 { white-space: nowrap; max-width: none; }
.hero p.lead { font-size: var(--fs-lg); color: #d6e4f5; max-width: 56ch; }
.hero__cta { display: flex; gap: var(--sp-4); margin-top: var(--sp-8); flex-wrap: wrap; }
.hero__stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4); margin-top: var(--sp-12); padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stat .num { font-size: var(--fs-3xl); font-weight: 800; color: #fff; }
.hero__stat .num small { font-size: var(--fs-lg); color: #9fe0a4; font-weight: 700; }
.hero__stat .label { color: #b9cfe6; font-size: var(--fs-sm); }

/* Hero gallery carousel */
.hero__gallery { position: relative; }
.hero__slides { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08); height: 0; padding-bottom: 100%; }
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.hero__slide.active { opacity: 1; position: absolute; z-index: 1; }
.hero__dots {
  display: flex; gap: var(--sp-2); justify-content: center;
  margin-top: var(--sp-4);
}
.hero__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5); background: transparent;
  cursor: pointer; padding: 0; transition: all .3s ease;
}
.hero__dot.active { background: #fff; border-color: #fff; transform: scale(1.25); }
.hero__dot:hover { border-color: #fff; background: rgba(255,255,255,.35); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden; transition: transform var(--t-norm), box-shadow var(--t-norm), border-color var(--t-norm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-blue-200); }


/* Live video placeholder zone */
.live-zone {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 16 / 9; max-width: 960px; margin-inline: auto;
  display: grid; place-items: center;
  background: url('../images/tvc.jpg') center/cover no-repeat;
}
.live-zone__badge,
.live-zone__play,
.live-zone__cap { display: none; }

.feature { padding: var(--sp-6); }
.feature__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--c-blue-50); color: var(--c-blue-500); margin-bottom: var(--sp-4);
}
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.feature p { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* product card */
.product-card { display: flex; flex-direction: column; }
.product-card__media {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--c-blue-100), var(--c-green-100));
  display: grid; place-items: center; position: relative;
}
.product-card__media .ph-label { color: var(--c-blue-700); font-weight: 700; font-size: var(--fs-sm); opacity: .7; }
.product-card__media { overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; min-width: 0; object-fit: cover; display: block; }
.map-embed { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-card__body h3 { font-size: var(--fs-lg); }
.product-card__body p { color: var(--c-text-muted); font-size: var(--fs-sm); flex: 1; }
.product-card__meta { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-blue-600); font-weight: 700; font-size: var(--fs-sm); margin-top: var(--sp-3); }
.link-arrow svg { transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* application tile */
.app-tile {
  display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-5);
  border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff;
  transition: var(--t-norm);
}
.app-tile:hover { border-color: var(--c-green-400); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.app-tile__icon { width: 44px; height: 44px; flex: none; border-radius: var(--r-md); background: var(--c-green-50); color: var(--c-green-600); display: grid; place-items: center; }
.app-tile__icon svg { width: 24px; height: 24px; display: block; }
.app-tile h4 { font-size: var(--fs-base); margin-bottom: 2px; }
.app-tile p { font-size: var(--fs-sm); color: var(--c-text-muted); overflow-wrap: break-word; word-break: break-word; }

/* ---------- Stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-4); max-width: 560px; margin-inline: auto; }
.stat-band > * { min-width: 0; }
.stat .num, .stat .label { overflow-wrap: break-word; word-break: break-word; }
.stat {
  text-align: center;
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
/* 4 distinct color blocks */
.stat:nth-child(1) { background: linear-gradient(135deg, #164a8c 0%, #1B4F8E 100%); }
.stat:nth-child(2) { background: linear-gradient(135deg, #3d7a45 0%, #5A9A3D 100%); }
.stat:nth-child(3) { background: linear-gradient(135deg, #0d6868 0%, #1a9090 100%); }
.stat:nth-child(4) { background: linear-gradient(135deg, #3a3b6e 0%, #5657a3 100%); }
.stat:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.stat .num { font-size: var(--fs-3xl); font-weight: 800; color: #fff; line-height: 1.1; }
.stat .num small { font-size: var(--fs-lg); font-weight: 700; color: rgba(255,255,255,.75); margin-left: 2px; }
.stat .label { color: rgba(255,255,255,.7); font-size: var(--fs-sm); margin-top: var(--sp-2); font-weight: 500; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: var(--sp-8); }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--c-blue-100); }
.tl-item { position: relative; padding-bottom: var(--sp-8); }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--c-blue-500); }
.tl-year { font-weight: 800; color: var(--c-blue-600); font-size: var(--fs-lg); }
.tl-item h4 { font-size: var(--fs-base); margin: 2px 0; }
.tl-item p { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* ===== 横向里程碑时间轴（企业发展历程 重排） ===== */
.timeline--h { display: flex; position: relative; margin-top: var(--sp-6); overflow-x: auto; padding-bottom: var(--sp-2); }
.timeline--h .tl-item {
  flex: 1 0 240px;
  position: relative;
  min-width: 240px;
  max-width: 280px;
  padding: 80px var(--sp-3) 0;
  text-align: center;
}
.timeline--h .tl-item::before { display: none; }   /* 取消旧竖向圆点 */
.timeline--h .tl-item::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-blue-100);
  z-index: 0;
}
.timeline--h .tl-item:last-child::after { display: none; }
.timeline--h .tl-year {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-blue-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(27,79,142,.30);
}
.timeline--h .tl-item:nth-child(even) .tl-year {
  background: var(--c-green-500);
  box-shadow: 0 4px 14px rgba(90,154,61,.30);
}
.timeline--h .tl-item h4 { margin-top: var(--sp-2); font-size: var(--fs-base); }
.timeline--h .tl-item p { margin-top: 2px; color: var(--c-text-muted); font-size: var(--fs-sm); text-wrap: balance; }

/* 手机端：竖向堆叠时间轴 */
@media (max-width: 560px) {
  .timeline--h { flex-direction: column; align-items: stretch; margin-top: var(--sp-4); }
  .timeline--h .tl-item {
    padding: 0 0 var(--sp-6) 60px;
    text-align: left;
    min-height: 52px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
  }
  .timeline--h .tl-item:last-child { padding-bottom: 0; }
  .timeline--h .tl-item::after {
    top: 0; left: 22px; width: 3px; height: 100%;
  }
  .timeline--h .tl-item:last-child::after { height: 0; }
  .timeline--h .tl-year { top: 0; left: 0; transform: none; }
}

/* ---------- Certificates ---------- */
.cert {
  border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; padding: var(--sp-5);
  text-align: center; box-shadow: var(--sh-sm);
}
.cert__ph {
  aspect-ratio: 4/3; border-radius: var(--r-md); margin-bottom: var(--sp-4);
  background: repeating-linear-gradient(45deg,#f3f6fa,#f3f6fa 10px,#eaf0f7 10px,#eaf0f7 20px);
  display: grid; place-items: center; color: var(--c-blue-400); font-weight: 700; font-size: var(--fs-sm);
}
.cert__ph img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-md); background:#fff; }
.cert h4 { font-size: var(--fs-sm); color: var(--c-gray-700); }
.cert span { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* 资质荣誉 — 横向轮播（超过一屏时显示左右切换按钮） */
.cert-carousel { position: relative; }
.cert-track {
  display: flex; gap: var(--sp-5);
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3);
  scrollbar-width: none; -ms-overflow-style: none;
}
.cert-track::-webkit-scrollbar { display: none; }
.cert-track .cert {
  flex: 0 0 calc((100% - 3 * var(--sp-5)) / 4);
  scroll-snap-align: start;
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid #fff;
  background: var(--c-green-500); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(74, 128, 51, .35), 0 2px 6px rgba(0,0,0,.12);
  z-index: 3;
  transition: var(--t-norm);
}
.carousel__btn:hover:not([disabled]) { background: var(--c-green-700); color: #fff; transform: translateY(-50%) scale(1.05); box-shadow: 0 6px 16px rgba(74, 128, 51, .45); }
.carousel__btn--prev { left: -18px; }
.carousel__btn--next { right: -18px; }
.carousel__btn[disabled] { opacity: .4; background: var(--c-green-500); color: #fff; box-shadow: none; cursor: default; pointer-events: none; }
/* 内容未溢出（一屏能放下）时隐藏按钮 */
.cert-carousel.is-fit .carousel__btn { display: none; }
@media (max-width: 768px) {
  .cert-track .cert { flex-basis: 80%; }
  .carousel__btn--prev { left: 4px; }
  .carousel__btn--next { right: 4px; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-gray-700); }
.field .req { color: var(--c-red-500); }
.input, .select, .textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: var(--fs-base);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-blue-400);
  box-shadow: 0 0 0 3px rgba(27,79,142,.14);
}
.textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-note { font-size: var(--fs-xs); color: var(--c-text-muted); }
.form-ok { background: #e9f7ee; border: 1px solid #b7e3c6; color: #1e7a45; padding: .8rem 1rem; border-radius: var(--r-md); font-size: var(--fs-sm); }
.form-err { color: var(--c-error); font-size: var(--fs-xs); }

/* ---------- Contact info box ---------- */
.info-box { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-6); }
.info-row { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px dashed var(--c-gray-200); }
.info-row:last-child { border-bottom: 0; }
.info-row__icon { width: 38px; height: 38px; flex: none; border-radius: var(--r-md); background: var(--c-blue-50); color: var(--c-blue-500); display: grid; place-items: center; }
.info-row h4 { font-size: var(--fs-sm); color: var(--c-text-muted); font-weight: 600; }
.info-row p { font-size: var(--fs-base); color: var(--c-gray-800); font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: var(--fs-sm); color: var(--c-text-muted); padding-block: var(--sp-5); }
.crumb a:hover { color: var(--c-blue-600); }
.crumb span { margin: 0 .4rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: linear-gradient(120deg, #0d2647, #1B4F8E); color: #fff; padding-block: var(--sp-16); }
.page-hero h1 { color: #fff; font-size: var(--fs-4xl); }
.page-hero p { color: #cfe0f3; max-width: 60ch; margin-top: var(--sp-3); font-size: var(--fs-lg); }

/* ---------- Spec table ---------- */
/* spec table wrapper for mobile scroll */
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--c-border); margin-block: var(--sp-4); }
.spec-wrap::-webkit-scrollbar { height: 6px; }
.spec-wrap::-webkit-scrollbar-thumb { background: var(--c-blue-300); border-radius: 3px; }
.spec-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--c-border); overflow-wrap: break-word; word-break: break-word; }
.spec-table th { background: var(--c-bg-soft); color: var(--c-gray-700); font-weight: 700; width: 38%; }
.spec-table td { white-space: normal; } /* allow value cells to wrap */
.spec-table tr:hover td { background: var(--c-blue-50); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-gray-900); color: #c4cdd6; padding-block: var(--sp-16) var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-8); }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.site-footer a { color: #c4cdd6; font-size: var(--fs-sm); display: block; padding: .3rem 0; transition: color var(--t-fast); }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #9aa6b2; font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 34ch; }
.footer-bottom { display: flex; justify-content: flex-end; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); color: #8b95a1; }

/* ===== Footer friendly-links dropdown ===== */
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.footer-friends { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.footer-friends__label { color: #fff; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; letter-spacing: .02em; }
.footer-friends__select { position: relative; display: inline-flex; }
.friend-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: inherit; font-size: var(--fs-sm);
  color: #111; background: #fff;
  border: 1px solid #d5dbe0; border-radius: var(--r-md);
  padding: .5rem 2.5rem .5rem .9rem; cursor: pointer; min-width: 220px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.friend-select:hover { border-color: #b0b8bf; background: #f5f7f9; }
.friend-select:focus-visible { outline: 2px solid var(--c-blue-500); outline-offset: 2px; }
.footer-friends__caret { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: #6b7280; pointer-events: none; }

/* ---------- Floating CTA / back-to-top ---------- */
.fab { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 90; display: flex; flex-direction: column; gap: var(--sp-3); }
.fab a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-md); }
.fab .to-top { background: var(--c-gray-800); color: #fff; opacity: 0; pointer-events: none; transition: var(--t-norm); }
.fab .to-top.show { opacity: 1; pointer-events: auto; }
.fab .chat { background: var(--c-green-500); color: #fff; }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.divider { height: 1px; background: var(--c-border); border: 0; margin-block: var(--sp-8); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__utils .btn { display: none; }
  .nav__utils { margin-left: auto; }
  .nav__toggle { display: block; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-6); }
  .stat-band { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-4); }
  .hero h1 { font-size: var(--fs-4xl); }
  .section { padding-block: var(--sp-12); }
  /* Hero 内边距在平板/大手机上收紧 */
  .hero__inner { padding-block: var(--sp-12) var(--sp-6); grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__gallery { max-width: 400px; margin-inline: auto; }
  /* Hero CTA 按钮间距（平板/大手机） */
  .hero__cta { gap: var(--sp-5); }
  /* stat 卡片数字在 2 列时缩小 */
  .stat .num { font-size: var(--fs-3xl); }
  /* 地图高度降低 */
  .map-embed { aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* 手机端表格取消固定最小宽度，自适应容器并允许单元格换行 */
  .spec-table { min-width: 0; }
  .spec-table th { white-space: normal; }
  /* 手机端数据卡保持双列但允许内容收缩，避免英文长词撑开视口 */
  .stat-band { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero h1 { font-size: var(--fs-3xl); }
  html[lang="zh-CN"] .hero h1 { font-size: var(--fs-2xl); }
  .section-title { font-size: var(--fs-2xl); }
  .container { padding-inline: var(--sp-4); }
  /* Hero 小手机内边距更紧凑 */
  .hero__inner { padding-block: var(--sp-10) var(--sp-4); }
  .hero__gallery { max-width: 100%; }
  /* Hero CTA 按钮纵向间距（手机端） */
  .hero__cta { gap: var(--sp-6); }
  /* stat 恢复大字号（单列时有空间） */
  .stat .num { font-size: var(--fs-4xl); }
  /* footer 底部居中竖排，避免版权信息松散 */
  .footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; }
  /* 手机端 footer 仅保留版权信息：品牌块（标题+logo）与栏目整体隐藏 */
  .footer-grid { display: none; }
  /* 收掉隐藏 grid 后留下的空距，避免版权行上下大片留白 */
  .site-footer { padding-block: var(--sp-8) var(--sp-6); }
  .footer-bar { flex-direction: column; align-items: center; gap: var(--sp-5); margin-top: var(--sp-6); padding-top: var(--sp-5); }
  .footer-bottom { margin-top: 0; padding-top: 0; border-top: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; }
  .footer-friends { flex-direction: column; align-items: center; text-align: center; gap: .5rem; width: 100%; }
  /* 手机端下拉框占满整行宽度，避免右侧大片留白 */
  .footer-friends__select { width: 100%; }
  .friend-select { min-width: 0; width: 100%; }
  /* 首页按钮组手机端纵向全宽堆叠 */
  .hero__cta, .btn-row { flex-direction: column; align-items: stretch; }
  .hero__cta .btn, .btn-row .btn { width: 100%; }
}

/* ===== Success Cases / Logo Wall ===== */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  text-align: center;
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s, border-color .3s;
}
.logo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27,79,142,.14);
  border-color: var(--c-blue-500);
}
.logo-tile__logo {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-soft);
  border-radius: 8px;
  color: var(--c-text-muted);
}
.logo-tile__logo svg { width: 42px; height: 42px; opacity: .45; transition: opacity .3s, transform .3s; }
.logo-tile:hover .logo-tile__logo svg { opacity: .7; transform: scale(1.06); }
/* Real client logos drop in here with proper alt text */
.logo-tile__logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.logo-tile__label {
  display: block;
  margin-top: var(--sp-2);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.logo-wall__note {
  margin-top: var(--sp-6);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
