/* =========================================================================
   极瞬芯 / 极渺科技 官网 — 设计系统 (Design System)
   升级版样式：响应式、Design Token、无 jQuery 依赖
   主品牌色沿用 #d82128（中国红），兼容 IIS 8.5 / 静态 HTML
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* 品牌色 */
  --c-primary: #d82128;
  --c-primary-dark: #b1181e;
  --c-primary-light: #f7e3e4;
  --c-accent: #1f6feb;

  /* 中性色 */
  --c-ink: #1a1d24;
  --c-text: #333740;
  --c-text-soft: #5b626e;
  --c-text-mute: #8a909c;
  --c-border: #e6e8ec;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fa;
  --c-bg-deep: #11151c;

  /* 排版 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, Menlo, monospace;

  /* 圆角 / 阴影 / 间距 */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(17, 21, 28, 0.08);
  --shadow: 0 8px 24px rgba(17, 21, 28, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 21, 28, 0.14);
  --maxw: 1200px;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.25; font-weight: 700; margin: 0 0 .6em; }

p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark {
  background: linear-gradient(160deg, #11151c 0%, #1c2330 100%);
  color: #e8ebf0;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px;
  color: var(--c-primary); font-weight: 700; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--c-text-soft); font-size: 17px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn__arrow { transition: transform 0.22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand__name { font-weight: 800; font-size: 19px; color: var(--c-ink); letter-spacing: .5px; }
.brand__name small { display: block; font-size: 11px; font-weight: 500; color: var(--c-text-mute); letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--c-text); position: relative;
}
.nav a:hover { color: var(--c-primary); background: var(--c-primary-light); }
.nav a.has-child { display: flex; align-items: center; gap: 4px; }
.nav .chev { font-size: 10px; opacity: .6; }
.nav a.active { color: var(--c-primary); }
.nav .lang { margin-left: 8px; border: 1px solid var(--c-border); }
.nav .lang:hover { background: var(--c-primary-light); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-ink); margin: 5px 0; transition: .3s var(--ease); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .2s var(--ease);
}
.dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a { display: block; padding: 9px 14px; border-radius: 8px; }
.dropdown__menu a:hover { background: var(--c-bg-soft); }

/* ---------- Hero / Banner ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-bg-deep); }
.hero__slides { position: relative; min-height: 560px; }
.hero__slide {
  position: absolute; inset: 0; min-height: 560px; display: flex; align-items: center;
  color: #fff; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,14,20,.86) 0%, rgba(11,14,20,.55) 55%, rgba(11,14,20,.2) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 620px; }
.hero__tag {
  display: inline-block; font-size: 13px; letter-spacing: 2px; font-weight: 700;
  color: #fff; background: rgba(216,33,40,.85); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; margin-bottom: 18px; }
.hero p { font-size: 18px; color: #d7dcea; margin-bottom: 28px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: .3s; }
.hero__dots button.is-active { background: var(--c-primary); width: 28px; border-radius: 6px; }

/* ---------- Stats bar ---------- */
.stats { background: var(--c-primary); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; text-align: center; }
.stats__num { font-size: 34px; font-weight: 800; line-height: 1; }
.stats__label { font-size: 14px; opacity: .9; margin-top: 8px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-light);
  color: var(--c-primary); display: grid; place-items: center; font-size: 24px; font-weight: 800; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--c-text-soft); font-size: 15px; margin: 0; }
.card__link { margin-top: auto; padding-top: 18px; color: var(--c-primary); font-weight: 600; font-size: 14px; }
.card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.card--dark p { color: #b9c0cc; }

/* ---------- Product / feature blocks ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature--rev .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.feature h3 { font-size: 24px; }
.feature .kicker { color: var(--c-primary); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.feature ul.ticks { margin-top: 16px; }
.feature ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--c-text-soft); }
.feature ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-primary);
  font-weight: 800; background: var(--c-primary-light); width: 18px; height: 18px;
  border-radius: 50%; display: grid; place-items: center; font-size: 11px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); }
table.tbl thead th { background: var(--c-bg-soft); color: var(--c-ink); font-weight: 700; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .hl { color: var(--c-primary); font-weight: 600; }

/* ---------- Case studies ---------- */
.case { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: .25s var(--ease); }
.case:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case__media { height: 200px; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 24px; }
.case__tag { font-size: 12px; color: var(--c-primary); font-weight: 700; }
.case__body h3 { font-size: 18px; margin: 8px 0 12px; }
.case__body p { color: var(--c-text-soft); font-size: 14px; }
.case__meta { font-size: 13px; color: var(--c-text-mute); margin-top: 14px; border-top: 1px solid var(--c-border); padding-top: 12px; }

/* ---------- Breadcrumb ---------- */
.crumb { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); font-size: 14px; color: var(--c-text-mute); }
.crumb .container { padding: 14px 24px; }
.crumb a:hover { color: var(--c-primary); }

/* ---------- Page hero (inner pages) ----------
   洁净室实拍图独立成纯图带：完整展示、不压文字、不加遮罩；
   标题/描述/面包屑移到下方白底文字区，h1 与 SEO 完整保留。
   图带 180px + 文字区 190px = 370px，所有内页高度一致。 */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 370px;
  padding: 0;
  background: #fff;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
/* 纯图带：洁净室完整通透，无文字、无遮罩 */
.page-hero::before {
  content: "";
  flex: 0 0 180px;
  align-self: stretch;
  background: #eef1f5 url("../img/20260601141854.jpg") center 42% / cover no-repeat;
}
/* 图带下沿的品牌红渐隐细线，作为图与文字区的分隔 */
.page-hero::after {
  content: "";
  position: absolute;
  top: 180px; left: 0; right: 0;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg, var(--c-primary) 0, rgba(216, 33, 40, 0) 60%);
}
/* 白底文字区：垂直居中，高度不被文案行数影响 */
.page-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.page-hero h1 { color: var(--c-ink); font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; max-width: 900px; }
/* 描述最多 2 行；放宽宽度避免末尾只剩一两个字的孤行 */
.page-hero p:not(.article-meta) {
  color: var(--c-text-soft); font-size: 16px; max-width: 700px; margin: 0;
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.field label .req { color: var(--c-primary); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm); background: #fff; color: var(--c-text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-light);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: var(--c-primary); font-size: 13px; min-height: 16px; }
.form-note { font-size: 13px; color: var(--c-text-mute); margin-top: 8px; }
.form-ok { background: #e9f7ef; border: 1px solid #b7e4c7; color: #1a7f43; padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 18px; }

/* ---------- Contact info cards ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.info-card__ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary); display: grid; place-items: center; font-size: 20px; }
.info-card h4 { margin: 0 0 4px; font-size: 15px; color: var(--c-text-mute); font-weight: 600; }
.info-card p { margin: 0; font-size: 16px; color: var(--c-ink); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-primary); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 24px; }

/* ---------- Sidebar widgets (floating) ---------- */
.floatbar { position: fixed; right: 18px; bottom: 90px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.floatbar a {
  width: 46px; height: 46px; border-radius: 12px; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--c-primary); font-size: 20px; transition: .2s;
}
.floatbar a:hover { background: var(--c-primary); color: #fff; transform: translateY(-3px); }
.totop { cursor: pointer; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--c-bg-deep); color: #b9c0cc; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: #b9c0cc; display: block; padding: 5px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__brand img { height: 40px; margin-bottom: 16px; }
.footer__brand p { font-size: 14px; color: #99a2b0; max-width: 320px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #7e8794; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer__bottom a { display: inline; color: #7e8794; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-border); padding: 12px 16px;
    gap: 2px; transform: translateY(-120%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 12px 10px; }
  .nav .lang { margin: 6px 0 0; text-align: center; }
  .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .nav-toggle { display: block; }
  .feature, .feature--rev .feature__media { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-grid, .info-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .hero__slides { min-height: 480px; }
  .hero__slide { min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 内页 Hero / 文章 / 新闻列表 ---------- */
/* .page-hero 的背景与配色统一在上方定义，此处只处理面包屑与文章，避免重复覆盖 */
.crumb { display: inline-block; color: var(--c-primary); font-size: 13px; margin-bottom: 10px; }
.crumb:hover { text-decoration: underline; }
/* hero 内的"返回"链接：亮底上用品牌色，并去掉独立面包屑条的灰底与边框 */
.page-hero .crumb { background: none; border-bottom: 0; color: var(--c-primary); }
.page-hero .crumb:hover { color: var(--c-primary-dark); }
/* 提高特异性，避免被 .page-hero p 覆盖 */
.page-hero p.article-meta { color: var(--c-text-mute); font-size: 14px; margin-top: 4px; }
.article { max-width: 820px; line-height: 1.9; font-size: 16px; color: var(--c-ink); }
.article p { margin: 0 0 18px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.news-list { display: grid; gap: 22px; }
.news-card { display: grid; grid-template-columns: 240px 1fr; gap: 22px; background: #fff;
  border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; transition: .25s var(--ease); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card__media { display: block; min-height: 160px; background-size: cover; background-position: center; }
.news-card__body { padding: 18px 20px 18px 0; }
.news-card__date { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.news-card__body h3 { margin: 8px 0 8px; font-size: 18px; line-height: 1.4; }
.news-card__body h3 a:hover { color: var(--c-primary); }
.news-card__body p { color: var(--c-ink-soft); margin: 0 0 12px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 640px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card__media { min-height: 180px; }
  .news-card__body { padding: 0 18px 18px; }
  /* 窄屏下图带略矮，文字区留出更多空间；各页高度仍一致 */
  .page-hero { min-height: 330px; }
  .page-hero::before { flex-basis: 140px; }
  .page-hero::after { top: 140px; }
  .page-hero .container { min-height: 190px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 14px; }
}

/* ---------- 产品/案例网格卡片 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: .25s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.pcard__media { display: block; min-height: 190px; background-size: cover; background-position: center; }
.pcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__cat { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.pcard__body h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.pcard__body h3 a:hover { color: var(--c-primary); }
.pcard__body p { color: var(--c-ink-soft); margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

/* ---------- 表单提交结果提示 ---------- */
.form-result { margin-top: 18px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.form-result.is-ok { background: #eafaf0; color: #1e7e34; }
.form-result.is-err { background: #fdeaea; color: #c0392b; }
