/* ============================================================
   资料百事通 Demo V0.1 全局样式
   作者：军哥懂保（微信：xunijiayuan）
   风格：清爽蓝橙 · 温馨社区 · 2027科技感
============================================================ */
:root {
  --blue: #2b7fff;
  --blue-deep: #1a5fd6;
  --blue-light: #eaf3ff;
  --orange: #ff9d2e;
  --orange-deep: #f57f17;
  --green: #22b573;
  --red: #f44336;
  --bg: #f4f8fd;
  --card: #ffffff;
  --text: #1c2b3a;
  --text-2: #5c6b7c;
  --text-3: #93a3b5;
  --line: #e6eef8;
  --shadow: 0 6px 24px rgba(43, 127, 255, .08);
  --shadow-hover: 0 10px 32px rgba(43, 127, 255, .16);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
  padding-bottom: 64px; /* 为移动端底部导航留白 */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------------- 顶部导航 ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, #5ea0ff 100%);
  box-shadow: 0 4px 12px rgba(43, 127, 255, .35);
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.logo-text em { font-style: normal; color: var(--blue); }
.slogan { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 7px 14px; border-radius: 10px; font-size: 14.5px; color: var(--text-2);
  transition: all .2s;
}
.nav a:hover { background: var(--blue-light); color: var(--blue); }
.nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), #4d95ff); color: #fff; box-shadow: 0 4px 14px rgba(43,127,255,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43,127,255,.4); }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-light); }
.btn-orange { background: linear-gradient(135deg, var(--orange), #ffb95c); color: #fff; box-shadow: 0 4px 14px rgba(255,157,46,.35); }
.btn-orange:hover { transform: translateY(-1px); }
.btn-ghost { background: #f1f5fb; color: var(--text-2); }
.btn-ghost:hover { background: #e6edf7; }
.btn-danger { background: #fff1f0; color: var(--red); border: 1px solid #ffccc7; }
.btn-danger:hover { background: #ffe4e2; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 34px; font-size: 16.5px; border-radius: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #6db1ff, var(--blue)); color: #fff; font-weight: 700; font-size: 15px;
}

/* ---------------- 横幅提示 ---------------- */
.flash-box { margin-top: 14px; }
.flash {
  padding: 11px 16px; border-radius: 12px; margin-bottom: 8px; font-size: 14px;
  display: flex; align-items: center; gap: 8px; animation: slideIn .3s ease;
}
.flash-ok { background: #ecfaef; color: #1a8a4a; border: 1px solid #c6f0d2; }
.flash-warn { background: #fff8e8; color: #b07a12; border: 1px solid #ffe7b3; }
.flash-error { background: #fff1f0; color: #cf2f22; border: 1px solid #ffccc7; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------- Hero 首屏 ---------------- */
.hero {
  background: linear-gradient(120deg, #e8f2ff 0%, #f2f9ff 45%, #fff6e9 100%);
  border-radius: 0 0 28px 28px; overflow: hidden; position: relative;
}
.hero-inner { display: flex; align-items: center; gap: 24px; padding: 44px 16px 40px; }
.hero-copy { flex: 1.2; min-width: 0; }
.hero h1 { font-size: clamp(26px, 4.6vw, 42px); font-weight: 900; letter-spacing: 1px; line-height: 1.25; }
.hero h1 .hl-blue { color: var(--blue); }
.hero h1 .hl-orange { color: var(--orange); }
.hero .sub { margin-top: 10px; color: var(--text-2); font-size: clamp(13px, 1.8vw, 16px); }
.hero-stats { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.hstat { display: flex; align-items: center; gap: 10px; }
.hstat .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow);
}
.hstat .ic svg { width: 22px; height: 22px; }
.hstat b { display: block; font-size: 17px; line-height: 1.2; }
.hstat span { font-size: 12px; color: var(--text-3); }
.hero-art { flex: .9; display: flex; justify-content: center; min-width: 0; }
.hero-art svg { width: 100%; max-width: 340px; height: auto; }

/* ---------------- 搜索框 ---------------- */
.search-bar {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 2.5px solid var(--blue); border-radius: 16px; padding: 7px 7px 7px 18px;
  box-shadow: 0 8px 28px rgba(43, 127, 255, .18); margin-top: 24px;
}
.search-bar .s-icon { flex-shrink: 0; color: var(--blue); display: grid; place-items: center; }
.search-bar input {
  flex: 1; border: none; outline: none; font-size: 15.5px; background: transparent; min-width: 0;
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar .btn { padding: 11px 30px; border-radius: 12px; }
.hot-words { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hot-words .lab { font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.hot-words a {
  font-size: 13px; padding: 5px 13px; border-radius: 999px; background: #fff;
  color: var(--text-2); border: 1px solid var(--line); transition: all .2s;
}
.hot-words a:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }

/* ---------------- 分类图标 ---------------- */
.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-head h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sec-head h2::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--orange));
}
.sec-head .more { font-size: 13.5px; color: var(--text-3); }
.sec-head .more:hover { color: var(--blue); }
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-item {
  background: var(--card); border-radius: var(--radius); padding: 18px 8px 14px;
  text-align: center; box-shadow: var(--shadow); transition: all .25s; position: relative;
  border: 1.5px solid transparent;
}
.cat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--blue-light); }
.cat-item .ci {
  width: 50px; height: 50px; border-radius: 14px; margin: 0 auto 9px;
  display: grid; place-items: center; color: #fff;
}
.cat-item .ci svg { width: 26px; height: 26px; }
.cat-item b { display: block; font-size: 14.5px; }
.cat-item span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.cat-item.locked { opacity: .62; }
.cat-item.locked:hover { transform: none; box-shadow: var(--shadow); }
.badge-soon {
  position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 2px 7px;
  border-radius: 999px; background: #eef2f7; color: var(--text-3);
}
.badge-open {
  position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 2px 7px;
  border-radius: 999px; background: #e5f8ec; color: var(--green);
}
.bg-1 { background: linear-gradient(135deg, #4d9aff, #2b7fff); }
.bg-2 { background: linear-gradient(135deg, #ff7d7d, #f43f3f); }
.bg-3 { background: linear-gradient(135deg, #43cf8f, #16a56f); }
.bg-4 { background: linear-gradient(135deg, #ffb44d, #ff8c1a); }
.bg-5 { background: linear-gradient(135deg, #9b8cff, #6f5cf1); }
.bg-6 { background: linear-gradient(135deg, #4dc3ff, #1f9de8); }
.bg-7 { background: linear-gradient(135deg, #ffd257, #f5a623); }
.bg-8 { background: linear-gradient(135deg, #b0bdd0, #8296ad); }

/* ---------------- 三步引导 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  display: flex; gap: 15px; align-items: flex-start; box-shadow: var(--shadow);
  position: relative; transition: all .25s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.step-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.step-card p { font-size: 13px; color: var(--text-2); }
.step-ico { width: 40px; height: 40px; flex-shrink: 0; }

/* ---------------- 资料卡片 ---------------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .25s; display: flex; flex-direction: column;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.doc-thumb {
  position: relative; padding-top: 68%; background: linear-gradient(135deg, #eef4fd, #e2edfa);
  overflow: hidden;
}
.doc-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; top: 50%;
  transform: translateY(-50%);
}
.doc-thumb .no-img {
  position: absolute; inset: 0; display: grid; place-items: center; color: #b7c8dd;
}
.doc-thumb .no-img svg { width: 44px; height: 44px; }
.doc-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.doc-body h3 {
  font-size: 15.5px; font-weight: 700; line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-top: auto; }
.tag-chip {
  display: inline-block; font-size: 11.5px; padding: 2.5px 10px; border-radius: 999px;
  background: var(--blue-light); color: var(--blue); font-weight: 600;
}
.tag-chip.green { background: #e5f8ec; color: var(--green); }
.tag-chip.orange { background: #fff2e0; color: var(--orange-deep); }
.tag-chip.red { background: #fff1f0; color: var(--red); }
.tag-chip.gray { background: #eef2f7; color: var(--text-3); }
.doc-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--text-3); }

/* ---------------- 上传CTA ---------------- */
.cta-banner {
  margin-top: 30px; border-radius: 22px; padding: 26px 30px;
  background: linear-gradient(115deg, #fff8ec, #fff2df 55%, #ffeccc);
  display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow);
}
.cta-banner .bulb { width: 52px; height: 52px; flex-shrink: 0; }
.cta-banner h3 { font-size: 19px; font-weight: 800; }
.cta-banner p { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.cta-banner .btn { margin-left: auto; flex-shrink: 0; }

/* ---------------- 页脚 ---------------- */
.footer {
  margin-top: 46px; border-top: 1px solid var(--line); background: #fff;
  padding: 22px 0 26px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer .f-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.footer .f-info { font-size: 12.5px; color: var(--text-3); text-align: right; line-height: 1.8; }
.footer .f-info b { color: var(--text-2); font-weight: 600; }
.footer .f-beian { margin-top: 6px; font-size: 12px; text-align: right; }
.footer .f-beian a { color: var(--text-3); text-decoration: none; }
.footer .f-beian a:hover { color: var(--primary, #f472b6); }

/* ---------------- 移动端底部导航 ---------------- */
.m-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: none;
}
.m-nav-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.m-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; font-size: 11px; color: var(--text-3); position: relative; }
.m-nav a.active { color: var(--blue); }
.m-nav a svg { width: 22px; height: 22px; }
.m-nav .up-btn {
  width: 44px; height: 44px; margin-top: -20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #4d95ff); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(43,127,255,.4);
  font-size: 24px; font-weight: 300;
}

/* ---------------- 表单页（登录/注册） ---------------- */
.auth-wrap { display: grid; place-items: center; padding: 46px 16px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--card); border-radius: 22px;
  padding: 34px 30px; box-shadow: var(--shadow-hover);
}
.auth-card h2 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field label em { color: var(--red); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  outline: none; transition: border .2s, box-shadow .2s; background: #fbfdff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 127, 255, .12); background: #fff;
}
.field textarea { resize: vertical; min-height: 80px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 16px; }
.auth-foot a { color: var(--blue); font-weight: 600; }

/* ---------------- 上传向导 ---------------- */
.wizard-head { display: flex; align-items: center; justify-content: center; gap: 0; margin: 26px 0; flex-wrap: wrap; }
.wz-step { display: flex; align-items: center; gap: 8px; }
.wz-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #e8eef6; color: var(--text-3); font-weight: 700; font-size: 14px; transition: all .25s;
}
.wz-step.active .wz-dot { background: linear-gradient(135deg, var(--blue), #4d95ff); color: #fff; box-shadow: 0 4px 12px rgba(43,127,255,.35); }
.wz-step.done .wz-dot { background: var(--green); color: #fff; }
.wz-label { font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.wz-step.active .wz-label { color: var(--blue); }
.wz-step.done .wz-label { color: var(--green); }
.wz-line { width: 34px; height: 2px; background: #dfe7f1; margin: 0 8px; }
.wz-pane { display: none; }
.wz-pane.active { display: block; animation: slideIn .3s ease; }
.pane-card { background: var(--card); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.pane-card h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pane-card h3::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--blue); }
.wz-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 12px; }

/* 图片上传区 */
.up-zone {
  border: 2px dashed #bcd4f5; border-radius: 16px; padding: 30px 16px; text-align: center;
  background: #f8fbff; transition: all .2s; cursor: pointer;
}
.up-zone:hover, .up-zone.drag { border-color: var(--blue); background: var(--blue-light); }
.up-zone svg { width: 46px; height: 46px; margin: 0 auto 8px; }
.up-zone p { color: var(--text-2); font-size: 14px; }
.up-zone .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.img-stage { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.stage-item {
  border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; position: relative;
  background: #fff; transition: box-shadow .2s;
}
.stage-item .thumb { padding-top: 72%; position: relative; background: #eef4fd; }
.stage-item .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-item .ops {
  display: flex; border-top: 1px solid var(--line);
}
.stage-item .ops button {
  flex: 1; padding: 6px 0; font-size: 12px; background: #fff; color: var(--text-2);
}
.stage-item .ops button:hover { background: var(--blue-light); color: var(--blue); }
.stage-item .ops button.del:hover { background: #fff1f0; color: var(--red); }
.stage-item .idx {
  position: absolute; top: 6px; left: 6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: rgba(28,43,58,.72); color: #fff; font-size: 12px;
  display: grid; place-items: center;
}
.stage-item .mk {
  position: absolute; top: 6px; right: 6px; font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: #e5f8ec; color: var(--green); display: none;
}
.stage-item.masked .mk { display: block; }

/* 脱敏编辑器 */
.mask-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mask-tools .tip { font-size: 12.5px; color: var(--text-2); background: #fff8e8; border: 1px solid #ffe7b3; padding: 7px 12px; border-radius: 10px; }
.mask-canvas-wrap { position: relative; text-align: center; background: #2a3542; border-radius: 14px; overflow: hidden; }
.mask-canvas-wrap canvas { max-width: 100%; touch-action: none; cursor: crosshair; display: block; margin: 0 auto; }
.mask-list { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; }
.mask-list .ml-item {
  width: 74px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 2.5px solid transparent;
  position: relative; cursor: pointer; background: #eef4fd;
}
.mask-list .ml-item.active { border-color: var(--blue); }
.mask-list .ml-item .mkflag { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; background: rgba(34,181,115,.9); color: #fff; text-align: center; display: none; }
.mask-list .ml-item.masked .mkflag { display: block; }

/* 隐私确认 */
.privacy-check {
  display: flex; gap: 10px; align-items: flex-start; background: #fff8e8;
  border: 1px solid #ffe7b3; border-radius: 13px; padding: 13px 15px; margin-top: 14px;
  font-size: 13.5px; color: #8a6116; cursor: pointer;
}
.privacy-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--orange); flex-shrink: 0; }

/* 预览 */
.pv-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pv-row:last-child { border-bottom: none; }
.pv-row .k { color: var(--text-3); }
.pv-row .v { word-break: break-all; }
.pv-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-imgs img { width: 92px; height: 68px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }

/* ---------------- 搜索结果页 ---------------- */
.filter-card {
  background: var(--card); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow);
  margin-top: 20px;
}
.filter-grid { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 10px; align-items: end; }
.filter-grid .field { margin-bottom: 0; }
.filter-grid .field select, .filter-grid .field input { padding: 9px 12px; font-size: 13.5px; }
.result-count { margin: 18px 2px 12px; font-size: 14px; color: var(--text-2); }
.result-count b { color: var(--blue); font-size: 17px; }
.empty-box {
  background: var(--card); border-radius: 20px; padding: 60px 20px; text-align: center;
  box-shadow: var(--shadow);
}
.empty-box svg { width: 90px; height: 90px; margin: 0 auto 16px; }
.empty-box h3 { font-size: 18px; margin-bottom: 6px; }
.empty-box p { color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2);
}
.pager .cur { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------- 详情页 ---------------- */
.detail-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.gallery { background: var(--card); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.gallery .main-img {
  position: relative; border-radius: 14px; overflow: hidden; background: #0e1520;
  cursor: zoom-in;
}
.gallery .main-img img { width: 100%; max-height: 520px; object-fit: contain; margin: 0 auto; }
.gallery .gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.88); color: var(--text);
  display: grid; place-items: center; font-size: 19px; box-shadow: var(--shadow); user-select: none;
}
.gallery .gal-nav:hover { background: #fff; }
.gallery .gal-prev { left: 12px; }
.gallery .gal-next { right: 12px; }
.gallery .gal-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
}
.gallery .thumbs { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs img {
  width: 86px; height: 62px; object-fit: cover; border-radius: 9px; cursor: pointer;
  border: 2.5px solid transparent; opacity: .75; flex-shrink: 0;
}
.gallery .thumbs img.active, .gallery .thumbs img:hover { border-color: var(--blue); opacity: 1; }
.info-card { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.info-card h1 { font-size: 22px; line-height: 1.4; margin-bottom: 10px; }
.info-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; font-size: 13.5px; }
.meta-grid .m-item { display: flex; gap: 6px; }
.meta-grid .m-item .k { color: var(--text-3); flex-shrink: 0; }
.meta-grid .m-item .v { word-break: break-all; }
.desc-block { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
.desc-block h4 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.desc-block h4::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--orange); }
.desc-block p { font-size: 14px; color: var(--text-2); white-space: pre-wrap; word-break: break-all; }
.author-box {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; background: #f8fbff;
  border-radius: 14px; padding: 13px 15px;
}
.author-box .avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #6db1ff, var(--blue)); color: #fff; font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.author-box b { font-size: 15px; }
.author-box span { display: block; font-size: 12.5px; color: var(--text-3); }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 16, 24, .93);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px; display: grid; place-items: center;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px;
  display: grid; place-items: center;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-count { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 14px; }

/* ---------------- 个人中心 / 管理后台 ---------------- */
.panel { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.panel-head h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.panel-head h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--blue); }
.panel-head .cnt { font-size: 13px; color: var(--text-3); }
.my-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.my-stat { background: var(--card); border-radius: 18px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.my-stat b { font-size: 28px; color: var(--blue); }
.my-stat span { display: block; font-size: 13px; color: var(--text-3); margin-top: 4px; }
.my-item {
  display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line);
  align-items: center;
}
.my-item:last-child { border-bottom: none; }
.my-item .cover {
  width: 92px; height: 66px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: #eef4fd; position: relative;
}
.my-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.my-item .cover .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #b7c8dd; font-size: 11px; }
.my-item .mi-main { flex: 1; min-width: 0; }
.my-item .mi-main h3 { font-size: 15.5px; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-item .mi-meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.my-item .mi-ops { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.reject-reason {
  margin: 8px 0 0; background: #fff1f0; color: #cf2f22; font-size: 12.5px;
  border-radius: 9px; padding: 7px 11px;
}
.admin-tabs { display: flex; gap: 8px; margin: 20px 0 0; flex-wrap: wrap; }
.admin-tabs a {
  padding: 9px 20px; border-radius: 11px; background: #fff; font-size: 14px;
  color: var(--text-2); border: 1px solid var(--line); font-weight: 600;
}
.admin-tabs a.on { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 12px rgba(43,127,255,.3); }
.admin-item { display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.admin-item:last-child { border-bottom: none; }
.admin-item .cover { width: 110px; height: 80px; border-radius: 11px; overflow: hidden; flex-shrink: 0; background: #eef4fd; position: relative; }
.admin-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.admin-item .ai-main { flex: 1; min-width: 0; }
.admin-item .ai-main h3 { font-size: 16px; margin-bottom: 5px; }
.admin-item .ai-meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.admin-item .ai-desc { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-item .ai-ops { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; align-items: stretch; min-width: 170px; }
.reason-input { width: 100%; padding: 8px 11px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 13px; }
.log-list { padding: 8px 22px 16px; }
.log-item { display: flex; gap: 10px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--text-2); }
.log-item .t { color: var(--text-3); flex-shrink: 0; font-size: 12.5px; }

/* ---------------- 错误页 ---------------- */
.err-wrap { display: grid; place-items: center; padding: 80px 16px; text-align: center; }
.err-code { font-size: 84px; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-wrap h2 { font-size: 21px; margin: 8px 0 6px; }
.err-wrap p { color: var(--text-3); margin-bottom: 22px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .slogan, .nav { display: none; }
  .m-nav { display: block; }
  .hero-inner { flex-direction: column; padding: 30px 16px 28px; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-art { display: none; }
  .search-bar .btn { padding: 11px 20px; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner .btn { margin-left: 0; }
  .footer .f-info { text-align: left; }
}
@media (max-width: 560px) {
  .doc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-grid { gap: 8px; }
  .cat-item { padding: 12px 4px 10px; border-radius: 13px; }
  .cat-item .ci { width: 42px; height: 42px; border-radius: 12px; }
  .cat-item b { font-size: 12.5px; }
  .cat-item span { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .my-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .my-stat { padding: 13px 6px; border-radius: 13px; }
  .my-stat b { font-size: 21px; }
  .my-item { flex-wrap: wrap; }
  .admin-item { flex-wrap: wrap; }
  .admin-item .ai-ops { min-width: 100%; flex-direction: row; }
  .pane-card { padding: 18px 15px; border-radius: 16px; }
  .meta-grid { grid-template-columns: 1fr; }
  .pv-row { grid-template-columns: 96px 1fr; }
  .btn-lg { padding: 12px 22px; font-size: 15px; }
}
