/* ============================================================
   厦门纬度软件科技有限公司（经纬度数据恢复中心）— 全新前端
   纯原生 H5 + CSS：无框架、无 jQuery、移动优先、响应式
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #d8232a;          /* 品牌红（取自原站 logo） */
  --brand-dark: #a8161d;
  --brand-soft: #fdeeee;

  --ink: #10151f;            /* 深色底 */
  --ink-2: #171e2b;
  --text: #232936;
  --muted: #64707f;
  --line: #e6e8ec;
  --bg: #f5f6f8;
  --card: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 21, 31, .08);
  --shadow-lg: 0 24px 60px rgba(16, 21, 31, .16);

  --container: 1200px;
  --header-h: 72px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
          "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", 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.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(216, 35, 42, .55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 跳转正文（无障碍） */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 8px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- 通用节区块 ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--gray { background: var(--bg); }
.section--dark { background: var(--ink); color: #fff; }

.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand); font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: ""; width: 28px; height: 2px; background: currentColor;
  opacity: .5;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin-top: 10px;
  font-weight: 800;
}
.section-head .sub {
  margin-top: 12px; color: var(--muted);
  max-width: 720px; margin-inline: auto;
}
.section--dark .section-head .sub { color: rgba(255,255,255,.72); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px rgba(216, 35, 42, .35);
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,.45); color: #fff;
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn--outline {
  border: 1.5px solid var(--brand); color: var(--brand); background: transparent;
}
.btn--outline:hover { background: var(--brand-soft); }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16,21,31,.06);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand img { height: 44px; width: auto; }

.main-nav {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  padding: 10px 16px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; color: var(--text);
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.main-nav a.is-active { color: var(--brand); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--brand);
}

.header-tel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 800; font-size: 17px; letter-spacing: .02em;
  transition: background .2s ease, color .2s ease;
}
.header-tel:hover { background: var(--brand); color: #fff; }
.header-tel svg { width: 18px; height: 18px; }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 11px;
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s ease, top .25s ease, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 20px 20px;
}
.mobile-nav a {
  display: block; padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.mobile-nav a.is-active { color: var(--brand); }
.mobile-nav .mobile-tel {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; padding: 13px;
  background: var(--brand); color: #fff; border-radius: 12px;
  font-weight: 800; border-bottom: 0;
}

@media (max-width: 920px) {
  .main-nav, .header-tel { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav.is-open { display: block; }
}

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(10, 14, 22, .92) 8%, rgba(13, 19, 30, .72) 55%, rgba(20, 27, 40, .55)),
    url("/static/upload/2023/03/20/202303207695.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::before { /* 科技网格纹理 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero::after { /* 品牌红光晕 */
  content: ""; position: absolute; right: -180px; top: -120px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,35,42,.28), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 80px);
  max-width: 780px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(216,35,42,.18);
  border: 1px solid rgba(216,35,42,.45);
  color: #ffb9bc; font-size: 13.5px; font-weight: 600; letter-spacing: .08em;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 900; line-height: 1.22; letter-spacing: .01em;
}
.hero h1 em { font-style: normal; color: #ff6b70; }
.hero .hero-desc {
  margin-top: 20px;
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: rgba(255,255,255,.78);
  max-width: 640px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 0 44px;
}
.hero-stats .stat {
  border-left: 2px solid rgba(255,255,255,.22);
  padding-left: 16px;
}
.hero-stats b {
  display: block; font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900; line-height: 1.2;
}
.hero-stats span { color: rgba(255,255,255,.66); font-size: 13.5px; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 内页页头 ---------- */
.page-hero {
  position: relative; color: #fff;
  background:
    linear-gradient(100deg, rgba(10,14,22,.9), rgba(16,22,33,.68)),
    url("/static/upload/2023/03/20/202303204244.jpg") center / cover no-repeat;
  padding: clamp(56px, 8vw, 92px) 0;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; }
.page-hero .breadcrumb {
  margin-top: 12px; color: rgba(255,255,255,.68); font-size: 14px;
}
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ============================================================
   卡片体系
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* —— 服务卡片 —— */
.service-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.service-card {
  position: relative;
  padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(216,35,42,.35);
}
.service-card .icon-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  transition: background .25s ease, color .25s ease;
}
.service-card .icon-badge svg { width: 28px; height: 28px; }
.service-card:hover .icon-badge { background: var(--brand); color: #fff; }
.service-card h3 { margin-top: 18px; font-size: 20px; font-weight: 800; }
.service-card p {
  margin-top: 6px; color: var(--muted); font-size: 14.5px;
}
.service-card ul { margin-top: 14px; display: grid; gap: 7px; }
.service-card ul li {
  position: relative; padding-left: 18px;
  color: var(--text); font-size: 14.5px;
}
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand); opacity: .85;
}
.service-card .card-link {
  margin-top: auto; padding-top: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 700; font-size: 14.5px;
}
.service-card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* —— 可修复故障 —— */
.problem-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.problem-card {
  padding: 22px 22px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s;
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216,35,42,.35);
}
.problem-card .dot {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 900; font-size: 17px;
}
.problem-card h3 { font-size: 16.5px; font-weight: 700; }
.problem-card p { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* —— 服务流程 —— */
.process {
  display: grid; gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  counter-reset: step;
}
.process .step {
  position: relative; text-align: center;
  padding: 28px 16px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
}
.process .step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 16px rgba(216,35,42,.45);
}
.process .step h3 { font-size: 16.5px; font-weight: 700; }
.process .step p { margin-top: 6px; color: rgba(255,255,255,.62); font-size: 13.5px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* —— 优势（USP） —— */
.usp-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.usp-card {
  padding: 26px 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.usp-card .icon-badge {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.usp-card .icon-badge svg { width: 24px; height: 24px; }
.usp-card h3 { font-size: 17px; font-weight: 800; }
.usp-card p { margin-top: 5px; color: var(--muted); font-size: 14px; }

/* —— 案例 —— */
.case-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.case-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card .pic {
  aspect-ratio: 16 / 10; overflow: hidden; background: #e9ebef;
}
.case-card .pic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.case-card:hover .pic img { transform: scale(1.06); }
.case-card .pad { padding: 18px 20px 20px; }
.case-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.case-card .tag {
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 3px 10px; border-radius: 999px;
}
.case-card h3 {
  margin-top: 10px; font-size: 16.5px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case-card p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* —— 资讯列表 —— */
.news-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
}
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex; gap: 18px; padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(216,35,42,.3); }
.news-card .date {
  flex: none; width: 68px; text-align: center;
  border-right: 1px dashed var(--line); padding-right: 14px;
  align-self: stretch;
}
.news-card .date b {
  display: block; font-size: 26px; font-weight: 900; color: var(--brand); line-height: 1.1;
}
.news-card .date span { font-size: 12px; color: var(--muted); }
.news-card .thumb {
  flex: none; width: 128px; border-radius: 10px; overflow: hidden; align-self: center;
  aspect-ratio: 4 / 3; background: #e9ebef;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card h3 {
  font-size: 16.5px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card p {
  margin-top: 6px; color: var(--muted); font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .more {
  margin-top: 8px; color: var(--brand); font-size: 13.5px; font-weight: 700;
}
@media (max-width: 520px) {
  .news-card { flex-wrap: wrap; }
  .news-card .date { border-right: 0; padding-right: 0; text-align: left; }
}

/* ============================================================
   联系我们
   ============================================================ */
.contact-wrap {
  display: grid; gap: 24px;
  grid-template-columns: minmax(320px, 5fr) minmax(360px, 6fr);
  align-items: stretch;
}
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info { background: var(--ink); color: #fff; padding: 34px 32px; border-radius: var(--radius); }
.contact-info h3 { font-size: 21px; font-weight: 800; }
.contact-info > p { margin-top: 8px; color: rgba(255,255,255,.66); font-size: 14.5px; }
.contact-info ul { margin-top: 24px; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info li .icon-badge {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(216,35,42,.18); color: #ff8a8f;
}
.contact-info li .icon-badge svg { width: 20px; height: 20px; }
.contact-info li b { display: block; font-size: 14px; color: rgba(255,255,255,.55); font-weight: 500; }
.contact-info li a, .contact-info li span { font-size: 16px; font-weight: 700; }
.contact-info li a:hover { color: #ff8a8f; }

.contact-form-card { padding: 34px 32px; }
.contact-form-card h3 { font-size: 21px; font-weight: 800; }
.contact-form-card > p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.contact-form { margin-top: 22px; display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: #fafbfc;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(216,35,42,.12);
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .submit {
  justify-self: start;
  border: 0; cursor: pointer;
}
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #157a3c; }
.form-msg.err { color: var(--brand); }

/* 图形验证码 */
.form-row--code { grid-template-columns: 1fr auto; align-items: center; }
.form-row--code input { letter-spacing: 2px; text-transform: uppercase; }
.vercode-img {
  height: 50px; width: auto; align-self: stretch;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; display: block;
  transition: border-color .2s ease;
}
.vercode-img:hover { border-color: var(--brand); }
@media (max-width: 520px) { .form-row--code { grid-template-columns: 1fr; } .vercode-img { height: 44px; } }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-top {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  padding: clamp(44px, 6vw, 68px) 0 40px;
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.6); max-width: 300px; }
.footer-col h4 {
  color: #fff; font-size: 15.5px; font-weight: 700; margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.45);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- 浮动侧栏 ---------- */
.float-bar {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  display: grid; gap: 10px;
}
.float-bar a, .float-bar button {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, transform .2s;
}
.float-bar a:hover, .float-bar button:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.float-bar svg { width: 22px; height: 22px; }
#backTop { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#backTop.is-show { opacity: 1; pointer-events: auto; }

/* ============================================================
   滚动显现动效
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   以下为 CMS 集成补充样式（子栏目筛选 / 分页 / 文章详情页）
   由 WorkBuddy 按上述设计语言补齐，风格与设计稿保持一致
   ============================================================ */

/* ---------- 子栏目筛选（沿用 chip 风格） ---------- */
.subtypes {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 20px;
}
.subtypes a {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: .25s;
}
.subtypes a:hover { border-color: var(--brand); color: var(--brand); }
.subtypes a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; align-items: center;
  margin-top: clamp(28px, 4vw, 48px);
}
.pagination a, .pagination > span {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: .25s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ---------- 文章 / 案例详情页 ---------- */
.article-detail { max-width: 880px; margin: 0 auto; }
.article-detail > h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.5; font-weight: 800; color: var(--ink);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin: 16px 0 26px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.article-cover { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body { font-size: 16.5px; line-height: 1.95; color: var(--text); word-break: break-word; }
.article-body p { margin: 0 0 18px; }
.article-body img, .about-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-body h2 { font-size: 1.25rem; margin: 30px 0 14px; font-weight: 800; color: var(--ink); }
.article-body h3 { font-size: 1.1rem; margin: 24px 0 12px; font-weight: 800; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--brand); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body blockquote {
  margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text);
}

.article-nav { display: grid; gap: 12px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-nav a {
  display: block; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: 14.5px;
  transition: .25s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.article-nav .label { color: var(--muted); font-weight: 700; margin-right: 8px; }
.article-nav .is-empty { color: var(--muted); }

/* 富文本内容（栏目正文）在移动端的安全边距 */
.about-body { word-break: break-word; }
.about-body p { margin: 0 0 16px; }

/* ============================================================
   404 页面
   ============================================================ */
.err-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.err-code {
  font-size: clamp(84px, 16vw, 148px); font-weight: 900; line-height: 1;
  letter-spacing: -4px; color: var(--brand);
  background: linear-gradient(180deg, var(--brand) 0%, rgba(216,35,42,.18) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.err-wrap h2 { margin: 8px 0 12px; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; }
.err-wrap > p { color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.err-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.err-links {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center;
  font-size: 14.5px;
}
.err-links b { color: var(--muted); font-weight: 700; }
.err-links a { color: var(--brand); font-weight: 600; }
.err-links a:hover { text-decoration: underline; }
