/* ============================================================
   智创资源站 - 前台样式
   风格：编辑式财富终端（深炭 + 暖金 + 翡翠绿）
   ============================================================ */

:root {
  --bg:        #0E1116;
  --bg-soft:   #11161D;
  --panel:     #161B22;
  --panel-2:   #1C232D;
  --border:    #262C36;
  --border-2:  #30363D;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --muted-2:   #6e7681;
  --gold:      #F5C56A;
  --gold-soft: #caa34d;
  --gold-dim:  rgba(245,197,106,.12);
  --green:     #34D399;
  --green-dim: rgba(52,211,153,.12);
  --red:       #f87171;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 12px 40px rgba(0,0,0,.45);
  --max:       1240px;
  --font-sans: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --font-disp: "Sora","PingFang SC","Microsoft YaHei",sans-serif;
  --font-mono: "JetBrains Mono","SF Mono",Consolas,monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(245,197,106,.06), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(52,211,153,.04), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,17,22,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-disp); font-weight: 700; font-size: 19px; letter-spacing: .3px; flex-shrink: 0; margin-right: auto; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #e0a83a);
  display: grid; place-items: center; color: #1a1208; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 14px rgba(245,197,106,.35);
}
.brand span b { color: var(--gold); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: .18s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--gold); background: var(--gold-dim); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* 汉堡菜单按钮（默认隐藏，移动端显示） */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; background: transparent; border: 1px solid var(--border-2); border-radius: 8px; cursor: pointer; padding: 0 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端下拉导航（默认隐藏） */
.nav-mobile { display: none; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--border); padding: 8px 16px; }
.nav-mobile a { padding: 12px 14px; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--gold); background: var(--gold-dim); }
body.nav-open .nav-mobile { display: flex; }
.nav-mobile-search { padding: 10px 14px 12px; border-bottom: 1px solid var(--border); }
.nav-mobile-search input { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 14px; outline: 0; }
.nav-mobile-search input:focus { border-color: var(--gold); }

/* 移动端悬浮菜单按钮 + 左侧抽屉（PC 端隐藏，760px 以下显示） */
.m-fab { display: none; position: fixed; left: 14px; top: 66px; z-index: 200; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: var(--panel); border: 1px solid var(--border-2); border-radius: 10px; cursor: pointer; padding: 0 9px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.m-fab span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
body.nav-open .m-fab span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .m-fab span:nth-child(2) { opacity: 0; }
body.nav-open .m-fab span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.m-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 250; opacity: 0; transition: opacity .25s; }
body.nav-open .m-overlay { display: block; opacity: 1; }

.nav-drawer { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 82vw; background: var(--panel); border-right: 1px solid var(--border); z-index: 260; transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1); overflow-y: auto; padding-bottom: 30px; }
body.nav-open .nav-drawer { transform: translateX(0); box-shadow: 8px 0 30px rgba(0,0,0,.4); }
.nav-drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.nav-drawer-title { font-family: var(--font-disp); font-weight: 700; font-size: 16px; color: var(--text); }
.nav-drawer-close { background: transparent; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.nav-drawer-close:hover { color: var(--gold); background: var(--gold-dim); }
.nav-drawer-search { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.nav-drawer-search input { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 14px; outline: 0; }
.nav-drawer-search input:focus { border-color: var(--gold); }
.nav-drawer > a { display: block; padding: 13px 18px; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--border); transition: .15s; }
.nav-drawer > a:hover, .nav-drawer > a.active { color: var(--gold); background: var(--gold-dim); }
.nav-drawer-divider { height: 1px; background: var(--border); margin: 8px 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #e6b658); color: #1a1208; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,197,106,.3); }
.btn-green { background: var(--green); color: #04231a; }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(52,211,153,.3); }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 75% 10%, rgba(245,197,106,.10), transparent 60%),
    linear-gradient(180deg, #10141b, var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(700px 380px at 70% 0%, #000, transparent 75%);
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--gold-dim); color: var(--gold); font-size: 12.5px; font-weight: 600; border: 1px solid rgba(245,197,106,.25); }
.hero h1 { font-family: var(--font-disp); font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; line-height: 1.1; margin: 18px 0 16px; letter-spacing: -.5px; }
.hero h1 b { color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.hero-stats .st .n { font-family: var(--font-disp); font-size: 30px; font-weight: 800; color: var(--gold); }
.hero-stats .st .l { color: var(--muted); font-size: 13px; }
.hero-search { margin-top: 30px; width: 100%; max-width: 540px; display: flex; background: var(--panel); border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; }
.hero-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); padding: 14px 16px; font-size: 15px; min-width: 0; }
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search button { border: 0; padding: 0 22px; background: var(--gold); color: #1a1208; font-weight: 700; cursor: pointer; font-size: 14.5px; flex-shrink: 0; }

/* ---------- 区块标题 ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-disp); font-size: 26px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ""; width: 5px; height: 24px; background: var(--gold); border-radius: 3px; }
.section-head .more { color: var(--muted); font-size: 14px; }
.section-head .more:hover { color: var(--gold); }

/* ---------- 分类入口卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); overflow: hidden;
  transition: .22s;
}
.cat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--gold-dim); transition: .3s; }
.cat-card:hover { transform: translateY(-4px); border-color: rgba(245,197,106,.4); box-shadow: var(--shadow); }
.cat-card:hover::after { transform: scale(1.4); }
.cat-card .ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: var(--panel-2); border: 1px solid var(--border-2); position: relative; z-index: 1; }
.cat-card h3 { font-family: var(--font-disp); font-size: 19px; margin: 14px 0 6px; position: relative; z-index: 1; }
.cat-card p { color: var(--muted); font-size: 13px; position: relative; z-index: 1; }
.cat-card .cnt { margin-top: 14px; font-family: var(--font-mono); color: var(--gold); font-size: 13px; position: relative; z-index: 1; }

/* ---------- 资源卡片 ---------- */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.res-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .22s; display: flex; flex-direction: column;
}
.res-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.res-card .cover { position: relative; aspect-ratio: 16/10; background: var(--panel-2); overflow: hidden; }
.res-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.res-card:hover .cover img { transform: scale(1.06); }
.res-card .cover .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted-2); font-size: 13px; }
.res-card .badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(4px); }
.badge-cat { background: rgba(22,27,34,.8); color: var(--text); border: 1px solid var(--border-2); }
.res-card .body { padding: 14px 15px 16px; flex: 1; display: flex; flex-direction: column; }
.res-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.res-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.res-card .price { font-family: var(--font-mono); font-weight: 700; }
.price-free { color: var(--green); }
.price-pay { color: var(--gold); }
.res-card .views { color: var(--muted-2); font-size: 12px; font-family: var(--font-mono); }

/* ---------- 分类列表页 ---------- */
.list-page { padding: 36px 0 60px; }
.filter-bar { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.filter-row:last-child { border-bottom: 0; }
.filter-row .lbl { color: var(--muted); font-size: 13px; width: 64px; flex-shrink: 0; }
.filter-chip { padding: 5px 13px; border-radius: 7px; font-size: 13px; color: var(--muted); border: 1px solid transparent; transition: .15s; }
.filter-chip:hover { color: var(--text); background: var(--panel-2); }
.filter-chip.active { color: var(--gold); background: var(--gold-dim); border-color: rgba(245,197,106,.3); font-weight: 600; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.list-head .t { font-family: var(--font-disp); font-size: 20px; font-weight: 700; }
.list-head .t b { color: var(--gold); }
.sort-sel { background: var(--panel); border: 1px solid var(--border-2); color: var(--text); border-radius: 8px; padding: 7px 12px; font-size: 13px; outline: 0; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager-btn { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-size: 13.5px; transition: .15s; }
.pager-btn:hover { color: var(--text); border-color: var(--border-2); }
.pager-btn.active { background: var(--gold); color: #1a1208; border-color: var(--gold); font-weight: 700; }
.pager-info { color: var(--muted-2); font-size: 13px; margin-left: 10px; }

/* ---------- 详情页 ---------- */
.detail { padding: 36px 0 60px; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.detail-main { min-width: 0; }
.detail-head { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; }
.detail-head .cat-line { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-head h1 { font-family: var(--font-disp); font-size: 26px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; }
.detail-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.detail-meta .m { display: flex; align-items: center; gap: 5px; }
.detail-meta .m b { color: var(--text); font-family: var(--font-mono); }
.tag-cat { padding: 4px 10px; border-radius: 6px; background: var(--gold-dim); color: var(--gold); font-size: 12.5px; font-weight: 600; }

.content-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-top: 20px; }
.content-box .body-html { font-size: 15.5px; line-height: 1.85; color: #d6dee6; }
.content-box .body-html p { margin: 0 0 14px; }
.content-box .body-html img { border-radius: 10px; margin: 14px auto; max-height: 520px; object-fit: contain; }
.content-box .body-html strong { color: var(--gold); }
.content-box .summary-free { color: var(--muted); font-size: 15px; line-height: 1.8; }

/* 内容锁定蒙层 */
.locked-wrap { position: relative; }
.locked-blur { filter: blur(7px); user-select: none; pointer-events: none; max-height: 520px; overflow: hidden; }
.locked-overlay {
  position: absolute; left: 0; right: 0; bottom: -10px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 36px 24px 30px; text-align: center;
  background: linear-gradient(180deg, transparent, var(--panel) 38%);
}
.lock-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--gold-dim); border: 1px solid rgba(245,197,106,.3); display: grid; place-items: center; color: var(--gold); font-size: 26px; }
.locked-overlay .lt { font-family: var(--font-disp); font-size: 18px; font-weight: 700; }
.locked-overlay .ld { color: var(--muted); font-size: 13.5px; max-width: 420px; }
.lock-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* 下载区 */
.download-box { background: linear-gradient(135deg, rgba(52,211,153,.08), rgba(245,197,106,.06)); border: 1px solid rgba(52,211,153,.25); border-radius: var(--radius); padding: 22px 26px; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.download-box .dl-info h4 { font-size: 15px; margin-bottom: 4px; }
.download-box .dl-info p { color: var(--muted); font-size: 13px; }

/* 详情侧栏 */
.detail-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-card h4 { font-family: var(--font-disp); font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.side-card h4::before { content: ""; width: 4px; height: 15px; background: var(--gold); border-radius: 2px; }
.side-mini { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.side-mini:last-child { border-bottom: 0; }
.side-mini .cov { width: 64px; height: 44px; border-radius: 7px; object-fit: cover; flex-shrink: 0; background: var(--panel-2); }
.side-mini .cov.ph { display: grid; place-items: center; color: var(--muted-2); font-size: 10px; }
.side-mini .tt { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-mini .pp { font-family: var(--font-mono); font-size: 12px; margin-top: 4px; }

.vip-banner { background: linear-gradient(135deg, #2a2113, #1c2317); border: 1px solid rgba(245,197,106,.3); border-radius: var(--radius); padding: 22px; text-align: center; }
.vip-banner .crown { font-size: 30px; }
.vip-banner h4 { font-family: var(--font-disp); color: var(--gold); font-size: 18px; margin: 8px 0 6px; }
.vip-banner p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* ---------- 表单页 ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 38px 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--font-disp); font-size: 24px; margin-bottom: 6px; }
.auth-card p.sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.icon-uploader { min-width: 0; }
.icon-uploader > div { min-width: 0; }
.form-control { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-2); border-radius: 9px; padding: 11px 14px; color: var(--text); font-size: 14.5px; outline: 0; transition: .15s; font-family: inherit; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
textarea.form-control { resize: vertical; min-height: 130px; line-height: 1.6; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.auth-foot a { color: var(--gold); }

/* 闪存消息 */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.flash-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,.25); }
.flash-error { background: rgba(248,113,113,.1); color: var(--red); border: 1px solid rgba(248,113,113,.25); }
.alert { padding: 11px 16px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; }
.alert-info { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(245,197,106,.2); }

/* ---------- VIP 套餐页 ---------- */
.vip-page { padding: 50px 0 70px; }
.vip-hero { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.vip-hero h1 { font-family: var(--font-disp); font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.vip-hero h1 b { color: var(--gold); }
.vip-hero p { color: var(--muted); font-size: 16px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin: 0 auto; }
.plan-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 34px 28px; transition: .22s; position: relative; }
.plan-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 50px rgba(245,197,106,.12); }
.plan-card:hover { transform: translateY(-5px); }
.plan-card .ribbon { position: absolute; top: -12px; right: 24px; background: var(--gold); color: #1a1208; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 6px; }
.plan-card h3 { font-family: var(--font-disp); font-size: 21px; margin-bottom: 6px; }
.plan-card .desc { color: var(--muted); font-size: 13.5px; min-height: 38px; }
.plan-price { margin: 20px 0 22px; }
.plan-price .num { font-family: var(--font-disp); font-size: 42px; font-weight: 800; color: var(--gold); }
.plan-price .unit { color: var(--muted); font-size: 14px; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li { padding: 8px 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- 投稿表单 ---------- */
.contribute-wrap { padding: 40px 0 70px; }
.contribute-wrap .layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.contribute-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; }
.contribute-tips { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; height: fit-content; }
.contribute-tips h4 { font-family: var(--font-disp); font-size: 15px; margin-bottom: 12px; color: var(--gold); }
.contribute-tips ul { padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ---------- 会员中心 ---------- */
.member-wrap { padding: 36px 0 60px; }
.member-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; }
.member-side { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; height: fit-content; position: sticky; top: 84px; }
.member-side .who { padding: 8px 10px 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.member-side .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #c9923a); display: grid; place-items: center; color: #1a1208; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.member-side .who .nm { font-weight: 600; }
.member-side .who .vip { font-size: 12px; color: var(--gold); font-family: var(--font-mono); }
.member-side a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; margin-bottom: 2px; transition: .15s; }
.member-side a:hover { background: var(--panel-2); color: var(--text); }
.member-side a.active { background: var(--gold-dim); color: var(--gold); font-weight: 600; }

/* 移动端菜单切换按钮（默认隐藏，760px 以下显示） */
.m-menu-toggle { display: none; align-items: center; justify-content: space-between; width: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 14px; }
.m-menu-toggle .m-menu-cur { color: var(--gold); }
.m-menu-toggle .m-menu-icon { font-size: 18px; color: var(--muted); transition: transform .2s; }
.m-menu-toggle.active .m-menu-icon { transform: rotate(90deg); }
.member-main { min-width: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .l { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stat-card .n { font-family: var(--font-disp); font-size: 26px; font-weight: 800; }
.stat-card .n.gold { color: var(--gold); }
.stat-card .n.green { color: var(--green); }
.panel-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.panel-box h3 { font-family: var(--font-disp); font-size: 17px; margin-bottom: 16px; }

/* 通用表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); }
.tbl tr:hover td { background: var(--panel-2); }
.tbl .mono { font-family: var(--font-mono); }

/* 状态标签 */
.st { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.st-pending { background: rgba(245,197,106,.12); color: var(--gold); }
.st-pass { background: var(--green-dim); color: var(--green); }
.st-reject { background: rgba(248,113,113,.12); color: var(--red); }
.st-off { background: var(--panel-2); color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 30px; margin-top: 40px; background: var(--bg-soft); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .copy { color: var(--muted-2); font-size: 13px; }
.footer .links { display: flex; gap: 20px; }
.footer .links a { color: var(--muted); font-size: 13px; }
.footer .links a:hover { color: var(--gold); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { font-size: 42px; margin-bottom: 12px; opacity: .5; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cat-grid, .res-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .contribute-wrap .layout { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container, .navbar-inner, .hero-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  /* 隐藏顶部水平导航；隐藏旧汉堡按钮，改用悬浮 .m-fab */
  .nav-links { display: none; }
  .nav-toggle { display: none; }
  .m-fab { display: flex; }
  .navbar-inner { gap: 8px; height: 56px; padding: 0 16px; }
  .brand { font-size: 17px; margin-right: auto; }
  .brand .logo { width: 30px; height: 30px; font-size: 15px; }
  /* 用户名/登录按钮靠最右 */
  .nav-actions { margin-left: 0; flex-shrink: 0; }
  .nav-user-btn { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn-sm { padding: 6px 10px; font-size: 12.5px; }
  .cat-grid, .res-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .plans-grid { grid-template-columns: 1fr; }
  .member-layout { grid-template-columns: 1fr; }
  .member-side { position: static; display: none; margin-bottom: 14px; }
  .member-side.open { display: block; }
  .m-menu-toggle { display: flex; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: clamp(24px, 7vw, 34px); margin: 14px 0 12px; }
  .hero p.lead { font-size: 14.5px; }
  .hero-stats { gap: 22px; margin-top: 30px; }
  .hero-stats .st .n { font-size: 24px; }
  .hero-stats .st .l { font-size: 12px; }
  .hero-search { margin-top: 22px; }
  .hero-search input { padding: 12px 14px; font-size: 14px; }
  .hero-search button { padding: 0 16px; font-size: 13.5px; }
  .hero-cta { margin-top: 22px; }
  .hero-cta .btn { padding: 9px 16px; font-size: 13.5px; }
  .detail-head, .content-box { padding: 18px 16px; }
  .detail-head h1 { font-size: 20px; }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: 20px; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .filter-bar { padding: 14px 16px; }
  .filter-row .lbl { width: 56px; font-size: 12.5px; }
  .filter-chip { padding: 5px 11px; font-size: 12.5px; }
  .list-head { flex-wrap: wrap; gap: 10px; }
  .list-head .t { font-size: 17px; }
  .panel-box { padding: 16px; }
  .auth-card { padding: 26px 22px; }
  .plan-card { padding: 26px 22px; }
}
@media (max-width: 480px) {
  .cat-grid, .res-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hero-stats .st .n { font-size: 20px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .nav-actions .btn-sm { padding: 5px 8px; font-size: 12px; }
  .res-card .body { padding: 12px; }
  .res-card h3 { font-size: 13.5px; }
  .detail-meta { gap: 12px; font-size: 12.5px; }
  .download-box { padding: 16px; flex-direction: column; align-items: stretch; }
  .download-box .btn { width: 100%; }
}
