/* ============================================================
   常山云数据中心 · 设计系统 v2
   深空科技风：深邃藏蓝 + 电光蓝青渐变，克制的动效
   ============================================================ */

:root {
  --bg: #f5f8fc;
  --bg-soft: #eef3fa;
  --ink: #0d1b2e;
  --ink-2: #45566d;
  --ink-3: #8194ab;
  --line: #e3eaf3;
  --card: #ffffff;
  --navy: #071426;
  --navy-2: #0b2242;
  --brand: #1450f0;
  --brand-2: #38bdf8;
  --grad: linear-gradient(120deg, #2b6cff, #38bdf8);
  --grad-text: linear-gradient(120deg, #2b6cff 20%, #0ea5e9 90%);
  --radius: 14px;
  --shadow: 0 12px 40px -18px rgba(13, 42, 92, .25);
  --shadow-lg: 0 24px 60px -24px rgba(13, 42, 92, .35);
  --header-h: 72px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; }
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.mono { font-family: Consolas, "JetBrains Mono", monospace; }
/* 多行截断（替代模板 truncate，短文本不会误加省略号） */
.clamp-1, .clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.article-pager .clamp-1 { display: inline-block; max-width: 100%; vertical-align: bottom; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 16px; border-radius: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .05em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(43, 108, 255, .65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(43, 108, 255, .75); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
/* 词元工厂 API 入口按钮（外链） */
.btn-api {
  border: 1.5px solid rgba(125, 211, 252, .65); color: #7dd3fc; background: rgba(56, 189, 248, .1);
  backdrop-filter: blur(4px);
}
.btn-api:hover { border-color: #7dd3fc; background: rgba(56, 189, 248, .2); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(13, 42, 92, .35); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 13px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); border-radius: 10px; white-space: nowrap;
}
.main-nav > ul > li > a:hover { color: var(--brand); background: var(--bg-soft); }
.main-nav > ul > li > a.active { color: var(--brand); }
.main-nav > ul > li > a.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 2px; width: 22px; height: 3px; border-radius: 3px; background: var(--grad);
}
.sub-nav {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 170px; background: #fff; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-nav a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.sub-nav a:hover, .sub-nav a.active { background: var(--bg-soft); color: var(--brand); }
.header-tel { text-align: right; flex-shrink: 0; white-space: nowrap; }
/* 词元工厂入口（头部按钮） */
.api-entry {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  color: #7dd3fc; border: 1.5px solid rgba(125, 211, 252, .55);
  background: linear-gradient(120deg, rgba(56, 189, 248, .12), rgba(43, 108, 255, .12));
  transition: all .25s var(--ease); white-space: nowrap;
}
.api-entry:hover {
  color: #fff; border-color: rgba(125, 211, 252, .9);
  background: linear-gradient(120deg, rgba(56, 189, 248, .3), rgba(43, 108, 255, .3));
  box-shadow: 0 8px 22px -8px rgba(56, 189, 248, .5);
}
.nav-extra { display: none; }
.tel-label { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.tel-num { font-size: 17px; font-weight: 800; color: var(--brand); font-family: inherit; }
.nav-toggle { display: none; }

/* ---------- Hero：真实机房光影 ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: #060f1d; min-height: 680px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* 代码生成的机房走廊（矢量静态底图 + 内嵌稀疏动画）：Ken Burns 缓慢推近 */
.hero-photo {
  position: absolute; inset: -4%;
  background: url("/static/img/hero-corridor.svg") center 38% / cover no-repeat;
  animation: kenburns 34s ease-in-out infinite alternate;
  will-change: transform;
}
/* 静态噪点纹理：平铺小图一次性光栅化，零每帧成本（替代原 feTurbulence） */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("/static/img/noise.png") repeat; background-size: 96px 96px;
  opacity: .05; mix-blend-mode: overlay;
}
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.09) translateX(1.6%); }
}
/* Stripe 式大光斑：品牌冷光缓慢漂移（渐变自身羽化，零 blur 滤镜成本） */
.hero-aurora { position: absolute; inset: -20%; }
.hero-aurora::before, .hero-aurora::after {
  content: ""; position: absolute; border-radius: 50%;
}
.hero-aurora::before {
  width: 52%; height: 68%; left: 0; top: 2%;
  background: radial-gradient(closest-side,
    rgba(43, 108, 255, .30) 0%, rgba(43, 108, 255, .16) 38%,
    rgba(43, 108, 255, .06) 62%, transparent 78%);
  animation: aurora-a 22s ease-in-out infinite alternate;
}
.hero-aurora::after {
  width: 46%; height: 62%; right: -2%; top: 14%;
  background: radial-gradient(closest-side,
    rgba(56, 189, 248, .22) 0%, rgba(56, 189, 248, .11) 40%,
    rgba(56, 189, 248, .04) 64%, transparent 80%);
  animation: aurora-b 26s ease-in-out infinite alternate;
}
@keyframes aurora-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(9%, 10%) scale(1.15); } }
@keyframes aurora-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-8%, -6%) scale(.95); } }
/* 精细网格：工程感 */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 197, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
}
/* 顶部中央光束：安静的能量 */
.hero-beam {
  position: absolute; left: 50%; top: -12%; transform: translateX(-50%);
  width: 520px; height: 78%;
  background: linear-gradient(180deg, rgba(125, 211, 252, .16), rgba(125, 211, 252, 0) 78%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(12px);
  animation: beam 9s ease-in-out infinite alternate;
}
@keyframes beam { from { opacity: .55; } to { opacity: 1; } }
/* 遮罩：顶部融入 header、底部融入下一节、中部保证文字可读 */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 29, .76) 0%, rgba(6, 15, 29, .38) 26%, rgba(6, 15, 29, .5) 62%, rgba(8, 20, 38, .96) 100%),
    radial-gradient(ellipse 62% 55% at 50% 42%, rgba(6, 15, 29, .34), transparent 75%);
}
.hero-text { position: relative; z-index: 2; padding: 128px 0 46px; text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .32em;
  color: #a5d8ff; border: 1px solid rgba(165, 216, 255, .28);
  padding: 7px 20px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(10, 30, 55, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #38bdf8; box-shadow: 0 0 10px 2px rgba(56, 189, 248, .8);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 58px); line-height: 1.22; font-weight: 800;
  letter-spacing: .015em; text-shadow: 0 6px 40px rgba(0, 0, 0, .55);
}
.hero h1 .grad { background: linear-gradient(100deg, #9be1ff 0%, #38bdf8 45%, #2b6cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: 16px; color: rgba(214, 235, 255, .85); line-height: 2; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-cta .btn { white-space: nowrap; }
/* 玻璃指标条 */
.hero-metrics {
  position: relative; z-index: 2; margin: 0 auto 56px; width: min(1060px, 94%);
  display: flex; flex-wrap: wrap; justify-content: center;
  background: linear-gradient(120deg, rgba(13, 32, 58, .55), rgba(13, 32, 58, .38));
  border: 1px solid rgba(148, 197, 255, .18); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: 10px 8px;
}
.metric { flex: 1 1 170px; text-align: center; padding: 16px 18px; position: relative; }
.metric + .metric::before {
  content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px;
  background: linear-gradient(rgba(148, 197, 255, 0), rgba(148, 197, 255, .3), rgba(148, 197, 255, 0));
}
.metric strong {
  display: block; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800;
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1.2;
  text-shadow: 0 0 24px rgba(56, 189, 248, .35);
}
.metric strong i { font-style: normal; font-size: .5em; font-weight: 700; color: #a5d8ff; margin-left: 2px; }
.metric span { font-size: 12.5px; color: rgba(190, 219, 255, .62); letter-spacing: .1em; }

/* ---------- 区块通用 ---------- */
.section { padding: 84px 0; }
/* 长页渲染优化：视口外区块跳过布局与绘制 */
.section:not(:first-of-type) { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 52px; position: relative; }
.section-head h2 { display: inline-block; font-size: clamp(24px, 3vw, 34px); letter-spacing: .04em; }
.section-en {
  display: block; margin-top: 6px; font-size: 12px; letter-spacing: .5em;
  color: var(--ink-3); text-transform: uppercase;
}
.section-head::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  background: var(--grad); margin: 18px auto 0;
}
.section-desc { margin-top: 14px; color: var(--ink-2); }
.section-more { font-size: 14px; color: var(--brand); font-weight: 600; }
.section-head .section-more { position: absolute; right: 0; bottom: 0; }

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 18px; color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px -8px rgba(43, 108, 255, .5);
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--ink-2); min-height: 48px; }
.card-more { display: inline-block; margin-top: 16px; font-size: 13.5px; color: var(--brand); font-weight: 600; }

/* ---------- 案例卡片 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.case-grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.case-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-cover { aspect-ratio: 16/9.6; overflow: hidden; background: var(--navy-2); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .case-cover img { transform: scale(1.06); }
.case-cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #0b2242, #123a6b);
}
.case-cover-fallback span { color: rgba(125, 211, 252, .8); font-size: 22px; letter-spacing: .2em; font-weight: 700; }
.case-body { padding: 18px 20px 20px; }
.case-body h3 { font-size: 16.5px; color: var(--ink); line-height: 1.5; }
.case-card:hover .case-body h3 { color: var(--brand); }
.case-body p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.case-body time { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 新闻列表 ---------- */
.news-list { max-width: 880px; margin: 0 auto; }
.news-item {
  display: flex; gap: 26px; padding: 22px 8px; border-bottom: 1px dashed var(--line);
  align-items: baseline; transition: background .25s;
}
.news-item:hover { background: rgba(43, 108, 255, .035); }
.news-item time { flex-shrink: 0; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 16.5px; font-weight: 600; }
.news-item h3 a:hover { color: var(--brand); }
.news-item p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }

/* ---------- 伙伴 ---------- */
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.partner-grid-lg { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.partner-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  height: 84px; display: grid; place-items: center; padding: 14px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
/* 尊重客户：logo 默认全彩展示（灰度只在用户系统偏好下出现） */
.partner-cell img { max-height: 44px; max-width: 100%; object-fit: contain; }
.partner-cell span { font-size: 15px; font-weight: 700; color: var(--ink-2); letter-spacing: .1em; }
/* hover 动态效果：轻微上浮 + 边框点亮 + 扫光（不改变 logo 本身色彩） */
.partner-cell:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgba(43,108,255,.45); background: #fff;
}
.partner-cell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(56,189,248,.14) 50%, transparent 58%);
  transform: translateX(-120%);
}
.partner-cell:hover::after { transform: translateX(130%); transition: transform .7s var(--ease); }
/* 尊重 prefers-reduced-motion：禁扫光与位移 */
@media (prefers-reduced-motion: reduce) {
  .partner-cell, .partner-cell::after { transition: none; }
  .partner-cell:hover { transform: none; }
  .partner-cell:hover::after { transform: none; }
}

/* ---------- 页头横幅 ---------- */
.page-banner {
  background:
    radial-gradient(1200px 300px at 20% -40%, rgba(56,189,248,.25), transparent),
    linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff; padding: 72px 0 60px;
  border-bottom: 3px solid transparent;
  border-image: var(--grad) 1;
}
.page-banner h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .08em; }
.crumbs { margin-top: 14px; font-size: 13px; color: rgba(226, 240, 255, .6); display: flex; gap: 10px; align-items: center; }
.crumbs a:hover { color: var(--brand-2); }

/* ---------- 栏目子导航布局 ---------- */
.layout-sub { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding-top: 56px; padding-bottom: 72px; }
.layout-sub .layout-main { min-width: 0; }
.subnav {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px);
}
.subnav-title {
  background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff;
  font-size: 16px; padding: 16px 20px; letter-spacing: .1em;
}
.subnav a { display: block; padding: 12px 20px; font-size: 14.5px; color: var(--ink-2); border-left: 3px solid transparent; }
.subnav a:hover { color: var(--brand); background: var(--bg-soft); }
.subnav a.active { color: var(--brand); border-left-color: var(--brand); background: var(--bg-soft); font-weight: 600; }
.block-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 28px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.block-head h2 { font-size: 19px; }
.block-head h2 a:hover { color: var(--brand); }
.empty-block {
  background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 60px; text-align: center; color: var(--ink-3);
}

/* ---------- 文章列表行 ---------- */
.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-row {
  display: flex; gap: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.article-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.row-cover { flex-shrink: 0; width: 210px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; }
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-body h2 { font-size: 17px; line-height: 1.5; }
.row-body h2 a:hover { color: var(--brand); }
.row-body p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.row-meta { margin-top: 12px; display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 文章页 ---------- */
.article-page { max-width: 860px; }
.article-head { text-align: center; margin-bottom: 30px; }
.article-head h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.5; }
.article-meta { margin-top: 14px; display: flex; gap: 20px; justify-content: center; font-size: 13px; color: var(--ink-3); }
.article-cover { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.article-content { font-size: 15.5px; color: var(--ink); overflow-wrap: break-word; }
.article-content img { margin: 18px auto; border-radius: 10px; }
.article-content p { margin: 14px 0; }
.article-content strong, .article-content b { color: var(--brand); }
/* ---------- Markdown 排版（.md 文章 / 导入文件渲染） ---------- */
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
  margin: 28px 0 14px; line-height: 1.4; color: var(--navy);
}
.article-content h1 { font-size: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.article-content h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.article-content h3 { font-size: 18.5px; }
.article-content h4 { font-size: 16.5px; }
.article-content h1::before, .article-content h2::before {
  content: ""; display: inline-block; width: 4px; height: .85em; margin-right: 10px;
  border-radius: 2px; background: var(--grad); vertical-align: -2px;
}
.article-content ul, .article-content ol { margin: 14px 0; padding-left: 26px; }
.article-content li { margin: 6px 0; line-height: 1.8; }
.article-content li::marker { color: var(--brand); }
.article-content blockquote {
  margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.article-content blockquote p { margin: 4px 0; }
.article-content code {
  padding: 2px 7px; border-radius: 5px; font-size: .88em;
  background: #eef2f8; color: #b3541e; font-family: Consolas, "Courier New", monospace;
}
.article-content pre {
  margin: 18px 0; padding: 16px 18px; border-radius: 10px;
  background: #0d1b2e; overflow-x: auto; line-height: 1.7;
}
.article-content pre code { padding: 0; background: none; color: #cfe3ff; font-size: 13.5px; }
.article-content table {
  width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--line);
}
.article-content th, .article-content td {
  padding: 10px 14px; border: 1px solid var(--line); text-align: left;
}
.article-content th { background: var(--bg-soft); font-weight: 700; color: var(--navy); }
.article-content tr:nth-child(2n) td { background: #fafbfd; }
.article-content hr { margin: 26px 0; border: none; border-top: 1px dashed var(--line); }
.article-content a { color: var(--brand); }
.article-content a:hover { text-decoration: underline; }
.article-content input[type="checkbox"] { margin-right: 6px; accent-color: var(--brand); }
.article-content .footnote { color: var(--ink-3); font-size: 13px; }
/* 后台编辑器小工具 */
.tool-btn {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font-size: 13px; cursor: pointer; color: var(--ink-2);
  transition: all .2s;
}
.tool-btn:hover { border-color: var(--brand); color: var(--brand); }
.tool-btn.danger:hover { border-color: #d33; color: #d33; }
.fmt-switch { display: inline-flex; gap: 14px; align-items: center; }
.fmt-opt { display: inline-flex; gap: 5px; align-items: center; font-size: 14px; color: var(--ink); }
.fmt-opt input { accent-color: var(--brand); }
.content-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.tool-hint { color: #93a3b8; font-size: 12px; }
.article-pager {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; display: grid; gap: 8px;
}
.article-pager a { color: var(--brand); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.contact-card h3 { font-size: 16px; color: var(--brand); margin-bottom: 10px; letter-spacing: .06em; }
.contact-card p { font-size: 14px; color: var(--ink-2); margin: 6px 0; }
.contact-card a { color: var(--brand); font-weight: 600; }
.contact-form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-title { font-size: 20px; margin-bottom: 22px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label, .form-v label { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.contact-form input, .contact-form textarea, .form-v input, .form-v textarea, .form-v select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 14.5px; font-family: inherit; background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .form-v input:focus, .form-v textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 108, 255, .14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-ok { text-align: center; padding: 30px 10px; }
.form-ok h3 { color: #16a34a; font-size: 22px; margin-bottom: 12px; }
.form-ok p { color: var(--ink-2); margin-bottom: 24px; }

/* ---------- 富文本 ---------- */
.prose { max-width: 900px; margin: 0 auto; font-size: 15.5px; }
.prose p { margin: 14px 0; }
.prose img { margin: 18px auto; border-radius: 10px; }
.prose strong, .prose b { color: var(--brand); }

/* ---------- 愿景/使命/价值观 ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.value-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 18px; color: var(--brand);
  background: linear-gradient(135deg, rgba(43,108,255,.09), rgba(56,189,248,.12));
  border: 1px solid rgba(43,108,255,.18);
}
.value-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--navy); }
.value-card p { font-size: 14px; color: var(--ink-2); }

/* ---------- 404 ---------- */
.err-page { padding: 90px 0 110px; }
.err-code {
  font-size: clamp(90px, 14vw, 160px); font-weight: 900; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err-page h1 { margin: 18px 0 10px; font-size: 22px; }
.err-page .btn { margin-top: 28px; }

/* ---------- 网站地图 ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sitemap-col { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.sitemap-col a:hover { color: var(--brand); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(226, 240, 255, .75); margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 44px;
}
.footer-name { font-size: 19px; color: #fff; letter-spacing: .06em; }
.footer-desc { margin-top: 14px; font-size: 13.5px; line-height: 1.9; color: rgba(226,240,255,.55); }
.footer-contact { margin-top: 18px; font-size: 13.5px; display: grid; gap: 8px; }
.footer-contact span { color: rgba(125, 211, 252, .75); margin-right: 8px; }
.footer-contact a:hover { color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .12em; }
.footer-links { display: grid; gap: 10px; font-size: 13.5px; }
.footer-links a:hover { color: var(--brand-2); }
.footer-traffic li { color: rgba(226,240,255,.55); line-height: 1.8; }
.footer-bar { border-top: 1px solid rgba(125, 211, 252, .12); padding: 18px 0; font-size: 12.5px; color: rgba(226,240,255,.45); }
.footer-bar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bar a:hover { color: var(--brand-2); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer; color: #fff; font-size: 18px;
  background: var(--grad); box-shadow: 0 10px 26px -8px rgba(43, 108, 255, .6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease); z-index: 40;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 滚动浮现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo, .hero-aurora::before, .hero-aurora::after, .hero-beam { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1250px) {
  /* 头部在 821-1250px 区间易溢出：隐藏电话，词元工厂胶囊保留至 900px */
  .header-tel { display: none; }
}
@media (max-width: 1024px) {
  /* 导航 7 项 + 词元工厂胶囊在 ≤1024px 放不下：提前切移动端菜单，消除横向溢出 */
  .api-entry { display: none; }
  .nav-extra { display: block; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; padding: 12px 16px 20px; }
  .main-nav > ul > li > a { padding: 13px 10px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .sub-nav { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 6px 14px; display: none; }
  .has-sub.open .sub-nav { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: all .3s var(--ease); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; padding: 12px 16px 20px; }
  .main-nav > ul > li > a { padding: 13px 10px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .sub-nav { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 6px 14px; display: none; }
  .has-sub.open .sub-nav { display: block; }
  .layout-sub { grid-template-columns: 1fr; }
  .subnav { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 640px; }
  .hero-text { padding-top: 96px; }
  .hero-photo { inset: -2%; }
  .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
  .hero-cta .btn { min-width: 230px; text-align: center; }
  .hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 40px; padding: 6px; }
  .metric { flex: none; padding: 12px 6px; }
  .metric + .metric::before { display: none; }
  .metric strong { font-size: 22px; }
  .news-item { flex-direction: column; gap: 6px; }
  .article-row { flex-direction: column; }
  .row-cover { width: 100%; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
