:root {
  --bg: #f6f8fc;
  --bg-hero: #eef3fb;
  --surface: #ffffff;
  --border: #e9edf5;
  --border-strong: #dbe1ec;
  --text: #0f172a;
  --text-2: #3f4a5f;
  --muted: #8a94a6;
  --faint: #aab2c0;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-bg: #eef4ff;
  --green: #16a34a; --green-bg: #eafaf0;
  --amber: #d97706; --amber-bg: #fdf3e3;
  --red: #dc2626; --red-bg: #fdeeee;
  --purple: #7c3aed; --purple-bg: #f3efff;
  --cyan: #0891b2; --cyan-bg: #e6f7fb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-width: 320px;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  height: 68px; background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.logo-box {
  width: 34px; height: 34px; border-radius: 9px; margin-right: 10px;
  background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.logo-sub { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav { display: flex; gap: 4px; margin-left: 40px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--primary); background: var(--primary-bg); }
.nav a.active { color: var(--primary); background: var(--primary-bg); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-admin {
  font-size: 14px; font-weight: 600; color: var(--primary);
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-strong);
  transition: background .15s, border-color .15s;
}
.header-admin:hover { background: var(--primary-bg); border-color: var(--primary); }

/* ===== 登录门槛 ===== */
.login-gate { padding: 120px 0 100px; }
.login-gate-card {
  max-width: 440px; margin: 0 auto; text-align: center; padding: 52px 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.login-gate-icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 20px;
  background: linear-gradient(135deg, #eef4ff, #e0eaff);
  display: flex; align-items: center; justify-content: center;
}
.login-gate-icon svg { width: 34px; height: 34px; }
.login-gate-card h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.login-gate-card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.login-gate-card .btn { display: inline-flex; }

/* ===== 微信扫码登录 ===== */
.login-qr-card { max-width: 400px; padding: 44px 32px 34px; }
.login-gate-icon-wechat { background: linear-gradient(135deg, #e7f9ef, #d1fae5); }
.qr-shell {
  width: 220px; height: 220px; margin: 0 auto 20px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
}
.qr-img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.qr-placeholder { font-size: 14px; color: var(--muted); }
.qr-status { margin: 0 auto 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.qr-status-pending { color: var(--primary); }
.qr-status-approved { color: #16a34a; }
.qr-status-error { color: #dc2626; }
.qr-hint { font-size: 12px; color: var(--muted-light, #9aa5b1); margin-top: 6px !important; }
.qr-admin { font-size: 13px; color: var(--muted); margin: 2px 0 0 !important; }
.qr-admin a { color: var(--primary); font-weight: 600; text-decoration: none; }
.qr-admin a:hover { text-decoration: underline; }
.qr-shell.qr-approved { border-color: #16a34a; }
.qr-shell.qr-error { border-color: #dc2626; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, .34); }
.btn-ghost { background: var(--surface); color: var(--primary); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg) 100%);
  padding: 80px 0 64px;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(40px, 4.2vw, 58px); line-height: 1.14; font-weight: 800; letter-spacing: -.03em;
  color: var(--text); margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #2563eb 0%, #7c3aed 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 17px; line-height: 1.7; color: var(--text-2); margin-bottom: 32px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 30px; justify-content: flex-start; }
.hero-search { width: 100%; max-width: 480px; }
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.search-box svg { flex: none; }
.search-box input { flex: 1; border: none; background: none; font-size: 14.5px; color: var(--text); padding: 9px 0; font-family: inherit; }
.search-box input:focus { outline: none; }
.search-box input::placeholder { color: var(--faint); }
.search-go { background: var(--primary); color: #fff; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }

/* ===== Hero 插画 ===== */
.hero-visual { position: relative; width: 100%; max-width: 520px; height: 400px; margin: 0 auto; }
.hv-orb { position: absolute; border-radius: 50%; }
.hv-orb-a { width: 200px; height: 200px; top: 16px; right: 8px; background: radial-gradient(circle at 30% 30%, #bfdbfe, #dbeafe); opacity: .75; }
.hv-orb-b { width: 150px; height: 150px; bottom: 8px; left: 0; background: radial-gradient(circle at 40% 40%, #ddd6fe, #ede9fe); opacity: .8; }
.hv-window {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 330px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 2;
}
.hv-titlebar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.hv-dot { width: 11px; height: 11px; border-radius: 50%; }
.hv-dot-r { background: #f87171; }
.hv-dot-y { background: #fbbf24; }
.hv-dot-g { background: #34d399; }
.hv-file { margin-left: auto; font-size: 11.5px; color: var(--faint); font-family: "SFMono-Regular", Consolas, monospace; }
.hv-body { padding: 20px 18px 18px; }
.hv-line { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; height: 14px; }
.hv-line:last-child { margin-bottom: 0; }
.hv-no { flex: none; width: 14px; font-size: 11px; color: #cbd5e1; font-family: "SFMono-Regular", Consolas, monospace; }
.hv-tok { height: 12px; border-radius: 4px; display: inline-block; }
.hv-kw { background: #c7b8f5; }
.hv-fn { background: #a5c8ff; }
.hv-str { background: #a7f3d0; }
.hv-num { background: #fde68a; }
.hv-cmt { background: #e2e8f0; }
.hv-line-bug { background: #fef2f2; border-radius: 8px; padding: 5px 7px; margin-left: -7px; margin-right: -7px; }
.hv-line-ok { background: #f0fdf4; border-radius: 8px; padding: 5px 7px; margin-left: -7px; margin-right: -7px; }
.hv-bug-ic, .hv-check { flex: none; display: inline-flex; }
.hv-float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow-md); z-index: 3; }
.hv-float-bug { top: 4px; right: -6px; }
.hv-float-chat { bottom: 4px; left: -6px; }
.hv-ficon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.hv-ficon-red { background: var(--red-bg); }
.hv-ftext { display: flex; flex-direction: column; gap: 2px; }
.hv-ftext strong { font-size: 13.5px; color: var(--text); font-weight: 700; }
.hv-fsub { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.hv-green { color: var(--green); }
.hv-avatars { display: flex; }
.hv-ava { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: -8px; }
.hv-ava:first-child { margin-left: 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-search { margin: 0 auto; }
  .hero-visual { height: 340px; max-width: 420px; }
  .hv-window { width: 280px; }
}

/* ===== 内容区（tab 切换） ===== */
.feed { padding: 40px 0 24px; }
.feed-panel { padding: 0; overflow: hidden; }
.feed-tabs { display: flex; gap: 4px; padding: 14px 18px 0; border-bottom: 1px solid var(--border); }
.feed-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.feed-tab:hover { color: var(--text-2); }
.feed-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-count {
  min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg); color: var(--muted); line-height: 1.6; text-align: center;
}
.feed-tab.active .tab-count { background: var(--primary-bg); color: var(--primary-600); }
.feed-body { padding: 8px 24px 20px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h2 { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.panel-head h2 svg { color: var(--primary); }
.panel-sub { font-size: 12.5px; color: var(--faint); }
.panel-link { font-size: 13px; font-weight: 600; color: var(--primary); }

/* 问题行 */
.issue-row {
  display: block; padding: 18px 6px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .14s; border-radius: 10px;
}
.issue-row:last-child { border-bottom: none; }
.issue-row:hover { background: #f8fafc; }
.issue-row:hover .issue-title-text { color: var(--primary); }
.issue-title { display: flex; align-items: flex-start; gap: 10px; }
.issue-title-text { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.45; transition: color .14s; }
.issue-desc {
  margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.issue-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.issue-meta .who { color: var(--text-2); font-weight: 600; }
.issue-meta time { color: var(--faint); }
.issue-avatar {
  width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.issue-stat { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.issue-tag {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  background: var(--primary-bg); color: var(--primary-600); font-size: 12px; font-weight: 500;
}
.like-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.like-btn:hover { border-color: var(--amber, #f59e0b); color: var(--amber, #f59e0b); }
.like-btn.liked { border-color: #f59e0b; background: #fff7ed; color: #f59e0b; }

/* 徽章 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.badge-bug { background: var(--red-bg); color: var(--red); }
.badge-feature { background: var(--primary-bg); color: var(--primary-600); }
.badge-other { background: var(--bg); color: var(--muted); }
.badge-open { background: var(--primary-bg); color: var(--primary-600); }
.badge-progress { background: var(--amber-bg); color: var(--amber); }
.badge-resolved { background: var(--green-bg); color: var(--green); }
.badge-closed { background: var(--bg); color: var(--muted); }
.badge-prio-low { background: var(--bg); color: var(--muted); }
.badge-prio-normal { background: var(--primary-bg); color: var(--primary-600); }
.badge-prio-high { background: var(--amber-bg); color: var(--amber); }
.badge-prio-urgent { background: var(--red-bg); color: var(--red); }

/* 最新评论项 */
.comment-item { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .14s; border-radius: 10px; }
.comment-item:last-child { border-bottom: none; }
.comment-item:hover { background: #f8fafc; }
.comment-item:hover .ci-content { color: var(--primary); }
.ci-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700;
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.ci-body { flex: 1; min-width: 0; }
.ci-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.ci-head .who { font-weight: 600; font-size: 13px; color: var(--text); }
.ci-head time { font-size: 12px; color: var(--faint); }
.ci-content {
  font-size: 13.5px; line-height: 1.6; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .14s;
}
.ci-source { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 11.5px; color: var(--faint); }
.ci-source svg { flex: none; }

/* 热门榜 */
.hot-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .14s; border-radius: 10px; }
.hot-row:last-child { border-bottom: none; }
.hot-row:hover { background: #f8fafc; }
.hot-row:hover .hot-title { color: var(--primary); }
.hot-no {
  flex: none; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted);
}
.hot-row:nth-child(1) .hot-no { background: #fef3c7; color: #b45309; }
.hot-row:nth-child(2) .hot-no { background: #e5e7eb; color: #4b5563; }
.hot-row:nth-child(3) .hot-no { background: #ffedd5; color: #c2410c; }
.hot-body { flex: 1; min-width: 0; }
.hot-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .14s; }
.hot-sub { font-size: 11.5px; color: var(--faint); }
.hot-count { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty svg { margin: 0 auto 12px; display: block; }
.empty p { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.empty span { font-size: 13px; }

/* ===== 详情视图 ===== */
#detail-view {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--bg); overflow-y: auto; padding: 40px 0 80px;
}
#detail-view.open { display: block; animation: detailIn .18s ease; }
@keyframes detailIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#detail-view .wrap { max-width: 860px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--primary); }
.detail-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.detail-title { flex: 1; font-size: 26px; font-weight: 800; line-height: 1.35; color: var(--text); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.detail-desc {
  margin-top: 22px; padding: 22px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; color: var(--text-2);
}
.detail-section { margin-top: 28px; }
.detail-section h3 { margin-bottom: 14px; font-size: 15.5px; font-weight: 700; color: var(--text); }
.comment { display: flex; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-head .who { font-weight: 600; font-size: 13.5px; color: var(--text); }
.comment-head time { font-size: 12px; color: var(--faint); }
.comment-content { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding: 9px 0 9px 10px; font-size: 13.5px; }
.tl-item::before { content: ""; position: absolute; left: -21px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.tl-act { font-weight: 600; color: var(--text); }
.tl-meta { color: var(--faint); font-size: 12px; margin-left: 8px; }
.version-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 8px; background: var(--primary-bg); color: var(--primary-600); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h2 { font-size: 19px; font-weight: 700; color: var(--text); }
.modal-close { font-size: 26px; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--text); }

/* ===== 账号下拉 ===== */
.account { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.account-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.account-avatar {
  width: 30px; height: 30px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.account-name { font-size: 14px; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caret {
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--muted); transition: transform .15s;
}
.account-overlay { position: fixed; inset: 0; z-index: 40; }
.account-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; animation: dropIn .14s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.account-dropdown-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px;
  border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.account-avatar-lg { width: 42px; height: 42px; font-size: 16px; }
.ad-info { min-width: 0; }
.ad-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.ad-account { font-size: 12.5px; color: var(--muted); }
.account-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.account-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2);
  text-align: left; transition: background .13s, color .13s;
}
.account-item:hover { background: var(--primary-bg); color: var(--primary); }
.account-item svg { color: var(--muted); flex: none; }
.account-item:hover svg { color: var(--primary); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 14px; color: var(--text); background: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); outline: none; }
.field textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.form-actions .btn { padding: 11px 22px; }
.form-error { margin-bottom: 12px; font-size: 13px; color: var(--red); }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--border); background: #fff; padding: 26px 28px; text-align: center; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }
.footer .foot-account { margin-left: 14px; }
.footer .foot-account::before { content: '·'; margin-right: 14px; color: var(--muted); }
