/* =============================================================
   杭州遇仙网络技术有限公司 · 全站样式
   版本：1.0
   分区：01 变量与基础 → 02 布局 → 03 页头 → 04 按钮 →
        05 卡片/标签 → 06 Hero → 07 首页区块 → 08 内页标题 →
        09 详情页 → 10 表单/登录注册 → 11 文档页 → 12 信息发布页 →
        13 用户中心 → 14 弹窗/提示 → 15 页脚 → 16 响应式
   ============================================================= */

/* ===== 01 变量与基础 ===== */
:root {
  --c-ink: #16233a;
  --c-ink-2: #2a3a52;
  --c-brand: #0f7b84;
  --c-brand-600: #0b636b;
  --c-brand-50: #e9f4f5;
  --c-accent: #ef9c1f;
  --c-accent-600: #d0800c;
  --c-success: #2f9e6f;
  --c-warn: #d98a10;
  --c-danger: #d1554f;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fa;
  --c-bg-soft-2: #eaf0f3;
  --c-text: #1b2430;
  --c-text-2: #5b6673;
  --c-muted: #97a2af;
  --c-border: #e4e9ef;
  --c-border-2: #d2dae2;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(22, 35, 58, .05);
  --sh-2: 0 4px 14px rgba(22, 35, 58, .07);
  --sh-3: 0 14px 34px rgba(22, 35, 58, .11);
  --t: all .22s ease;

  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0 0 12px; font-weight: 700; line-height: 1.35; color: var(--c-ink); }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p  { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-brand); text-decoration: none; transition: var(--t); }
a:hover { color: var(--c-brand-600); }

img { max-width: 100%; border: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font-family: inherit; font-size: 15px; color: inherit; }
button { cursor: pointer; }

svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===== 02 布局 ===== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; }

.section { padding: 68px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-sm { padding: 44px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--c-text-2); margin: 0; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--c-brand); background: var(--c-brand-50);
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--c-text-2); }
.small { font-size: 13px; }

/* ===== 03 页头 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: var(--t);
}
.site-header.scrolled { border-bottom-color: var(--c-border); box-shadow: var(--sh-1); }

.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--c-ink); flex-shrink: 0; }
.logo:hover { color: var(--c-ink); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-ink) 100%);
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  display: block; padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--c-text-2);
}
.nav-menu a:hover { color: var(--c-brand); background: var(--c-bg-soft); }
.nav-menu a.active { color: var(--c-brand); background: var(--c-brand-50); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 40px; height: 36px; border: 1px solid var(--c-border);
  background: #fff; border-radius: var(--r-sm); color: var(--c-ink); font-size: 18px;
}
.nav-m-only { display: none; }

.user-bar { display: flex; align-items: center; gap: 10px; }
.user-name {
  display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--c-ink);
  font-size: 14px;
}
.u-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--c-brand-50);
  color: var(--c-brand); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== 04 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent; border-radius: var(--r);
  background: var(--c-bg-soft-2); color: var(--c-text);
  transition: var(--t); white-space: nowrap;
}
.btn:hover { color: var(--c-text); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-brand { background: var(--c-brand); color: #fff; }
.btn-brand:hover { background: var(--c-brand-600); color: #fff; }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-600); color: #fff; }
.btn-outline { background: transparent; border-color: var(--c-brand); color: var(--c-brand); }
.btn-outline:hover { background: var(--c-brand-50); color: var(--c-brand-600); }
.btn-ghost { background: transparent; border-color: var(--c-border); color: var(--c-text-2); }
.btn-ghost:hover { border-color: var(--c-border-2); color: var(--c-ink); }
.btn-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #bf4742; color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ===== 05 卡片 / 标签 / 图片占位 ===== */
.card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden; transition: var(--t);
}
.card:hover { box-shadow: var(--sh-2); }
.card-pad { padding: 24px; }

.media {
  position: relative; display: block; overflow: hidden;
  background: linear-gradient(135deg, #eef3f6 0%, #e2eaf0 100%);
  aspect-ratio: 16 / 10;
}
.media::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(15, 123, 132, .10), transparent 62%);
}
.media::after {
  content: '封面图'; position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  color: #a9b4bf; font-size: 13px; letter-spacing: 2px;
}
.media > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.media > img.img-missing { display: none; }

.tag {
  display: inline-block; padding: 3px 9px; font-size: 12px; font-weight: 500;
  border-radius: 4px; background: var(--c-brand-50); color: var(--c-brand);
}
.tag-line { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-soft { background: var(--c-bg-soft-2); color: var(--c-text-2); }

/* 信息卡片 */
.info-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--t);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--c-border-2); }
.info-card .card-cover { position: relative; }
.cat-flag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(22, 35, 58, .78); color: #fff; font-size: 12px; font-weight: 500;
  padding: 3px 9px; border-radius: 4px; backdrop-filter: blur(4px);
}
.info-card .card-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.info-card .card-title { margin: 0; font-size: 17px; line-height: 1.5; }
.info-card .card-title a { color: var(--c-ink); }
.info-card .card-title a:hover { color: var(--c-brand); }
.card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--c-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.publisher { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--c-text-2); }
.publisher .u-avatar { width: 24px; height: 24px; font-size: 11px; }
.card-more { font-size: 13px; font-weight: 600; color: var(--c-brand); }
.card-more:hover { color: var(--c-brand-600); }

.empty {
  padding: 70px 20px; text-align: center; color: var(--c-muted);
  background: #fff; border: 1px dashed var(--c-border-2); border-radius: var(--r-lg);
}
.empty svg { font-size: 34px; color: var(--c-border-2); margin-bottom: 10px; }

/* ===== 06 Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #16233a 0%, #1c3a4c 52%, #0f7b84 100%);
  padding: 88px 0 78px;
}
.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: 46px 46px;
}
.hero::after {
  content: ''; position: absolute; right: -140px; top: -120px; width: 460px; height: 460px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: #bfe6e8; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.hero h1 { font-size: 40px; line-height: 1.28; color: #fff; max-width: 760px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: #7fd8dd; }
.hero-desc { font-size: 16px; color: rgba(255, 255, 255, .8); max-width: 660px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stat .num { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-stat .lbl { font-size: 13px; color: rgba(255, 255, 255, .68); }

/* ===== 07 首页区块 ===== */
.cat-entry {
  display: block; position: relative; padding: 30px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--c-border); transition: var(--t);
}
.cat-entry:hover { border-color: var(--c-brand); box-shadow: var(--sh-2); transform: translateY(-3px); }
.cat-entry .ce-ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--c-brand-50);
  color: var(--c-brand); font-size: 24px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cat-entry h3 { margin-bottom: 8px; }
.cat-entry p { color: var(--c-text-2); font-size: 14px; }
.cat-entry .ce-meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--c-text-2); font-weight: 600;
}

.feature {
  padding: 26px 24px; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); transition: var(--t);
}
.feature:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.feature .f-ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--c-brand-50);
  color: var(--c-brand); font-size: 22px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature h4 { margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--c-text-2); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 40px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-brand); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--c-text-2); margin: 0; }
.steps-line { position: relative; }
.steps-line .step::after {
  content: ''; position: absolute; left: 42px; top: 15px; width: calc(100% - 52px);
  border-top: 1px dashed var(--c-border-2);
}
.steps-line .step:last-child::after { display: none; }

.cta-band {
  background: linear-gradient(120deg, #16233a 0%, #0f7b84 100%);
  border-radius: var(--r-lg); padding: 44px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; }

/* ===== 08 内页标题 ===== */
.page-head { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); padding: 40px 0 34px; }
.breadcrumb { font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--c-text-2); }
.breadcrumb .sep { margin: 0 6px; color: var(--c-border-2); }
.page-head h1 { margin-bottom: 6px; }
.page-head .ph-desc { color: var(--c-text-2); margin: 0; max-width: 760px; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ===== 09 详情页 ===== */
.detail-top {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px;
  padding: 34px; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.detail-cover { border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-border); }
.detail-title { font-size: 26px; margin-bottom: 12px; }
.detail-summary { color: var(--c-text-2); margin-bottom: 18px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }

.contact-card { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--r); padding: 18px 20px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; }
.contact-row + .contact-row { border-top: 1px dashed var(--c-border); }
.contact-row .k { width: 66px; flex-shrink: 0; color: var(--c-text-2); font-size: 14px; }
.contact-row .v { font-weight: 600; color: var(--c-ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-row .v .pub-ico { color: var(--c-brand); }
.phone-full { font-weight: 700; color: var(--c-ink); letter-spacing: .5px; }
.phone-lock { color: var(--c-text-2); font-weight: 600; letter-spacing: .5px; }
.link-login { font-size: 13px; font-weight: 500; color: var(--c-accent-600); text-decoration: underline; }
.link-login:hover { color: var(--c-accent); }

.detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.detail-block { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 24px; }
.detail-block h3 { padding-bottom: 12px; border-bottom: 1px solid var(--c-border); margin-bottom: 16px; }

.list-check li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--c-text-2); }
.list-check li svg { position: absolute; left: 0; top: .45em; font-size: 15px; color: var(--c-success); }
.chip {
  display: inline-block; padding: 5px 12px; margin: 0 8px 8px 0; font-size: 13px;
  border: 1px solid var(--c-border-2); border-radius: var(--r-pill); color: var(--c-text-2); background: #fff;
}
.scenario-item { display: flex; gap: 12px; margin-bottom: 14px; }
.scenario-item .sn {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: var(--r-sm);
  background: var(--c-brand-50); color: var(--c-brand); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.scenario-item p { margin: 0; font-size: 14px; color: var(--c-text-2); }
.scenario-item strong { display: block; color: var(--c-ink); font-size: 14px; }
.detail-content-text { white-space: pre-wrap; color: var(--c-text-2); }

.side-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px; }
.side-card h4 { padding-bottom: 10px; border-bottom: 1px solid var(--c-border); margin-bottom: 14px; }
.side-flow li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 14px; color: var(--c-text-2); }
.side-flow li::before {
  content: ''; position: absolute; left: 3px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--c-brand);
}
.side-flow li:not(:last-child)::after {
  content: ''; position: absolute; left: 6px; top: 18px; width: 1px; height: calc(100% - 8px);
  background: var(--c-border-2);
}

/* ===== 10 表单 / 登录注册 ===== */
.auth-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; padding: 56px 0 70px; }
.auth-intro h1 { font-size: 30px; margin-bottom: 14px; }
.auth-intro .ai-list { margin-top: 22px; }
.auth-intro .ai-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--c-text-2); }
.auth-intro .ai-list svg { color: var(--c-brand); font-size: 17px; margin-top: 3px; flex-shrink: 0; }

.form-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sh-1);
}
.form-card h2 { text-align: center; margin-bottom: 6px; }
.form-card .subtitle { text-align: center; color: var(--c-text-2); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group > label { display: block; font-size: 14px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; }
.form-group .hint { font-size: 12px; color: var(--c-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.input, .select, .textarea {
  width: 100%; padding: 10px 13px; font-size: 15px; color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border-2); border-radius: var(--r);
  transition: var(--t);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(15, 123, 132, .12);
}
.textarea { min-height: 190px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6673' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px;
}
.input[readonly] { background: var(--c-bg-soft); color: var(--c-text-2); }

.form-actions { margin-top: 22px; }
.form-footer {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-border);
  text-align: center; font-size: 14px; color: var(--c-text-2);
}
.alert-soft {
  padding: 10px 14px; border-radius: var(--r); font-size: 13px; margin-bottom: 16px;
  background: var(--c-brand-50); color: var(--c-brand-600); border: 1px solid rgba(15, 123, 132, .18);
}
.alert-warn { background: #fdf3e3; color: #8a6100; border-color: #f3e0bd; }
.alert-err { background: #fdeceb; color: #a53d38; border-color: #f4d2d0; }

.checkbox-label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13px; color: var(--c-text-2); }
.checkbox-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; border: 1.5px solid var(--c-border-2);
  border-radius: 4px; background: #fff; position: relative; transition: var(--t);
}
.checkbox-label input:checked + .checkbox-custom { background: var(--c-brand); border-color: var(--c-brand); }
.checkbox-label input:checked + .checkbox-custom::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}

.upload-box {
  border: 1px dashed var(--c-border-2); border-radius: var(--r); padding: 16px;
  background: var(--c-bg-soft); display: flex; align-items: center; gap: 14px;
}
.upload-prev {
  width: 96px; height: 64px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0;
  position: relative; background: linear-gradient(135deg, #eef3f6, #e2eaf0);
}
.upload-prev::after { content: '封面图'; position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; color: #a9b4bf; font-size: 12px; letter-spacing: 1px; }
.upload-prev img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

.price-tip {
  padding: 12px 16px; border-radius: var(--r); font-size: 13px; margin-top: 14px;
  background: #fdf3e3; color: #8a6100; border: 1px solid #f3e0bd;
}
.price-tip strong { color: var(--c-accent-600); font-size: 15px; }

/* ===== 11 文档页 ===== */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.doc-nav { position: sticky; top: 92px; }
.doc-nav .dn-title { font-size: 13px; font-weight: 700; color: var(--c-muted); letter-spacing: 1px; margin-bottom: 10px; }
.doc-nav a {
  display: block; padding: 7px 12px; font-size: 14px; color: var(--c-text-2);
  border-left: 2px solid var(--c-border); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.doc-nav a:hover, .doc-nav a.on { color: var(--c-brand); border-left-color: var(--c-brand); background: var(--c-brand-50); }
.doc-body h2 { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { margin-top: 22px; font-size: 16px; }
.doc-body p, .doc-body li { color: var(--c-text-2); }
.doc-body ol.doc-list, .doc-body ul.doc-list { padding-left: 20px; }
.doc-body ol.doc-list li { list-style: decimal; margin-bottom: 8px; }
.doc-body ul.doc-list li { list-style: disc; margin-bottom: 8px; }
.doc-meta { font-size: 13px; color: var(--c-muted); margin-bottom: 26px; }

/* ===== 12 信息发布页 ===== */
.notice-hero {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px;
  border-radius: var(--r-lg); background: #fdf3e3; border: 1px solid #f3e0bd; color: #7a5700;
}
.notice-hero svg { font-size: 22px; color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.notice-hero h3 { margin-bottom: 4px; color: #7a5700; }
.notice-hero p { margin: 0; font-size: 14px; }

.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee-table th, .fee-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); text-align: left; }
.fee-table th { background: var(--c-bg-soft); color: var(--c-ink); font-weight: 600; }
.fee-table td em { font-style: normal; color: var(--c-accent-600); font-weight: 700; }
.fee-table tr:last-child td { border-bottom: 0; }

.publish-cta { text-align: center; padding: 40px 30px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.publish-cta p { color: var(--c-text-2); margin-bottom: 20px; }

.audit-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.audit-step {
  padding: 22px 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
}
.audit-step .as-no {
  font-size: 12px; font-weight: 700; color: var(--c-brand); background: var(--c-brand-50);
  display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); margin-bottom: 10px;
}
.audit-step h4 { margin-bottom: 6px; }
.audit-step p { font-size: 13.5px; color: var(--c-text-2); margin: 0; }

.notice-list li {
  position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 14px; color: var(--c-text-2);
}
.notice-list li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-brand);
}

/* ===== 13 用户中心 ===== */
.uc-layout { display: grid; grid-template-columns: 216px 1fr; gap: 26px; padding: 30px 0 60px; align-items: start; }
.uc-side {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 12px; position: sticky; top: 92px;
}
.uc-side .uc-user { padding: 14px 12px 16px; border-bottom: 1px solid var(--c-border); margin-bottom: 8px; }
.uc-side .uc-user .uu-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c-ink); }
.uc-side .uc-user .uu-name .u-avatar { width: 34px; height: 34px; font-size: 14px; }
.uc-side .uc-user .uu-bal { font-size: 13px; color: var(--c-text-2); margin-top: 8px; }
.uc-side .uc-user .uu-bal b { color: var(--c-accent-600); font-size: 15px; }
.uc-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--c-text-2);
}
.uc-nav a svg { font-size: 17px; }
.uc-nav a:hover { background: var(--c-bg-soft); color: var(--c-ink); }
.uc-nav a.on { background: var(--c-brand-50); color: var(--c-brand); font-weight: 600; }

.uc-main { min-width: 0; }
.uc-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.uc-title h1 { font-size: 22px; margin: 0; }
.uc-title p { margin: 2px 0 0; font-size: 14px; color: var(--c-text-2); }

.uc-panel { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.uc-panel > h3 { font-size: 16px; }

.balance-card {
  background: linear-gradient(120deg, #16233a, #0f7b84); color: #fff;
  border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.balance-card .bc-lbl { font-size: 13px; color: rgba(255, 255, 255, .72); }
.balance-card .bc-num { font-size: 32px; font-weight: 700; line-height: 1.2; }
.balance-card .bc-tip { font-size: 13px; color: rgba(255, 255, 255, .7); }

.uc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.uc-stat { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 18px 20px; }
.uc-stat .us-num { font-size: 22px; font-weight: 700; color: var(--c-ink); line-height: 1.2; }
.uc-stat .us-lbl { font-size: 13px; color: var(--c-text-2); }

.uc-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.uc-quick a {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r);
  border: 1px solid var(--c-border); background: #fff; color: var(--c-ink); font-weight: 600; font-size: 14px;
}
.uc-quick a svg { color: var(--c-brand); font-size: 18px; }
.uc-quick a:hover { border-color: var(--c-brand); box-shadow: var(--sh-2); }

.auth-box {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-lg);
  border: 1px solid rgba(47, 158, 111, .3); background: rgba(47, 158, 111, .07); margin-bottom: 20px;
}
.auth-box .ab-ico {
  width: 42px; height: 42px; border-radius: 50%; background: var(--c-success); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.auth-box p { margin: 0; font-size: 13px; color: var(--c-text-2); }
.auth-box strong { color: var(--c-ink); font-size: 15px; }

.table-wrap { overflow-x: auto; }
.uc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 780px; }
.uc-table th { background: var(--c-bg-soft); color: var(--c-ink); font-weight: 600; text-align: left; padding: 11px 14px; white-space: nowrap; }
.uc-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); color: var(--c-text-2); vertical-align: middle; }
.uc-table tbody tr:hover { background: var(--c-bg-soft); }
.uc-table .t-title { color: var(--c-ink); font-weight: 600; max-width: 260px; }
.uc-table .t-ops { white-space: nowrap; }
.uc-table .t-ops a { margin-right: 10px; font-size: 13px; }
.op-danger { color: var(--c-danger); }

.badge {
  display: inline-block; padding: 2px 9px; font-size: 12px; font-weight: 600;
  border-radius: var(--r-pill); white-space: nowrap;
}
.badge-wait { background: #fdf3e3; color: #a06c00; }
.badge-pass { background: #e9f6ef; color: #1f7a55; }
.badge-fail { background: #fdeceb; color: #a53d38; }

.pager { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border); display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--c-text-2);
}
.pager a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pager .on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; font-weight: 600; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--c-border); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { padding: 9px 16px; font-size: 14.5px; font-weight: 600; color: var(--c-text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--c-brand); border-bottom-color: var(--c-brand); }

.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pay-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--c-border);
  border-radius: var(--r); cursor: pointer; transition: var(--t); background: #fff;
}
.pay-item:hover { border-color: var(--c-border-2); }
.pay-item.on { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(15, 123, 132, .1); }
.pay-item input { position: absolute; opacity: 0; }
.pay-item .pi-ico { font-size: 26px; }
.pay-item .pi-name { display: block; font-weight: 600; color: var(--c-ink); line-height: 1.4; }
.pay-item .pi-desc { display: block; font-size: 12.5px; color: var(--c-text-2); line-height: 1.4; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.amount-item {
  padding: 12px 8px; text-align: center; border: 1px solid var(--c-border); border-radius: var(--r);
  font-weight: 700; color: var(--c-ink); cursor: pointer; transition: var(--t); background: #fff; font-size: 15px;
}
.amount-item:hover { border-color: var(--c-border-2); }
.amount-item.on { border-color: var(--c-brand); color: var(--c-brand); box-shadow: 0 0 0 3px rgba(15, 123, 132, .1); }

.qr-placeholder {
  width: 168px; height: 168px; margin: 0 auto 12px; border-radius: var(--r);
  background: linear-gradient(135deg, #eef3f6, #e2eaf0);
  border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center;
  color: #a9b4bf; font-size: 13px; letter-spacing: 1px; text-align: center; padding: 10px;
}

.record-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--c-border); font-size: 14px;
}
.record-list li:last-child { border-bottom: 0; }
.record-list .rl-l b { display: block; color: var(--c-ink); font-size: 14px; font-weight: 600; }
.record-list .rl-l span { font-size: 12.5px; color: var(--c-muted); }
.record-list .rl-r { font-weight: 700; color: var(--c-success); white-space: nowrap; }

.mini-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--c-border); font-size: 14px;
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list .ml-l { color: var(--c-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .ml-l span { display: block; font-size: 12.5px; font-weight: 400; color: var(--c-muted); }

/* ===== 14 弹窗 / 提示 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000; background: rgba(22, 35, 58, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 460px; background: #fff; border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-3);
}
.modal h3 { margin-bottom: 8px; }
.modal .modal-text { font-size: 14px; color: var(--c-text-2); margin-bottom: 14px; }
.modal .modal-ops { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

#toastBox { position: fixed; top: 84px; left: 0; right: 0; z-index: 1100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  padding: 9px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: #fff;
  background: rgba(22, 35, 58, .92); box-shadow: var(--sh-2);
  animation: toastIn .22s ease;
}
.toast.ok { background: rgba(47, 158, 111, .95); }
.toast.err { background: rgba(209, 85, 79, .95); }
.toast.warn { background: rgba(217, 138, 16, .95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.file-tip {
  background: #fdf3e3; border-bottom: 1px solid #f3e0bd; color: #7a5700;
  font-size: 13px; padding: 8px 20px; text-align: center;
}

/* ===== 15 页脚 ===== */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, .68); padding: 52px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 34px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; line-height: 1.8; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, .68); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; }
.footer-logo .logo-mark { background: linear-gradient(135deg, #0f7b84, #2a4a63); }
.footer-addr { font-size: 13.5px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .5);
}
.footer-bottom .fb-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: #fff; }
.icp-link { color: rgba(255, 255, 255, .72) !important; }

/* ===== 16 响应式 ===== */
@media (max-width: 1080px) {
  .detail-body { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 210px 1fr; gap: 26px; }
}
@media (max-width: 980px) {
  .hero h1 { font-size: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .audit-flow { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-intro { display: none; }
  .form-card { max-width: 520px; }
  .logo-text { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .uc-stats, .uc-quick { grid-template-columns: repeat(2, 1fr); }
  .detail-top { grid-template-columns: 1fr; padding: 22px; }
  .uc-layout { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .uc-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .uc-nav a { justify-content: center; }
  .uc-side .uc-user { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-nav a { border-left: 0; border: 1px solid var(--c-border); border-radius: var(--r-sm); }
  .doc-nav .dn-title { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 899;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    padding: 8px 16px 14px; box-shadow: var(--sh-2);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 11px 8px; border-radius: var(--r-sm); }
  .nav-menu .nav-m-only { display: block; }
  .nav-toggle { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-actions .user-bar .btn-ghost { display: none; }
  .grid-2, .grid-3, .grid-4, .info-grid, .uc-stats, .uc-quick { grid-template-columns: 1fr; }
  .steps, .audit-flow { grid-template-columns: 1fr; }
  .steps-line .step::after { display: none; }
  .form-row, .form-row-3, .pay-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 27px; }
  .section { padding: 46px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .form-card { padding: 22px; }
  .detail-block { padding: 20px 18px; }
  .uc-panel { padding: 18px; }
  .uc-nav { grid-template-columns: repeat(2, 1fr); }
  .balance-card { padding: 20px; }
  .container { padding: 0 16px; }
}

/* ===== 17 详情页补充 ===== */
.detail-info { min-width: 0; }
.detail-main { min-width: 0; }
.detail-side { min-width: 0; }

.mini-card {
  display: flex; gap: 10px; padding: 6px; border-radius: var(--r);
  border: 1px solid transparent; transition: var(--t);
}
.mini-card + .mini-card { margin-top: 6px; }
.mini-card:hover { border-color: var(--c-border); background: var(--c-bg-soft); }
.mini-card .media { width: 84px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.mini-card .media::after { content: '图'; font-size: 11px; }
.mini-card .mc-body { min-width: 0; padding: 2px 4px 2px 0; }
.mc-title {
  font-size: 13.5px; font-weight: 600; color: var(--c-ink); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-card:hover .mc-title { color: var(--c-brand); }
.mc-pub { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
