/* ============================================================
 * 凯行标签 · 视觉系统
 * 深藏青 + 香槟金 / 商务 · 时尚 · 高级
 * ============================================================ */

:root {
  --bg:            #0A1524;
  --bg-deep:       #07101D;
  --bg-soft:       #102039;
  --surface:       rgba(255, 255, 255, 0.038);
  --surface-2:     rgba(255, 255, 255, 0.065);
  --surface-3:     rgba(201, 169, 106, 0.075);
  --line:          rgba(201, 169, 106, 0.17);
  --line-soft:     rgba(255, 255, 255, 0.075);
  --gold:          #C9A96A;
  --gold-bright:   #E7CE97;
  --gold-deep:     #9A7C43;
  --gold-fade:     rgba(201, 169, 106, 0.13);
  --text:          #EEF3F9;
  --text-2:        #A9B8CB;
  --text-3:        #6E8098;
  --danger:        #E0837A;
  --success:       #86BCA2;
  --radius:        16px;
  --radius-sm:     11px;
  --shadow:        0 16px 48px rgba(0, 0, 0, 0.42);
  --font-sans:     -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif:    "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 18% -8%, rgba(38, 66, 104, 0.55), transparent 62%),
    radial-gradient(900px 620px at 88% 108%, rgba(120, 92, 48, 0.16), transparent 60%),
    #050C16;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  overflow: hidden;
}

/* 桌面端：手机设备框 */
.device {
  position: relative;
  width: 430px;
  height: min(900px, calc(100vh - 52px));
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(155deg, rgba(201, 169, 106, 0.42), rgba(255, 255, 255, 0.05) 32%, rgba(201, 169, 106, 0.20) 78%, rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.55);
  flex: none;
}

.device::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(520px 300px at 88% -4%, rgba(201, 169, 106, 0.11), transparent 70%),
    linear-gradient(180deg, #0E1C30 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

/* ---------- 顶部品牌栏 ---------- */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 20, 35, 0.72);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(231, 206, 151, 0.20), rgba(201, 169, 106, 0.05));
  border: 1px solid rgba(201, 169, 106, 0.42);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 21px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* 律所 LOGO（取代原「凯」字方块） */
.brand-logo {
  box-sizing: border-box; padding: 5px;
  background: #fff; border: 1px solid rgba(201, 169, 106, 0.45);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,.6);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--text);
}
.brand-sub {
  font-size: 10px; color: var(--text-3); letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.avatar-btn {
  flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(201, 169, 106, 0.45);
  background: linear-gradient(145deg, rgba(201, 169, 106, 0.20), rgba(201, 169, 106, 0.06));
  color: var(--gold-bright);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.avatar-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.10); }

/* ---------- 视图容器 ---------- */
.view-container {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(201, 169, 106, .3) transparent;
  -webkit-overflow-scrolling: touch;
}
.view-container::-webkit-scrollbar { width: 4px; }
.view-container::-webkit-scrollbar-thumb { background: rgba(201, 169, 106, .28); border-radius: 4px; }

.view { display: none; padding: 20px 18px 28px; animation: fadeUp .38s cubic-bezier(.22,.8,.3,1) both; }
.view.active { display: block; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.72); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes barGrow { from { width: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 通用文字 / 区块 ---------- */
.section { margin-top: 24px; }
.section:first-child { margin-top: 2px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 13px; gap: 10px;
}
.section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: .6px; color: var(--text);
}
.section-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
}
.section-note { font-size: 11px; color: var(--text-3); }

.eyebrow {
  font-size: 10px; letter-spacing: 2.4px; color: var(--gold);
  text-transform: uppercase; font-weight: 600;
}

/* 首页 Hero */
.hero { padding: 8px 2px 4px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.hero-kicker::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.hero h1 {
  font-family: var(--font-serif);
  font-size: 27px; line-height: 1.42; font-weight: 700;
  margin: 0 0 10px; letter-spacing: 1px;
  color: #F6F1E6;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p { margin: 0; font-size: 12px; line-height: 1.85; color: var(--text-2); }

.hero-metrics {
  display: flex; gap: 0; margin-top: 20px;
  padding: 14px 4px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.hero-metric { flex: 1; text-align: center; position: relative; }
.hero-metric + .hero-metric::before {
  content: ''; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: var(--line-soft);
}
.hero-metric b {
  display: block; font-family: var(--font-serif); font-size: 21px; color: var(--gold-bright); font-weight: 700;
}
.hero-metric span { display: block; font-size: 10px; color: var(--text-3); margin-top: 4px; letter-spacing: .5px; }

/* ---------- 标签 chips ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 7px;
  font-size: 11px; line-height: 1.35; letter-spacing: .2px;
  color: #E2D4B6;
  background: var(--gold-fade);
  border: 1px solid rgba(201, 169, 106, 0.24);
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}
button.tag { cursor: pointer; font-family: inherit; }
button.tag:hover { background: rgba(201, 169, 106, 0.24); border-color: rgba(201, 169, 106, .55); transform: translateY(-1px); }
.tag.hit {
  color: #FFF3D9; font-weight: 600;
  background: rgba(201, 169, 106, 0.30);
  border-color: rgba(231, 206, 151, 0.72);
  box-shadow: 0 0 0 2px rgba(201, 169, 106, .10);
}
.tag.hit mark { background: transparent; color: #FFD98A; font-weight: 700; }
.tag .tag-x {
  display: inline-grid; place-items: center;
  width: 13px; height: 13px; border-radius: 50%;
  color: var(--gold); font-size: 12px; line-height: 1;
  background: rgba(0,0,0,.20); cursor: pointer;
}
.tag .tag-x:hover { background: var(--danger); color: #fff; }
.tag.more { background: transparent; border-style: dashed; color: var(--text-3); border-color: var(--line-soft); }
.tag.anim { animation: pop .28s cubic-bezier(.3,1.4,.5,1) both; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 15px;
  transition: border-color .22s, background .22s, transform .22s;
}
.card.gold-edge { border-color: var(--line); background: linear-gradient(150deg, rgba(201,169,106,.075), rgba(255,255,255,.022)); }

.lawyer-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .22s, transform .22s, background .22s;
}
.lawyer-card:hover { border-color: var(--line); background: var(--surface-2); transform: translateY(-2px); }
.lawyer-card:active { transform: scale(.99); }

.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--gold-bright);
  background: linear-gradient(150deg, rgba(201,169,106,.20), rgba(201,169,106,.05));
  border: 1px solid rgba(201,169,106,.28);
}
.avatar.lg { width: 56px; height: 56px; font-size: 24px; border-radius: 17px; }

.lawyer-body { flex: 1; min-width: 0; }
.lawyer-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lawyer-name { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: .5px; }
.lawyer-title { font-size: 10px; color: var(--gold); }
.lawyer-dept { font-size: 10px; color: var(--text-3); margin-top: 3px; }
.lawyer-tags { margin-top: 10px; }
.lawyer-card .chev { flex: none; align-self: center; color: var(--text-3); }
.icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 13px; height: 13px; }

/* ---------- 搜索 ---------- */
.search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: box-shadow .2s, border-color .2s;
}
.search-box:focus-within { border-color: rgba(231,206,151,.7); box-shadow: 0 0 0 3px rgba(201,169,106,.11); }
.search-box .icon { color: var(--gold); flex: none; width: 18px; height: 18px; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.search-box input::placeholder { color: var(--text-3); }
.clear-btn {
  flex: none; border: 0; background: rgba(255,255,255,.09); color: var(--text-2);
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1;
  display: none; place-items: center;
}
.clear-btn.show { display: grid; }

.hot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-chip {
  padding: 7px 12px; border-radius: 9px; font-size: 11.5px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--text-2);
  font-family: inherit; transition: all .2s;
}
.hot-chip:hover { border-color: var(--line); color: var(--gold-bright); background: var(--gold-fade); }

.result-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 12px; font-size: 12px; color: var(--text-3);
}
.result-head b { color: var(--gold-bright); font-size: 14px; font-family: var(--font-serif); }

.empty {
  text-align: center; padding: 46px 20px; color: var(--text-3);
}
.empty .icon { width: 38px; height: 38px; color: rgba(201,169,106,.35); margin-bottom: 12px; }
.empty p { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.empty small { font-size: 11px; }

/* ---------- 统计 ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card {
  padding: 15px; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(201,169,106,.085), rgba(255,255,255,.022));
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; right: -18px; top: -18px; width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,106,.13), transparent 70%);
}
.stat-card .label { font-size: 10.5px; color: var(--text-3); letter-spacing: .6px; }
.stat-card .value {
  font-family: var(--font-serif); font-size: 28px; font-weight: 700;
  color: var(--gold-bright); margin-top: 7px; line-height: 1;
}
.stat-card .value small { font-size: 11px; color: var(--text-2); font-family: var(--font-sans); margin-left: 3px; font-weight: 400; }
.stat-card .delta { font-size: 10px; color: var(--success); margin-top: 8px; }

.chart-card {
  padding: 16px 15px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.chart-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.chart-sub { font-size: 10px; color: var(--text-3); margin-bottom: 16px; }

.bar-row { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.bar-row .bar-label { flex: none; width: 108px; font-size: 10.5px; color: var(--text-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 9px; border-radius: 6px; background: rgba(255,255,255,.055); overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  animation: barGrow .85s cubic-bezier(.2,.8,.3,1) both;
  box-shadow: 0 0 12px rgba(201,169,106,.28);
}
.bar-row .bar-num { flex: none; width: 20px; font-size: 11px; color: var(--gold-bright); font-weight: 600; text-align: right; }
.bar-row.committee .bar-label { width: 124px; font-size: 10px; }
.bar-row.committee .bar-num { width: 22px; }

.donut-wrap { display: flex; align-items: center; gap: 14px; }
.donut { flex: none; width: 128px; height: 128px; }
.donut circle { fill: none; stroke-width: 15; transition: stroke-width .2s; }
.donut circle:hover { stroke-width: 19; }
.donut-center { font-family: var(--font-serif); }
.legend { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--text-2); }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.legend-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-num { color: var(--text-3); font-variant-numeric: tabular-nums; }

.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.rank-row:last-child { border-bottom: 0; }
.rank-no { flex: none; width: 20px; font-family: var(--font-serif); font-size: 14px; color: var(--gold); }
.rank-name { flex: none; width: 58px; font-size: 11.5px; color: var(--text); }
.rank-track { flex: 1; height: 6px; background: rgba(255,255,255,.055); border-radius: 4px; overflow: hidden; }
.rank-track i { display: block; height: 100%; background: linear-gradient(90deg, rgba(201,169,106,.45), var(--gold)); border-radius: 4px; animation: barGrow .8s ease both; }
.rank-num { flex: none; width: 22px; text-align: right; font-size: 11px; color: var(--text-2); }

/* ---------- 表单 / 按钮 ---------- */
.input-row { display: flex; gap: 8px; }
.text-input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  color: var(--text); font-size: 13px; font-family: inherit; outline: 0;
  transition: border-color .2s;
}
.text-input:focus { border-color: rgba(231,206,151,.65); }
.text-input::placeholder { color: var(--text-3); }

/* 个人信息字段 */
.field { margin-bottom: 13px; }
.field:last-of-type { margin-bottom: 0; }
.field-label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 6px; letter-spacing: .04em; }
.select-input {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E8098' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.select-input option { background: #101B2E; color: var(--text); }
.kv-link { color: var(--gold-bright); text-decoration: none; border-bottom: 1px dashed rgba(231,206,151,.4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 11px; border: 1px solid transparent;
  font-size: 12.5px; font-family: inherit; font-weight: 600; cursor: pointer;
  transition: transform .18s, box-shadow .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  color: #201706;
  background: linear-gradient(135deg, #E7CE97, #C9A96A 55%, #AC8747);
  box-shadow: 0 6px 18px rgba(201,169,106,.20);
}
.btn-gold:hover { box-shadow: 0 8px 24px rgba(201,169,106,.32); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-soft); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--line); color: var(--gold-bright); }
.btn-danger { background: rgba(224,131,122,.12); border-color: rgba(224,131,122,.30); color: var(--danger); }
.btn-block { width: 100%; }

.profile-card { display: flex; align-items: center; gap: 14px; padding: 17px; }
.profile-meta { flex: 1; min-width: 0; }
.profile-name { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: #F6F1E6; }
.profile-title { font-size: 11px; color: var(--gold); margin-top: 4px; }
.profile-dept { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.profile-badge {
  flex: none; font-size: 9.5px; padding: 4px 8px; border-radius: 6px;
  color: var(--gold-bright); background: var(--gold-fade); border: 1px solid var(--line);
}

.hint {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 12px 13px; border-radius: 11px;
  background: rgba(201,169,106,.06); border: 1px solid var(--line-soft);
  font-size: 11px; line-height: 1.7; color: var(--text-2);
}
.hint .icon { color: var(--gold); flex: none; margin-top: 1px; }

.entry-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(135deg, rgba(201,169,106,.11), rgba(255,255,255,.02));
  border: 1px solid var(--line); color: var(--text); text-align: left;
  font-family: inherit; transition: transform .2s, border-color .2s;
}
.entry-card:hover { transform: translateY(-2px); border-color: rgba(231,206,151,.6); }
.entry-icon {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: var(--gold-fade); border: 1px solid var(--line); color: var(--gold-bright);
}
.entry-text { flex: 1; }
.entry-text b { display: block; font-size: 13px; font-weight: 600; }
.entry-text small { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; }

/* ---------- 管理后台 ---------- */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.admin-tab {
  flex: 1; padding: 9px 4px; border-radius: 9px; cursor: pointer;
  font-size: 11.5px; font-family: inherit; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--text-3);
  transition: all .2s;
}
.admin-tab.active { background: var(--gold-fade); border-color: var(--line); color: var(--gold-bright); font-weight: 600; }

.admin-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 11px; background: var(--surface); border: 1px solid var(--line-soft);
  margin-bottom: 8px; flex-wrap: wrap;
}
.admin-row > .mini-select { flex: 0 0 100%; margin-top: 1px; }
.admin-row .avatar { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-main b { font-size: 12px; font-weight: 600; display: block; }
.admin-row-main small { font-size: 10px; color: var(--text-3); display: block; margin-top: 3px; }
.mini-btn {
  flex: none; padding: 5px 9px; border-radius: 7px; font-size: 10px; cursor: pointer;
  font-family: inherit; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-2);
  transition: all .2s;
}
.mini-btn:hover { border-color: var(--danger); color: var(--danger); }

/* 管理后台：行内委员会下拉 */
.mini-select {
  width: 100%; margin-top: 7px; padding: 6px 26px 6px 9px; border-radius: 8px;
  font-size: 10.5px; font-family: inherit; color: var(--text-2); cursor: pointer;
  background-color: var(--surface-2); border: 1px solid var(--line-soft);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236E8098' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  text-overflow: ellipsis;
}
.mini-select:focus { outline: 0; border-color: rgba(231,206,151,.55); }
.mini-select option { background: #101B2E; color: var(--text); }
.mini-select.is-empty { color: var(--gold); border-style: dashed; }
.committee-add-card { margin-bottom: 12px; }

.tag-gov-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); margin-bottom: 7px;
}
.tag-gov-name { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text); }
.tag-gov-count { font-size: 10px; color: var(--gold); flex: none; }

.kv-list { display: flex; flex-direction: column; gap: 0; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--text-3); }
.kv b { color: var(--text); font-weight: 500; }

/* ---------- 底部导航 ---------- */
.tabbar {
  flex: none; display: flex; align-items: stretch;
  padding: 7px 6px calc(9px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 18, 32, 0.90);
  backdrop-filter: blur(20px);
  z-index: 5;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 2px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-3); font-size: 9.5px; font-family: inherit; letter-spacing: .3px;
  transition: color .2s;
  position: relative;
}
.tab .icon { width: 20px; height: 20px; }
.tab.active { color: var(--gold-bright); }
.tab.active::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.tab.hidden { display: none; }

/* ---------- 弹层 ---------- */
.mask {
  position: absolute; inset: 0; z-index: 20;
  background: rgba(3, 8, 16, .72); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mask.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  max-height: 76%; display: flex; flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #142743, #0B1829);
  border-top: 1px solid var(--line);
  transform: translateY(105%); transition: transform .32s cubic-bezier(.22,.85,.3,1);
  box-shadow: 0 -20px 50px rgba(0,0,0,.5);
}
.sheet.show { transform: none; }
.sheet-head {
  flex: none; padding: 18px 18px 12px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.sheet-head b { font-family: var(--font-serif); font-size: 15px; letter-spacing: .6px; }
.sheet-head small { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; font-weight: 400; font-family: var(--font-sans); }
.sheet-body { overflow-y: auto; padding: 12px 18px 26px; scrollbar-width: thin; }
.icon-btn {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-2); cursor: pointer;
}

.identity-row {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px; border-radius: 11px; margin-bottom: 7px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--text); font-family: inherit; text-align: left; transition: all .2s;
}
.identity-row:hover { border-color: var(--line); background: var(--surface-2); }
.identity-row.active { border-color: rgba(231,206,151,.6); background: var(--gold-fade); }
.identity-row .avatar { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
.identity-info { flex: 1; min-width: 0; }
.identity-info b { display: block; font-size: 12.5px; font-weight: 600; }
.identity-info small { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.identity-check { color: var(--gold-bright); }

/* 律师详情弹层 */
.modal {
  position: absolute; left: 16px; right: 16px; top: 50%; z-index: 21;
  transform: translateY(-46%) scale(.96); opacity: 0; pointer-events: none;
  max-height: 76%; overflow-y: auto;
  border-radius: 20px; padding: 20px;
  background: linear-gradient(160deg, #16294A, #0B1829);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  transition: transform .3s cubic-bezier(.22,.85,.3,1), opacity .25s;
  scrollbar-width: thin;
}
.modal.show { transform: translateY(-50%) scale(1); opacity: 1; pointer-events: auto; }
.modal-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.modal-head-text { flex: 1; min-width: 0; }
.modal-head-text b { font-family: var(--font-serif); font-size: 20px; display: block; }
.modal-head-text small { font-size: 10.5px; color: var(--gold); display: block; margin-top: 4px; }
.modal-divider { height: 1px; background: var(--line-soft); margin: 16px 0; }

.toast {
  position: absolute; left: 50%; bottom: 86px; z-index: 40;
  transform: translateX(-50%);
  padding: 10px 18px; border-radius: 10px;
  background: rgba(20, 36, 58, .96); border: 1px solid var(--line);
  color: var(--gold-bright); font-size: 11.5px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: 1; animation: toastIn .28s ease both; }

/* ---------- 手机号登录遮罩 ---------- */
.login-overlay {
  position: absolute; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 10, 20, .88); backdrop-filter: blur(10px);
}
.login-box {
  width: 296px; text-align: center;
  padding: 26px 22px 20px; border-radius: 18px;
  background: linear-gradient(160deg, #16294A, #0B1829);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: fadeUp .35s cubic-bezier(.22,.8,.3,1) both;
}
.login-box h2 {
  font-family: var(--font-serif); font-size: 21px; letter-spacing: 3px;
  color: #F6F1E6; margin: 2px 0 6px; font-weight: 700;
}
.login-box p { font-size: 10.5px; color: var(--text-3); margin: 0 0 18px; }
.login-box .text-input { width: 100%; margin-bottom: 10px; text-align: center; }
.login-err { font-size: 11px; color: var(--danger); min-height: 16px; margin-top: 12px; }
.login-tip { font-size: 10px; color: var(--text-3); line-height: 1.7; margin: 2px 0 0; }

/* 管理后台：口令管理 */
.pin-list { margin-top: 12px; }
.pin-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); margin-bottom: 7px;
}
.pin-row b { font-size: 11.5px; font-weight: 600; }
.pin-row .pin-code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .12em;
  color: var(--gold-bright); font-weight: 700;
}
.pin-state { font-size: 10px; color: var(--text-3); }
.pin-state.on { color: var(--gold); }

/* 名单导入文本域 */
.textarea-input {
  width: 100%; height: 120px; margin-top: 10px; resize: vertical;
  font-size: 12px; line-height: 1.75; font-family: inherit;
}

/* 标签输入联想 */
.suggest-note { font-size: 10px; color: var(--text-3); align-self: center; letter-spacing: .03em; }
.suggest-count { font-size: 9px; color: var(--gold); margin-left: 5px; opacity: .85; }

/* ---------- 手机端：全屏 ---------- */
@media (max-width: 520px) {
  body { padding: 0; display: block; }
  .device { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .device::after { display: none; }
  .app { border-radius: 0; }
}
