/* ============================================================
   采暖渠道价格中心 · 样式
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08090C;
  --surface: #10131A;
  --surface-2: #161A22;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #ECEEF3;
  --muted: #8A93A6;
  --muted-2: #5F6779;
  --gold: #E5B45C;
  --gold-dim: rgba(229, 180, 92, .13);
  --mint: #5FD3A8;
  --wx: #07C160;
  --radius: 18px;
  --ff: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --ff-num: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace,
        Menlo, Consolas, monospace;
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(229, 180, 92, .07), transparent 65%),
    radial-gradient(800px 600px at 92% 8%, rgba(80, 120, 200, .06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hidden { display: none !important; }

button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: rgba(229, 180, 92, .28); }

/* ================= 登录 ================= */

.login {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 90px;
  z-index: 1;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 620px at 22% 30%, rgba(229, 180, 92, .11), transparent 62%),
    radial-gradient(760px 620px at 82% 72%, rgba(60, 96, 170, .12), transparent 62%),
    #07080B;
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 78%);
}

.login-inner {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.15fr 400px;
  gap: 72px;
  align-items: center;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 30px;
}

.mark-line {
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.login-brand h1 {
  font-size: 62px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.login-brand h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #F3D9A4, var(--gold) 45%, #B8873B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-sub {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 430px;
}

.login-stats {
  display: flex;
  gap: 52px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.login-stats b {
  display: block;
  font-family: var(--ff-num);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.login-stats span {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .06em;
}

.login-card {
  background: linear-gradient(180deg, rgba(28, 33, 43, .92), rgba(16, 19, 26, .96));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 34px 32px 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);
  text-align: center;
}

.wx-logo {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--wx);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px -6px rgba(7, 193, 96, .55);
}

.login-card-head h2 { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.login-card-head p { font-size: 12.5px; color: var(--muted-2); margin-top: 7px; }

.auth-logo {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(229, 180, 92, .22), rgba(229, 180, 92, .08));
  border: 1px solid rgba(229, 180, 92, .34);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.auth-mode {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  margin: 24px 0 20px;
}

.am {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  transition: .2s;
  font-weight: 500;
}
.am:hover { color: var(--text); }
.am.on {
  background: rgba(229, 180, 92, .14);
  color: #F0D8A8;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(229, 180, 92, .3);
}

.field { display: block; text-align: left; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: .05em;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  outline: none;
  font-size: 13.5px;
  color: var(--text);
  transition: .2s;
  letter-spacing: .02em;
}
.field input::placeholder { color: #4C5364; letter-spacing: 0; }
.field input:focus {
  border-color: rgba(229, 180, 92, .5);
  background: rgba(229, 180, 92, .05);
}

.field-err {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #F0A0A0;
  font-style: normal;
}

.field-row {
  display: flex;
  gap: 9px;
  align-items: flex-end;
}
.field-row .field { flex: 1; margin-bottom: 14px; }

.btn-code {
  flex: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(229, 180, 92, .34);
  background: rgba(229, 180, 92, .09);
  color: #EBD1A0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: .2s;
}
.btn-code:hover:not(:disabled) { background: rgba(229, 180, 92, .18); }
.btn-code:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border-radius: 11px;
  background: linear-gradient(100deg, #EFCB8A, var(--gold));
  color: #191307;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  transition: .2s;
  box-shadow: 0 14px 30px -14px rgba(229, 180, 92, .8);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 36px -14px rgba(229, 180, 92, .9); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.login-error {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: #F0A0A0;
  background: rgba(220, 80, 80, .1);
  border: 1px solid rgba(220, 80, 80, .22);
  border-radius: 9px;
  padding: 9px 12px;
  text-align: left;
}

.btn-ghost {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: .22s;
}

.btn-ghost:hover {
  background: rgba(229, 180, 92, .1);
  border-color: rgba(229, 180, 92, .45);
  color: #F4DFB4;
}

.login-tip {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.7;
}

.login-foot {
  position: absolute;
  bottom: 26px;
  font-size: 11px;
  color: #3E4453;
  letter-spacing: .04em;
}

/* ================= 顶栏 ================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, .82);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex-shrink: 0; }

.logo-dot {
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px 1px rgba(229, 180, 92, .55);
}

.logo-txt { font-size: 14.5px; font-weight: 700; letter-spacing: .01em; display: flex; flex-direction: column; line-height: 1.25; }
.logo-txt em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: .26em;
  color: var(--muted-2);
  font-weight: 500;
}

.topbar-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--muted-2);
  transition: .2s;
}

.topbar-search:focus-within {
  border-color: rgba(229, 180, 92, .4);
  background: rgba(229, 180, 92, .05);
  color: var(--gold);
}

.topbar-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
}
.topbar-search input::placeholder { color: #4C5364; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.data-flag {
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(229, 180, 92, .22);
  padding: 3px 9px;
  border-radius: 6px;
}

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}

.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3A465C, #22293A);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: #C7D0E0;
  font-weight: 600;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.user-name { font-size: 12.5px; color: #B8C0D0; }

/* ================= 主体 ================= */

.main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 38px 32px 80px;
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.hero p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-right { display: flex; gap: 9px; }

.pill {
  font-size: 11.5px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-family: var(--ff-num);
}

/* ---- 品牌网格 ---- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 20px;
}

.brand-card {
  position: relative;
  aspect-ratio: 3 / 3.85;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .34s cubic-bezier(.2, .7, .3, 1), box-shadow .34s, border-color .34s;
  isolation: isolate;
  animation: cardIn .5s backwards cubic-bezier(.2, .7, .3, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(158deg, var(--c1) 0%, var(--c2) 62%, var(--c1) 100%);
}

.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255, 255, 255, .26), transparent 58%),
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, .52) 100%);
  mix-blend-mode: normal;
}

.brand-card .tex {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 14px);
  mask-image: linear-gradient(180deg, #000 5%, transparent 78%);
}

.brand-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, .26);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.bc-top {
  position: absolute;
  top: 18px; left: 20px; right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bc-tag {
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .88);
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
}

.bc-no {
  font-family: var(--ff-num);
  font-size: 40px;
  font-weight: 700;
  color: rgba(255, 255, 255, .13);
  line-height: .8;
  letter-spacing: -.04em;
}

.bc-en {
  font-size: 9.5px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .68);
  font-weight: 600;
  margin-bottom: 6px;
}

.bc-name {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
  line-height: 1.15;
}

.bc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  font-size: 11px;
  color: rgba(255, 255, 255, .78);
}

.bc-foot .from { font-family: var(--ff-num); letter-spacing: .01em; }
.bc-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  display: flex; align-items: center; justify-content: center;
  transition: .28s;
}
.brand-card:hover .bc-arrow { background: #fff; color: #111; border-color: #fff; transform: translateX(2px); }

/* ---- 详情 ---- */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 13px 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
  transition: .2s;
}
.back-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }

.detail-hero {
  position: relative;
  border-radius: 22px;
  padding: 36px 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  background: linear-gradient(140deg, var(--c1), var(--c2) 68%, var(--c1));
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 130% at 88% -10%, rgba(255, 255, 255, .25), transparent 56%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .4));
}

.detail-hero-in { position: relative; }
.detail-en {
  font-size: 10px;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
  margin: 10px 0 8px;
}
.detail-hero h2 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: .01em;
}
.detail-desc { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin-top: 10px; }

.detail-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .2);
  padding: 3px 9px;
  border-radius: 5px;
}

.detail-metrics {
  position: relative;
  display: flex;
  gap: 0;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.dm {
  padding: 14px 22px;
  min-width: 108px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}
.dm:last-child { border-right: none; }
.dm span { display: block; font-size: 10.5px; color: rgba(255, 255, 255, .62); letter-spacing: .06em; }
.dm b {
  display: block;
  font-family: var(--ff-num);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-top: 4px;
  letter-spacing: -.01em;
}

/* ---- 工具条 ---- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 16px;
  flex-wrap: wrap;
}

.tabs { display: flex; gap: 7px; flex-wrap: wrap; }

.tab {
  font-size: 12.5px;
  padding: 7px 15px;
  border-radius: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  transition: .2s;
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.on {
  color: #12141A;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.toolbar-right { display: flex; gap: 9px; align-items: center; }

.mini-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.mini-search:focus-within { border-color: rgba(229, 180, 92, .4); color: var(--gold); }
.mini-search input {
  border: none; background: none; outline: none;
  font-size: 12.5px; width: 130px; color: var(--text);
}
.mini-search input::placeholder { color: #4C5364; }

#sortSelect {
  font-size: 12.5px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  outline: none;
  color: var(--muted);
  cursor: pointer;
}
#sortSelect:focus { border-color: rgba(229, 180, 92, .4); }
#sortSelect option { background: #14171F; color: #E6E9EF; }

/* ---- 表格 ---- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 24, 31, .8), rgba(13, 16, 21, .9));
}

.price-table { width: 100%; border-collapse: collapse; }

.price-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--muted-2);
  text-align: left;
  padding: 14px 20px;
  background: rgba(255, 255, 255, .028);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.price-table th.ta-r, .price-table td.ta-r { text-align: right; }

.price-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  transition: background .18s;
}
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover { background: rgba(229, 180, 92, .035); }

.price-table td {
  padding: 15px 20px;
  font-size: 13.5px;
  vertical-align: middle;
}

.t-model {
  font-weight: 600;
  letter-spacing: .005em;
  color: #E9ECF2;
  font-size: 13.5px;
}

.t-cat {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.t-power, .t-energy { font-family: var(--ff-num); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.t-energy.lv1 { color: var(--mint); }

.t-price {
  font-family: var(--ff-num);
  font-size: 14px;
  color: #C9D0DD;
  white-space: nowrap;
}

.t-final {
  font-family: var(--ff-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: -.01em;
}

.t-save {
  font-family: var(--ff-num);
  font-size: 12.5px;
  color: var(--mint);
  white-space: nowrap;
}

.cur { font-size: .72em; opacity: .6; margin-right: 1px; }

.amt { display: inline-block; white-space: nowrap; }

.disclaimer {
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.85;
  max-width: 820px;
}
.disclaimer b { color: #9AA3B4; font-weight: 600; }

.empty {
  padding: 56px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 32px 34px;
  text-align: center;
  font-size: 11.5px;
  color: #454B5A;
  position: relative;
  z-index: 1;
}
.foot .dot { margin: 0 8px; }

/* ================= 响应式 ================= */

@media (max-width: 1024px) {
  .login-inner { grid-template-columns: 1fr; gap: 44px; max-width: 460px; }
  .login-brand { text-align: center; }
  .login-brand h1 { font-size: 44px; }
  .login-sub { margin: 0 auto; }
  .login-stats { justify-content: center; gap: 36px; }
  .brand-mark { justify-content: center; }
  .topbar-search { max-width: none; }
}

@media (max-width: 860px) {
  .topbar-in { padding: 0 18px; gap: 16px; }
  .logo-txt em { display: none; }
  .user-name { display: none; }
  .data-flag { display: none; }
  .main { padding: 26px 18px 60px; }
  .hero h2 { font-size: 22px; }
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 13px; }
  .brand-card { padding: 16px 14px; aspect-ratio: 3 / 4; }
  .bc-name { font-size: 20px; }
  .bc-en { font-size: 8px; letter-spacing: .22em; }
  .bc-no { font-size: 26px; }
  .bc-foot { font-size: 10px; }
  .detail-hero { padding: 26px 22px; }
  .detail-hero h2 { font-size: 30px; }
  .detail-metrics { width: 100%; }
  .dm { flex: 1; padding: 11px 14px; min-width: 0; }
  .dm b { font-size: 15px; }
  .toolbar { gap: 12px; }
  .toolbar-right { width: 100%; }
  .mini-search { flex: 1; }
  .mini-search input { width: 100%; }
}

/* 表格转卡片 */
@media (max-width: 760px) {
  .table-wrap { border: none; background: none; border-radius: 0; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 11px;
    background: linear-gradient(180deg, rgba(22, 26, 34, .9), rgba(14, 17, 22, .9));
  }
  .price-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    text-align: right !important;
  }
  .price-table td::before {
    content: attr(data-label);
    font-size: 11.5px;
    color: var(--muted-2);
    letter-spacing: .04em;
    margin-right: 14px;
    flex-shrink: 0;
  }
  .price-table td.t-model-cell {
    display: block;
    text-align: left !important;
    padding: 0 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, .1);
  }
  .price-table td.t-model-cell::before { display: none; }
  .t-model { font-size: 14.5px; }
}

@media (max-width: 420px) {
  .login { padding: 34px 18px 80px; }
  .login-brand h1 { font-size: 36px; }
  .login-stats { gap: 26px; }
  .login-stats b { font-size: 24px; }
  .login-card { padding: 28px 22px 22px; }
}

/* ================= 用户菜单 / 模态框 / 提示 ================= */

.user-wrap { position: relative; }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  transition: .2s;
}
.user-chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }
.user-chip .chev { color: var(--muted-2); transition: .2s; }
.user-chip.open .chev { transform: rotate(180deg); }

.user-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 158px;
  padding: 6px;
  border-radius: 12px;
  background: #171B23;
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 46px -18px rgba(0, 0, 0, .9);
  z-index: 80;
  animation: menuIn .16s ease-out;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #C3CAD8;
  transition: .16s;
}
.user-menu button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.user-menu button.danger { color: #E8908F; }
.user-menu button.danger:hover { background: rgba(220, 80, 80, .1); }
.user-menu .sep { height: 1px; background: var(--line); margin: 5px 3px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 9, .74);
  backdrop-filter: blur(6px);
  animation: fadeIn .18s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, #1A1F29, #11151C);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
  animation: cardUp .22s cubic-bezier(.2, .7, .3, 1);
}

@keyframes cardUp {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 16px; font-weight: 700; letter-spacing: .01em; }

.modal-close {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: .2s;
}
.modal-close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }

.modal-body { padding: 20px 24px 24px; overflow-y: auto; }

.form-row { margin-bottom: 13px; }
.form-row label { display: block; font-size: 11.5px; color: var(--muted-2); margin-bottom: 6px; letter-spacing: .05em; }
.form-row input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  outline: none;
  font-size: 13px;
  color: var(--text);
  transition: .2s;
}
.form-row input:focus { border-color: rgba(229, 180, 92, .5); background: rgba(229, 180, 92, .05); }

.btn-sm {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  transition: .2s;
}
.btn-sm:hover { background: rgba(255, 255, 255, .09); }
.btn-sm.gold {
  background: linear-gradient(100deg, #EFCB8A, var(--gold));
  color: #191307;
  border-color: transparent;
  font-weight: 700;
}
.btn-sm.gold:hover { filter: brightness(1.06); }
.btn-sm.danger { color: #E8908F; border-color: rgba(220, 80, 80, .3); }
.btn-sm.danger:hover { background: rgba(220, 80, 80, .12); }

.user-list { margin-top: 4px; }

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.user-item:last-child { border-bottom: none; }

.ui-main { flex: 1; min-width: 0; }
.ui-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.ui-phone { font-family: var(--ff-num); font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

.ui-badge {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .06em;
  border: 1px solid;
}
.ui-badge.admin { color: var(--gold); border-color: rgba(229, 180, 92, .34); background: var(--gold-dim); }
.ui-badge.off { color: #8A8F9C; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }

.ui-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ui-actions .btn-sm { padding: 6px 10px; font-size: 11.5px; }

.section-label {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted-2);
  margin: 22px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-err { color: #F0A0A0; font-size: 12px; margin-top: 10px; min-height: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 11px 20px;
  border-radius: 10px;
  background: rgba(28, 34, 44, .96);
  border: 1px solid var(--line-strong);
  color: #E6EAF2;
  font-size: 12.5px;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .9);
  animation: toastIn .24s cubic-bezier(.2, .7, .3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 860px) {
  .user-menu { right: -4px; }
  .modal { padding: 14px; }
  .modal-card { max-height: 90vh; }
  .modal-head { padding: 16px 18px 13px; }
  .modal-body { padding: 16px 18px 20px; }
  .user-item { flex-wrap: wrap; }
  .user-item .ui-actions { width: 100%; margin-top: 4px; }
}
