/* =========================================================
   智文阁 · 论文写作与修改服务平台 —— 全局样式（浅色学术风）
   ========================================================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1e4fd6;
  --primary-light: #eff4ff;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, .14);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 500;
  transition: all .18s ease; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.7;
}
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-amber { background: var(--warning-light); color: var(--warning); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-gray { background: #f3f4f6; color: var(--muted); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: #374151; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
  outline: none; transition: border .18s, box-shadow .18s; background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: #f9fafb; color: #374151; font-weight: 600; position: sticky; top: 0; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money-in { color: var(--success); }
.money-out { color: var(--danger); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--border); padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--primary); cursor: pointer; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.top-user { display: flex; align-items: center; gap: 14px; }
.balance-chip {
  background: var(--warning-light); color: var(--warning); border: 1px solid #fde68a;
  padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 13px;
}
.balance-chip b { font-size: 15px; }

/* ---------- 页签 ---------- */
.tabs {
  display: flex; gap: 4px; background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 24px; overflow-x: auto;
}
.tab {
  padding: 12px 18px; background: none; border: none; border-bottom: 3px solid transparent;
  font-size: 14.5px; font-weight: 500; color: var(--muted); transition: all .15s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- 视图切换 ---------- */
.view { display: none; padding: 24px; max-width: 1100px; margin: 0 auto; }
.view.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.view-head h2 { font-size: 20px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- 模态框 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); animation: pop .22s ease; max-height: 90vh; overflow-y: auto;
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--danger); }

/* ---------- Toast ---------- */
#toastRoot {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 999;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  padding: 11px 22px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .25s ease; max-width: 80vw; text-align: center;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: #1f2937; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%);
  color: #fff; text-align: center; padding: 64px 24px 56px;
}
.hero h1 { font-size: 34px; letter-spacing: 1px; }
.hero p { margin-top: 10px; opacity: .85; font-size: 15px; }
.hero .badges { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .badges span { background: rgba(255,255,255,.15); padding: 4px 14px; border-radius: 999px; font-size: 13px; }
.home-main { max-width: 960px; margin: -28px auto 40px; padding: 0 20px; }
.entry-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.entry-card {
  background: #fff; border-radius: 16px; padding: 30px 26px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent;
  transition: all .2s ease; position: relative; overflow: hidden;
}
.entry-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.entry-card .icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.entry-card.customer .icon { background: var(--primary-light); }
.entry-card.writer .icon { background: var(--success-light); }
.entry-card h3 { font-size: 19px; margin-bottom: 6px; }
.entry-card p { color: var(--muted); font-size: 13px; }
.entry-card .go { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--primary); font-size: 14px; }
.login-panel {
  max-width: 420px; margin: 28px auto 0; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 28px; animation: fadeUp .25s ease;
}
.login-panel h3 { text-align: center; font-size: 18px; margin-bottom: 20px; }
.login-panel .back { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.demo-hint {
  margin-top: 28px; background: #fff; border: 1px dashed var(--border); border-radius: 12px;
  padding: 14px 18px; font-size: 13px; color: var(--muted); line-height: 1.9;
}
.demo-hint b { color: var(--primary); }
.home-footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 24px; border-top: 1px solid var(--border); }
.home-footer .admin-trigger { cursor: default; }
.home-footer .admin-trigger:hover { color: #9ca3af; }

/* ---------- 项目卡片 ---------- */
.p-card { display: flex; flex-direction: column; gap: 10px; }
.p-card .p-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.p-card .p-title { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.p-card .p-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.p-card .p-info { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px; }
.p-card .p-actions { display: flex; gap: 8px; margin-top: 4px; }
.p-card.locked { opacity: .75; background: #fafafa; }
.p-card.locked .p-title::after { content: " 🔒"; }

/* ---------- 向导 ---------- */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeUp .2s ease; }
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.step-title .step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  background: var(--primary); color: #fff; border-radius: 50%; font-size: 13px; margin-right: 8px;
}
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-card {
  border: 2px solid var(--border); border-radius: 14px; padding: 22px; text-align: center;
  cursor: pointer; transition: all .18s; background: #fff;
}
.mode-card:hover { border-color: var(--primary); }
.mode-card.selected { border-color: var(--primary); background: var(--primary-light); }
.mode-card .m-name { font-size: 20px; font-weight: 700; color: var(--primary); }
.mode-card .m-desc { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.price-table { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.category-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.cat-tab { padding: 8px 18px; border-radius: 9px; border: 1px solid var(--border); background: #fff; font-size: 14px; }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.subject-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.subject-chip {
  padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff;
  font-size: 14px; transition: all .15s;
}
.subject-chip:hover { border-color: var(--primary); color: var(--primary); }
.subject-chip.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.summary-box { background: var(--primary-light); border-radius: 10px; padding: 14px 18px; margin: 14px 0; font-size: 13.5px; line-height: 2; }
.summary-box .price-big { font-size: 22px; font-weight: 700; color: var(--primary); }

/* ---------- 修订时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--primary);
}
.tl-item.writer::before { border-color: var(--success); }
.tl-item.admin::before { border-color: var(--danger); }
.tl-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-comment { white-space: pre-wrap; color: #374151; font-size: 13.5px; }
.tl-file { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--primary-light); border-radius: 9px; font-size: 13px; color: var(--primary); }
.tl-file:hover { text-decoration: none; background: #dbe7ff; }
.tl-time { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.stat-card .s-label { color: var(--muted); font-size: 12.5px; }
.stat-card .s-value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat-card .s-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 管理员布局 ---------- */
.admin-shell { display: flex; min-height: calc(100vh - 57px); }
.admin-side {
  width: 210px; background: #111827; color: #d1d5db; padding: 16px 10px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.admin-side .side-title { font-size: 12px; color: #6b7280; padding: 8px 12px 4px; text-transform: uppercase; letter-spacing: 1px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  color: #d1d5db; font-size: 14px; cursor: pointer; border: none; background: none; text-align: left; transition: all .15s;
}
.side-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-item.active { background: var(--primary); color: #fff; }
.side-item .dot { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; font-weight: 600; }
.admin-main { flex: 1; padding: 24px; max-width: 1200px; }

/* ---------- 空状态 / 其他 ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .e-icon { font-size: 42px; margin-bottom: 10px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.pay-methods { display: flex; gap: 12px; }
.pay-method {
  flex: 1; border: 2px solid var(--border); border-radius: 12px; padding: 16px; text-align: center;
  cursor: pointer; transition: all .18s; background: #fff;
}
.pay-method:hover { border-color: var(--primary); }
.pay-method.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-method .pm-icon { font-size: 26px; }
.pay-method .pm-name { font-weight: 600; margin-top: 4px; font-size: 14px; }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-amt { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13px; }
.quick-amt.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--border); object-fit: contain; background: #fff; }
.notice { background: var(--warning-light); border: 1px solid #fde68a; color: #92400e; padding: 12px 16px; border-radius: 10px; font-size: 13px; margin: 12px 0; }
.lock-banner { display: flex; align-items: center; gap: 8px; background: #f3f4f6; border: 1px solid var(--border); color: var(--muted); padding: 10px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }

@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .mode-cards { grid-template-columns: 1fr; }
  .topbar { padding: 10px 14px; }
  .view { padding: 16px; }
  .hero h1 { font-size: 24px; }
}

/* =========================================================
   真实网站美化版（背景 · 内容区块 · 头像 · 动效）
   ========================================================= */
body {
  background:
    radial-gradient(1000px 500px at 85% -100px, rgba(37, 99, 235, .07), transparent 60%),
    radial-gradient(900px 460px at -10% 0px, rgba(124, 58, 237, .06), transparent 55%),
    #f4f6fb;
}

/* ---------- 头像 ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(15,23,42,.14); vertical-align: middle; }
.avatar.ring-primary { box-shadow: 0 0 0 2px var(--primary-light), 0 4px 10px rgba(37,99,235,.25); }
.avatar.rounded-rect { border-radius: 12px; }

/* ---------- 顶部导航（站点版） ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, .7);
}
.site-nav .nav-inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: #4b5563; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.brand-badge {
  display: inline-flex; align-items: center; gap: 7px; background: var(--primary-light);
  color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
}

/* ---------- 新版 Hero（渐变 + 点阵 + 波浪） ---------- */
.hero-v2 {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(700px 380px at 8% 20%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 48%, #4f46e5 100%);
  padding: 78px 24px 150px; text-align: center;
}
.hero-v2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
  background-size: 26px 26px; mask-image: radial-gradient(60% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-v2 .hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.hero-v2 .hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28); padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
}
.hero-v2 h1 { font-size: 44px; font-weight: 800; margin: 22px 0 14px; letter-spacing: .5px; line-height: 1.25; }
.hero-v2 .hero-sub { font-size: 16px; opacity: .88; max-width: 640px; margin: 0 auto; line-height: 1.9; }
.hero-v2 .hero-cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 2; max-width: 960px; margin: -92px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.hero-stat {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 22px 16px; text-align: center;
}
.hero-stat .hs-num { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat .hs-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 90px; }

/* 浮动头像装饰 */
.float-avatars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-avatars .fa { position: absolute; opacity: .95; animation: floatY 6s ease-in-out infinite; }
.float-avatars .fa:nth-child(1) { left: 7%; top: 30%; animation-delay: 0s; }
.float-avatars .fa:nth-child(2) { right: 9%; top: 24%; animation-delay: 1.2s; }
.float-avatars .fa:nth-child(3) { left: 14%; bottom: 20%; animation-delay: 2.1s; }
.float-avatars .fa:nth-child(4) { right: 16%; bottom: 16%; animation-delay: .6s; }
.float-avatars .fa:nth-child(5) { left: 42%; top: 12%; animation-delay: 1.7s; }
.float-avatars .fa img { border-radius: 50%; border: 3px solid rgba(255,255,255,.55); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- 内容区块 ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 64px 24px 20px; }
.section-center { text-align: center; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: .5px; }
.section-sub { color: var(--muted); margin: 10px auto 0; max-width: 620px; line-height: 1.8; }
.section-title .accent { color: var(--primary); }
.sec-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12.5px; font-weight: 700; padding: 5px 16px; border-radius: 999px; letter-spacing: 1px; margin-bottom: 14px; }

/* 特征卡片 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 36px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; height: 70%;
  background: radial-gradient(closest-side, rgba(37,99,235,.10), transparent); border-radius: 50%;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card .fc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 25px; margin-bottom: 14px;
}
.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 服务流程 */
.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 36px; position: relative; }
.flow-step {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow); position: relative;
}
.flow-step .fs-no {
  width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(37,99,235,.32);
}
.flow-step .fs-icon { font-size: 26px; margin-bottom: 6px; }
.flow-step h4 { font-size: 15.5px; margin-bottom: 6px; }
.flow-step p { color: var(--muted); font-size: 12.8px; line-height: 1.8; }

/* 价格卡片 */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card .pc-head { padding: 20px 24px; color: #fff; }
.price-card.study .pc-head { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.price-card.nonstudy .pc-head { background: linear-gradient(135deg, #d97706, #ea580c); }
.price-card .pc-head h3 { font-size: 18px; }
.price-card .pc-head p { font-size: 12.5px; opacity: .85; margin-top: 3px; }
.price-card .pc-body { padding: 8px 24px 22px; }
.price-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--border); }
.price-row:last-child { border-bottom: none; }
.price-row .pr-left { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.price-row .pr-left .pctag { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #f3f4f6; color: #4b5563; }
.price-row .pr-charge { font-weight: 800; font-size: 16px; color: var(--primary); }
.price-row .pr-charge small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.price-row .pr-earn { font-size: 12.5px; color: var(--success); font-weight: 600; }

/* 常见问题 */
.faq-list { max-width: 800px; margin: 30px auto 0; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 16px 20px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .faq-arrow { transition: transform .25s; color: var(--muted); font-size: 12px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.faq-item.open .faq-a { display: block; animation: fadeUp .22s ease; }

/* 页脚 */
.site-footer { margin-top: 70px; background: #0f172a; color: #94a3b8; padding: 52px 24px 0; }
.site-footer .ft-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 34px; }
.site-footer h5 { color: #e2e8f0; font-size: 15px; margin-bottom: 14px; }
.site-footer p { font-size: 13px; line-height: 1.9; }
.site-footer a { color: #94a3b8; display: block; font-size: 13px; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.ft-bottom { border-top: 1px solid rgba(148,163,184,.18); text-align: center; padding: 18px; font-size: 12.5px; }

/* ---------- 渐变按钮 ---------- */
.btn-gradient {
  background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; border: none;
  box-shadow: 0 8px 20px rgba(37,99,235,.32);
}
.btn-gradient:hover { background: linear-gradient(135deg, #1d4ed8, #4338ca); color: #fff; transform: translateY(-1px); }
.btn-ghost-white { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.24); color: #fff; }

/* ---------- 面板页顶部横幅 ---------- */
.sub-hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #4f46e5);
  color: #fff; padding: 26px 24px 58px; position: relative; overflow: hidden;
}
.sub-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.sub-hero .sh-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.sub-hero h1 { font-size: 24px; font-weight: 800; }
.sub-hero p { font-size: 13.5px; opacity: .85; margin-top: 4px; }

/* ---------- 顶栏用户区 ---------- */
.user-box { display: flex; align-items: center; gap: 12px; }
.user-box .ub-info { line-height: 1.3; text-align: left; }
.user-box .ub-name { font-weight: 600; font-size: 13.5px; }
.user-box .ub-role { font-size: 11.5px; color: var(--muted); }

/* ---------- 登录面板美化 ---------- */
.login-panel { position: relative; overflow: hidden; }
.login-panel::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(37,99,235,.10), transparent 70%); border-radius: 50%;
}
.login-panel .lp-title { display: flex; align-items: center; gap: 10px; justify-content: center; }
.login-panel .lp-icon {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--primary-light);
}

/* 通用卡片悬浮 */
.card { transition: transform .2s, box-shadow .2s; }
.entry-card { position: relative; }
.entry-card .ec-glow {
  position: absolute; inset: auto -20% -50% auto; width: 70%; height: 60%;
  background: radial-gradient(closest-side, rgba(37,99,235,.12), transparent); border-radius: 50%; pointer-events: none;
}

/* 按钮基础动效 */
.btn { position: relative; }
.btn:active { transform: scale(.97); }

/* 表头渐变 */
th { background: linear-gradient(180deg, #f9fafb, #f3f4f6); }

/* 脉冲点（用于状态指示） */
.dot-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 0 rgba(217, 119, 6, .6);
  animation: pulse 1.5s infinite;
  display: inline-block;
}
.dot-pulse.ok { background: var(--success); box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: pulseOk 1.5s infinite; }
.dot-pulse.err { background: var(--danger); box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); animation: pulseErr 1.5s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .55); }
  70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}
@keyframes pulseOk {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); }
  70% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@keyframes pulseErr {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); }
  70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
/* ====== 搜索框 ====== */
.search-box { margin-bottom: 16px; }
.search-input {
  width: 100%; box-sizing: border-box; padding: 12px 16px 12px 42px;
  border: 2px solid #e5e7eb; border-radius: 12px; font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%239ca3af' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 14px center no-repeat;
  transition: border-color .2s;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
/* ====== 未读徽标（微信风格） ====== */
.unread-badge {
  position: absolute; top: 12px; right: 14px;
  min-width: 22px; height: 22px; line-height: 22px;
  background: #ef4444; color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 11px; text-align: center; padding: 0 6px; box-sizing: border-box;
  z-index: 1; animation: badgePulse .6s ease-in-out;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .45);
}
@keyframes badgePulse {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.tl-file.lost { color: var(--muted); text-decoration: line-through; cursor: not-allowed; opacity: .6; }
