/* ============================================================
   我丢 (wodiu.com.cn) 全局样式  ·  设计语言：蓝色渐变 · 玻璃质感 · 大气
   主渐变（与「建设中」页同一套）：
     linear-gradient(135deg, #60a5fa 0%, #4285f4 50%, #1a73e8 100%)
   ============================================================ */
:root {
  --brand: #4285f4;
  --brand-dark: #1a73e8;
  --brand-light: #e8f0fe;
  --ink: #1e293b;
  --muted: #64748b;
  --line: rgba(30,41,59,.08);
  --bg: #eef3fb;
  --card: rgba(255,255,255,.82);
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --radius-sm: 12px;
  --grad-brand: linear-gradient(135deg, #60a5fa 0%, #4285f4 50%, #1a73e8 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(96,165,250,.16), rgba(66,133,244,.10));
  --shadow-sm: 0 1px 2px rgba(30,41,59,.05);
  --shadow-md: 0 10px 34px rgba(30,41,59,.10);
  --shadow-lg: 0 24px 60px rgba(30,41,59,.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -220px, rgba(66,133,244,.22), transparent 65%),
    radial-gradient(900px 420px at 100% 40%, rgba(96,165,250,.10), transparent 60%),
    linear-gradient(180deg, #eef3fb 0%, #f6f9ff 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: .1px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1,h2,h3,h4 { color: #0f172a; letter-spacing: -.5px; font-weight: 750; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部栏（蓝渐变，同建设中页） ---------- */
.topbar {
  background: var(--grad-brand);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 6px 24px rgba(26,115,232,.28);
}
.topbar::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; opacity: .35; pointer-events: none; }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.brand-logo { display: block; height: 42px; width: auto; border-radius: 12px; }
.brand .brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.6px; color: #fff; }
.brand .tagline { font-size: 12px; color: rgba(255,255,255,.85); margin-left: 2px; font-weight: 400; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 9px; font-size: 15px; color: rgba(255,255,255,.86); font-weight: 500; transition: .16s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.16); }
.nav a.active { background: rgba(255,255,255,.24); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.user-menu { display: flex; align-items: center; gap: 10px; position: relative; }
.user-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border: none; border-radius: 11px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: .16s; }
.user-trigger:hover { background: rgba(255,255,255,.16); }
.user-trigger .caret { font-size: 10px; opacity: .85; }
.user-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 176px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(15,23,42,.18); padding: 6px; z-index: 60; }
.user-dropdown.open { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink); }
.user-dropdown a:hover { background: var(--brand-light); color: var(--brand-dark); }
.user-dropdown a.danger { color: var(--danger); }
.user-dropdown a.danger:hover { background: #fef2f2; color: var(--danger); }
.user-dropdown .divider { height: 1px; background: var(--line); margin: 6px 4px; }
.user-menu .name { font-size: 14px; font-weight: 600; color: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background-size: cover; background: rgba(255,255,255,.22); }
/* 顶栏内的按钮：半透明白底 + 白字（原样式只改了文字色，叠加 .btn 的白色底导致白底白字看不见） */
.topbar .btn-sm, .topbar a.btn { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); color: #fff; }
.topbar .btn-sm:hover, .topbar a.btn:hover { background: rgba(255,255,255,.30); color: #fff; }
/* 顶栏内的主按钮（如未登录的「登录」）：实心白底 + 品牌蓝字，保证对比 */
.topbar .btn-primary { background: #fff; border-color: #fff; color: var(--brand-dark); box-shadow: 0 4px 12px rgba(15,23,42,.18); }
.topbar .btn-primary:hover { background: #fff; color: var(--brand-dark); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s ease; box-shadow: var(--shadow-sm); }
.btn:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(66,133,244,.32); }
.btn-primary:hover { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 30px rgba(66,133,244,.42); transform: translateY(-2px); }
.btn-warn { background: var(--warn); border-color: transparent; color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-danger { border-color: #fca5a5; color: var(--danger); }
.btn-danger:hover { background: #fef2f2; }
.btn-white { background: #fff; color: var(--brand-dark); border: none; box-shadow: 0 8px 24px rgba(15,23,42,.14); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- 卡片（玻璃质感） ---------- */
.card { background: var(--card); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-md); }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.cols-3 { grid-template-columns: 1fr; } .grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--muted); letter-spacing: .2px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(30,41,59,.12); border-radius: var(--radius-sm); font-size: 15px; background: rgba(255,255,255,.9); font-family: inherit; transition: .15s; color: var(--ink); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(66,133,244,.16); background: #fff; }
textarea { resize: vertical; min-height: 82px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页头 ---------- */
.page-head { margin: 28px 0 20px; }
.page-head h1 { font-size: 25px; margin: 0 0 6px; font-weight: 800; }
.page-head p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---------- 首页 hero（蓝渐变 + 点阵 + 圆环，同建设中页） ---------- */
.hero {
  background:
    radial-gradient(600px 340px at 88% 12%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(500px 300px at 8% 86%, rgba(255,255,255,.14), transparent 60%),
    var(--grad-brand);
  color: #fff; border-radius: 24px; padding: 52px 44px; margin: 24px 0 30px;
  position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(26,115,232,.28);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px; border: 40px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.hero h1 { font-size: 38px; margin: 0 0 14px; font-weight: 800; letter-spacing: -1px; color: #fff; line-height: 1.22; }
.hero p { font-size: 16px; opacity: .94; margin: 0 0 26px; max-width: 540px; color: #fff; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- 首页特性卡 ---------- */
.feature-grid { margin-bottom: 8px; }
.feature { text-align: center; }
.feature .f-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.feature .f-body h3 { margin: 0 0 4px; font-size: 15px; }
.feature .f-body p { margin: 0; font-size: 14px; }

/* ---------- 特性 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { background: var(--card); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: .18s; }
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step .num { width: 32px; height: 32px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; background: var(--grad-brand); box-shadow: 0 4px 10px rgba(66,133,244,.22); }
.step h3 { font-size: 15px; margin: 0 0 4px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- 列表项 ---------- */
.list-item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); background: var(--card); backdrop-filter: blur(12px); margin-bottom: 12px; transition: .18s; box-shadow: var(--shadow-sm); }
.list-item:hover { border-color: rgba(66,133,244,.5); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.list-item .icon { font-size: 26px; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; }
.list-item .title { font-weight: 600; font-size: 15px; color: var(--ink); }
.list-item .title:hover { color: var(--brand-dark); }
.list-item .sub { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { font-size: 13px; color: var(--muted); margin-top: 5px; }
.list-item .body { flex: 1; min-width: 0; }

/* ---------- 状态标记 ---------- */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge.green { background: #dcfce7; color: #16a34a; }
.badge.orange { background: #fef3c7; color: #b45309; }
.badge.red { background: #fee2e2; color: #b91c1c; }
.badge.gray { background: #f1f2f4; color: var(--muted); }
.badge.blue { background: #e8f0fe; color: #1a73e8; }

.price { color: var(--danger); font-weight: 700; }
.amount { color: #0f172a; font-weight: 800; letter-spacing: -.3px; }

/* ---------- 提示/Toast ---------- */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 12px 22px; border-radius: 12px; background: rgba(15,23,42,.92); color: #fff; font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.20); animation: slideIn .25s; backdrop-filter: blur(6px); }
.toast.ok { background: rgba(26,115,232,.94); }
.toast.err { background: rgba(239,68,68,.94); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 标签页 / 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 42px; opacity: .8; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(30,41,59,.12); background: #fff; font-size: 14px; font-weight: 500; color: var(--muted); transition: .15s; }
.tabs a.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(66,133,244,.24); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.modal { background: #fff; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 24px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
@media (min-width: 600px) { .modal-mask { align-items: center; } .modal { border-radius: 18px; } }
.modal h3 { margin: 0 0 16px; }
.close-x { float: right; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 44px; padding: 28px 0; color: var(--muted); font-size: 13px; text-align: center; }
.main { min-height: 60vh; }

/* ---------- 管理后台 ---------- */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar { width: 232px; background: #1e3a8a; color: #cbd5e1; padding: 22px 0; flex-shrink: 0; }
.admin-sidebar .logo { font-size: 20px; font-weight: 800; color: #fff; padding: 0 22px 22px; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; gap: 10px; align-items: center; }
.admin-sidebar .logo .logo-badge { width: 28px; height: 28px; border-radius: 8px; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.admin-sidebar .logo .en { font-size: 11px; color: #94a3b8; display: block; font-weight: 400; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 13px 22px; color: #94a3b8; font-size: 14px; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: rgba(66,133,244,.5); color: #fff; }
.admin-main { flex: 1; padding: 26px; overflow: auto; background: var(--bg); }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-top h1 { font-size: 20px; margin: 0; }
@media (max-width: 760px) { .admin-sidebar { width: 64px; } .admin-sidebar .logo span.en, .admin-sidebar .logo .txt { display: none; } .admin-nav a { padding: 12px; justify-content: center; } .admin-nav a .lab { display: none; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-brand); opacity: .9; }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 6px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .value.green { color: var(--brand-dark); }
.stat .value.orange { color: #b45309; }

/* ---------- 表格 ---------- */
.table-wrap { background: #fff; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.7); overflow: auto; box-shadow: var(--shadow-md); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(30,41,59,.06); white-space: nowrap; }
table.data th { background: rgba(30,41,59,.03); font-weight: 600; color: var(--muted); font-size: 13px; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(66,133,244,.04); }
table.data td .btn { margin-right: 6px; }

/* ---------- 加载 ---------- */
.loading { text-align: center; color: var(--muted); padding: 44px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 路线规划（按楼聚合站点） ---------- */
.route-stop { border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); background: var(--card); backdrop-filter: blur(12px); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.stop-head { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--grad-brand-soft); border-bottom: 1px solid rgba(30,41,59,.06); }
.stop-no { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.stop-addr { flex: 1; min-width: 0; }
.stop-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.stop-right { text-align: right; flex-shrink: 0; }
.stop-orders { padding: 6px 18px; }
.mini-order { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed rgba(30,41,59,.12); }
.mini-order:last-child { border-bottom: none; }
.mini-icon { font-size: 20px; }
.mini-info { font-size: 14px; color: var(--ink); }

/* ---------- 上门时段按钮 ---------- */
.slot-group { display: flex; gap: 10px; flex-wrap: wrap; }
.slot-btn { padding: 10px 16px; border: 1px solid rgba(30,41,59,.12); border-radius: var(--radius-sm); background: #fff; font-size: 14px; cursor: pointer; transition: .15s; color: var(--muted); }
.slot-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.slot-btn.active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(66,133,244,.24); }

/* ---------- 工具类 ---------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.section-title { font-size: 16px; font-weight: 700; margin: 26px 0 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad-brand); }
.num { font-weight: 700; }

/* ---------- 登录/注册（分栏式，同建设中蓝渐变） ---------- */
.auth-wrap { max-width: 860px; margin: 40px auto 20px; display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.82); backdrop-filter: blur(14px); }
.auth-brand { position: relative; color: #fff; padding: 40px 34px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: radial-gradient(600px 340px at 90% 8%, rgba(255,255,255,.22), transparent 55%), radial-gradient(500px 300px at 10% 92%, rgba(255,255,255,.16), transparent 55%), var(--grad-brand); }
.auth-brand::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 24px 24px; opacity: .5; }
.auth-brand::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border: 30px solid rgba(255,255,255,.08); border-radius: 50%; }
.auth-brand .logo-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand .logo-big { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.22); backdrop-filter: blur(4px); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; }
.auth-brand .logo-txt { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.auth-brand .brand-copy { position: relative; z-index: 1; }
.auth-brand .brand-copy h2 { color: #fff; font-size: 24px; margin: 0 0 8px; letter-spacing: -.6px; }
.auth-brand .brand-copy p { color: rgba(255,255,255,.9); font-size: 14px; line-height: 1.7; margin: 0; }
.auth-brand .brand-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.auth-brand .brand-points span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.94); font-size: 14px; }
.auth-brand .brand-points i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 15px; }
.auth-form { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-form .auth-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.auth-form .auth-sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.auth-tabs { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tabs a { padding: 8px 22px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .15s; }
.auth-tabs a.active { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 10px rgba(66,133,244,.24); }
@media (max-width: 760px) { .auth-wrap { grid-template-columns: 1fr; } .auth-brand { padding: 30px 24px; } .auth-form { padding: 28px 22px; } .auth-brand .brand-points { display: none; } }

/* ---------- 移动端适配（手机） ---------- */
* { -webkit-tap-highlight-color: transparent; }
@media (max-width: 720px) {
  /* ---------- 顶栏：第一行 品牌 + 账户，第二行 导航胶囊 ---------- */
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 0; gap: 0; align-items: center; }
  .brand { padding: 11px 0; }
  .brand .tagline { display: none; }
  .brand .logo { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
  .brand-logo { height: 38px; border-radius: 11px; }
  .brand .brand-name { font-size: 18px; }
  .user-menu { margin-left: auto; padding: 11px 0; gap: 8px; }
  .user-menu .name { display: none; }
  .avatar { width: 30px; height: 30px; }
  .topbar .btn-sm { padding: 6px 12px; font-size: 13px; }

  /* 导航：单行横向滚动胶囊，不再换行挤压 */
  .nav {
    order: 3; flex-basis: 100%; flex-wrap: nowrap; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 9px 0 11px; border-top: 1px solid rgba(255,255,255,.18);
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 13.5px; font-weight: 600; padding: 7px 15px; border-radius: 999px; background: rgba(255,255,255,.13); color: rgba(255,255,255,.95); }
  .nav a:hover { background: rgba(255,255,255,.22); }
  .nav a.active { background: #fff; color: var(--brand-dark); box-shadow: 0 3px 10px rgba(0,0,0,.16); }

  /* ---------- 首页 hero：收紧留白，按钮整行 ---------- */
  .hero { padding: 30px 20px 28px; border-radius: 18px; margin: 16px 0 22px; box-shadow: 0 12px 34px rgba(26,115,232,.24); }
  .hero::after { width: 180px; height: 180px; border-width: 26px; right: -50px; top: -50px; }
  .hero h1 { font-size: 23px; line-height: 1.32; letter-spacing: -.6px; margin: 0 0 10px; }
  .hero p { font-size: 13.5px; margin: 0 0 18px; }
  .hero .btns { gap: 10px; }
  .hero .btns .btn { flex: 1 1 100%; min-height: 44px; }

  /* ---------- 通用 ---------- */
  .container { padding: 0 16px; }
  .page-head { margin: 18px 0 14px; }
  .page-head h1 { font-size: 20px; }
  .page-head p { font-size: 13px; }
  .section-title { font-size: 15px; margin: 20px 0 12px; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .grid { gap: 12px; }
  input, select, textarea { font-size: 16px !important; }
  .btn, .slot-btn { min-height: 44px; }
  .stop-head { flex-wrap: wrap; }
  .mini-info { font-size: 13px; }
  .list-item { padding: 14px; gap: 10px; }
  .list-item .icon { width: 40px; height: 40px; font-size: 22px; }
  .admin-main { padding: 14px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  table.data th, table.data td { padding: 9px 10px; font-size: 13px; }
  .auth-wrap { margin: 18px auto 10px; border-radius: 18px; }
  .auth-brand { padding: 26px 20px; }
  .auth-form { padding: 24px 20px; }

  /* 未登录时「登录」按钮右对齐 */
  .topbar-inner > .btn, .topbar-inner > a.btn { margin-left: auto; }

  /* 特性卡：改为横向紧凑（图标左，文字右） */
  .feature-grid { gap: 10px; }
  .feature { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 15px; }
  .feature .f-icon { flex-shrink: 0; width: 42px; height: 42px; margin: 0; font-size: 22px; display: flex; align-items: center; justify-content: center; background: var(--brand-light); border-radius: 12px; }
  .feature .f-body h3 { font-size: 14.5px; margin: 0 0 2px; }
  .feature .f-body p { font-size: 12.5px; }

  /* 使用步骤：单列 + 横向紧凑 */
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; }
  .step .num { flex-shrink: 0; margin-bottom: 0; width: 28px; height: 28px; }
  .step h3 { font-size: 14.5px; margin: 0 0 2px; }
  .step p { font-size: 12.5px; }
}

/* ---------- 超小屏 ---------- */
@media (max-width: 400px) {
  .brand-logo { height: 34px; border-radius: 10px; }
  .hero { padding: 26px 18px; }
  .hero h1 { font-size: 21px; }
  .nav a { font-size: 13px; padding: 7px 13px; }
}
@media (max-width: 480px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

/* ---------- 第三方登录 ---------- */
.social-login { margin-top: 20px; }
.social-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 6px 0 14px; }
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btns { display: flex; gap: 10px; }
.social-btn { flex: 1; gap: 8px; }
.social-btn .ico { font-size: 17px; }
.social-btn .ico.wx { color: #07c160; }
.social-btn .ico.qq { color: #12b7f5; }


/* ---------- 后台设置页 ---------- */
.set-lead { color: var(--muted); font-size: 13px; margin: -4px 0 16px; }
.set-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.set-tabs a { padding: 8px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: .15s; }
.set-tabs a:hover { color: var(--brand-dark); background: var(--brand-light); }
.set-tabs a.active { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 12px rgba(66,133,244,.26); }
.set-card { background: var(--card); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-md); max-width: 900px; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 22px; }
.set-grid .form-group.full { grid-column: 1 / -1; }
.set-grid .form-group { margin-bottom: 16px; }
.set-actions { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .set-grid { grid-template-columns: 1fr; } }

/* ---------- 注册身份选择 ---------- */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; cursor: pointer; transition: .16s; background: #fff; }
.role-opt:hover { border-color: rgba(66,133,244,.5); }
.role-opt.active { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 4px 14px rgba(66,133,244,.16); }
.role-opt .ri { display: block; font-size: 22px; margin-bottom: 4px; }
.role-opt b { display: block; font-size: 14px; color: var(--ink); }
.role-opt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 测试导航台 ---------- */
.test-acct { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 4px; border-bottom:1px solid var(--line); }
.test-acct:last-child { border-bottom:none; }
.test-acct b { font-size:14px; display:block; }
.test-acct small { color:var(--muted); font-size:12.5px; }
.test-group { background:var(--card); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.7); border-radius:var(--radius); padding:18px 20px; margin-bottom:14px; box-shadow:var(--shadow-md); }
.test-group h3 { margin:0 0 12px; font-size:15px; }
.test-links { display:flex; flex-wrap:wrap; gap:8px; }
.test-link { display:inline-flex; align-items:center; gap:6px; padding:9px 15px; border-radius:10px; background:#fff; border:1px solid var(--line); font-size:14px; font-weight:600; color:var(--ink); transition:.15s; }
.test-link:hover { border-color:var(--brand); color:var(--brand-dark); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.test-link span { color:var(--muted); font-size:12px; }

/* ---------- 上门顺序号 / 楼层标签 ---------- */
.seq-no { flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--grad-brand); color:#fff; font-size:12px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.floor-tag { display:inline-block; padding:1px 7px; border-radius:6px; background:var(--brand-light); color:var(--brand-dark); font-size:12px; margin-right:2px; }

/* ---------- 套餐周期备注 ---------- */
.pkg-remark { margin-top: 10px; padding: 10px 13px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); font-size: 13px; line-height: 1.7; }
.pkg-remark b { color: var(--brand-dark); }

/* ---------- 注册暂未开放 ---------- */
.tab-off { padding: 8px 22px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #b6bdc9; cursor: not-allowed; }

/* ---------- 后台顶栏操作区 ---------- */
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
