/* =========================================================
   盈束 WINZUU 官网 — 共享样式表 (红色主题 / 大气简单)
   设计系统：配色 / 排版 / 间距 / 组件 / 响应式
   ========================================================= */

:root {
  /* ===== 品牌色（与旧站一致）===== */
  --color-primary: #e3232f;          /* 主色 盈束红 */
  --color-primary-dark: #c01825;     /* 深红 */
  --color-primary-darker: #a3131d;
  --color-primary-light: #f0454f;
  --color-primary-tint: #fdecee;     /* 浅红底 */
  --color-primary-tint2: #fce8ea;

  /* ===== 中性色 ===== */
  --color-bg: #ffffff;
  --color-bg-secondary: #f7f8fa;
  --color-bg-tertiary: #f0f2f5;
  --color-text: #1f2329;            /* 标题/正文深灰（优于纯黑）*/
  --color-text-secondary: #5a6066;
  --color-text-muted: #8a9099;
  --color-border: #e6e8eb;
  --color-dark: #16181d;           /* 页脚深色 */

  /* ===== 功能色 ===== */
  --color-success: #1aa260;
  --color-warning: #e8920b;
  --color-error: #e3232f;

  /* ===== 字体 ===== */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Roboto Mono", "Courier New", monospace;

  /* ===== 字号 ===== */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* ===== 间距 ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ===== 圆角 ===== */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ===== 阴影 ===== */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.09);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
  --shadow-red: 0 10px 24px rgba(227,35,47,0.22);

  /* ===== 过渡 ===== */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* 防 iOS 横屏字号放大 */
  text-size-adjust: 100%;
  overflow-x: clip;                 /* 兜底防横向滚动；clip 不创建滚动容器，避免破坏 position:sticky */
  scroll-padding-top: 88px;         /* 锚点跳转避开吸顶导航 */
}
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(227,35,47,0.12); /* 移动端点击高亮为品牌色 */
  /* 注意：此处不加 overflow-x:hidden —— 会使 body 成为滚动容器，
     导致 .navbar 的 position:sticky 失效。防溢出只在 html 上处理。 */
}
/* 菜单展开时锁定页面滚动（html + body 双重，兼容 iOS Safari）
   注意：不使用 touch-action:none，否则抽屉内部也无法滑动 */
html.nav-open, body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; color: var(--color-text); }
/* 长中英文混排/长链接自动折行，防溢出 */
h1, h2, h3, h4, h5, p, li, td, th, a, span { overflow-wrap: break-word; word-break: break-word; }
button { font-family: inherit; cursor: pointer; }

/* ===== 布局容器（响应式内边距）===== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 1.5rem); }
.container-narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 1.5rem); }
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-16) 0; }
.bg-secondary { background: var(--color-bg-secondary); }
.bg-tertiary { background: var(--color-bg-tertiary); }
.bg-dark { background: var(--color-dark); }
.text-center { text-align: center; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-md);
  font-size: var(--text-base); font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-red); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: var(--color-primary-tint); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.2rem; font-size: var(--text-lg); }
.btn-block { width: 100%; }

/* ===== 区块标题 ===== */
.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-12); }
.section-tag {
  display: inline-block; padding: 0.3rem 0.9rem; margin-bottom: 1rem;
  background: var(--color-primary-tint); color: var(--color-primary);
  border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600;
}
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
.section-header h2 .accent { color: var(--color-primary); }
.section-header p { font-size: var(--text-lg); color: var(--color-text-secondary); line-height: 1.8; }
.section-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--color-primary); font-weight: 600; margin-top: 1rem; }
.section-link:hover { gap: 0.6rem; }

/* =========================================================
   顶部条 (topbar)
   ========================================================= */
.topbar { background: var(--color-dark); color: #c8ccd2; font-size: var(--text-sm); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar .tb-phone { color: #fff; font-weight: 600; }
.topbar .tb-phone i { color: var(--color-primary-light); font-style: normal; margin-right: 0.3rem; }

/* =========================================================
   导航栏 (navbar)
   ========================================================= */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-normal);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-logo .logo-img { height: 38px; width: auto; max-width: 160px; display: block; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; height: 72px; padding: 0 0.85rem;
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-secondary);
  transition: color var(--duration-fast); position: relative;
}
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--color-primary); }

/* 二级菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown > a .caret { font-size: 0.6rem; margin-left: 0.3rem; opacity: 0.6; }
.nav-dropdown .submenu {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 180px; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 0.5rem; opacity: 0; visibility: hidden; transition: all var(--duration-normal) var(--ease-out); z-index: 99;
}
.nav-dropdown:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown .submenu a { display: block; padding: 0.6rem 0.9rem; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-secondary); }
.nav-dropdown .submenu a:hover { background: var(--color-primary-tint); color: var(--color-primary); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta .btn { padding: 0.55rem 1.2rem; font-size: var(--text-sm); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  flex: none;                       /* 关键：禁止被 flex 压缩，否则 2px 被挤成 0 */
  background: var(--color-text); margin: 3px 0; transition: 0.3s; border-radius: 2px;
}

/* =========================================================
   首页 Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 80% -10%, var(--color-primary-tint2) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  padding: var(--space-20) 0 var(--space-24);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary);
  box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--color-primary); }
.hero-lead { font-size: var(--text-lg); color: var(--color-text-secondary); line-height: 1.85; margin-bottom: 2rem; max-width: 540px; }
.hero-stats { display: flex; gap: 2.5rem; margin: 2rem 0; }
.hero-stats .stat b { display: block; font-size: 1.9rem; color: var(--color-primary); font-weight: 800; line-height: 1.1; }
.hero-stats .stat span { font-size: var(--text-sm); color: var(--color-text-muted); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); }

/* 首页整图背景 banner */
.hero--banner {
  min-height: 82vh; display: flex; align-items: center; padding: 0;
  background-image: url("../assets/img/banner_01.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: #fff;
}
.hero--banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,.28) 100%);
}
.hero--banner .container { position: relative; z-index: 1; width: 100%; }
.hero--banner .hero-text { max-width: 760px; }
.hero--banner .hero-badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(2px); }
.hero--banner .hero-badge .dot { background: #fff; }
.hero--banner h1 { color: #fff; }
.hero--banner h1 .accent { color: #ff6b73; }
.hero--banner .hero-lead { color: rgba(255,255,255,.92); max-width: 620px; }
.hero--banner .hero-stats .stat b { color: #fff; }
.hero--banner .hero-stats .stat span { color: rgba(255,255,255,.82); }
.hero--banner .btn-outline { color: #fff; border-color: rgba(255,255,255,.65); }
.hero--banner .btn-outline:hover { background: #fff; color: var(--color-primary-dark); }
.hero-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl); overflow: hidden;
}
.hero-card .hc-head { background: var(--color-primary); color: #fff; padding: 0.9rem 1.2rem; display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.hero-card .hc-body { padding: 1.2rem; }
.hero-card .hc-img { aspect-ratio: 16/10; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fdecee, #fce8ea); display: flex; align-items: center; justify-content: center; color: var(--color-primary); font-weight: 600; }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--color-border); font-size: var(--text-sm); }
.hero-card .hc-row:first-of-type { border-top: none; }
.hero-card .hc-row .v { color: var(--color-primary); font-weight: 700; }

/* 信任条 */
.trustbar { background: var(--color-bg-secondary); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 1.5rem 0; }
.trustbar .trust-label { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 1rem; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; }
.trust-logos .tl { font-weight: 700; color: var(--color-text-muted); font-size: 1.05rem; letter-spacing: 0.5px; opacity: 0.7; transition: opacity var(--duration-fast); }
.trust-logos .tl:hover { opacity: 1; color: var(--color-text); }

/* =========================================================
   通用卡片 / 网格
   ========================================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }

/* 兜底：网格/弹性子项默认 min-width:auto 会被 max-content 撑破，统一允许收缩 */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-auto > *,
.layout-2col > *, .feature-row > *, .footer-grid > *, .form-grid > *,
.news-item > *, .cert-wall > *, .footer-trust > *, .mobile-actionbar > * { min-width: 0; }
.sidebar .side-nav, .table-wrap { min-width: 0; max-width: 100%; }
/* min() 包裹：窄屏时列宽退化为 100%，不会撑破视口 */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--space-6); }

.card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); transition: all var(--duration-normal) var(--ease-out); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-primary-tint); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-primary-tint); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.card h3 { font-size: var(--text-xl); margin-bottom: 0.6rem; }
.card p { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.75; }
.card .card-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1rem; color: var(--color-primary); font-weight: 600; font-size: var(--text-sm); }
.card .card-link:hover { gap: 0.55rem; }

/* 产品/行业 卡片（带图占位）*/
.media-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; transition: all var(--duration-normal) var(--ease-out); }
.media-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.media-card .mc-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #f7f8fa, #eef1f4); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-weight: 600; position: relative; overflow: hidden; }
.media-card .mc-img img { width: 100%; height: 100%; object-fit: cover; }
.media-card .mc-img .badge-no { position: absolute; top: 0.9rem; left: 0.9rem; background: var(--color-primary); color: #fff; font-size: var(--text-xs); padding: 0.2rem 0.6rem; border-radius: var(--radius-full); font-weight: 600; z-index: 1; }
.media-card .mc-body { padding: 1.4rem; }
.media-card .mc-body h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.media-card .mc-body p { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.7; }

/* 特性交替区 */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding: var(--space-10) 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-tag { display: inline-block; padding: 0.25rem 0.8rem; background: var(--color-primary-tint); color: var(--color-primary); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; margin-bottom: 1rem; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; line-height: 1.3; }
.feature-text p { font-size: var(--text-lg); color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.5rem 0; color: var(--color-text-secondary); font-size: var(--text-base); }
.feature-list li::before { content: "✓"; color: var(--color-primary); font-weight: 700; flex-shrink: 0; background: var(--color-primary-tint); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; margin-top: 2px; }
.feature-visual { border-radius: var(--radius-2xl); background: linear-gradient(135deg, #fdecee 0%, #f4f6f9 100%); min-height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--color-border); }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-visual .fv-placeholder { color: var(--color-text-muted); font-weight: 600; text-align: center; padding: 2rem; }

/* =========================================================
   CTA 区
   ========================================================= */
.cta { padding: var(--space-20) 0; background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.88); font-size: var(--text-lg); max-width: 640px; margin: 0 auto 2rem; line-height: 1.8; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   页脚 (底部 4 件套)
   ========================================================= */
.footer { background: var(--color-dark); color: #c2c7cf; padding: var(--space-16) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding-bottom: var(--space-12); }
.footer-brand .logo { margin-bottom: 1.2rem; }
.footer-brand .logo .logo-img { height: 32px; width: auto; max-width: 140px; display: block; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.8; color: #9aa0a8; max-width: 320px; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #c2c7cf; display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); transition: all var(--duration-fast); text-align: center; }
.footer-social a:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: var(--text-sm); font-weight: 700; margin-bottom: 1.1rem; letter-spacing: 0.04em; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: #9aa0a8; font-size: var(--text-sm); transition: color var(--duration-fast); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; color: #9aa0a8; font-size: var(--text-sm); line-height: 1.7; }
.footer-contact li b { color: #fff; font-weight: 600; }

/* 底部版权与认证 */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-8) 0 var(--space-6); }
.footer-trust { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.footer-trust .trust-badge { display: block; height: 52px; border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: transform var(--duration-fast), box-shadow var(--duration-fast); }
.footer-trust .trust-badge:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.footer-trust .trust-badge img { height: 100%; width: auto; display: block; }
.footer-copyright { text-align: center; font-size: var(--text-sm); color: #7a8089; line-height: 1.8; }
.footer-copyright a { color: #9aa0a8; text-decoration: none; }
.footer-copyright a:hover { color: var(--color-primary-light); }

/* =========================================================
   页面通用：面包屑 / 内页 Hero / 侧栏
   ========================================================= */
.page-hero { position: relative; background-color: #111; background-size: cover; background-position: center center; background-repeat: no-repeat; color: #fff; padding: var(--space-24) 0; min-height: 320px; display: flex; align-items: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.68) 100%); z-index: 0; }
.page-hero .container { position: relative; z-index: 1; width: 100%; }
.page-hero .breadcrumb, .page-hero h1, .page-hero p { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; animation: fadeInUp .8s var(--ease-out) both; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: var(--text-lg); max-width: 680px; line-height: 1.8; animation: fadeInUp .8s .15s var(--ease-out) both; }
.page-hero .breadcrumb { animation: fadeInUp .8s .05s var(--ease-out) both; }

/* 联系页地图（使用原站地图截图） */
#map { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); margin-bottom: 2.5rem; }
#map img { width: 100%; height: auto; display: block; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* 侧栏布局（minmax(0,1fr) 防 grid 轨道被 max-content 撑破） */
.layout-2col { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: start; }
.sidebar { position: sticky; top: 96px; min-width: 0; }
.sidebar .side-title { font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.sidebar .side-nav a { display: block; padding: 0.7rem 1rem; border-radius: var(--radius-md); color: var(--color-text-secondary); font-size: var(--text-sm); transition: all var(--duration-fast); border-left: 3px solid transparent; }
.sidebar .side-nav a:hover, .sidebar .side-nav a.active { background: var(--color-primary-tint); color: var(--color-primary); border-left-color: var(--color-primary); font-weight: 600; }

/* 内容排版 */
.prose h2 { font-size: var(--text-2xl); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: var(--text-xl); margin: 1.8rem 0 0.75rem; }
.prose p { color: var(--color-text-secondary); line-height: 1.9; margin-bottom: 1rem; }
.prose ul.check { margin: 1rem 0; }
.prose ul.check li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; color: var(--color-text-secondary); }
.prose ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }
.prose .lead { font-size: var(--text-lg); color: var(--color-text); }

/* 表格（移动端横向滑动）*/
.table-wrap {
  overflow-x: auto; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;         /* iOS 惯性滑动 */
  overscroll-behavior-x: contain;            /* 防连带页面回弹 */
  scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
/* 移动端滑动提示（由 JS 判断是否溢出后添加 .is-scrollable） */
.table-hint { display: none; font-size: var(--text-xs); color: var(--color-text-muted); margin: -0.75rem 0 1rem; }
.table-wrap.is-scrollable + .table-hint { display: none; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.data th, table.data td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
table.data th { background: var(--color-bg-secondary); color: var(--color-text); font-weight: 700; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--color-primary-tint); }
table.data td .yes { color: var(--color-success); font-weight: 700; }
table.data td .no { color: var(--color-text-muted); }

/* 标签 */
.tag { display: inline-block; padding: 0.25rem 0.7rem; background: var(--color-primary-tint); color: var(--color-primary); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; margin: 0.2rem; }

/* 资质证书墙 */
.cert-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1.5rem; }
.cert-wall.honor-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cert-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--duration-normal) var(--ease-out); }
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cert-card .cert-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #faf8f5, #f5f2ec); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.cert-card .cert-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.cert-card:hover .cert-img img { transform: scale(1.05); }
.cert-card .cert-tag { position: absolute; top: .7rem; right: .7rem; background: rgba(0,0,0,.55); color: #fff; font-size: var(--text-xs); padding: .2rem .55rem; border-radius: var(--radius-full); z-index: 1; }
.cert-card .cert-body { padding: 1rem 1.2rem; text-align: center; }
.cert-card .cert-body h4 { font-size: var(--text-base); margin-bottom: 0.3rem; }
.cert-card .cert-body span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* 时间线（历程/新闻）*/
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline .tl-item { position: relative; padding-bottom: 2rem; }
.timeline .tl-item::before { content: ""; position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--color-primary-tint); }
.timeline .tl-item .tl-year { font-weight: 800; color: var(--color-primary); font-size: var(--text-lg); }
.timeline .tl-item h4 { font-size: var(--text-base); margin: 0.2rem 0 0.4rem; }
.timeline .tl-item p { color: var(--color-text-secondary); font-size: var(--text-sm); line-height: 1.7; }

/* 新闻列表 */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }
.news-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: all var(--duration-normal) var(--ease-out); }
.news-item:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary-tint); }
.news-item .n-date { background: var(--color-primary-tint); border-radius: var(--radius-md); padding: 1rem; text-align: center; color: var(--color-primary); }
.news-item .n-date b { display: block; font-size: 1.8rem; line-height: 1; }
.news-item .n-date span { font-size: var(--text-xs); }
.news-item h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.news-item .n-meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: 0.5rem; }
.news-item p { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.7; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.field label .req { color: var(--color-primary); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: var(--text-base); font-family: inherit;
  transition: border-color var(--duration-fast); background: #fff; color: var(--color-text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-tint); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 0.5rem; }
.form-success { display: none; background: #e8f7f0; border: 1px solid #b6e3cd; color: var(--color-success); padding: 1rem 1.2rem; border-radius: var(--radius-md); font-size: var(--text-sm); margin-top: 1rem; }
.form-success.show { display: block; }

/* 信息卡（联系/服务）*/
.info-card { display: flex; gap: 1rem; padding: 1.4rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; }
.info-card .ic-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--color-primary-tint); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.info-card .ic-text h4 { font-size: var(--text-base); margin-bottom: 0.3rem; }
.info-card .ic-text p, .info-card .ic-text a { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.7; }
.info-card .ic-text a:hover { color: var(--color-primary); }

/* FAQ */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin-bottom: 1rem; overflow: hidden; background: #fff; }
.faq-item .faq-q { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 600; color: var(--color-text); transition: background var(--duration-fast); }
.faq-item .faq-q:hover { background: var(--color-bg-secondary); }
.faq-item .faq-q .icon { color: var(--color-primary); font-size: 1.3rem; transition: transform var(--duration-normal); flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-item .faq-a { max-height: 0; overflow: hidden; transition: max-height var(--duration-normal) var(--ease-out); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-item .faq-a p { padding: 0 1.4rem 1.2rem; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.8; }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-slow, 600ms) var(--ease-out), transform var(--duration-slow, 600ms) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* 回到顶部 */
#toTop { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all var(--duration-normal); z-index: 90; }
#toTop.show { opacity: 1; visibility: visible; }
#toTop::before { content: ""; width: 12px; height: 12px; border-top: 2.5px solid #fff; border-right: 2.5px solid #fff; transform: translateY(2px) rotate(-45deg); border-radius: 1px; }
#toTop:hover { background: var(--color-primary-dark); transform: translateY(-3px); }

/* 顶部滚动进度条 */
.scroll-progress { position: fixed; top: 0; left: 0; width: var(--scroll-pct, 0%); height: 3px; background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary)); z-index: 9999; transition: width .05s linear; }

/* 导航下划线动画 */
.nav-links > li > a { position: relative; }
.nav-links > li > a::after { content: ""; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px; background: var(--color-primary); transition: all .25s var(--ease-out); transform: translateX(-50%); }
.nav-links > li.active > a::after, .nav-links > li > a:hover::after { width: 100%; }

/* 卡片图片悬停放大 */
.media-card .mc-img img, .feature-visual img, .hero-visual img { transition: transform .7s var(--ease-out); }
.media-card:hover .mc-img img, .feature-visual:hover img, .hero-visual:hover img { transform: scale(1.05); }

/* 错峰 reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-slow, 600ms) var(--ease-out), transform var(--duration-slow, 600ms) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-group > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 400ms; }
.reveal-group > .reveal:nth-child(7) { transition-delay: 480ms; }
.reveal-group > .reveal:nth-child(8) { transition-delay: 560ms; }
.reveal-group > .reveal:nth-child(9) { transition-delay: 640ms; }

/* 数字滚动占位：动画结束后再显示 */
.hero-stats .stat b { font-variant-numeric: tabular-nums; }

/* banner 视差辅助类 */
.js-parallax { will-change: background-position; }

/* 首页 hero 微动画 */
.hero-badge { animation: fadeInUp .6s var(--ease-out) both; }
.hero h1 { animation: fadeInUp .7s .08s var(--ease-out) both; }
.hero-lead { animation: fadeInUp .7s .16s var(--ease-out) both; }
.hero-buttons { animation: fadeInUp .7s .24s var(--ease-out) both; }
.hero-stats { animation: fadeInUp .7s .32s var(--ease-out) both; }
.hero-visual { animation: fadeIn 1s .2s var(--ease-out) both; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: none; }
}

/* 占位提示条 */
.placeholder-note { background: var(--color-primary-tint); border: 1px dashed var(--color-primary); border-radius: var(--radius-md); padding: 0.9rem 1.2rem; font-size: var(--text-sm); color: var(--color-primary-dark); margin: 1rem 0; }
.placeholder-note b { font-weight: 700; }

/* =========================================================
   移动端抽屉导航：遮罩层 + 抽屉内专属项
   ========================================================= */
.nav-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(15,17,21,0.45);
  opacity: 0; visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out), visibility var(--duration-normal);
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* 抽屉内的移动端专属块（热线 + 报价 CTA），PC 端不显示 */
.nav-mobile-extra { display: none; }

/* =========================================================
   响应式断点体系
   1280 / 1024 / 900 / 768 / 600 / 420  + 横屏 / 触摸 / 降级动效
   ========================================================= */

/* ---------- 超大屏：适度放宽 ---------- */
@media (min-width: 1600px) {
  .container { max-width: 1360px; }
  .hero { padding: var(--space-24) 0 var(--space-32); }
}

/* ---------- 小笔电 / 大平板横屏 ---------- */
@media (max-width: 1280px) {
  .nav-links > li > a { padding: 0 0.6rem; }
  .nav-links { gap: 0.1rem; }
  .feature-row { gap: 2.5rem; }
}

/* ---------- 平板（竖屏 iPad 等） ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-visual { max-width: 520px; margin-left: auto; margin-right: auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 560px; }

  /* 侧栏改为横向滚动标签条（比纵向长列表更省屏） */
  .layout-2col { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .sidebar { position: static; }
  .sidebar .side-nav {
    display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .sidebar .side-nav::-webkit-scrollbar { height: 4px; }
  .sidebar .side-nav::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
  .sidebar .side-nav a {
    white-space: nowrap; border-left: none;
    border: 1px solid var(--color-border); border-radius: var(--radius-full);
  }
  .sidebar .side-nav a:hover, .sidebar .side-nav a.active { border-color: var(--color-primary); }
  .feature-row { gap: 2rem; }
}

/* ---------- 窄平板 / 大手机横屏 ---------- */
@media (max-width: 900px) {
  .nav-links > li > a { padding: 0 0.45rem; font-size: 0.82rem; }
}

/* =========================================================
   ---------- 手机（H5 主战场，≤768px）----------
   ========================================================= */
@media (max-width: 768px) {
  /* 顶部条：隐藏次要信息，仅保留热线（在抽屉与吸底栏中另有入口） */
  .topbar { display: none; }

  /* 关键：移除 backdrop-filter，否则会成为 fixed 定位的包含块，抽屉无法全屏 */
  .navbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-inner { height: 60px; }
  .nav-logo .logo-img { height: 34px; }

  /* 汉堡按钮：触摸目标 ≥44px，层级高于抽屉以便原地关闭 */
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center;            /* 三根线水平居中 */
    width: 44px; height: 44px; position: relative; z-index: 130;
    margin-right: -0.5rem;
    padding: 0;                     /* 去掉内边距，给 3 根线留足空间（否则被压成 0 高） */
  }
  .nav-cta .btn { display: none; }

  /* 右侧抽屉 */
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(84vw, 340px); z-index: 120;
    background: #fff;
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.25rem calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    box-shadow: -8px 0 32px rgba(0,0,0,0.14);
    transform: translateX(100%); visibility: hidden;
    transition: transform 320ms var(--ease-out), visibility 320ms;
  }
  .nav-links.mobile-open { transform: translateX(0); visibility: visible; }
  .nav-links > li > a {
    height: auto; min-height: 48px; padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem; color: var(--color-text); font-weight: 500;
  }
  .nav-links > li.active > a { color: var(--color-primary); font-weight: 700; }
  .nav-links > li > a::after { display: none; }

  /* 抽屉内二级菜单直接展开 */
  .nav-dropdown .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; border-radius: 0;
    padding: 0.25rem 0 0.75rem 0.9rem; min-width: 0;
  }
  .nav-dropdown .submenu a { min-height: 42px; display: flex; align-items: center; }
  .nav-dropdown > a .caret { display: none; }

  /* 抽屉底部：热线 + 报价 CTA */
  .nav-mobile-extra { display: block; padding-top: 1.5rem; }
  .nav-mobile-extra .nme-phone {
    display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: 0.2rem;
  }
  .nav-mobile-extra .nme-num {
    display: block; font-size: 1.35rem; font-weight: 800; color: var(--color-primary);
    margin-bottom: 1rem; letter-spacing: -0.02em;
  }

  /* ----- 内容网格全部单列 ----- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .cert-wall.honor-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: var(--space-8) 0; }
  .feature-row.reverse .feature-text { order: 0; }
  .feature-visual { min-height: 220px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-trust .trust-badge { height: 44px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; }

  /* Hero 数据改栅格，避免 flex 挤压 */
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
  .hero-stats .stat b { font-size: 1.5rem; }
  .hero-stats .stat span { font-size: var(--text-xs); }
  .hero-buttons .btn { flex: 1 1 auto; justify-content: center; }
  .hero { padding: var(--space-12) 0 var(--space-16); }
  .hero-lead { max-width: none; font-size: var(--text-base); }

  /* 信任条 */
  .trust-logos { gap: 0.6rem 1.1rem; }
  .trust-logos .tl { font-size: 0.9rem; }

  /* 新闻列表：日期改横排 */
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; padding: 1.1rem; }
  .news-item .n-date {
    display: inline-flex; align-items: baseline; gap: 0.4rem;
    text-align: left; padding: 0.35rem 0.7rem; width: fit-content;
  }
  .news-item .n-date b { font-size: 1.15rem; }

  /* 区块与内页头部收紧 */
  .section { padding: var(--space-12) 0; }
  .section-sm { padding: var(--space-10) 0; }
  .section-header { margin-bottom: var(--space-8); }
  .section-header p { font-size: var(--text-base); }
  .page-hero { padding: var(--space-10) 0; }
  .footer { padding-top: var(--space-12); }
  .footer-bottom { padding: var(--space-6) 0 var(--space-4); }
  .breadcrumb { flex-wrap: wrap; }

  /* 卡片内边距收紧 */
  .card { padding: var(--space-6); }
  .info-card { padding: 1.1rem; }
  .faq-item .faq-q { padding: 0.95rem 1.1rem; }
  .faq-item .faq-a p { padding: 0 1.1rem 1rem; }
  .faq-item.open .faq-a { max-height: 600px; }

  /* 表单：字号 ≥16px 防 iOS 聚焦自动缩放 */
  .field input, .field textarea, .field select { font-size: 16px; padding: 0.85rem 1rem; }
  .field textarea { min-height: 110px; }

  /* 表格滑动提示 */
  .table-hint { display: block; }

  /* 触摸目标 */
  .footer-col li { margin-bottom: 0.55rem; }
  .footer-col a { display: inline-block; padding: 0.25rem 0; }
  .footer-social a { width: 44px; height: 44px; }

  /* H5 吸底操作栏（mobile-actionbar）已移除：HTML 与样式一并下线 */
  /* 仅保留底部安全区，避免 iPhone 主屏指示条遮挡页脚 */
  body { padding-bottom: env(safe-area-inset-bottom); }

  /* 回到顶部按钮：贴底（吸底栏已移除） */
  #toTop {
    right: 1rem; width: 42px; height: 42px;
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* 右侧悬浮拨号按钮（默认隐藏，H5 显示） */
.mobile-call-fab {
  display: none; position: fixed; right: 1rem; bottom: calc(4.5rem + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(180,35,47,.35); z-index: 99;
  transition: transform var(--duration-fast), background var(--duration-fast);
}
.mobile-call-fab::before {
  content: "✆"; font-size: 1.4rem; line-height: 1; color: #fff;
}
.mobile-call-fab:active { transform: scale(0.94); background: var(--color-primary-dark); }
@media (max-width: 768px) {
  .mobile-call-fab { display: flex; }
}

/* ---------- 小屏手机（≤600px） ---------- */
@media (max-width: 600px) {
  .grid-auto { grid-template-columns: minmax(0, 1fr); }
  .cert-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .cert-card .cert-body { padding: 0.8rem 0.9rem; }
  .cert-card .cert-body h4 { font-size: var(--text-sm); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .cta { padding: var(--space-12) 0; }
  .cta-buttons .btn { width: 100%; }
  .btn-lg { padding: 0.9rem 1.5rem; font-size: var(--text-base); }
  .timeline { padding-left: 1.6rem; }
  .timeline .tl-item::before { left: -1.6rem; width: 13px; height: 13px; }
}

/* ---------- 超小屏（≤420px，如 iPhone SE） ---------- */
@media (max-width: 420px) {
  .hero-stats { gap: 0.5rem; }
  .hero-stats .stat b { font-size: 1.3rem; }
  .cert-wall { grid-template-columns: minmax(0, 1fr); }
  .cert-wall.honor-wall { grid-template-columns: minmax(0, 1fr); }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .nav-logo .logo-img { height: 32px; max-width: 130px; }
  .section-tag { font-size: var(--text-xs); }
}

/* ---------- 手机横屏：压缩纵向留白 ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: var(--space-8) 0 var(--space-10); }
  .page-hero { padding: var(--space-8) 0; }
  .section { padding: var(--space-10) 0; }
  .nav-links { padding-top: 3.5rem; }
  .feature-visual { min-height: 180px; }
}

/* ---------- 触摸设备：去掉悬浮位移，避免"粘滞 hover" ---------- */
@media (hover: none) {
  .card:hover, .media-card:hover, .cert-card:hover,
  .btn-primary:hover, .btn-white:hover, #toTop:hover,
  .footer-social a:hover { transform: none; }
  .nav-dropdown:hover .submenu { opacity: 1; visibility: visible; }
  table.data tr:hover td { background: transparent; }
}

/* ---------- 尊重系统"减少动态效果"偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .navbar, .nav-overlay, #toTop, .cta, .footer-social { display: none !important; }
  body { padding-bottom: 0; color: #000; }
  .card, .media-card, .cert-card { break-inside: avoid; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
}

/* =========================================================
   首页整图 banner / 内页 banner 响应式补充
   ========================================================= */
.hero--banner { padding: 0; }
@media (max-width: 1024px) { .hero--banner { min-height: 78vh; } }
@media (max-width: 600px)  { .hero--banner { min-height: 70vh; } }
@media (max-width: 768px)  { .page-hero { min-height: 240px; padding: var(--space-16) 0; } }
