/* ===========================================================
   gitl.cn 全站样式
   设计基调：浅色底 + 品牌蓝渐变 + 轻阴影 + 大圆角 + 细过渡
   =========================================================== */

:root {
  --bg: #f5f8fc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6ecf5;
  --line-strong: #d7e1ef;
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --brand-soft: #eef4ff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 20px -6px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 26px 50px -18px rgba(15, 23, 42, .28);
  --grad: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #38bdf8 100%);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px; /* 根字号，确保正文字号 ≥16px */
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 380px at 10% -10%, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(900px 320px at 90% -6%, rgba(56, 189, 248, .10), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 仅在 Cookie 条实际显示时才预留底部空间（由页脚脚本添加该类），避免页脚下方出现空白 */
body.has-cookie { padding-bottom: 96px; }

a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { text-decoration: none; }

/* ===== 顶栏 ===== */
.topbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand a { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.brand a:hover { color: var(--brand); }
.brand .tag {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: linear-gradient(135deg, #eef4ff, #e2ecff);
  border: 1px solid #dbe6ff;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.brand-logo {
  height: 32px; width: 32px;
  border-radius: 8px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.nav { display: flex; align-items: center; flex-wrap: wrap; }
.nav a { position: relative; font-size: 16px; margin-left: 20px; color: #334155; font-weight: 500; padding: 6px 2px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-user { margin-left: 20px; color: var(--muted); font-size: 14px; }

/* ===== 布局 ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 28px 64px;
}
.container.narrow { max-width: 760px; }

/* ===== 标题与正文 ===== */
h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.4px; margin: 0 0 10px; }
h2 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.2px; margin: 0 0 16px; }
p.lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; }

/* ===== 卡片网格 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.card .price { font-size: 28px; font-weight: 800; color: var(--brand); margin: 10px 0; letter-spacing: -.5px; }
.card .desc { color: var(--muted); font-size: 15px; min-height: 48px; line-height: 1.7; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .65);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--brand-d); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(37, 99, 235, .7); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.btn.secondary:hover { background: #e2ebff; }
.btn.danger { background: #fee2e2; color: #b91c1c; box-shadow: none; }
.btn.danger:hover { background: #fecaca; color: #991b1b; }
.btn.small { padding: 8px 14px; font-size: 15px; border-radius: 8px; }

/* ===== 表单 ===== */
.form { max-width: 420px; }
.form-row { margin-bottom: 16px; }
.form label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  min-height: 46px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

/* ===== 提示 ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  font-size: 15px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.alert.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.alert.err { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert.info { background: #eff6ff; color: var(--brand-d); border-color: #bfdbfe; }

/* ===== 表格 ===== */
table.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.tbl th, table.tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.tbl th { background: #f8fafc; color: #475569; font-weight: 600; font-size: 14px; letter-spacing: .3px; }
table.tbl tbody tr { transition: background .16s var(--ease); }
table.tbl tbody tr:hover { background: #fafbfe; }
table.tbl tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.ok { background: #ecfdf5; color: var(--ok); }
.badge.warn { background: #fef3c7; color: var(--warn); }
.badge.danger { background: #fee2e2; color: var(--danger); }

/* ===== 数据条 ===== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
/* 统计项较少时限制列宽，避免卡片被拉得过长 */
.stat-row.stat-2 { grid-template-columns: repeat(auto-fit, minmax(190px, 320px)); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.stat .n {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .l { color: var(--muted); font-size: 15px; }

.codebox {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
  word-break: break-all;
  min-height: 46px;
}
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .split-2 { grid-template-columns: 1fr; } }

/* ===== Tabs ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.tab-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.tab-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 16px -9px rgba(37, 99, 235, .9); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

/* ===== 设置表单 ===== */
.settings-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.settings-form .field { margin-bottom: 18px; max-width: 720px; }
.settings-form label { display: block; font-size: 15px; color: var(--ink); margin-bottom: 7px; font-weight: 600; }
.settings-form label .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
.settings-form input[type=text], .settings-form input[type=password], .settings-form input[type=url], .settings-form textarea, .settings-form select {
  width: 100%; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-height: 44px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.settings-form input:focus, .settings-form textarea:focus, .settings-form select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.settings-form textarea { resize: vertical; line-height: 1.5; }
.settings-form .check { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.settings-form .check input { width: auto; min-height: 0; }
.form-actions { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.smtp-result { display: block; margin-top: 10px; white-space: pre-line; line-height: 1.7; }
.qr-prev { width: 200px; height: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: block; margin-top: 6px; box-shadow: var(--shadow-sm); }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid rgba(148, 163, 184, .18); background: linear-gradient(180deg, #0f172a 0%, #152142 100%); color: #cbd5e1; margin-top: 56px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 44px 28px 28px; }
.footer-cols {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(170px, 1fr));
  gap: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -.2px; }
.footer-brand img { height: 30px; width: 30px; border-radius: 8px; object-fit: contain; background: #fff; }
.footer-slogan, .footer-company { color: #94a3b8; font-size: 15px; line-height: 1.7; margin: 0 0 12px; max-width: 460px; }
.footer-col h4 { margin: 0 0 14px; font-size: 15px; color: #e2e8f0; font-weight: 700; letter-spacing: .4px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links span { color: #94a3b8; font-size: 15px; }
.footer-links a { transition: color .18s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-top: 20px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #94a3b8; }
.footer-meta .beian { color: #94a3b8; }
.footer-meta .beian:hover { color: #fff; }
.footer-copy { font-size: 13px; color: #94a3b8; }

/* ===== Cookie 条 ===== */
.cookie-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(1180px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(17, 24, 39, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  color: #e5e7eb;
  padding: 14px 18px;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
}
.cookie-bar .cookie-text { flex: 1; }
.cookie-bar .btn.small { white-space: nowrap; background: #fff; color: var(--ink); box-shadow: none; }
.cookie-bar .btn.small:hover { background: #e2e8f0; color: var(--ink); }

/* ===== 论坛：栏目卡片 ===== */
.board-card { display: flex; flex-direction: column; }
.board-card h3 a { color: var(--ink); }
.board-card h3 a:hover { color: var(--brand); }
.forum-meta { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.forum-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 22px; }

/* ===== 论坛：帖子列表 ===== */
.topic-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.topic-item { display: flex; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); transition: background .18s var(--ease); }
.topic-item:last-child { border-bottom: none; }
.topic-item:hover { background: linear-gradient(90deg, rgba(37, 99, 235, .05), rgba(56, 189, 248, .02)); }
.topic-main { flex: 1; min-width: 0; }
.topic-title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); display: block; margin-bottom: 4px; }
.topic-title:hover { color: var(--brand); }
.topic-summary { color: var(--muted); font-size: 14px; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.65; }
.topic-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.topic-meta a { color: var(--muted); }
.topic-meta a:hover { color: var(--brand); }
.topic-side { text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; }
.topic-side .n { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.tag-pinned { background: #fef3c7; color: var(--warn); margin-right: 6px; }
.tag-closed { background: #f1f5f9; color: var(--muted); margin-right: 6px; }

/* ===== 论坛：分页 ===== */
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 26px; color: var(--muted); font-size: 15px; }
.pager a, .pager span.cur {
  display: inline-block; padding: 8px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.pager span.cur { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 16px -9px rgba(37, 99, 235, .9); }

/* ===== 论坛：正文排版 ===== */
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.post-head h1 { font-size: clamp(22px, 2vw, 27px); margin: 0 0 8px; }
.post-meta { color: var(--muted); font-size: 14px; }
.prose { font-size: 16.5px; line-height: 1.85; word-wrap: break-word; }
.prose p { margin: 0 0 14px; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { margin: 26px 0 12px; font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.prose h2 { font-size: 21px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 0 0 14px; padding: 12px 18px; border-left: 3px solid var(--brand); background: #f8fafc; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #475569; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.7; box-shadow: var(--shadow-sm); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; margin: 14px 0; box-shadow: var(--shadow-sm); }
.prose picture { display: block; }
.prose picture img { margin: 12px 0; }
.prose a { word-break: break-all; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.prose table { border-collapse: collapse; margin-bottom: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 13px; font-size: 15px; }

/* ===== 论坛：导入手册版式（仅在 .prose 正文内生效） ===== */
.prose .page-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.prose .page-header h2 { margin: 0 0 6px; font-size: 22px; }
.prose .desc { color: var(--muted); font-size: 15px; }
.prose .section { margin-bottom: 30px; }
.prose .section h3 { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--brand); font-size: 19px; }
.prose .usage-box { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin: 0 0 16px; }
.prose .usage-box h5 { margin: 0 0 10px; font-size: 16px; }
.prose .usage-box table { width: 100%; }
.prose .usage-box th { text-align: left; background: #eef2f7; }
.prose .tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.prose .tag-item { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.prose .tag-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.prose .tag-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--brand); word-break: break-all; }
.prose .tag-desc { font-size: 13px; color: var(--muted); }
.prose .tag-type { align-self: flex-start; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.prose .tag-type.image { background: #ecfdf5; color: var(--ok); }
.prose .tag-type.html { background: #fef3c7; color: var(--warn); }
.prose .code-block { background: #0f172a; border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; overflow-x: auto; box-shadow: var(--shadow-sm); }
.prose .code-block pre { background: none; color: #e2e8f0; margin: 0; padding: 0; box-shadow: none; }
.prose .code-block code { background: none; color: inherit; padding: 0; font-size: 13.5px; }
.prose .code-block .comment { color: #7d8da3; }
.prose .code-block .keyword { color: #c084fc; }
.prose .code-block .string { color: #86efac; }
.prose .code-block .tag-c { color: #7dd3fc; }
.prose .page-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; font-size: 15px; }
.prose .highlight { background: #fffbeb; padding: 1px 4px; border-radius: 3px; }
.prose .badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.prose .badge.new { background: #ecfdf5; color: var(--ok); }
.prose .lang-cta { display: inline-block; background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 14px; }

/* ===== 论坛：回复 ===== */
.reply-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.reply-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.reply-head .who { color: var(--ink); font-weight: 700; }

/* ===== 首页 / 通用营销模块 ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 4vw, 60px) clamp(24px, 4vw, 56px);
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -8%;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .24), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(110% 80% at 82% 8%, #000 0%, transparent 68%);
  mask-image: radial-gradient(110% 80% at 82% 8%, #000 0%, transparent 68%);
}
.hero > * { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; font-weight: 800; letter-spacing: -.6px; margin: 0 0 14px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); margin: 0 0 24px; color: rgba(255, 255, 255, .94); max-width: 780px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero .btn { background: #fff; color: var(--brand-d); box-shadow: 0 10px 22px -10px rgba(2, 20, 60, .5); }
.hero .btn:hover { background: #f4f8ff; color: var(--brand-d); }
.hero .btn.secondary { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; }
.hero .btn.secondary:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-meta { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.hero-meta a { color: #fff; text-decoration: underline; }

.sec-title {
  position: relative;
  margin: 44px 0 18px;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 800;
  letter-spacing: -.2px;
  padding-left: 15px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  border-radius: 3px;
  background: var(--grad);
}

.feat { display: flex; flex-direction: column; }
.feat-icon {
  font-size: 24px;
  line-height: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #eef4ff, #e0f2fe);
  margin-bottom: 14px;
}
.plan .price { font-size: 30px; font-weight: 800; color: var(--brand); margin: 10px 0; letter-spacing: -.5px; }
.plan .price .unit { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.steps li {
  display: flex; gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.steps li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.steps .step-n {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .8);
}
.steps b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.faq { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  transition: background .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "＋";
  display: inline-block;
  width: 20px; height: 20px;
  line-height: 19px;
  text-align: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  transition: background .18s var(--ease);
}
.faq details[open] summary::before { content: "－"; background: var(--brand); color: #fff; }
.faq summary:hover { background: #f8fafc; }
.faq details p { margin: 0; padding: 0 22px 18px 54px; color: var(--muted); font-size: 15px; line-height: 1.8; }

.cta {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #eef4ff 0%, #f5f3ff 55%, #ecfeff 100%);
  border: 1px solid #e2e9ff;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
}
.cta h2 { margin: 0 0 6px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; }
.cta .desc { margin: 0; color: var(--muted); font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid rgba(37, 99, 235, .45); box-shadow: none; }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-d); }
.compliance { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== 解决方案页 ===== */
.ind h3 { margin: 0 0 12px; }
.ind .feat-icon { font-size: 24px; width: 46px; height: 46px; }
.ind .feat-icon + h3 { margin-top: 0; }
.ind-label { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--warn); letter-spacing: .3px; }
.ind-label.ok { color: var(--ok); }
.ind-text { margin: 0 0 14px; font-size: 15px; color: #475569; line-height: 1.75; }
.ind-mods { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.pain h3 { margin: 0 0 12px; font-size: 18px; }
.pain p { margin: 0 0 10px; font-size: 15px; color: #475569; line-height: 1.75; }
.pain p b {
  display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
}
.pain-now b { background: #fef3c7; color: #92400e; }
.pain-do b { background: #dcfce7; color: #166534; }
.pain p:last-child { margin-bottom: 0; }

/* ===== 面包屑 / 摘要 / 目录 / 相关章节 ===== */
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 8px; color: #cbd5e1; }
.crumbs .cur { color: var(--ink); font-weight: 600; }
.tldr { background: #f8fafc; border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; font-size: 15px; color: #475569; margin: 0 0 20px; box-shadow: var(--shadow-sm); }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 22px; box-shadow: var(--shadow-sm); }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 15px; }
.toc li.lv3 { margin-left: 16px; font-size: 14px; color: var(--muted); }
.related ul { margin: 0; padding-left: 20px; }
.related li { margin-bottom: 8px; font-size: 15px; }
.prose h2[id], .prose h3[id], .prose h4[id] { scroll-margin-top: 80px; }

/* ===== 论坛编辑器 ===== */
.fe { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.fe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.fe-btn { border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 14px; cursor: pointer; min-width: 32px; transition: background .16s var(--ease), border-color .16s var(--ease); }
.fe-btn:hover { background: #eef4ff; border-color: #dbe6ff; }
.fe-btn-b { font-weight: 700; }
.fe-btn-i { font-style: italic; }
.fe-btn-u { text-decoration: underline; }
.fe-btn-s { text-decoration: line-through; }
.fe-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.fe-area { padding: 18px 20px; font-size: 16px; line-height: 1.8; outline: none; word-wrap: break-word; }
.fe-area:empty:before, .fe-area[data-placeholder]:empty:before { content: attr(data-placeholder); color: #9ca3af; }
.fe-area p { margin: 0 0 10px; }
.fe-area h3 { margin: 16px 0 8px; font-size: 19px; }
.fe-area blockquote { margin: 0 0 10px; padding: 10px 16px; border-left: 3px solid var(--brand); background: #f8fafc; border-radius: 0 8px 8px 0; color: #475569; }
.fe-area pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; }
.fe-area img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; margin: 12px 0; box-shadow: var(--shadow-sm); }
.fe-area picture { display: block; }
.fe-area ul, .fe-area ol { margin: 0 0 10px; padding-left: 24px; }
.fe-area a { color: var(--brand); }
.fe-status { padding: 8px 14px; font-size: 14px; color: #047857; background: #ecfdf5; border-top: 1px solid #a7f3d0; }
.fe-status.err { color: #b91c1c; background: #fef2f2; border-top-color: #fecaca; }
.fe-file { display: none; }
.form.wide { max-width: 860px; }

/* ===== 定价页：版本卡片 ===== */
.pricing-hero { margin-bottom: 26px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.plan.recommended {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 16px 34px -16px rgba(37, 99, 235, .5), var(--shadow-sm);
}
.plan-badge {
  position: absolute;
  top: -11px; left: 24px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .9);
}
.plan-kind { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .3px; }
.plan h3 { margin: 6px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.plan .price { font-size: 32px; font-weight: 800; color: var(--brand); margin: 10px 0 12px; letter-spacing: -.5px; }
.plan .price .unit { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.plan .desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.plan-feat { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.plan-feat li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.plan-feat li:last-child { border-bottom: none; }
.plan-feat .fe-name { color: #475569; }
.plan-feat .fe-val { font-weight: 600; color: var(--ink); text-align: right; max-width: 55%; }
.plan-feat .fe-val.no { color: #94a3b8; font-weight: 400; }
.plan-action { margin-top: auto; }
.plan-action .btn { width: 100%; }

/* ===== 定价页：版本区别对比表 ===== */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.cmp { min-width: 640px; margin-bottom: 0; }
table.cmp th, table.cmp td { text-align: center; padding: 13px 16px; font-size: 14px; }
table.cmp thead th { background: #f8fafc; vertical-align: bottom; }
table.cmp .cmp-feat { text-align: left; min-width: 200px; font-weight: 600; color: var(--ink); }
table.cmp .cmp-name { font-size: 15px; font-weight: 700; color: var(--ink); }
table.cmp .cmp-price { font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
table.cmp thead th.rec { background: #eef4ff; color: var(--brand-d); }
table.cmp tbody td.yes { color: #15803d; font-weight: 600; }
table.cmp tbody td.no { color: #94a3b8; }
table.cmp .tick { color: var(--ok); font-size: 15px; }
table.cmp .dash { color: #cbd5e1; }
table.cmp tr.diff { background: #fbfdff; }
table.cmp tr.diff:hover { background: #f5f9ff; }
table.cmp .cmp-mark {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  border-radius: 999px; background: #eef4ff; color: var(--brand);
  font-size: 11px; font-weight: 700; vertical-align: 1px;
}
.pricing-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  white-space: pre-wrap;
}
.pricing-note b { display: block; margin-bottom: 4px; color: var(--ink); }

/* ===== 论坛公告 / 版规 / 免责声明 ===== */
.forum-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(120deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 15px;
  color: #78350f;
}
.forum-notice .ico { font-size: 17px; line-height: 1.6; }
.forum-rules {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  max-width: 860px;
}
.forum-rules h3 { margin: 0 0 8px; font-size: 16px; }
.forum-rules div { color: #475569; font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.post-disclaimer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.post-disclaimer b { color: #64748b; }
.post-disclaimer .report { display: block; margin-top: 4px; }
.reply-tip {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  white-space: pre-wrap;
}

/* ===== 后台：内容合规状态区块 ===== */
.admin-mod-status { margin-bottom: 28px; }
.mod-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mod-head h3 { margin: 0; font-size: 17px; }
.mod-list { list-style: none; margin: 0; padding: 0; }
.mod-list li {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mod-list li:last-child { border-bottom: none; padding-bottom: 0; }
.mod-list li b { min-width: 90px; font-size: 15px; }
.mod-list .hint { color: var(--muted); font-size: 13px; flex: 1 1 240px; min-width: 0; }

/* ===== 会员中心 ===== */
.my-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .my-wrap { grid-template-columns: 1fr; gap: 18px; } }

.my-side {
  position: sticky;
  top: 82px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
@media (max-width: 860px) { .my-side { position: static; } }
.my-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.my-avatar {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 19px; font-weight: 700;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .8);
}
.my-user-info { min-width: 0; }
.my-email { font-size: 15px; font-weight: 600; word-break: break-all; line-height: 1.4; }
.my-role { font-size: 13px; color: var(--muted); }
.my-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.my-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #475569;
  font-size: 15px; font-weight: 500;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.my-nav a .ic { font-size: 15px; width: 18px; text-align: center; }
.my-nav a:hover { background: #f5f8fc; color: var(--brand); }
.my-nav a.active { background: var(--brand-soft); color: var(--brand-d); font-weight: 700; }
.my-nav a.active::after { content: ""; }
.my-main { min-width: 0; }
.my-main h1 { margin-bottom: 8px; }
.my-main .lead { margin-bottom: 20px; }

.my-hello {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #eef4ff 0%, #f6f3ff 60%, #ecfeff 100%);
  border: 1px solid #e2e9ff;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 24px;
}
.my-hello h1 { margin: 0 0 6px; font-size: clamp(21px, 2vw, 26px); }
.my-hello .desc { margin: 0; color: var(--muted); font-size: 15px; }
.my-hello-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.my-stats { margin-bottom: 24px; }
.my-stats .stat { padding: 16px 20px; }

.my-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 22px; }
.my-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.my-card-head h3 { margin: 0; font-size: 17px; }
.my-card-head a { font-size: 14px; }
.my-list { list-style: none; margin: 0; padding: 0; }
.my-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.my-list li:last-child { border-bottom: none; padding-bottom: 0; }
.my-list-title { font-size: 15px; font-weight: 600; }
.my-list-sub { font-size: 13px; color: var(--muted); word-break: break-all; }
.my-list-side { text-align: right; white-space: nowrap; }
.my-empty { margin: 0; color: var(--muted); font-size: 15px; }
.my-guide-list { margin: 0; padding-left: 22px; color: #475569; font-size: 15px; line-height: 1.9; }
.my-activate { margin-bottom: 22px; }
.my-activate h3 { margin-bottom: 8px; }
.my-activate .desc { margin-bottom: 14px; }

/* ===== 法律页 ===== */
.legal { max-width: 820px; }
.legal-updated { color: var(--muted); font-size: 14px; }
.legal-content { font-size: 16px; line-height: 1.85; color: var(--ink); }
.legal-content h2 { font-size: 19px; margin: 28px 0 12px; font-weight: 700; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 24px; }
.legal-content li { margin-bottom: 8px; }
.legal-content b { color: var(--ink); }

/* ===== 移动端微调 ===== */
@media (max-width: 640px) {
  .container { padding: 24px 18px 48px; }
  .topbar-inner { padding: 10px 18px; }
  .nav a { margin-left: 14px; font-size: 15px; }
  .hero { border-radius: 16px; }
  .cta { padding: 24px 20px; }
  .stat .n { font-size: 26px; }
}
