/* 传佳科技官网 · 样式表
   骨架参考宇树科技：全屏轮播 → 产品网格 → 重大事件 → 新闻 → 页脚
   视觉强化：深空底色 + Teal 光效 + 滚动揭示动画 */

:root {
  --primary: #2e6db4;          /* 传佳蓝（取自 Logo） */
  --primary-2: #5c97de;        /* 传佳蓝·亮 */
  --primary-rgb: 46 109 180;   /* 供半透明叠加使用 */
  --primary-fg: #ffffff;       /* 主色底上的文字色 */
  --ink: #0b0f14;
  --ink-2: #151b24;
  --text: #16191d;
  --text-sub: #5b6470;
  --line: #e8eaee;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --nav-h: 66px;
  --max: 1200px;
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.7; letter-spacing: .2px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.5px; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: var(--primary-fg); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* 顶部滚动进度条 */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: 0 0 12px var(--primary); transition: width .1s linear; }

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s var(--ease);
}
.nav.scrolled { background: #fff; border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 15, 20, .06); }
.nav-inner {
  width: min(var(--max), calc(100% - 40px)); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 32px; width: auto; display: block; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, #1d2733 100%);
  color: var(--primary); font-weight: 900; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 0 0 1px rgb(var(--primary-rgb) / .35), 0 6px 16px rgb(var(--primary-rgb) / .18);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.brand-name i { font-style: normal; font-size: 10px; letter-spacing: 2px; color: var(--text-sub); }
.brand-text.dark .brand-name b { color: #fff; }
.brand-text.dark .brand-name i { color: rgba(255, 255, 255, .5); }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item {
  position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 600; color: #23282f;
  border-radius: 8px; transition: color .2s, background .2s;
}
.nav-item::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-item:hover { color: #000; }
.nav-item:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--primary-fg);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 18px rgb(var(--primary-rgb) / .32); transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(var(--primary-rgb) / .45); }

/* 大菜单 */
.mega {
  position: absolute; left: 0; right: 0; top: var(--nav-h); background: #fff;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(11, 15, 20, .12);
  max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
  transition: max-height .35s var(--ease), opacity .25s;
}
.mega.open { max-height: 78vh; opacity: 1; pointer-events: auto; overflow-y: auto; }
.mega-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 28px 0 34px; }
.mega-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.mega-cat-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-sub); margin-bottom: 12px; }
.mega-cat-items { display: flex; flex-direction: column; gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; transition: background .2s; }
.mega-item:hover { background: var(--bg-soft); }
.mega-thumb { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); flex: 0 0 auto; }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-txt b { display: block; font-size: 14px; font-weight: 700; }
.mega-txt i { font-style: normal; font-size: 12px; color: var(--text-sub); }

.nav-burger { display: none; width: 38px; height: 34px; border: 0; background: none; padding: 7px 6px; }
.nav-burger span { display: block; height: 2px; background: #16191d; margin: 4px 0; border-radius: 2px; transition: .25s; }
.nav-drawer {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff;
  border-bottom: 1px solid var(--line); padding: 16px 20px 26px; box-shadow: 0 18px 34px rgba(0, 0, 0, .08);
  max-height: 78vh; overflow-y: auto;
}
.nav-drawer.open { display: block; }
.nav-drawer > a { display: block; padding: 12px 0; font-weight: 700; border-bottom: 1px solid var(--line); }
/* 抽屉遮罩：仅移动端启用 */
.nav-mask { display: none; }
.drawer-head, .drawer-body, .drawer-cta { display: none; }
.drawer-group { padding-top: 10px; }
.drawer-group-title { font-size: 11px; letter-spacing: 1.4px; color: var(--text-sub); font-weight: 800; padding: 10px 0 4px; }
.drawer-sub { display: block; padding: 7px 0 7px 8px; font-size: 14px; color: #3a414b; }

/* ============ Hero 全屏轮播 ============ */
/* ============ 等比图片容器 ============
   图片永远 object-fit:contain —— 不变形、不裁切，和原图同一比例。
   四周剩余空间用同一张图放大+模糊填充，所以不会出现黑边或空挡。 */
.media-fit { position: relative; overflow: hidden; background: var(--bg-soft); }
.mf-fill, .mf-photo { position: absolute; inset: 0; }
.mf-fill {
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.3) brightness(1.04);
  transform: scale(1.24);
}
.mf-photo { width: 100%; height: 100%; object-fit: contain; }
/* 深色底的容器（大图/焦点图）：填充层压暗，避免色块突兀 */
.media-fit.dark { background: var(--ink); }
.media-fit.dark .mf-fill { filter: blur(30px) saturate(1.25) brightness(.6); }

.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .9s var(--ease);
}
/* 移动端优先：用手机图（未单独上传时自动回退到电脑图） */
.hero-fill, .hero-photo {
  position: absolute; inset: 0;
  background-image: var(--bgm);
  background-position: center; background-repeat: no-repeat;
}
.hero-fill { background-size: cover; filter: blur(34px) saturate(1.35) brightness(.62); transform: scale(1.26); }
.hero-photo { background-size: contain; }
@media (min-width: 861px) {
  .hero-fill, .hero-photo { background-image: var(--bg); }
}
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 14, .55) 0%, rgba(6, 10, 14, .1) 35%, rgba(6, 10, 14, .72) 100%); }
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}
.hero-copy { position: absolute; left: 0; right: 0; top: 26vh; text-align: center; padding: 0 24px; }
.hero-title, .hero-sub, .hero-link { opacity: 0; transform: translateY(28px); }
.hero-title { transition: opacity .7s var(--ease) .12s, transform .7s var(--ease) .12s; }
.hero-sub { transition: opacity .7s var(--ease) .3s, transform .7s var(--ease) .3s; }
.hero-copy.show .hero-title, .hero-copy.show .hero-sub { opacity: 1; transform: none; }
.hero-copy.show .hero-link { opacity: 1; transform: none; transition: opacity .6s var(--ease) .45s, transform .6s var(--ease) .45s, background .25s, border-color .25s, color .25s; }
.hero-copy.show .hero-link:hover { transform: translateY(-2px); }
/* 详情页等静态场景直接显示，不依赖滚动 */
body[data-page="product"] .hero-copy, body[data-page="news"] .hero-copy { opacity: 1; }
.hero-title {
  font-size: clamp(32px, 5.2vw, 64px); font-weight: 900; color: #fff; letter-spacing: 1px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
}
.hero-sub { margin-top: 18px; font-size: clamp(15px, 1.7vw, 24px); font-weight: 600; color: rgba(255, 255, 255, .86); letter-spacing: 2px; }
.hero-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  padding: 12px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
  transition: all .25s var(--ease);
}
.hero-link:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); transform: translateY(-2px); }
.hero-link .arrow { transition: transform .25s; }
.hero-link:hover .arrow { transform: translateX(4px); }
.hero-note { position: absolute; left: 20px; bottom: 18px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 92px;
  border: 0; background: rgba(0, 0, 0, .12); color: #fff; font-size: 34px; line-height: 1;
  transition: all .3s var(--ease); z-index: 5; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(0, 0, 0, .62); }
.hero-arrow.left { left: 0; border-radius: 0 10px 10px 0; }
.hero-arrow.right { right: 0; border-radius: 10px 0 0 10px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button {
  width: 26px; height: 4px; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: .3s;
}
.hero-dots button.on { background: var(--primary); width: 44px; box-shadow: 0 0 12px var(--primary); }
.hero-scroll { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 12px; z-index: 4; }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(11px); } }

/* ============ 通用 section ============ */
.section { padding: 92px 0; position: relative; }
.sec-head { margin-bottom: 46px; }
.sec-head.center { text-align: center; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--primary); margin-bottom: 12px; }
.sec-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; }
.sec-head.light .sec-title { color: #fff; }
.sec-sub { margin-top: 12px; color: var(--text-sub); font-size: 15px; }
.sec-head.light .sec-sub { color: rgba(255, 255, 255, .6); }
.sec-more { font-size: 14px; font-weight: 700; color: var(--text-sub); border-bottom: 1px solid transparent; }
.sec-more:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* 滚动揭示 */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ 产品 ============ */
.sec-products { background: var(--bg); }
/* 单行横向滑动轨道：一行最多 4 张，多出的左右滑 */
.prod-scroller { position: relative; }
.prod-grid {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none;
}
.prod-grid::-webkit-scrollbar { display: none; }
.prod-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.prod-arrow {
  position: absolute; top: 38%; z-index: 3; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer; user-select: none;
  box-shadow: 0 8px 22px rgba(11, 15, 20, .12);
  transition: opacity .25s, transform .25s, color .25s, border-color .25s;
}
.prod-arrow:hover { color: var(--primary); border-color: rgb(var(--primary-rgb) / .5); transform: scale(1.06); }
.prod-arrow.prev { left: -20px; }
.prod-arrow.next { right: -20px; }
.prod-arrow.is-off { opacity: 0; pointer-events: none; }
.prod-scroller.no-scroll .prod-arrow { opacity: 0; pointer-events: none; }
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(11, 15, 20, .14); border-color: transparent; }
.prod-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.prod-media img { transition: transform .55s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.07); }
.prod-shine {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: linear-gradient(115deg, transparent 40%, rgb(var(--primary-rgb) / .18) 50%, transparent 60%);
}
.prod-card:hover .prod-shine { opacity: 1; }
.prod-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.prod-title { font-size: 19px; font-weight: 800; }
.prod-sub { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--primary); }
.prod-desc { margin-top: 10px; font-size: 13.5px; color: var(--text-sub); line-height: 1.65; }
.prod-more { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.prod-more i { font-style: normal; transition: transform .25s; }
.prod-card:hover .prod-more { color: var(--primary); }
.prod-card:hover .prod-more i { transform: translateX(5px); }

/* ============ 核心技术（深色） ============ */
.sec-tech { background: var(--ink); color: #fff; overflow: hidden; }
.tech-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 20% 0%, rgb(var(--primary-rgb) / .16), transparent 70%),
              radial-gradient(700px 340px at 85% 100%, rgba(0, 160, 255, .12), transparent 70%);
}
.sec-tech .wrap { position: relative; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech-card {
  position: relative; padding: 28px 24px 30px; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.tech-card:hover { transform: translateY(-6px); border-color: rgb(var(--primary-rgb) / .5); background: linear-gradient(160deg, rgb(var(--primary-rgb) / .12), rgba(255, 255, 255, .02)); }
.tech-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--primary); background: rgb(var(--primary-rgb) / .12); border: 1px solid rgb(var(--primary-rgb) / .25); }
.tech-icon svg { width: 26px; height: 26px; }
.tech-metric { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; }
.tech-metric b { font-size: 34px; font-weight: 900; color: var(--primary); letter-spacing: -.5px; }
.tech-metric i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .55); }
.tech-title { margin-top: 12px; font-size: 17px; font-weight: 800; }
.tech-desc { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .58); line-height: 1.7; min-height: 46px; }
.tech-line { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); opacity: 0; transition: opacity .35s; }
.tech-card:hover .tech-line { opacity: 1; }

/* ============ 重大事件 ============ */
.sec-event { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; }
.event-bg.media-fit { position: absolute; inset: 0; background: var(--ink); }
.event-bg .mf-fill { filter: blur(30px) saturate(1.25) brightness(.58); }
.event-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 8, 12, .82) 0%, rgba(4, 8, 12, .35) 55%, rgba(4, 8, 12, .1) 100%); }
.event-copy { position: relative; width: min(var(--max), calc(100% - 48px)); padding: 90px 0; color: #fff; }
.event-tag { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--primary); border: 1px solid rgb(var(--primary-rgb) / .45); background: rgb(var(--primary-rgb) / .1); }
.event-title { margin-top: 16px; font-size: clamp(28px, 4.2vw, 52px); font-weight: 900; letter-spacing: 1px; }
.event-desc { margin-top: 12px; max-width: 520px; color: rgba(255, 255, 255, .72); font-size: 15px; }

.btn-ghost {
  display: inline-block; margin-top: 26px; padding: 11px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff; border: 1px solid rgba(255, 255, 255, .55);
  transition: all .25s var(--ease);
}
.btn-ghost:hover { background: #fff; color: #0b0f14; transform: translateY(-2px); }
.btn-solid {
  display: inline-block; padding: 12px 28px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 800; color: var(--primary-fg); cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 26px rgb(var(--primary-rgb) / .3); transition: transform .2s, box-shadow .2s;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgb(var(--primary-rgb) / .45); }

/* ============ 新闻 ============ */
.sec-news { background: var(--bg-soft); }
.news-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; }
.news-lead {
  background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s;
}
.news-lead:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11, 15, 20, .12); }
.news-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.news-cover { aspect-ratio: 16 / 9; }
.news-cover img { transition: transform .6s var(--ease); }
.news-lead:hover .news-cover img { transform: scale(1.06); }
.news-info { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.news-title { margin-top: 8px; font-size: 20px; font-weight: 800; line-height: 1.45; }
.news-sum { margin-top: 12px; font-size: 14px; color: var(--text-sub); line-height: 1.75; }
.news-more { margin-top: auto; padding-top: 18px; font-size: 13.5px; font-weight: 700; }
.news-lead:hover .news-more { color: var(--primary); }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  display: flex; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.news-item:hover { transform: translateX(6px); box-shadow: 0 14px 30px rgba(11, 15, 20, .1); border-color: transparent; }
.news-item-thumb { width: 108px; height: 76px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.news-item-txt { flex: 1; min-width: 0; }
.news-item-txt h4 { font-size: 15px; font-weight: 700; margin-top: 4px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-item-txt p { margin-top: 6px; font-size: 13px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ============ 关于 ============ */
.sec-about { background: #fff; }
.about-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-img { border-radius: 18px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 26px 60px rgba(11, 15, 20, .16); }
.about-img { aspect-ratio: 10 / 7; }
.about-badge {
  position: absolute; left: -22px; bottom: -22px; background: var(--ink); color: #fff;
  padding: 16px 22px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  border: 1px solid rgb(var(--primary-rgb) / .3);
}
.about-badge b { display: block; font-size: 17px; font-weight: 800; }
.about-badge span { font-size: 10px; letter-spacing: 2.5px; color: var(--primary); }
.about-desc { margin-top: 16px; font-size: 15px; color: var(--text-sub); line-height: 1.9; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 26px; }
.stat { padding: 16px 14px; border-radius: 12px; background: var(--bg-soft); text-align: center; }
.stat b { display: block; font-size: 26px; font-weight: 900; color: var(--ink); }
.stat span { font-size: 12px; color: var(--text-sub); }
.about-timeline { border-left: 2px solid var(--line); padding-left: 20px; }
.about-timeline li { position: relative; padding: 8px 0; display: flex; gap: 14px; align-items: baseline; }
.about-timeline li::before {
  content: ''; position: absolute; left: -26px; top: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / .18);
}
.about-timeline i { font-style: normal; font-weight: 800; font-size: 14px; color: var(--primary); flex: 0 0 46px; }
.about-timeline span { font-size: 14px; color: #3a414b; }

/* ============ 合作伙伴 ============ */
.sec-partners { background: var(--bg-soft); }
.partner-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner-cell {
  height: 92px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; color: #4a525d; font-weight: 700; font-size: 14px;
  filter: grayscale(1); opacity: .78; transition: .3s var(--ease);
}
.partner-cell:hover { filter: none; opacity: 1; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 15, 20, .1); }

/* ============ 联系我们 ============ */
.sec-contact { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.contact-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 300px at 10% 20%, rgb(var(--primary-rgb) / .18), transparent 70%),
              radial-gradient(600px 320px at 90% 80%, rgba(0, 130, 255, .14), transparent 70%);
}
.contact-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.sec-title.light { color: #fff; }
.contact-sub { margin-top: 12px; color: rgba(255, 255, 255, .6); }
.contact-info { margin-top: 30px; }
.contact-info li { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-info span { flex: 0 0 62px; font-size: 13px; color: rgba(255, 255, 255, .45); }
.contact-info b { font-weight: 700; font-size: 15px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field > label { display: block; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .55); margin-bottom: 7px; letter-spacing: .5px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05); color: #fff; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .25s, background .25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus, .field textarea:focus { border-color: var(--primary); background: rgb(var(--primary-rgb) / .07); }
.contact-form .btn-solid { grid-column: 1 / -1; justify-self: start; }
.form-tip { grid-column: 1 / -1; font-size: 13px; min-height: 20px; color: var(--primary); }

/* ============ 页脚 ============ */
.footer { background: #070a0e; color: rgba(255, 255, 255, .7); padding: 64px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 3fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-slogan { margin-top: 18px; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 2px; }
.footer-contact { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer-col h4 { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-col li { padding: 5px 0; }
.footer-col a { font-size: 13px; color: rgba(255, 255, 255, .55); transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.footer-icp a { color: rgba(255, 255, 255, .65); text-decoration: none; transition: color .2s; }
.footer-icp a:hover { color: var(--primary); }
.footer-admin { margin-left: auto; color: rgba(255, 255, 255, .35); }
.footer-admin:hover { color: var(--primary); }

/* ============ 详情页 ============ */
.detail { padding: calc(var(--nav-h) + 60px) 0 80px; background: #fff; }
.detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.detail-media { border-radius: 18px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 26px 60px rgba(11, 15, 20, .14); }
.detail-media { aspect-ratio: 1 / 1; }
.detail-copy h1 { font-size: clamp(28px, 4vw, 44px); }
.detail-sub { margin-top: 10px; font-weight: 700; color: var(--primary); }
.detail-desc { margin-top: 16px; color: var(--text-sub); line-height: 1.9; }
.detail-copy .btn-solid, .detail-copy .btn-ghost { margin-top: 24px; margin-right: 12px; }
.detail-copy .btn-ghost { color: #16191d; border-color: var(--line); }
.detail-copy .btn-ghost:hover { color: #fff; background: var(--ink); }
.article { max-width: 820px; margin: 0 auto; }
.article h1 { font-size: clamp(24px, 3.4vw, 38px); margin: 10px 0 22px; }
.article-cover { border-radius: 14px; overflow: hidden; margin-bottom: 26px; }
.article-cover { aspect-ratio: 16 / 8; }
.article-body { font-size: 16px; line-height: 2; color: #33383f; }
.article-body p { margin-bottom: 16px; }
.article-body h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 30px 0 14px; color: #16191d; }
.article-body h3 { font-size: clamp(17px, 2.2vw, 21px); margin: 24px 0 12px; color: #16191d; }
.article-body img { max-width: 100%; border-radius: 10px; margin: 14px 0; }
.article-body blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--primary); background: var(--bg-soft); color: var(--text-sub); border-radius: 0 10px 10px 0; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 26px; }
.article-body li { margin-bottom: 8px; list-style: revert; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; line-height: 1.8; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-soft); font-weight: 700; color: #16191d; white-space: nowrap; }
.article-body strong, .article-body b { font-weight: 700; color: #16191d; }
.article-body video { max-width: 100%; border-radius: 10px; margin: 14px 0; background: #000; }
.article-body .rte-media { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 16px 0; border-radius: 10px; overflow: hidden; background: #000; }
.article-body .rte-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article .btn-ghost { margin-top: 30px; color: #16191d; border-color: var(--line); }

/* ============ 面包屑 / 列表 / 404 ============ */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sub); margin-bottom: 18px; flex-wrap: wrap; }
.crumb a { color: var(--text-sub); }
.crumb a:hover { color: var(--primary); }
.crumb i { font-style: normal; color: #c4c9d0; }
.crumb span { color: var(--text); font-weight: 600; }
.list-title { font-size: clamp(28px, 4.4vw, 44px); margin: 6px 0 30px; }
.detail-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.news-archive { display: grid; gap: 16px; margin-top: 8px; }
.news-archive-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.news-archive-item:hover { border-color: var(--primary); box-shadow: 0 14px 34px rgba(11, 15, 20, .09); transform: translateY(-2px); }
.news-archive-thumb { border-radius: 10px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 10; }
.news-archive-txt h3 { font-size: 17px; margin: 6px 0 6px; }
.news-archive-txt p { font-size: 14px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-nav { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.article-more { width: 100%; border-top: 1px solid var(--line); padding-top: 22px; }
.article-more h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-sub); letter-spacing: 1px; }
.article-more li { border-bottom: 1px dashed var(--line); }
.article-more li a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 15px; font-weight: 600; }
.article-more li a:hover { color: var(--primary); }
.article-more li i { font-style: normal; font-size: 13px; color: var(--text-sub); font-weight: 400; flex: 0 0 auto; }
.nf { text-align: center; }
.nf-code { display: block; font-size: 84px; font-weight: 900; color: var(--line); letter-spacing: 4px; line-height: 1; }
.nf .detail-btns { justify-content: center; }
.archive-grid { margin-top: 10px; }

/* ============ 产品详情页 · 亮点 / 参数 / 图文 ============ */
.detail-body { padding: 26px 0 80px; }
.p-sec { margin-bottom: 58px; }
.p-sec:last-child { margin-bottom: 0; }
.p-sec-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 24px; position: relative; padding-left: 16px; }
.p-sec-title::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--primary-2)); }
.p-hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.p-hl { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.p-hl:hover { border-color: var(--primary); box-shadow: 0 14px 34px rgba(11, 15, 20, .09); transform: translateY(-2px); }
.p-hl h4 { font-size: 16px; margin-bottom: 6px; }
.p-hl p { font-size: 14px; color: var(--text-sub); }
.p-specs table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.p-specs tr:nth-child(odd) { background: var(--bg-soft); }
.p-specs th, .p-specs td { text-align: left; padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-specs tr:last-child th, .p-specs tr:last-child td { border-bottom: 0; }
.p-specs th { font-weight: 700; width: 220px; color: var(--text); }
.p-specs td { color: var(--text-sub); }
.p-content { margin-top: 0; }
.p-content img { border-radius: 10px; margin: 14px 0; }
@media (max-width: 720px) {
  .p-specs th { width: 110px; }
  .detail-body { padding-bottom: 56px; }
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 移动端：平板 / 竖屏 ---------- */
@media (max-width: 860px) {
  .nav-menu, .nav-cta { display: none; }
  /* 触控目标不小于 44px */
  .nav-burger { display: block; margin-left: auto; width: 44px; height: 44px; padding: 12px 10px; }
  .section { padding: 62px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .about-wrap, .contact-wrap, .detail-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-badge { left: 12px; bottom: -16px; }
  .event-mask { background: linear-gradient(180deg, rgba(4, 8, 12, .5), rgba(4, 8, 12, .8)); }
  .event-copy { padding: 64px 0; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-template-columns: 1fr; }
  .news-archive-item { grid-template-columns: 170px 1fr; gap: 14px; }

  /* 抽屉菜单：右侧滑入 + 遮罩 */
  .nav-drawer {
    display: block; position: fixed; top: 0; right: 0; left: auto; bottom: 0;
    width: min(86vw, 340px); max-height: none; padding: 0; z-index: 950;
    background: #fff; box-shadow: -18px 0 48px rgba(0, 0, 0, .18);
    transform: translateX(102%); transition: transform .32s var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav-drawer.open { transform: none; }
  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h); padding: 0 18px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: #fff; z-index: 2;
  }
  .drawer-close { width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--text); }
  .drawer-body { display: block; padding: 8px 18px calc(28px + env(safe-area-inset-bottom)); }
  .drawer-body > a { display: block; padding: 14px 0; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
  .drawer-group { padding-top: 14px; }
  .drawer-group-title { font-size: 11px; letter-spacing: 1.4px; color: var(--text-sub); font-weight: 800; padding: 12px 0 2px; }
  .drawer-sub { display: block; padding: 11px 0 11px 8px; font-size: 15px; color: #3a414b; }
  .drawer-cta {
    display: block; margin-top: 22px; text-align: center; padding: 13px;
    border-radius: 999px; font-weight: 700; color: var(--primary-fg);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
  }
  .nav-mask {
    display: block; position: fixed; inset: 0; z-index: 940; background: rgba(6, 10, 14, .48);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .nav-mask.open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  /* 移动端触控：按钮更高、输入 16px 防 iOS 自动缩放 */
  .hero-arrow { width: 38px; height: 64px; font-size: 24px; }
  .hero-link { padding: 13px 26px; }
  .btn-solid, .btn-ghost { padding: 13px 26px; min-height: 44px; }
  .field input, .field textarea { font-size: 16px; }
}

/* ---------- 移动端：手机 ---------- */
@media (max-width: 560px) {
  :root { --nav-h: 58px; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { width: calc(100% - 32px); gap: 12px; }
  .brand-name i { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .partner-wall { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .news-item-thumb { width: 84px; height: 62px; }
  .section { padding: 52px 0; }
  .sec-head { margin-bottom: 32px; }

  /* Hero：用 svh/dvh 规避手机地址栏伸缩导致的高度跳动 */
  .hero { height: 100vh; height: 100svh; min-height: 480px; }
  .hero-copy { top: 27vh; padding: 0 22px; }
  .hero-title { letter-spacing: .5px; font-size: clamp(26px, 8vw, 38px); }
  .hero-sub { margin-top: 14px; letter-spacing: 1px; font-size: 15px; }
  .hero-note { font-size: 11px; left: 16px; right: 16px; bottom: 58px; }
  .hero-dots { bottom: 22px; }
  .hero-scroll { display: none; }
  .hero-arrow { width: 34px; height: 56px; font-size: 20px; opacity: .7; }

  .prod-card { border-radius: 12px; }
  .news-archive-item { grid-template-columns: 1fr; gap: 12px; }
  .about-timeline li { flex-wrap: wrap; }
  .detail { padding: calc(var(--nav-h) + 34px) 0 60px; }
  .article-body { font-size: 15.5px; line-height: 1.95; }
  .nf-code { font-size: 64px; }
  .contact-info li { flex-direction: column; gap: 4px; padding: 11px 0; }
  .contact-info span { flex: none; }
  .detail-btns .btn-solid, .detail-btns .btn-ghost { flex: 1 1 auto; text-align: center; }
  .footer { padding: 48px 0 calc(20px + env(safe-area-inset-bottom)); }
  .footer-bottom { gap: 10px; }
  .footer-admin { margin-left: 0; }
}

/* ---------- 触屏设备：去掉依赖 hover 的位移 ---------- */
@media (hover: none) {
  .prod-card:hover, .tech-card:hover, .partner-cell:hover { transform: none; }
  .prod-card:hover .prod-media img { transform: none; }
  .hero-arrow { background: rgba(0, 0, 0, .28); }
}

/* ---------- 无障碍 / 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 打印 ---------- */
@media print {
  .nav, .scroll-progress, .hero-arrow, .hero-dots, .hero-scroll, .footer-admin { display: none !important; }
  .section { padding: 20px 0; }
}
