/* =========================================================
   软件产品展示网站 - 前台样式
   ========================================================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --sky: #38bdf8;
  --dark: #0b1b33;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .08), 0 16px 40px rgba(15, 23, 42, .10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* 与 Logo 自身背景色一致（#03162c），配合 mix-blend-mode: screen 实现 Logo 无缝融入 */
  background: #03162c;
  border-bottom: 1px solid rgba(126, 178, 255, .14);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(2, 8, 20, .55); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 42px;
  width: auto;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 15px; color: #c3d3ec; transition: color .2s; }
.site-nav a:hover { color: #6ec6ff; }
.site-nav a.active { color: #6ec6ff; font-weight: 600; }
.site-nav .nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s;
}
.site-nav .nav-cta:hover { background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #dbe9ff; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-1px); }
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 96px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 82% 12%, rgba(56, 189, 248, .28), transparent),
    radial-gradient(600px 320px at 12% 90%, rgba(37, 99, 235, .40), transparent),
    linear-gradient(135deg, #0b1b33, #12294e 55%, #0b1b33);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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: 44px 44px;
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-copy { max-width: 560px; }
.hero-badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  color: #a5d8ff;
  border: 1px solid rgba(165, 216, 255, .35);
  background: rgba(56, 189, 248, .08);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.22;
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #ffffff 30%, #8fd3ff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}
.hero p {
  font-size: 17.5px;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  animation: heroFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(2, 8, 20, .35));
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hstat { text-align: center; }
.hstat strong {
  display: block;
  font-size: 30px;
  line-height: 1.3;
  background: linear-gradient(120deg, #ffffff, #8fd3ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hstat span { font-size: 13.5px; color: rgba(255, 255, 255, .62); }

/* ---------- 滚动渐入动效（仅 JS 可用时启用） ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .1s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .2s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .3s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .4s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .5s; }

/* ---------- 通用 Section ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  background: rgba(37, 99, 235, .08);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; color: var(--dark); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---------- 产品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, .35);
}
.product-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #eef4ff, #e0f2fe);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-tag {
  align-self: flex-start;
  font-size: 12px;
  color: var(--primary);
  background: rgba(37, 99, 235, .09);
  border-radius: 6px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.product-body h3 { font-size: 19px; color: var(--dark); margin-bottom: 8px; }
.product-body p { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.product-more { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ---------- 优势 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.adv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.section-alt .adv-card, .adv-card { box-shadow: var(--shadow); }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
}
.adv-icon svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--muted); }

/* ---------- 首页关于 ---------- */
.about-brief { max-width: 780px; margin: 0 auto; text-align: center; }
.about-brief p { color: var(--muted); margin-bottom: 26px; text-align: left; }

/* ---------- 内页横幅 ---------- */
.page-banner {
  background:
    radial-gradient(500px 220px at 85% 30%, rgba(56, 189, 248, .22), transparent),
    linear-gradient(135deg, #0b1b33, #142c55);
  color: #fff;
  padding: 52px 0 44px;
}
.page-banner h1 { font-size: 30px; margin-bottom: 6px; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, .65); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }

/* ---------- 产品详情 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}
.detail-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef2f7;
  box-shadow: var(--shadow);
}
.detail-info h2 { font-size: 30px; color: var(--dark); margin: 10px 0 14px; }
.detail-summary { color: var(--muted); margin-bottom: 22px; }
.detail-meta { list-style: none; border-top: 1px solid var(--line); margin-bottom: 26px; }
.detail-meta li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.detail-meta li span { width: 76px; color: var(--muted); flex-shrink: 0; }
.detail-meta .price { color: #e63946; font-size: 17px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
}
.detail-panel h3 { font-size: 19px; color: var(--dark); margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--primary); }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.feature-list svg { width: 18px; height: 18px; color: #16a34a; flex-shrink: 0; margin-top: 5px; }
.detail-desc { color: var(--muted); white-space: normal; }
.detail-back { margin-top: 6px; }
.detail-back a { color: var(--primary); font-size: 15px; }
.muted { color: var(--muted); }

/* ---------- 关于我们 ---------- */
.about-wrap { max-width: 860px; }
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 40px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.about-card h2 { color: var(--dark); margin: 6px 0 16px; font-size: 26px; }
.about-text { color: var(--muted); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.stat {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 10px;
}
.stat strong { display: block; font-size: 30px; color: var(--primary); line-height: 1.3; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h2 { color: var(--dark); margin-bottom: 6px; }
.contact-item { padding: 14px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 16px; align-items: baseline; }
.contact-label { width: 44px; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.contact-item strong { font-size: 16px; color: var(--dark); word-break: break-all; }
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--dark); }
.form-row label em { color: #e63946; font-style: normal; }
.contact-form input[type="text"], .contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.captcha-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-form .captcha-box input[type="text"] { width: 130px; flex: 0 0 auto; }
.captcha-q {
  background: #eef2ff;
  color: var(--primary);
  border: 1px dashed rgba(37, 99, 235, .4);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  letter-spacing: 1px;
  user-select: none;
}
.alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 联系条 ---------- */
.contact-strip {
  background:
    radial-gradient(500px 240px at 88% 20%, rgba(56, 189, 248, .25), transparent),
    linear-gradient(120deg, #12294e, #1d4ed8);
  color: #fff;
  padding: 56px 0;
}
.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-strip h2 { font-size: 26px; margin-bottom: 4px; }
.contact-strip p { color: rgba(255, 255, 255, .75); }
.contact-strip-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: #03162c; color: #94a3b8; padding: 54px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; margin-bottom: 14px; }
.footer-brand .brand-logo { height: 34px; width: auto; }
.footer-desc { font-size: 14px; }
.site-footer h4 { color: #e2e8f0; font-size: 15px; margin-bottom: 14px; }
.site-footer a, .site-footer span { display: block; font-size: 14px; padding: 4px 0; color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 13px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom a { display: inline; padding: 0; }
.admin-link { margin-left: auto; opacity: .55; }
.admin-link:hover { opacity: 1; }

/* ---------- 其他 ---------- */
.empty-tip {
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 60px 20px;
  font-size: 15px;
}
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 90;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero h1 { font-size: 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
  .section { padding: 60px 0; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .brand-logo { height: 34px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #03162c;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid rgba(126, 178, 255, .15);
    box-shadow: 0 18px 40px rgba(2, 8, 20, .6);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .site-nav .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section-head h2 { font-size: 26px; }
  .page-banner h1 { font-size: 24px; }
  .about-card { padding: 26px 22px; }
  .contact-form-wrap { padding: 22px 18px; }
}

/* ============================================================
   文章模块（列表 / 详情 / 侧栏）
   ============================================================ */
.page-banner-sm { padding: 52px 0 34px; }
.page-banner .crumb { font-size: 13px; color: rgba(255, 255, 255, .62); margin-bottom: 12px; }
.page-banner .crumb a { color: rgba(255, 255, 255, .82); }
.page-banner .crumb a:hover { color: #fff; }
.page-banner .crumb span { margin: 0 6px; }
.article-head-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .72); margin-top: 10px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article-main { min-width: 0; }

/* 分类筛选条 */
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: 20px; font-size: 14px;
  color: var(--muted); background: #f1f5f9; border: 1px solid transparent; transition: all .18s;
}
.chip:hover { color: var(--primary); background: #e0edff; }
.chip.active { background: var(--primary); color: #fff; }

/* 文章卡片 */
.article-list { display: flex; flex-direction: column; gap: 22px; }
.article-card {
  display: flex; gap: 22px; background: #fff; border: 1px solid #e8eef7;
  border-radius: 14px; overflow: hidden; transition: all .2s;
}
.article-card:hover { border-color: #c7dcff; box-shadow: 0 12px 30px rgba(37, 99, 235, .09); transform: translateY(-2px); }
.article-cover { flex: 0 0 220px; max-width: 220px; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.article-body { flex: 1; padding: 20px 22px 20px 0; min-width: 0; display: flex; flex-direction: column; }
.article-card:not(:has(.article-cover)) .article-body { padding-left: 22px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; }
.badge-top { background: #fff1e6; color: #c2410c; padding: 2px 9px; border-radius: 6px; font-weight: 600; }
.article-cat { color: var(--primary); background: #eff6ff; padding: 2px 10px; border-radius: 6px; }
.article-title { font-size: 20px; line-height: 1.45; margin-bottom: 8px; }
.article-title a { color: var(--dark); }
.article-title a:hover { color: var(--primary); }
.article-summary { font-size: 14.5px; color: var(--muted); line-height: 1.8; flex: 1; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-item { font-size: 12.5px; color: #0e7490; background: #ecfeff; padding: 3px 10px; border-radius: 20px; }
.tag-item:hover { background: #cffafe; }
.read-more { font-size: 13.5px; color: var(--primary); font-weight: 600; white-space: nowrap; }

/* 空状态 */
.empty-block { text-align: center; padding: 70px 24px; background: #f8fafc; border: 1px dashed #dbe4ef; border-radius: 14px; }
.empty-block h2 { font-size: 40px; color: var(--primary); margin-bottom: 8px; }
.empty-block p { color: var(--muted); margin-bottom: 18px; }

/* 文章详情 */
.article-detail { background: #fff; border: 1px solid #e8eef7; border-radius: 14px; padding: 34px 38px 30px; }
.detail-cover { width: 100%; border-radius: 10px; margin-bottom: 24px; }
.detail-summary {
  font-size: 15px; color: #475569; line-height: 1.9; padding: 16px 20px;
  background: #f6f9fd; border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; margin-bottom: 26px;
}
.detail-content { font-size: 16px; line-height: 2; color: #26374d; }
.detail-content p { margin-bottom: 20px; }
.detail-content h2 { font-size: 21px; color: var(--dark); margin: 30px 0 14px; }
.detail-content h3 { font-size: 18px; color: var(--dark); margin: 24px 0 12px; }
.detail-content img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.detail-content code { background: #f1f5f9; padding: 2px 7px; border-radius: 5px; font-size: 14px; color: #be123c; }
.detail-content ul, .detail-content ol { margin: 0 0 20px 22px; }
.detail-content li { margin-bottom: 8px; }
.detail-tags { display: flex; gap: 9px; flex-wrap: wrap; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #eef3f9; }
.detail-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: var(--muted); }
.related-block { margin-top: 38px; padding-top: 28px; border-top: 1px solid #eef3f9; }
.related-block h3 { font-size: 18px; color: var(--dark); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.related-card { display: block; border: 1px solid #e8eef7; border-radius: 10px; overflow: hidden; background: #fff; transition: all .18s; }
.related-card:hover { border-color: var(--primary); }
.related-card img { width: 100%; height: 96px; object-fit: cover; display: block; }
.related-card span { display: block; padding: 11px 13px; font-size: 13.5px; color: var(--dark); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 侧栏 */
.article-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.side-box { background: #fff; border: 1px solid #e8eef7; border-radius: 13px; padding: 20px; }
.side-box h3 { font-size: 15.5px; color: var(--dark); margin-bottom: 15px; padding-left: 10px; border-left: 3px solid var(--primary); }
.side-search { display: flex; gap: 8px; }
.side-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #dbe4ef; border-radius: 9px; font-size: 14px; outline: none; }
.side-search input:focus { border-color: var(--primary); }
.side-search button { padding: 9px 15px; border: 0; border-radius: 9px; background: var(--primary); color: #fff; font-size: 14px; cursor: pointer; font-family: inherit; }
.side-search button:hover { background: var(--primary-dark); }
.side-list { list-style: none; }
.side-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #eef3f9; font-size: 14px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: #334155; }
.side-list a:hover { color: var(--primary); }
.side-count { font-size: 12px; color: #94a3b8; background: #f1f5f9; border-radius: 10px; padding: 1px 9px; }
.side-list .muted { color: var(--muted); justify-content: flex-start; }
.side-hot { list-style: none; counter-reset: h; }
.side-hot li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed #eef3f9; }
.side-hot li:last-child { border-bottom: 0; }
.side-hot li::before { counter-increment: h; content: counter(h); flex: 0 0 20px; height: 20px; border-radius: 5px;
  background: #f1f5f9; color: #94a3b8; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.side-hot li:nth-child(-n+3)::before { background: var(--primary); color: #fff; }
.side-hot a { flex: 1; color: #334155; line-height: 1.6; }
.side-hot a:hover { color: var(--primary); }
.side-hot span { font-size: 12px; color: #94a3b8; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 13px; color: #475569; background: #f1f5f9; padding: 5px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.tag-cloud a:hover { background: #e0edff; color: var(--primary); }
.tag-cloud em { font-style: normal; font-size: 11px; color: #94a3b8; }
.side-cta p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }

/* 响应式 */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-side { position: static; }
  .article-detail { padding: 26px 22px; }
}
@media (max-width: 640px) {
  .article-card { flex-direction: column; gap: 0; }
  .article-cover { flex: none; max-width: 100%; }
  .article-cover img { min-height: 0; height: 180px; }
  .article-body, .article-card:not(:has(.article-cover)) .article-body { padding: 18px; }
  .article-title { font-size: 18px; }
  .section { padding: 54px 0; }
}

/* ---------- 友情链接 ---------- */
.friend-links { background: #fff; border-top: 1px solid #eef3f9; padding: 26px 0; }
.friend-links .container { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.fl-title { font-size: 13.5px; color: var(--muted); flex: 0 0 auto; padding-top: 4px; }
.fl-list { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.fl-list a {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px;
  border: 1px solid #e8eef7; border-radius: 20px; font-size: 13.5px; color: #475569; background: #fbfdff; transition: all .16s;
}
.fl-list a:hover { border-color: var(--primary); color: var(--primary); background: #f2f8ff; }
.fl-list img { height: 16px; width: auto; }
