/* ==========================================================================
   nxlb.com.cn — 单文件设计系统
   依赖：无（浏览器自带字体、<dialog>、<details>）
   ========================================================================== */

/* ── 设计令牌 ── */
:root {
  --brand: #1E7A3F;
  --brand-dark: #155F31;
  --brand-tint: #EDF5EE;
  --ink: #16201A;
  --ink-2: #4C5A51;
  --ink-3: #8B968E;
  --line: #E5EAE6;
  --line-2: #DCE5DE;
  --bg-soft: #F6F8F5;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 32px rgba(16, 26, 19, .09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --sec: clamp(56px, 6.5vw, 96px);
}

/* ── 基础 ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink-2);
  font: 400 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }
[hidden] { display: none !important; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -.15em;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; top: 12px; left: 16px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand); color: #fff;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; margin: 0 auto; }

/* ── 头部 ── */
.site-header {
  position: fixed; top: 12px; left: 50%; z-index: 60;
  transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 32px));
  height: 64px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 12px 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 2px 18px rgba(16, 26, 19, .08);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: #fff; box-shadow: 0 8px 28px rgba(16, 26, 19, .13); }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 9px 17px; border-radius: 999px;
  font-size: 15px; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.site-nav a:hover { background: var(--brand-tint); color: var(--brand); }
.site-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  border-radius: 50%; background: var(--brand-tint);
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }

/* ── 抽屉菜单 ── */
.sheet {
  width: 100%; max-width: none; max-height: 86vh;
  margin: auto 0 0; padding: 0;
  border: 0; border-radius: 20px 20px 0 0;
  background: #fff; color: var(--ink);
  box-shadow: 0 -8px 40px rgba(10, 20, 14, .2);
}
.sheet::backdrop { background: rgba(10, 20, 14, .45); }
.sheet[open] { animation: sheet-in .28s cubic-bezier(.22, .7, .3, 1); }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sheet__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px 24px; }
.sheet__title { font-weight: 600; font-size: 15px; color: var(--ink-3); }
.sheet__nav { display: flex; flex-direction: column; padding: 4px 12px; }
.sheet__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px; border-radius: 12px; font-size: 17px;
}
.sheet__nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.sheet__nav a::after { content: "›"; color: var(--ink-3); font-size: 20px; line-height: 1; }
.sheet__foot {
  display: flex; gap: 24px; margin-top: 8px;
  border-top: 1px solid var(--line);
  padding: 16px 28px calc(20px + env(safe-area-inset-bottom));
  font-size: 14px; color: var(--ink-2);
}
.sheet__foot a { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink);
  transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--brand-tint); color: var(--brand); }

/* ── 通用控件 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 6px; background: var(--brand-tint);
  color: var(--brand); font-size: 12px; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.more:hover { color: var(--brand-dark); }
.more .icon { transition: transform .2s ease; }
.more:hover .icon { transform: translateX(3px); }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs__sep { color: #CBD3CD; }
.crumbs span[aria-current="page"] {
  max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── 首页：首屏 ── */
.hero { padding: 112px 0 56px; background: linear-gradient(180deg, #F3F7F3 0%, #fff 82%); }
.hero__grid > div:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__eyebrow { margin: 0 auto; }
.hero__grid > div:first-child .hero__cta { justify-content: center; }
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center;
  padding: 6px 13px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand);
  font-size: 13px; font-weight: 600;
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.16;
  letter-spacing: -.01em;
}
.hero__lead { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__media {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16, 26, 19, .16);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ── 首页：资质条 / 数据 ── */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 16px 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.trust .icon { color: var(--brand); font-size: 15px; }

.stats { padding: 44px 0; background: var(--bg-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 2px 36px; border-left: 1px solid var(--line-2); text-align: center; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block;
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1;
  color: var(--brand); letter-spacing: -.02em;
}
.stat strong em { margin-left: 4px; font-style: normal; font-size: .46em; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }

/* ── 首页：区块 ── */
.sec { padding: var(--sec) 0; }
.sec--soft { background: var(--bg-soft); }
.sec__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 40px; }
.sec__head h2 { font-size: clamp(24px, 2.8vw, 32px); }
.sec__foot { display: grid; gap: 14px; max-width: 860px; margin-top: 44px; }

.series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.series__card {
  display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.series__card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.series__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.series__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.series__card:hover .series__media img { transform: scale(1.04); }
.series__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; text-align: center; }
.series__body h3 { font-size: 19px; }
.series__body p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.series__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; justify-content: center; }

.base { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.base img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }
.base__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; margin-top: 24px; }
.base__points li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink-2); }
.base__points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.split h3 { margin-bottom: 16px; font-size: 18px; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 15px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: .52em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ccard__media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: var(--radius);
  background: var(--bg-soft);
}
.ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ccard:hover .ccard__media img { transform: scale(1.04); }
.ccard__media .chip { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); }
.ccard h3 { margin-top: 14px; font-size: 17px; line-height: 1.45; text-align: center; }
.ccard:hover h3 { color: var(--brand); }

.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ncard { display: flex; flex-direction: column; text-align: center; }
.ncard__media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-soft);
}
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ncard:hover .ncard__media img { transform: scale(1.04); }
.ncard__media--empty {
  background:
    radial-gradient(circle at 30% 30%, rgba(30, 122, 63, .12), transparent 55%),
    repeating-linear-gradient(135deg, #EDF5EE 0 12px, #E4EFE6 12px 24px);
}
.ncard__meta { margin: 14px 0 8px; font-size: 12.5px; color: var(--ink-3); }
.ncard h3 { font-size: 15.5px; line-height: 1.55; }
.ncard:hover h3 { color: var(--brand); }

/* ── 首页：FAQ ── */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--brand); }
.faq summary {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 22px;
  font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--ink);
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-left: auto;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .25s ease, border-color .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--brand); }
.faq .a { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.faq .a p { margin-top: 14px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }

/* ── 列表页 ── */
.page { padding: 108px 0 var(--sec); }
.page-head { margin-bottom: 28px; text-align: center; }
.page-head h1 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 38px); }
.page-head .crumbs { margin-bottom: 14px; justify-content: center; }
.filters { display: none; gap: 4px; margin-top: 26px; }
.js .filters { display: flex; flex-wrap: wrap; justify-content: center; }
.filters button {
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.filters button:hover { background: var(--brand-tint); color: var(--brand); }
.filters button.is-on { background: var(--brand); color: #fff; }

.grid { display: grid; gap: 34px 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.pcard__link { display: flex; flex-direction: column; height: 100%; text-align: center; }
.pcard__media {
  position: relative; display: block; aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__media .chip { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); }
.pcard h3 { margin-top: 16px; font-size: 18px; }
.pcard:hover h3 { color: var(--brand); }
.pcard p {
  margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nlist { display: grid; }
.nrow:first-child .nrow__link { padding-top: 6px; }
.nrow + .nrow { border-top: 1px solid var(--line); }
.nrow__link {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px; align-items: center;
  padding: 28px 0;
}
.nrow--text .nrow__link { grid-template-columns: minmax(0, 1fr); }
.nrow__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.nrow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nrow__link:hover .nrow__media img { transform: scale(1.04); }
.nrow .meta { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-3); }
.nrow h3 { font-size: 20px; line-height: 1.45; }
.nrow:hover h3 { color: var(--brand); }
.nrow p {
  margin-top: 8px; color: var(--ink-2); font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 正文（新闻 / 集团中心 / 详情） ── */
.article { max-width: 780px; margin: 0 auto; font-size: 16.5px; line-height: 1.9; color: #2C3830; }
.article > h2 { margin: 44px 0 16px; font-size: 24px; }
.article > h3 { margin: 32px 0 12px; font-size: 19px; }
.article > h2:first-child, .article > h3:first-child { margin-top: 0; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--brand); }
.article a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote {
  margin: 24px 0; padding: 14px 20px;
  border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0;
  background: var(--brand-tint); color: var(--ink-2);
}
.article img { border-radius: 10px; }
.article figure { margin: 28px 0; }
.article figure.media { display: flex; justify-content: center; }
.article figure.media img { width: auto; max-height: min(70vh, 620px); }
.media-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin: 28px 0;
}
.media-grid figure { margin: 0; }
.media-grid img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.article img { cursor: zoom-in; }

/* ── 产品 / 案例详情 ── */
.pdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: start; margin-top: 22px; }
.gallery__main {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--bg-soft);
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery__thumbs button {
  width: 74px; height: 74px; padding: 0;
  overflow: hidden; border-radius: 10px; border: 2px solid transparent;
  background: var(--bg-soft);
  transition: border-color .2s ease;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdetail__info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 6px; }
.pdetail__info h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.28; }
.pdetail__lead { color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.pdetail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.divider { max-width: 780px; margin: 64px auto 48px; border: 0; border-top: 1px solid var(--line); }
.related { margin-top: 72px; }
.related h2 { margin-bottom: 28px; font-size: clamp(22px, 2.6vw, 28px); }

/* ── 案例详情（图集为主） ── */
.case-head { display: grid; justify-items: start; gap: 14px; margin: 22px 0 32px; }
.case-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.case-head p { color: var(--ink-2); }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-gallery figure {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-soft); aspect-ratio: 4 / 3;
}
.case-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .5s ease; }
.case-gallery figure:hover img { transform: scale(1.03); }
.case-gallery__lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* ── 新闻详情 ── */
.post-head { margin: 22px 0 36px; }
.post-head h1 { margin: 14px 0 16px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.32; }
.post-meta { display: flex; align-items: center; gap: 18px; font-size: 13.5px; color: var(--ink-3); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, background-color .2s ease;
}
.pager a:hover { border-color: var(--brand); background: var(--brand-tint); }
.pager small { font-size: 12.5px; color: var(--ink-3); }
.pager span {
  font-size: 14.5px; color: var(--ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pager__next { text-align: right; }
.pager__next span { display: block; }

/* ── 404 ── */
.error { display: grid; place-items: center; gap: 14px; padding: 96px 0 120px; text-align: center; }
.error strong { font-size: clamp(64px, 11vw, 116px); line-height: .9; color: var(--brand-tint); font-weight: 700; letter-spacing: -.03em; }
.error h1 { font-size: clamp(22px, 2.6vw, 28px); }
.error p { color: var(--ink-2); }

/* ── 页脚 ── */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 48px 0 32px; }
.footer__contact { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; }
.footer__contact a, .footer__contact button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 300; color: var(--ink-3);
}
.footer__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink); font-size: 19px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer__contact a:hover .footer__icon,
.footer__contact button:hover .footer__icon { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer__copy { text-align: center; font-size: 12.5px; font-weight: 300; color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 14px; font-size: 12.5px; font-weight: 300; color: var(--ink-2); }
.footer__links-title { font-size: 12.5px; font-weight: 300; color: var(--ink-3); letter-spacing: .08em; }
.footer__links a:hover { color: var(--brand); }
.footer__icp { margin-top: 12px; text-align: center; font-size: 12.5px; font-weight: 300; color: var(--ink-3); }
.footer__icp a:hover { color: var(--ink-2); }

/* ── 悬浮按钮 ── */
.fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.fab__btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 20px;
  box-shadow: 0 8px 22px rgba(16, 26, 19, .22);
  transition: background-color .2s ease, opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.fab__btn:hover { background: var(--brand-dark); color: #fff; }
.fab__top { opacity: 0; visibility: hidden; transform: translateY(8px); }
.fab__top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ── 弹层 ── */
dialog.modal {
  width: min(400px, calc(100% - 40px));
  padding: 20px; border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
}
dialog.modal::backdrop, dialog.lightbox::backdrop { background: rgba(8, 16, 11, .62); }
dialog.modal img { width: 100%; max-width: 300px; margin: 8px auto 0; border-radius: 10px; }
.modal__close { position: absolute; top: 10px; right: 10px; }
dialog.lightbox {
  max-width: 94vw; max-height: 94vh; padding: 0; border: 0; background: transparent;
}
dialog.lightbox::backdrop { background: rgba(4, 8, 6, .92); }
dialog.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox .icon-btn { position: fixed; top: 16px; right: 16px; background: rgba(255, 255, 255, .16); color: #fff; }

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .news { grid-template-columns: repeat(2, 1fr); }
  .pdetail { gap: 36px; }
}
@media (max-width: 959px) {
  .site-nav { display: none; }
  .menu-btn { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__grid > div:first-child { align-items: center; text-align: center; }
  .hero { padding: 100px 0 48px; }
  .hero__media { aspect-ratio: 16 / 9; }
  .series, .cases { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .pdetail { grid-template-columns: 1fr; gap: 28px; }
  .pdetail__info { padding-top: 0; }
  .gallery__main { aspect-ratio: 4 / 3; }
  .nrow__link { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
  .stat { padding: 2px 24px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .site-header { top: 8px; width: calc(100% - 16px); height: 56px; padding: 0 8px 0 16px; gap: 12px; }
  .brand img { height: 32px; }
  .page { padding-top: 88px; }
  .hero { padding: 88px 0 40px; }
  .hero__cta .btn { flex: 1; padding: 0 18px; }
  .trust ul { justify-content: center; gap: 8px 20px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .stats { padding: 20px 0; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat {
    display: flex; align-items: baseline; justify-content: center; gap: 12px;
    padding: 14px 0; border-left: 0;
  }
  .stat + .stat { border-top: 1px solid var(--line-2); }
  .stat strong { font-size: 26px; }
  .stat span { margin-top: 0; font-size: 13px; }
  .series, .cases, .grid--3, .news { grid-template-columns: 1fr; }
  .series__media { aspect-ratio: 16 / 10; }
  .nrow__link { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
  .nrow__media { order: -1; aspect-ratio: 16 / 9; }
  .nrow h3 { font-size: 18px; }
  .case-gallery { grid-template-columns: 1fr; gap: 10px; }
  .case-gallery__lead { aspect-ratio: 4 / 3; }
  .article { font-size: 16px; line-height: 1.85; }
  .media-grid { grid-template-columns: 1fr; gap: 12px; }
  .pager { grid-template-columns: 1fr; }
  .pager__next { text-align: left; }
  .base img { aspect-ratio: 4 / 3; }
  .base__points { gap: 10px 24px; }
  .footer { padding: 40px 0 28px; }
  .footer__contact { gap: 28px; }
  .faq summary { padding: 16px 18px; font-size: 15px; }
  .faq .a { padding: 0 18px 18px; }
  .divider { margin: 44px 0 32px; }
  .related { margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
