/* ==========================================================================
   德纬技术官网 · 白底精密仪器风
   无外部字体依赖（国内 Google Fonts 不可用），单文件，约 12KB
   ========================================================================== */

:root {
  --ink: #0e1116;
  --ink-2: #3b424c;
  --muted: #6b7484;
  --line: #e5e8ec;
  --line-2: #f0f2f5;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --accent: #0b5cd5;
  --accent-ink: #0847a6;
  --max: 1180px;
  --r: 2px; /* 仪器风：几乎不用圆角 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: 18px; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec--soft { background: var(--bg-soft); }
.sec--tight { padding: 56px 0; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head .eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.sec-head p { color: var(--muted); margin: 12px 0 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.brand__en { font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; color: var(--ink-2); font-size: 15px; font-weight: 500;
  border-radius: var(--r);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { font-weight: 600; }

.has-menu { position: relative; }
.has-menu > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.menu {
  position: absolute; top: 100%; left: 0; min-width: 208px; padding: 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(14,17,22,.08);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .16s;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { padding: 9px 12px; font-size: 14px; font-weight: 400; }

.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 80px; }
.hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
  padding-bottom: 6px; border-bottom: 2px solid var(--accent);
}
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 17px; color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 指标条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 64px; }
.stat { padding: 26px 24px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat__num small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- 占位图（技术网格 + 幽灵型号，看起来像"待插图"而不是坏图） ---------- */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 16px;
  background-color: #f8f9fb;
  background-image: linear-gradient(rgba(14,17,22,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,17,22,.035) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  border: 1px solid var(--line); color: #9aa3b0;
  font-size: 12.5px; letter-spacing: .02em; line-height: 1.6;
}
.ph::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px dashed #d5dbe3; pointer-events: none;
}
.ph .ghost {
  position: relative; font-size: clamp(24px, 3.4vw, 40px); font-weight: 700;
  color: #e3e8ee; letter-spacing: -.02em; line-height: 1;
}
.ph .cap { position: relative; max-width: 26em; }
.ph--16-10 { aspect-ratio: 16 / 10; }
.ph--16-9  { aspect-ratio: 16 / 9; }
.ph--4-3 { aspect-ratio: 4 / 3; }
.ph--4-5 { aspect-ratio: 4 / 5; }
.ph--1-1 { aspect-ratio: 1 / 1; }

/* ---------- 实拍图 ---------- */
.shot { position: relative; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.shot.ph--4-5 img { object-position: 50% 50%; }

/* ---------- 提示条 ---------- */
.note {
  font-size: 13.5px; line-height: 1.7; color: #46536a;
  background: #f5f8fc; border-left: 2px solid var(--accent);
  padding: 12px 14px; margin: 18px 0 0;
}


/* ---------- 产品分类：菜单分组 / 卡片标签 / 双列卡 ---------- */
.menu__group + .menu__group { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 6px; }
.menu__group span {
  display: block; padding: 8px 12px 2px; font-size: 11px; letter-spacing: .1em;
  color: var(--muted); font-weight: 600;
}
.cards.cards--two { grid-template-columns: repeat(2, 1fr); }
.card__cat {
  font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--accent);
  margin: 0 0 8px; text-transform: uppercase;
}
.shot--contain img { object-fit: contain; background: #fff; padding: 6px; }

/* ---------- 首屏封面（暂无轮播图时的品牌版式） ---------- */
.hero-plate {
  position: relative; border: 1px solid var(--line); aspect-ratio: 4 / 3;
  background-color: #f8f9fb;
  background-image: linear-gradient(rgba(14,17,22,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,17,22,.035) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}
.hero-plate__mark { width: 48px; height: 48px; margin-bottom: 26px; }
.hero-plate__en { font-size: 11px; letter-spacing: .3em; color: var(--accent); font-weight: 700; }
.hero-plate__line {
  margin-top: 12px; font-size: clamp(19px, 2.2vw, 25px); font-weight: 600;
  color: var(--ink); line-height: 1.5; letter-spacing: -.01em;
}
.hero-plate__meta { margin-top: 22px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* ---------- 首屏轮播 ---------- */
.carousel {
  position: relative; border: 1px solid var(--line); background: #f8f9fb;
  overflow: hidden; aspect-ratio: 4 / 3;
}
.carousel .slides { position: absolute; inset: 0; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.carousel .slide.is-active { opacity: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .dots {
  position: absolute; right: 14px; bottom: 12px; display: flex; gap: 8px;
}
.carousel .dots button {
  width: 24px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(14, 17, 22, .22); transition: background .2s;
}
.carousel .dots button.is-active { background: var(--accent); }
.carousel .dots button:hover { background: rgba(14, 17, 22, .45); }

/* 功能块数量为奇数时，最后一块占满整行 */
.features > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- 产品卡 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: #fff; padding: 0 0 28px; display: flex; flex-direction: column; }
.card .ph { border: 0; border-bottom: 1px solid var(--line); }
.card__body { padding: 22px 24px 0; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 6px; }
.card__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.card ul.specs { margin: 0 0 20px; }
.card ul.specs li { font-size: 14px; color: var(--ink-2); padding: 7px 0; border-top: 1px solid var(--line-2); }
.card ul.specs li:first-child { border-top: 0; }
.card__link { margin-top: auto; font-size: 14px; font-weight: 600; }

/* ---------- 特性块 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.feature__idx { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .12em; }
.feature h3 { margin: 10px 0 8px; font-size: 17px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 应用场景（缩略图 + 文字，横向紧凑卡） ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app {
  border: 1px solid var(--line); background: #fff; padding: 20px;
  display: flex; gap: 18px; align-items: flex-start;
}
.app .app__icon {
  width: 84px; height: 84px; flex: none; display: grid; place-items: center;
  background: #f7f9fb; border: 1px solid var(--line); color: var(--accent);
}
.app .app__icon svg { width: 50px; height: 50px; }
.app .ph { width: 84px; height: 84px; flex: none; aspect-ratio: auto; padding: 6px; }
.app .ph::before { inset: 5px; }
.app .ph .cap { font-size: 10px; line-height: 1.3; }
.app__body { padding: 0; }
.app h3 { font-size: 15.5px; margin-bottom: 5px; }
.app p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- 产品详情 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; color: #c3c9d2; }

.pd { padding: 40px 0 0; }
.pd .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.pd h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.pd__lead { font-size: 16.5px; color: var(--muted); margin-bottom: 26px; }
.kv { border-top: 1px solid var(--line); }
.kv div { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.kv dt { color: var(--muted); width: 96px; flex: none; margin: 0; }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }

/* 参数表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.spec caption { text-align: left; padding: 14px 18px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
table.spec th, table.spec td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.spec th { width: 200px; color: var(--muted); font-weight: 500; background: #fcfdfe; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
.tbd { color: #b4bcc7; font-size: 13px; border-bottom: 1px dashed #c9d1da; }

/* ---------- 产品页特性列表 ---------- */
.plist { margin: 12px 0 0; }
.plist li {
  position: relative; padding: 7px 0 7px 16px; font-size: 14.5px; color: var(--ink-2);
  border-top: 1px solid var(--line-2);
}
.plist li:first-child { border-top: 0; }
.plist li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 6px; height: 1.5px; background: var(--accent);
}
.link { font-weight: 600; font-size: 15px; }

/* ---------- CTA 带 ---------- */
.cta { background: var(--ink); color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { color: #fff; }
.cta p { color: #a9b3c0; margin: 8px 0 0; font-size: 15px; }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: #e8ecf1; color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 13px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .desc { color: var(--muted); max-width: 30em; }
.site-footer .bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px;
}


/* ---------- 内容列表 / 文章 ---------- */
.post-list { border-top: 1px solid var(--line); }
.post-item {
  display: flex; gap: 26px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--line-2); color: inherit;
}
.post-item__thumb {
  width: 208px; height: 140px; flex: none; padding: 6px;
  display: grid; place-items: center; border: 1px solid var(--line);
  background-color: #f8f9fb;
  background-image: linear-gradient(rgba(14,17,22,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,17,22,.03) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px;
}
.post-item__thumb svg { width: 100%; height: 100%; }
.post-item__body { flex: 1; min-width: 0; }
.post-item:hover { color: inherit; }
.post-item:hover h3 { color: var(--accent); }
.post-item__meta { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: .02em; }
.post-item h3 { font-size: 19px; margin-bottom: 8px; transition: color .15s; }
.post-item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.article { max-width: 760px; padding-top: 20px; }
.article h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.35; margin-bottom: 14px; }
.article__meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.article__thumb {
  margin: 24px 0 4px; max-width: 460px; padding: 10px;
  border: 1px solid var(--line);
  background-color: #f8f9fb;
  background-image: linear-gradient(rgba(14,17,22,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,17,22,.03) 1px, transparent 1px);
  background-size: 18px 18px, 18px 18px;
}
.article__thumb svg { width: 100%; height: auto; display: block; }
.article__body { padding-top: 8px; }
.article__body p, .article__body li { font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.article__body p { margin: 0 0 1.1em; }
.article__body h3 { margin: 34px 0 10px; font-size: 19px; }
.article__body ul { padding-left: 20px; list-style: disc; margin: 0 0 1.1em; }
.article__body li { margin: 7px 0; }
.article__body strong { color: var(--ink); }
.article__body code {
  font-size: 13.5px; background: var(--bg-soft); padding: 1px 5px;
  border: 1px solid var(--line); color: var(--ink);
}
/* 文章内的参数表：沿用产品页 table.spec，但去掉固定列宽 */
.article__body .table-wrap { margin: 16px 0 1.5em; max-width: 100%; }
.article__body table.spec { font-size: 14px; }
.article__body table.spec th { width: auto; font-weight: 600; color: var(--ink); }
.article__body table.spec thead th { background: var(--bg-soft); color: var(--muted); font-size: 13px; font-weight: 600; }
.article__body table.spec td { color: var(--ink-2); }
.article__meta a.tag:hover { color: var(--accent); border-color: var(--accent); }
.tag {
  display: inline-block; padding: 1px 8px; border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); background: #fcfdfe;
}
@media (max-width: 1100px) {
  .nav a { padding: 10px 9px; font-size: 14px; }
}

/* ---------- 内容页 ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin-bottom: 14px; }
.page-head p { color: var(--muted); max-width: 46em; font-size: 16.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero .grid, .pd .grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .features, .apps, .site-footer .cols { grid-template-columns: 1fr; }
  .cards.cards--two { grid-template-columns: 1fr; }
  .post-item { flex-direction: column; gap: 14px; }
  .post-item__thumb { width: 100%; height: auto; aspect-ratio: 208 / 140; }
  .cards { gap: 1px; }
  .stat { border-right: 0; padding-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .sec { padding: 56px 0; }
  .hero { padding: 40px 0 48px; }
  .hero__lead { font-size: 16px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 32px rgba(14,17,22,.08);
  }
  .nav.is-open a { padding: 12px 8px; border-bottom: 1px solid var(--line-2); }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav-toggle { display: block; }
  .site-header .wrap { gap: 12px; }
  .brand__mark { width: 24px; height: 24px; }
  table.spec th { width: 108px; font-size: 13.5px; }
  table.spec th, table.spec td { padding: 10px 12px; }
  /* 文章里的 4 列以上参数表：宁可横向滑动，也不要挤成一字一行 */
  .article__body table.spec:has(thead th:nth-child(4)) { min-width: 520px; }
}
