/* ============================================================
   晶基半导体 — 国内站设计系统 v4
   对标 okmetic.com：Azure Blue 主色 + Signal Yellow 强调色
   字体：系统字体栈（国内访问无外部字体依赖，利于加载与SEO）
   ------------------------------------------------------------
   TOKENS
   --brand-*  蓝色阶（#007ac2 为主色）
   --accent-* 信号黄（CTA / 重点标注）
   --ink-*    冷灰中性色（--ink-50 同时为页面底色）
   ============================================================ */

:root {
  --brand-950: #002b45;
  --brand-900: #003f63;
  --brand-800: #005384;
  --brand-700: #00639e;
  --brand-600: #007ac2;   /* PRIMARY */
  --brand-500: #2e9bd1;
  --brand-400: #5db8db;
  --brand-300: #99ddf7;
  --brand-200: #b8e4f9;
  --brand-100: #d9f0fc;
  --brand-50:  #eef8fe;

  --accent-700: #c9ab00;
  --accent-600: #fedb00;  /* CTA 信号黄 */
  --accent-500: #ffe23d;
  --accent-100: #fff8cc;

  --ink-900: #2f2f2f;
  --ink-700: #545454;

  /* 字体系统：3 级 */
  --fs-title: 28px;    /* H2/大标题 */
  --fs-heading: 20px;  /* H3/卡片标题 */
  --fs-body: 15px;     /* 正文/辅助 */

  --ink-500: #7a7a7a;
  --ink-400: #999999;
  --ink-200: #d0d0d0;
  --ink-100: #e8e8e8;
  --ink-50:  #f4f4f4;
  --white:   #FFFFFF;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(47,47,47,.06);
  --shadow-md: 0 6px 18px rgba(0,58,92,.08);
  --shadow-lg: 0 18px 44px rgba(0,58,92,.14);

  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--ink-50);
  line-height: 1.6;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--brand-950);
  color: var(--brand-300);
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--brand-200); }
.topbar span.dot { margin: 0 10px; opacity: .4; }
.topbar-marquee { overflow: hidden; flex: 1; min-width: 0; }
.topbar-marquee-track {
  display: inline-flex; white-space: nowrap; align-items: center;
  animation: topbarMarquee 60s linear infinite;
}
.topbar-marquee-track span { color: var(--brand-300); font-size: 13px; }
.topbar-marquee-track .td { margin: 0 16px; opacity: .4; }
.topbar-right { flex-shrink: 0; }
@keyframes topbarMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-200);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 36px; width: auto; display: block; }
.logo-img--light { height: 36px; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 10px 14px; font-size: 15px; color: var(--ink-700);
  border-radius: 8px; font-weight: 500;
}
.nav-menu > li > a:hover, .nav-menu > li:hover > a { color: var(--brand-700); background: var(--brand-50); }
.nav-menu .has-sub > a::after { content: "▾"; font-size: 10px; margin-left: 5px; opacity: .6; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-menu li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 12px; font-size: 14px; color: var(--ink-700); border-radius: 6px; }
.dropdown li a:hover { background: var(--brand-50); color: var(--brand-700); }
.dropdown li a small { display: block; color: var(--ink-400); font-size: 12px; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 3px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary { background: var(--accent-600); color: var(--ink-900); border-color: var(--accent-600); }
.btn-primary:hover { background: var(--accent-500); border-color: var(--accent-500); color: var(--ink-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--brand-600); border-color: var(--brand-600); }
.btn-outline:hover { background: var(--brand-600); color: #fff; }
.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { background: var(--brand-100); }
.btn-lg { padding: 14px 30px; font-size: var(--fs-body); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--brand-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; padding: 84px 0 88px;
  background: linear-gradient(120deg, #0b0618 0%, #20103f 32%, #3a1a70 62%, #5f2fa0 100%);
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -180px; width: 600px; height: 600px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 45% 45%, rgba(255,255,255,.20), rgba(95,47,160,0) 62%);
}
.hero::after {
  content: ""; position: absolute; left: -140px; bottom: -220px; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(254,219,0,.18), rgba(95,47,160,0) 66%);
}
.hero-bg {
  position: absolute; top: 0; bottom: 0; right: 0; left: 44%;
  opacity: 0; background-size: cover; background-position: center;
  transition: opacity 2.5s ease;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 14%, #000 34%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 14%, #000 34%);
  filter: saturate(1.07) contrast(1.03);
}
.hero-bg-1 { background-image: url("../images/hero-theme-chiplet.webp"); animation: bgFade 40s infinite; }
.hero-bg-2 { background-image: url("../images/hero-theme-hbm.webp"); animation: bgFade 40s infinite; animation-delay: 8s; }
.hero-bg-3 { background-image: url("../images/hero-theme-cpo.webp"); animation: bgFade 40s infinite; animation-delay: 16s; }
.hero-bg-4 { background-image: url("../images/hero-theme-bumping.webp"); animation: bgFade 40s infinite; animation-delay: 24s; }
.hero-bg-5 { background-image: url("../images/hero-theme-bonding.webp"); animation: bgFade 40s infinite; animation-delay: 32s; }
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.30);
  padding: 5px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 20px; color: var(--brand-100);
}
.hero h1 { font-size: clamp(26px, 2.55vw, 36px); line-height: 1.24; font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent-600); }
.hero-desc { font-size: var(--fs-body); color: var(--brand-100); margin-bottom: 22px; line-height: 1.7; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 60px; min-height: 620px; }
  .hero-copy { max-width: none; }
  .hero-bg {
    left: 0; right: 0; top: auto; bottom: 0; height: 56%;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
  }
}

/* Hero 主标题轮换词 + 背景切换 */
.hero-rotate-word {
  display: inline-grid;
  vertical-align: baseline;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.hero-rotate-word > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(.22em);
  animation: wordSpin 40s infinite;
}
.hero-rotate-word > span:nth-child(2) { animation-delay: 8s; }
.hero-rotate-word > span:nth-child(3) { animation-delay: 16s; }
.hero-rotate-word > span:nth-child(4) { animation-delay: 24s; }
.hero-rotate-word > span:nth-child(5) { animation-delay: 32s; }
@keyframes wordSpin {
  0% { opacity: 0; transform: translateY(.22em); }
  2.5% { opacity: 1; transform: translateY(0); }
  17.5% { opacity: 1; transform: translateY(0); }
  20% { opacity: 0; transform: translateY(-.22em); }
  100% { opacity: 0; transform: translateY(-.22em); }
}
@keyframes bgFade {
  0% { opacity: 0; }
  2% { opacity: 1; }
  20% { opacity: 1; }
  28% { opacity: 0; }
  100% { opacity: 0; }
}

/* Hero 轮换描述 */
.hero-rotate-desc {
  position: relative; height: 1.5em; overflow: hidden;
  font-size: 14px; color: var(--brand-200); max-width: 520px;
  margin-bottom: 28px; line-height: 1.5;
}
.hero-rotate-desc-item {
  display: block; position: absolute; left: 0; top: 0; width: 100%;
  opacity: 0; transform: translateY(8px);
  animation: descFade 40s infinite;
}
.hero-rotate-desc-item:nth-child(2) { animation-delay: 8s; }
.hero-rotate-desc-item:nth-child(3) { animation-delay: 16s; }
.hero-rotate-desc-item:nth-child(4) { animation-delay: 24s; }
.hero-rotate-desc-item:nth-child(5) { animation-delay: 32s; }
@keyframes descFade {
  0% { opacity: 0; transform: translateY(8px); }
  2.5% { opacity: 1; transform: translateY(0); }
  17.5% { opacity: 1; transform: translateY(0); }
  20% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-8px); }
}

.hero p.lead { font-size: 17px; color: var(--brand-200); max-width: 680px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat strong { font-size: var(--fs-title); color: #fff; display: block; font-weight: 800; }
.hero-stats .stat span { font-size: 14px; color: var(--brand-200); }

/* ---------- 通用版块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); }
.section-brand { background: var(--brand-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }

/* 裸露 h2/h3 全局兜底（services 等页面直接在 .container 下使用） */
.section > .container > h2,
.section > .container > h2:first-child { font-size: var(--fs-title); font-weight: 700; color: var(--brand-700); margin-bottom: 22px; letter-spacing: -.3px; }
.section > .container > h3 { font-size: var(--fs-heading); font-weight: 700; color: var(--ink-900); margin-bottom: 16px; }
.feature-body h3 { font-size: var(--fs-heading); font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }

/* 间距 utility：统一替换内联 margin-top */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 44px; }
.section-head .kicker {
  color: var(--brand-600); font-weight: 700; font-size: 14px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: var(--fs-title); font-weight: 700; margin-bottom: 12px; color: var(--brand-700); letter-spacing: -.3px; }
.section-head p { color: var(--ink-500); font-size: var(--fs-body); }

/* 首页「什么是增层」图文左右结构 */
.buildup-intro { grid-template-columns: .92fr 1.08fr; margin-bottom: 30px; align-items: center; }
.buildup-intro .feature-body { text-align: center; }
.buildup-intro .check-list { text-align: left; display: inline-block; }

/* 首页「我们能利用的增层工艺」引导标题（与截面图拉开距离） */
.tech-intro {
  margin: 44px 0 22px;
  max-width: 780px;
}
.tech-intro h3 {
  font-size: var(--fs-heading); font-weight: 700;
  color: var(--ink-900); margin-bottom: 6px;
}
.tech-intro p { color: var(--ink-500); font-size: var(--fs-body); }

/* 晶圆截面示意图 */
.cross-section {
  margin: 0;
  padding: 16px 16px 12px;
  background: linear-gradient(180deg, #fff, #f4faff);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
}
.cross-section svg { display: block; width: 100%; height: auto; }
.cross-section figcaption {
  margin-top: 10px; font-size: 13px; color: var(--ink-500); line-height: 1.6;
}
.cross-section .photo-frame {
  position: relative; max-width: 320px; margin: 0 auto; line-height: 0;
}
.cross-section .photo-frame img {
  width: 100%; height: auto; display: block; border-radius: 8px;
}
.cross-section .tag {
  position: absolute; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-600); color: #fff;
  font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.cross-section--plain {
  background: none; border: none; padding: 0; box-shadow: none;
}
.cross-section--plain figcaption { text-align: center; }
@media (max-width: 900px) {
  .buildup-intro { margin-bottom: 8px; }
}
@media (max-width: 720px) {
  .cross-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cross-section svg { min-width: 560px; }
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.card h3 { font-size: var(--fs-heading); margin-bottom: 10px; color: var(--ink-900); }
.card p { color: var(--ink-500); font-size: var(--fs-body); flex: 1; }
.card .card-link { margin-top: 14px; font-weight: 600; font-size: 14px; }
.card .card-link::after { content: " →"; }

/* 卡片配图（首页业务板块） */
.card.has-thumb { padding: 0; overflow: hidden; }
.card.has-thumb img {
  width: 100%; height: 140px; object-fit: cover; display: block;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-900));
}
.card.has-thumb h3, .card.has-thumb p, .card.has-thumb .card-link { padding-left: 22px; padding-right: 22px; }
.card.has-thumb h3 { padding-top: 18px; }
.card.has-thumb .card-link { padding-bottom: 20px; }

/* 全局动效 — 滚动进入视口时淡入上移（IntersectionObserver 驱动，见 main.js）
   初始隐藏，滚动到才显示；用 animation（而非 transition）避免覆盖卡片的 hover 过渡；
   只动 transform/opacity，GPU 合成不触发重排 */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { animation: revealIn .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
/* 交错延迟：网格内相邻元素错开 60ms，形成流水式进入 */
.reveal-stagger > .reveal:nth-child(2) { animation-delay: .06s; }
.reveal-stagger > .reveal:nth-child(3) { animation-delay: .12s; }
.reveal-stagger > .reveal:nth-child(4) { animation-delay: .18s; }
.reveal-stagger > .reveal:nth-child(5) { animation-delay: .24s; }
.reveal-stagger > .reveal:nth-child(6) { animation-delay: .30s; }
.reveal-stagger > .reveal:nth-child(7) { animation-delay: .36s; }
.reveal-stagger > .reveal:nth-child(8) { animation-delay: .42s; }

/* 卡片悬停动效 */
.card:hover { transform: translateY(-6px) scale(1.01); }
.card.has-thumb:hover img { transform: scale(1.04); }
.card.has-thumb img { transition: transform .35s ease; }

/* 首页信任图带悬停 */
.proof-strip figure { overflow: hidden; border-radius: var(--radius-lg); }
.proof-strip img { transition: transform .4s ease; }
.proof-strip figure:hover img { transform: scale(1.06); }

/* 首页新版 CTA 入口行 */
.entry-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.entry-note { font-size: 14px; color: var(--brand-200); margin-top: 14px; }
@media (max-width: 720px) {
  .entry-row .btn { width: 100%; text-align: center; }
}

/* 首页信任图带 */
.proof-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px;
}
.proof-strip figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.proof-strip img { width: 100%; height: 180px; object-fit: cover; display: block; }
.proof-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(0,20,35,.82)); color: #fff;
  font-size: 13px; font-weight: 600;
}
@media (max-width: 900px) { .proof-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proof-strip img { height: 130px; } }

/* ---------- 特性列表 ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.feature-row.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feature-row.reverse > .feature-media { order: -1; }
.feature-media {
  border-radius: var(--radius-lg); min-height: 260px;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-900));
  display: flex; align-items: center; justify-content: center; color: var(--brand-200);
  font-size: 64px; box-shadow: var(--shadow-lg);
}
.feature-body h2 { font-size: var(--fs-title); font-weight: 800; margin-bottom: 12px; }
.feature-body p { color: var(--ink-500); margin-bottom: 14px; font-size: var(--fs-body); }
.check-list { list-style: none; margin: 12px 0 18px; }
.check-list li { padding: 5px 0 5px 28px; position: relative; color: var(--ink-700); font-size: var(--fs-body); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; background: var(--brand-600); color: #fff;
  border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: #fff; border-radius: var(--radius-lg); padding: 24px 20px;
  border: 1px solid var(--ink-200); position: relative;
}
.step h3 { font-size: var(--fs-heading); margin-bottom: 8px; }
.step p { font-size: var(--fs-body); color: var(--ink-500); }

/* 首页合作流程（6 步）：横向流程图 */
.flow-design { grid-template-columns: 1fr 1fr; margin-bottom: 36px; }
.process-flow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.pf-step {
  flex: 1;
  min-width: 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 18px 10px 16px;
}
.pf-num {
  display: flex;
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  align-items: center;
  justify-content: center;
}
.pf-step h3 { font-size: 15px; font-weight: 700; color: var(--ink-900); margin-bottom: 4px; }
.pf-step p { font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }
.pf-arrow {
  align-self: center;
  flex-shrink: 0;
  color: var(--brand-500);
  font-size: 20px;
  line-height: 1;
}
@media (max-width: 900px) {
  .process-flow { flex-direction: column; gap: 4px; }
  .pf-arrow { transform: rotate(90deg); align-self: center; }
  .pf-step { width: 100%; }
}

/* ---------- 表格 ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14px; }
.spec-table th { background: #fff; color: var(--ink-900); text-align: left; padding: 15px 20px; font-weight: 700; border-bottom: 8px solid var(--brand-600); }
.spec-table td { padding: 14px 20px; border-bottom: 1px solid var(--ink-200); color: var(--ink-700); }
.spec-table tr:nth-child(even) td { background: var(--ink-50); }
.spec-table tr:hover td { background: var(--brand-50); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-500); padding: 16px 0 0; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-600); }

/* ---------- 内容更新日期（GEO 新鲜度信号） ---------- */
.last-updated { font-size: 13px; color: var(--ink-500); margin: 28px 0 0; }
.article-meta { font-size: 13.5px; color: var(--ink-500); margin: 14px 0 0; }

/* ---------- 页面头 ---------- */
.page-hero {
  background:
    linear-gradient(100deg, rgba(0,43,69,.95) 0%, rgba(0,83,132,.80) 100%),
    url("../images/silicon-wafer.webp") center 40% / cover no-repeat;
  color: #fff; padding: 56px 0 48px;
}
.page-hero h1 { font-size: var(--fs-title); font-weight: 800; margin-bottom: 10px; letter-spacing: -.3px; }
.page-hero p { color: var(--brand-200); max-width: 720px; font-size: var(--fs-body); }

/* ---------- 富文本（文章/产品详情） ---------- */
.prose { max-width: 860px; }
.prose h2 { font-size: var(--fs-title); margin: 28px 0 12px; padding-left: 14px; border-left: 4px solid var(--brand-600); }
.prose h3 { font-size: var(--fs-heading); margin: 22px 0 10px; }
.prose p { margin-bottom: 12px; color: var(--ink-700); font-size: var(--fs-body); }
.prose ul, .prose ol { margin: 0 0 12px 22px; color: var(--ink-700); font-size: var(--fs-body); }
.prose li { margin-bottom: 5px; }
.prose strong { color: var(--ink-900); }

/* ---------- FAQ ---------- */
/* 两列布局：10 条问答自动形成每列 5 条 */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-content: start; }
.faq-grid .faq-item { margin-bottom: 0; }
.faq-item { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); margin-bottom: 16px; }
.faq-item summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-body);
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--brand-600); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-500); font-size: var(--fs-body); }
/* 分组式 FAQ 页：组标题与上一组列表之间留出间距 */
.faq-grid + h2 { margin-top: 44px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
  border-radius: var(--radius-lg); padding: 40px 38px; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: var(--fs-title); margin-bottom: 8px; }
.cta-band p { color: var(--brand-100); font-size: var(--fs-body); }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: var(--fs-title); font-weight: 700; color: var(--brand-700); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.form-field label .req { color: #D92D20; }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 14px; border: 1px solid var(--ink-200); border-radius: 8px;
  font-size: 15px; font-family: var(--font); background: var(--ink-50);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px var(--brand-100);
}
.form-note { font-size: 13px; color: var(--ink-400); margin-top: 12px; }

/* ---------- 联系信息卡 ---------- */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-box { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.contact-box .icon { font-size: 28px; margin-bottom: 10px; }
.contact-box h3 { font-size: 16px; margin-bottom: 6px; }
.contact-box p { color: var(--ink-500); font-size: 14.5px; }
.contact-box p strong { color: var(--brand-700); font-size: 16px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background:
    linear-gradient(180deg, rgba(0,32,52,.93) 0%, rgba(0,43,69,.97) 100%),
    url("../images/hero-ginechip-wafer.webp") center 30% / cover no-repeat;
  color: #a9c8d8; margin-top: 56px;
}
.footer-marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,20,36,.45);
}
.footer-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  animation: marquee 32s linear infinite;
  padding: 13px 0;
}
.fm-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9c8d8;
  font-size: 13.5px;
}
.fm-item b { color: #fff; font-weight: 700; }
.fm-ico { color: var(--accent-600); font-weight: 700; }
.fm-dot { color: #5a7d95; margin: 0 22px; opacity: .6; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.footer-main { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding: 40px 0 32px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer-contact { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.footer-contact li { font-size: 14px; line-height: 1.5; display: flex; align-items: baseline; gap: 10px; }
.footer-contact .fc-label { flex: none; color: #fff; opacity: .75; }
.footer-contact a { color: #a9c8d8; }
.footer-contact a:hover { color: var(--brand-300); }
.footer-col h4 { color: #fff; font-size: var(--fs-heading); margin-bottom: 14px; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 600; margin: 14px 0 8px; }
.footer-col h4 a { color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #a9c8d8; font-size: var(--fs-body); }
.footer-col a:hover { color: var(--brand-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: #a9c8d8; }
.footer-credits { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; color: #7d99ab; line-height: 1.7; }
.footer-credits a { color: #a9c8d8; }

/* ---------- 文章列表 ---------- */
.article-card { display: flex; gap: 20px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 22px; transition: box-shadow .15s ease, border-color .15s ease; }
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.article-card .thumb {
  width: 160px; height: 110px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.article-card h2 { font-size: var(--fs-heading); margin-bottom: 8px; }
.article-card h2 a { color: var(--ink-900); }
.article-card h2 a:hover { color: var(--brand-600); }
.article-card p { color: var(--ink-500); font-size: 14.5px; margin-bottom: 10px; }
.article-meta { font-size: 13px; color: var(--ink-400); }
.article-meta span { margin-right: 16px; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.article-nav a { background: var(--ink-50); border: 1px solid var(--ink-200); padding: 14px 20px; border-radius: 10px; font-size: 14px; max-width: 48%; }

.tag { display: inline-block; background: var(--brand-100); color: var(--brand-700); font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-right: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.reverse > .feature-media { order: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 26px; }
  .hero-desc { font-size: 14px; }
  .hero-rotate-desc { font-size: 13px; max-width: 100%; height: 2.2em; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 22px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .article-card .thumb { width: 100%; }
  .cta-band { padding: 32px 24px; }

  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--ink-200); padding: 10px; box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; display: none; }
  .nav-menu li.expanded .dropdown { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* ============================================================
   v2 组件 — 三层业务模型 / AI 应用标签 / 信任数字 / 案例
   ============================================================ */

/* AI 应用标签组 */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; position: relative; z-index: 2; }
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.10); color: #d9f0fc; border: 1px solid rgba(255,255,255,.28);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pill:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-1px); }
.pill-row.on-light .pill { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.pill-row.on-light .pill:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* 三层业务模型卡 */
.layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer-card {
  position: relative; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  padding: 32px 28px 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display: flex; flex-direction: column;
}
.layer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.layer-card .layer-no {
  position: absolute; top: -14px; left: 22px; background: var(--brand-600); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: 1px;
}
.layer-card.strategic .layer-no { background: var(--accent-600); color: var(--ink-900); }
.layer-card h3 { font-size: var(--fs-heading); margin: 8px 0 8px; }
.layer-card .layer-role { font-size: 13px; color: var(--brand-700); font-weight: 600; margin-bottom: 10px; }
.layer-card p { color: var(--ink-500); font-size: var(--fs-body); flex: 1; }
.layer-card ul { list-style: none; margin: 10px 0 14px; }
.layer-card ul li { font-size: var(--fs-body); color: var(--ink-700); padding: 3px 0 3px 18px; position: relative; }
.layer-card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--brand-500); }
.layer-card .card-link { font-weight: 600; font-size: 14px; }
@media (max-width: 980px) { .layer-grid { grid-template-columns: 1fr; } }

/* 信任数字带 */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi-box { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 26px 18px; text-align: center; }
.kpi-box b { display: block; font-size: var(--fs-heading); color: var(--brand-700); font-weight: 800; overflow-wrap: anywhere; word-break: break-word; }
.kpi-box span { font-size: var(--fs-body); color: var(--ink-500); }
.kpi-row--compact { gap: 14px; }
.kpi-row--compact .kpi-box { padding: 16px 12px; }
.kpi-row--compact .kpi-box b { font-size: 17px; }
.kpi-row--compact .kpi-box span { font-size: 13px; }
@media (max-width: 720px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

/* 匿名案例卡 */
.case-card {
  background: #fff; border: 1px solid var(--ink-200); border-left: 4px solid var(--brand-600);
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.case-card .case-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-700); background: var(--brand-100); padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.case-card h3 { font-size: var(--fs-heading); margin-bottom: 8px; }
.case-card p { color: var(--ink-500); font-size: var(--fs-body); }
.case-card .case-result { margin-top: 10px; font-size: var(--fs-body); color: var(--brand-700); font-weight: 600; }

/* 供应链位置示意条 */
.supply-map {
  display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 22px 0;
}
.supply-map .node {
  flex: 1; min-width: 130px; background: var(--ink-50); border: 1px solid var(--ink-200);
  border-radius: 10px; padding: 14px 12px; text-align: center; font-size: 13.5px; color: var(--ink-700);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.supply-map .node b { font-size: 14.5px; color: var(--ink-900); }
.supply-map .node.us {
  background: var(--brand-600); border-color: var(--brand-600); color: #d9f0fc;
  box-shadow: 0 8px 20px rgba(0,122,194,.30);
}
.supply-map .node.us b { color: #fff; }
.supply-map .arrow { align-self: center; color: var(--ink-400); font-weight: 700; }

/* 页面配图 */
.section-figure { margin: 0; }
.section-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-md); background: var(--ink-50);
}
.figure-caption { text-align: center; color: var(--ink-500); font-size: 13.5px; margin-top: 12px; }
.img-band { line-height: 0; }
.img-band img { width: 100%; height: 340px; object-fit: cover; border-radius: 0; border: 0; box-shadow: none; }
@media (max-width: 720px) { .img-band img { height: 200px; } }

/* ---------- 大导航（mega menu，对齐 ginechip.com） ---------- */
.navbar { position: relative; }
.nav-menu > li { position: static; }
.nav-menu > li > a { padding: 10px 12px; font-size: 14.5px; }
.nav-menu .dropdown.mega {
  left: 0; right: 0; top: 100%; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 34px;
  padding: 22px 24px; max-height: 78vh; overflow: auto;
}
.dropdown.mega .mcol { flex: 0 0 auto; min-width: 176px; }
.dropdown.mega .mcol h5 {
  font-size: 12px; font-weight: 700; color: var(--brand-700);
  margin: 0 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--ink-200); white-space: nowrap;
}
.dropdown.mega .mcol ul { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.dropdown.mega .mcol ul a {
  display: block; padding: 6px 9px; font-size: 13.5px; color: var(--ink-700);
  border-radius: 6px; white-space: nowrap; line-height: 1.5;
}
.dropdown.mega .mcol ul a:hover { background: var(--brand-50); color: var(--brand-700); }
.dropdown.mega .mcol h5:not(:first-child) { margin-top: 16px; }
@media (max-width: 1140px) { .nav-cta .btn-outline { display: none; } }

/* ============================================================
   v3 组件 — Tabs：通用切换标签 / 宽表移动端标签化
   ============================================================ */

/* 长内容安全换行，避免规格长串撑破容器 */
.spec-table td, .spec-table th { overflow-wrap: break-word; word-break: break-word; }
.grid > *, .kpi-row > *, .layer-grid > *, .contact-info > *, .footer-main > *,
.feature-row > *, .form-grid > * { min-width: 0; }

/* A. 通用 Tabs（全端生效）：用于参数区多表切换 */
.gtabs { margin-top: 8px; }
.gtab-bar {
  display: flex; gap: 4px; border-bottom: 2px solid var(--ink-200);
  overflow-x: auto; scrollbar-width: none;
}
.gtab-bar::-webkit-scrollbar { display: none; }
.gtab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 12px 22px; font-size: 15px; font-weight: 600; color: var(--ink-500);
  font-family: var(--font); position: relative; white-space: nowrap;
  border-radius: 8px 8px 0 0; transition: color .15s ease, background .15s ease;
}
.gtab:hover { color: var(--brand-700); background: var(--brand-50); }
.gtab.is-active { color: var(--brand-700); }
.gtab.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px;
  background: var(--brand-600); border-radius: 2px;
  animation: tab-ink .22s ease;
}
@keyframes tab-ink { from { transform: scaleX(.2); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.gpanel { display: none; margin-top: 22px; }
.gpanel.is-active { display: block; animation: panel-in .22s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* B. 宽对比表：桌面端保持表格，≤720px 变为标签切换 */
.rt-mobile { display: none; }
.rt-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rt-chips::-webkit-scrollbar { display: none; }
.rt-chip {
  flex: 0 0 auto; appearance: none; font-family: var(--font);
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink-200);
  background: #fff; color: var(--ink-700); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rt-chip:hover { border-color: var(--brand-400); color: var(--brand-700); }
.rt-chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.rt-panel { display: none; margin-top: 14px; }
.rt-panel.is-active { display: block; animation: panel-in .22s ease; }
.rt-row {
  background: #fff; border: 1px solid var(--ink-200); border-radius: 10px;
  padding: 11px 14px; margin-bottom: 8px;
}
.rt-row:nth-child(even) { background: var(--ink-50); }
.rt-row dt { font-size: 12.5px; font-weight: 700; color: var(--brand-700); margin-bottom: 2px; }
.rt-row dd { font-size: 14px; color: var(--ink-700); }
.rt-row dd a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 正文内配图（图文混排） ---------- */
.feature-media.has-img { display: block; background: none; box-shadow: none; min-height: 0; padding: 0; }
.feature-media.has-img img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (min-width: 901px) {
  .feature-media.has-img img { aspect-ratio: 4 / 3; object-fit: cover; }
}
.section-figure { max-width: 900px; margin: 0 auto; }
.article-figure { margin: 28px 0 0; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 720px) {
  .nav-menu .dropdown.mega { display: none; position: static; box-shadow: none; border: none; padding: 6px 0 10px 12px; transform: none; max-height: none; gap: 14px; }
  .nav-menu li.expanded .dropdown.mega { display: grid; grid-template-columns: 1fr; }
  .dropdown.mega .mcol { min-width: 0; }
  .dropdown.mega .mcol ul a { white-space: normal; padding: 5px 8px; }

  /* 宽表移动端标签化：隐藏原表，显示 JS 生成的标签视图 */
  .rt-wrap > table.spec-table { display: none; }
  .rt-mobile { display: block; }
  .kpi-box b { font-size: 25px; }
}

/* ---------- HOW IT WORKS 三环结构 ---------- */
.feature-media.rings-media {
  background: linear-gradient(150deg, var(--brand-50), #fff);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-md);
  padding: 18px;
}
.rings-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* 交叠半透明填充：柔和呼吸 */
.ring-fill { stroke: none; animation: ringBreathe 6s ease-in-out infinite; }
.ring-fill-1 { fill: rgba(0, 122, 194, .12); }
.ring-fill-2 { fill: rgba(93, 184, 219, .16); animation-delay: 1.2s; }
.ring-fill-3 { fill: rgba(0, 83, 132, .12); animation-delay: 2.4s; }

/* 轨道环：浅色细线，提供结构参照 */
.ring-track { fill: none; stroke: var(--brand-100); stroke-width: 2; }

/* 流动光弧：短弧沿环旋转，速度与方向各异 */
.ring-flow {
  fill: none; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 50 566;
  transform-box: fill-box; transform-origin: center;
}
.ring-flow-1 { stroke: var(--brand-500); animation: ringFlow 9s linear infinite; }
.ring-flow-2 { stroke: var(--brand-400); animation: ringFlow 13s linear infinite reverse; animation-delay: -3s; }
.ring-flow-3 { stroke: var(--brand-700); animation: ringFlow 16s linear infinite; animation-delay: -7s; }

/* 中心光晕 + 核心 */
.ring-glow {
  fill: url(#howCoreGlow);
  transform-box: fill-box; transform-origin: center;
  animation: glowPulse 4.5s ease-in-out infinite;
}
.ring-core { fill: var(--accent-600); }

.ring-label { font-size: 15px; font-weight: 700; fill: var(--brand-950); }
.ring-core-label { font-size: 15px; font-weight: 800; fill: var(--ink-900); }

@keyframes ringFlow { to { transform: rotate(360deg); } }
@keyframes ringBreathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes glowPulse {
  0%, 100% { transform: scale(.94); opacity: .72; }
  50% { transform: scale(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  /* 关闭所有无限循环与位移动画（无障碍 + 降低电量/CPU 消耗） */
  .ring-fill, .ring-flow, .ring-glow,
  .hero-bg, .hero-rotate-word > span, .hero-rotate-desc-item,
  .footer-marquee-track { animation: none !important; }
  /* 滚动 reveal 直接显示，不做位移淡入 */
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; animation: none !important; }
  /* 关闭非必要过渡，只保留颜色等即时反馈 */
  .card, .layer-card, .article-card, .dropdown, .btn, .pill, .rt-chip,
  .card.has-thumb img, .proof-strip img { transition: none !important; }
  html { scroll-behavior: auto; }
}

