/* ============================================================
   明驭未来官网 · version-b
   风格：浅色极简编辑风（白/米白底、墨色正文、深岩蓝强调色）
   纯静态，无框架依赖
   ============================================================ */

:root {
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --ink: #1B1B18;
  --ink-soft: #3D3D38;
  --muted: #6E6E66;
  --line: #E4E1D6;
  --line-dark: #CFCABC;
  --accent: #1F6CEB;          /* 品牌蓝：取自 logo（#2470F0 微调加深保证对比度） */
  --accent-soft: #EAF2FD;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --maxw: 1080px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* 锚点跳转时为粘性页头留出空间 */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: inline-block; vertical-align: middle; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- 页头 / 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* 滚动后：细微底边线加深 + 轻微背景模糊 */
.site-header.scrolled {
  background: rgba(251, 250, 246, 0.86);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 无 backdrop-filter 支持时的兜底：更接近实色的背景 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled { background: rgba(251, 250, 246, 0.97); }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark { flex: none; }

.brand-text { line-height: 1.2; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
}
.brand-en {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--accent);
}
.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-nav a { transition: color 0.2s ease, border-color 0.2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

/* 流动等高线背景 canvas（JS 创建，铺满 hero，位于文字与照片之下） */
.contour-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* hero 内容层叠：等高线 canvas(z0) < 照片(z0) < 文字(z2)，文字永不被背景装置遮挡 */
.hero-text { position: relative; z-index: 2; }
.hero-figure { position: relative; z-index: 0; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  max-width: 760px;
}

.hero-def {
  max-width: 720px;
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.hero-def strong { color: var(--ink); }

.hero-sub {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 40px;
}

/* 打字机英文标签（装饰性，aria-hidden） */
.hero-typer {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: -16px 0 34px;
  min-height: 1.4em;
}
.typer-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  background: #1558C9;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--accent-soft); }

/* ---------- 通用区块 ---------- */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}

.sec-no {
  font-family: var(--serif);
  font-size: 3.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  line-height: 1;
  flex: none;
  position: relative;
  padding-bottom: 9px;
}
.sec-no::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: 0.02em;
}

.sec-lede {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 48px;
}

.section-body { margin-top: 40px; }

/* ---------- 战略定位 ---------- */
.positioning {
  max-width: 780px;
}
.positioning p {
  margin-bottom: 18px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.positioning p strong { color: var(--ink); }

/* ---------- 三大挑战 ---------- */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.challenge {
  padding: 38px 34px 34px;
  border-left: 1px solid var(--line);
  transition: background 0.2s ease;
}
.challenge:first-child { border-left: none; }
.challenge:hover { background: var(--bg); }
/* 图标牌：挑战卡 / 优势条目共用（品牌蓝 + 浅蓝底方牌，与编辑风的锐利直角一致） */
.icon-chip {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.icon-chip svg { width: 24px; height: 24px; display: block; }

.challenge-icon { margin-bottom: 20px; }
.challenge h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.challenge p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 0;
}

.value-note {
  margin-top: 48px;
  padding: 22px 28px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  line-height: 1.9;
}
.value-note strong { color: var(--ink); }

/* ---------- 产品矩阵 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

/* hover / 键盘聚焦时：上浮 4px + 顶部强调色细线扫入 */
.product-card::before, .mission-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}
.product-card:hover, .product-card:focus-within,
.mission-card:hover, .mission-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-dark);
}
.product-card:hover::before, .product-card:focus-within::before,
.mission-card:hover::before, .mission-card:focus-within::before {
  transform: scaleX(1);
}

.product-tag {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.product-field { margin-bottom: 16px; }
.product-field:last-child { margin-bottom: 0; }

.product-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 4px;
}

.product-field p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---------- 核心优势 ---------- */
.advantage-list { list-style: none; }

.advantage {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.advantage:first-child { border-top: none; padding-top: 8px; }

.advantage-icon { margin-top: 2px; }

.advantage h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.advantage p {
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 820px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { transition: color 0.2s ease; }
.faq-item summary:hover, .faq-item summary:focus-visible { color: var(--accent); }

.faq-icon {
  flex: none;
  transition: transform 0.2s ease;
  color: var(--accent);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 4px 26px;
  max-width: 780px;
  color: var(--ink-soft);
  line-height: 1.95;
}
.faq-answer strong { color: var(--ink); }

/* ---------- 愿景使命 ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.mission-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mission-card .product-tag { margin-bottom: 12px; }
.mission-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.mission-card p { color: var(--ink-soft); line-height: 1.9; }

.closing-note {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.95;
  font-size: 0.98rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #191B1F;
  color: #B9BCC2;
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2C2F35;
  margin-bottom: 28px;
}

.footer-brand .brand-name { color: #F2F1EC; }
.footer-brand .brand-en { color: #7C8087; }
.footer-qr {
  display: block;
  width: 120px;
  height: 120px;
  margin-top: 14px;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid #2C2F35;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.85;
  max-width: 380px;
}

.footer-col .footer-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: #7C8087;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: #B9BCC2;
  font-size: 0.93rem;
}
.footer-col a:hover { color: #fff; }

.footer-contact {
  font-size: 0.93rem;
  line-height: 2;
}
.footer-contact a { color: #E8E6DF; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #7C8087;
  line-height: 1.8;
}
.footer-compliance { max-width: 620px; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 22px 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: var(--line-dark);
}
.breadcrumb li:last-child::after { content: ""; margin: 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); }

/* ---------- 研究洞察列表页 ---------- */
.page-head {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}
.page-head p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.insight-list { list-style: none; }

.insight-card {
  display: block;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.insight-card:hover { text-decoration: none; }

.insight-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.badge-soon {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.insight-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}
a.insight-card:hover h2 { color: var(--accent); }

.insight-card .excerpt {
  color: var(--ink-soft);
  max-width: 760px;
  line-height: 1.9;
  margin-bottom: 14px;
}

.read-more {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.insight-soon {
  cursor: default;
}
.insight-soon h2 { color: var(--muted); }

/* ---------- 文章页 ---------- */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.article-head { margin-bottom: 40px; }
.article-head h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  margin-bottom: 20px;
  line-height: 1.45;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.88rem;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-meta .author { color: var(--accent); }

.article-body h2 {
  font-size: 1.35rem;
  margin: 48px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-body p {
  margin-bottom: 18px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.article-body p strong, .article-body li strong { color: var(--ink); }

.article-body ul, .article-body ol {
  margin: 0 0 18px 1.4em;
  color: var(--ink-soft);
  line-height: 1.95;
}
.article-body li { margin-bottom: 8px; }

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 26px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  line-height: 1.9;
}

.article-nav {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .sec-no { font-size: 2.2rem; }
  .section-head { align-items: center; }
  .challenge-grid { grid-template-columns: 1fr; }
  .challenge { border-left: none; border-top: 1px solid var(--line); }
  .challenge:first-child { border-top: none; }
  .product-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease,
      visibility 0s linear 0.25s;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  /* 无 JS：菜单始终展开可见，汉堡按钮隐藏 */
  html:not(.js) .site-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  html:not(.js) .nav-toggle { display: none; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav li:first-child { border-top: none; }
  .site-nav a {
    display: block;
    padding: 14px 0;
  }

  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .advantage { grid-template-columns: 48px 1fr; gap: 16px; }
}

/* ---------- 图片与图文分栏 ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-figure img, .section-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-figure figcaption, .section-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.band-figure { margin: 0; }
.band-figure img { width: 100%; height: auto; display: block; }

.page-head-figure { margin-top: 40px; }
.page-head-figure img { width: 100%; height: auto; display: block; }

.insight-card.with-thumb {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.insight-thumb { display: block; overflow: hidden; }
.insight-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  transition: transform 0.45s ease;
}
a.insight-card:hover .insight-thumb img,
a.insight-card:focus-visible .insight-thumb img { transform: scale(1.03); }
.insight-text { display: block; }

.article-cover { margin: 0 0 44px; }
.article-cover img { width: 100%; height: auto; display: block; }
.article-cover figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 12px;
}

@media (max-width: 900px) {
  .hero-grid, .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .insight-card.with-thumb { grid-template-columns: 1fr; gap: 20px; }
  .insight-thumb { max-width: 420px; }
}

/* ---------- 键盘焦点可见（全站统一） ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 滚动入场（html.js 门控：无 JS 时内容默认可见） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 核心优势 · 统计条 ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 30px 0 26px;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
@media (max-width: 560px) {
  .stats-row { gap: 14px; }
  .stat-label { letter-spacing: 0.04em; }
}

/* ---------- 文字链接下划线动画 ---------- */
.article-body a, .article-nav a, .breadcrumb a,
.footer-col a, .footer-contact a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.article-body a:hover, .article-nav a:hover, .breadcrumb a:hover,
.footer-col a:hover, .footer-contact a:hover,
.article-body a:focus-visible, .article-nav a:focus-visible,
.breadcrumb a:focus-visible, .footer-col a:focus-visible,
.footer-contact a:focus-visible {
  background-size: 100% 1px;
  text-decoration: none;
}

/* ---------- FAQ 动画容器（JS 注入，包裹答案做高度过渡） ---------- */
.faq-body { /* 高度动画由 WAAPI 内联驱动 */ }

/* ---------- 文章页阅读进度条 ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 返回顶部按钮（JS 门控，超过一屏后淡入） ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease,
    visibility 0s linear 0.3s, background 0.2s ease, color 0.2s ease;
}
html.js .to-top { display: inline-flex; }
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease,
    background 0.2s ease, color 0.2s ease;
}
.to-top:hover, .to-top:focus-visible {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ---------- 减少动态偏好：全部静止 / 直接显示终态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .typer-cursor { animation: none; opacity: 0.6; }
}

/* ============================================================
   GEOFlow 主题化补充（mingyu-2026-a）
   覆盖动态内容：分页 / 搜索 / 标签 / 相关阅读 / 文章页广告位 /
   正文扩展元素（表格、代码、图片）
   ============================================================ */

/* ---------- 分页（Laravel 分页器输出 nav） ---------- */
.pagination-wrap { margin: 40px 0 8px; }
.pagination-wrap nav { display: flex; justify-content: center; }
.pagination-wrap nav > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span[aria-current], .pagination-wrap span[aria-disabled] {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-size: 0.9rem; text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pagination-wrap a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination-wrap span[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination-wrap span[aria-disabled] { opacity: 0.45; }
.pagination-wrap nav > div:first-child:not(:only-child) { display: none; } /* 移动端摘要行隐藏，保简洁 */
.pagination-wrap svg { width: 16px; height: 16px; }
.pagination-wrap p { color: var(--muted); font-size: 0.85rem; margin-right: 12px; }

/* ---------- 搜索表单（首页搜索/分类状态） ---------- */
.search-form { display: flex; gap: 10px; max-width: 560px; margin: 48px 0 24px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-dark); background: var(--surface);
  font: inherit; font-size: 0.95rem; color: var(--ink);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-form button {
  height: 44px; padding: 0 22px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s ease;
}
.search-form button:hover { background: #1558C9; }

/* ---------- 文章页：导语 / 标签 / 相关阅读 ---------- */
.article-lede {
  margin: 0 auto 32px; max-width: 720px;
  padding: 20px 26px; background: var(--surface); border-left: 3px solid var(--accent);
  color: var(--ink-soft); line-height: 1.9;
}
.article-tags { margin: 40px auto 0; max-width: 720px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-tag {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 0.82rem;
}
.related-section { padding-top: 8px; }

/* ---------- 正文扩展元素 ---------- */
.article-body img { max-width: 100%; height: auto; display: block; margin: 28px auto; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.article-body h3 {
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
  margin: 36px 0 14px; line-height: 1.5;
}
.article-body h4 { font-size: 1.05rem; color: var(--ink); margin: 28px 0 12px; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 0.92rem; color: var(--ink-soft); background: var(--surface);
}
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.article-body pre {
  margin: 28px 0; padding: 18px 20px; overflow-x: auto;
  background: #23241F; color: #E8E6DE; font-size: 0.88rem; line-height: 1.7;
}
.article-body code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.9em; }
.article-body p code, .article-body li code { background: var(--accent-soft); padding: 1px 6px; color: var(--accent); }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- 文章页吸附广告位（系统配置后启用） ---------- */
.article-sticky-ad {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line-dark);
  box-shadow: 0 8px 30px rgba(27, 27, 24, 0.12);
}
.article-sticky-ad__inner { position: relative; padding: 20px; }
.article-sticky-ad__close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.article-sticky-ad__close:hover { color: var(--ink); }
.article-sticky-ad__badge {
  display: inline-block; padding: 2px 8px; margin-bottom: 10px;
  background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; letter-spacing: 0.05em;
}
.article-sticky-ad__title { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.article-sticky-ad__copy { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.article-sticky-ad__button {
  display: inline-flex; align-items: center; padding: 8px 16px;
  background: var(--accent); color: #fff; font-size: 0.88rem; text-decoration: none;
}
.article-sticky-ad__button:hover { background: #1558C9; text-decoration: none; }
@media (max-width: 900px) {
  .article-sticky-ad { left: 16px; right: 16px; max-width: none; }
}

/* ---------- 页头品牌 Logo（真实公司 logo 替换占位 SVG） ---------- */
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 900px) {
  .brand-logo { height: 40px; }
}
