:root {
  --blue: #2f6bff;
  --blue-deep: #1d4ed8;
  --blue-soft: #6d9dff;
  --ink: #10224a;
  --ink-2: #33456b;
  --muted: #7d8bab;
  --line: rgba(120, 155, 220, 0.18);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --stroke: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 40px rgba(38, 84, 168, 0.14);
  --shadow-sm: 0 8px 22px rgba(38, 84, 168, 0.1);
  --danger: #ff4d5e;
  --success: #18b57a;
  --warning: #f0a028;
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #eef4ff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { -webkit-appearance: none; appearance: none; }
.hidden { display: none !important; }

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 8% -12%, #d3e3ff 0%, rgba(211, 227, 255, 0) 62%),
    radial-gradient(820px 540px at 104% 4%, #e6f0ff 0%, rgba(230, 240, 255, 0) 58%),
    linear-gradient(165deg, #f8fbff 0%, #edf4ff 46%, #dfeaff 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.6;
}
.orb-1 { width: 300px; height: 300px; left: -100px; top: 4%; background: #a9c8ff; }
.orb-2 { width: 260px; height: 260px; right: -90px; top: 22%; background: #c9d9ff; }
.orb-3 { width: 320px; height: 320px; left: 20%; bottom: -140px; background: #b9d4ff; opacity: 0.5; }

/* ---------- 玻璃 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow);
}

/* ---------- 登录 ---------- */
.login-view {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
}
.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 32px;
  padding: 38px 26px 26px;
  text-align: center;
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #6ea1ff, var(--blue) 70%);
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.brand-mark svg { width: 34px; height: 34px; }
.login-card h1 { margin: 0; font-size: 24px; letter-spacing: 0.5px; }
.login-sub { margin: 8px 0 28px; color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-hint { margin: 20px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field > span { font-size: 12px; color: var(--muted); padding-left: 4px; letter-spacing: 0.4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a3b0c9; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(47, 107, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d8bab' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-section { margin: 6px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--blue); text-transform: uppercase; }
.form-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #5d92ff, var(--blue) 65%);
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.32);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ink-2);
}
.btn.danger { color: #fff; background: linear-gradient(135deg, #ff7a86, var(--danger)); box-shadow: 0 10px 22px rgba(255, 77, 94, 0.28); }
.btn.success { color: #fff; background: linear-gradient(135deg, #46d5a0, var(--success)); box-shadow: 0 10px 22px rgba(24, 181, 122, 0.26); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 13px; font-size: 13px; border-radius: 12px; }
.btn:disabled { opacity: 0.55; pointer-events: none; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.icon-btn:active { transform: scale(0.95); }
.icon { width: 20px; height: 20px; }

/* ---------- 顶部 / 布局 ---------- */
.app-view { min-height: 100vh; min-height: 100dvh; padding-bottom: 120px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(10px + var(--safe-top)) 16px 10px;
}
.topbar-inner {
  max-width: 620px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-text { min-width: 0; }
.topbar-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
}
.topbar h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: 0.3px; }
.avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(145deg, #6d9dff, var(--blue));
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 6px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fade 0.28s ease both;
}

/* ---------- 首页 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(140deg, #4f86ff 0%, #2f6bff 52%, #2153d6 100%);
  box-shadow: 0 20px 40px rgba(38, 84, 200, 0.32);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(2px);
}
.hero::before { width: 170px; height: 170px; right: -50px; top: -70px; }
.hero::after { width: 110px; height: 110px; right: 46px; bottom: -62px; background: rgba(255, 255, 255, 0.1); }
.hero-greet { font-size: 22px; font-weight: 700; letter-spacing: 0.3px; }
.hero-date { margin-top: 7px; font-size: 12.5px; opacity: 0.82; letter-spacing: 0.5px; }
.hero-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-tag {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}
.section-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.section-head .link { font-size: 12.5px; color: var(--blue); font-weight: 500; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  border-radius: 20px;
  padding: 16px 15px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14); }
.stat-value { margin-top: 9px; font-size: 25px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-foot { margin-top: 4px; font-size: 11px; color: var(--muted); }

.card {
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.chart { display: flex; align-items: flex-end; gap: 9px; height: 104px; padding-top: 12px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar {
  width: 100%;
  max-width: 26px;
  min-height: 5px;
  border-radius: 8px 8px 6px 6px;
  background: linear-gradient(180deg, #7facff, #2f6bff);
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.22);
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.chart-day { font-size: 10px; color: var(--muted); }

.cat-list { display: flex; flex-direction: column; gap: 14px; }
.cat-row { display: flex; flex-direction: column; gap: 7px; }
.cat-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.cat-top b { font-weight: 600; }
.cat-top span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-track { height: 7px; border-radius: 999px; background: rgba(47, 107, 255, 0.1); overflow: hidden; }
.cat-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8bb4ff, var(--blue)); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-btn {
  border-radius: 18px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.quick-btn:active { transform: scale(0.96); }
.quick-ico {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(47, 107, 255, 0.1);
}
.quick-ico svg { width: 19px; height: 19px; }

/* ---------- 列表 / 订单 ---------- */
.segmented {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 15px;
  background: rgba(210, 224, 250, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.segmented button {
  flex: 1;
  padding: 9px 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 12px;
  transition: all 0.2s;
  white-space: nowrap;
}
.segmented button.active {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(40, 80, 160, 0.12);
  font-weight: 600;
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; flex-shrink: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: all 0.2s;
}
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, #6d9dff, var(--blue));
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(47, 107, 255, 0.26);
}
.chip.add { color: var(--blue); border-style: dashed; border-color: rgba(47, 107, 255, 0.35); background: rgba(255, 255, 255, 0.4); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.search-bar svg { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
.search-bar input::placeholder { color: #a3b0c9; font-size: 13px; }

.order-card {
  border-radius: 20px;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.15s;
}
.order-card:active { transform: scale(0.985); }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-no { font-size: 11.5px; color: var(--muted); letter-spacing: 0.4px; font-variant-numeric: tabular-nums; }
.order-name { font-size: 15.5px; font-weight: 650; }
.order-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.order-meta b { color: var(--ink-2); font-weight: 500; }
.order-bottom { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 11px; border-top: 1px dashed var(--line); }
.order-price { font-size: 19px; font-weight: 700; color: var(--blue-deep); letter-spacing: -0.4px; }
.order-price small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.pending { color: #c77c00; background: rgba(240, 160, 40, 0.14); }
.badge.confirmed { color: #1f66e0; background: rgba(47, 107, 255, 0.12); }
.badge.serving { color: #0c8f86; background: rgba(12, 183, 170, 0.13); }
.badge.done { color: #0e9a67; background: rgba(24, 181, 122, 0.13); }
.badge.cancelled { color: #8b95a9; background: rgba(139, 149, 169, 0.14); }

/* ---------- 服务 / 套餐 ---------- */
.item-card {
  border-radius: 20px;
  padding: 15px 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.item-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-deep);
  background: linear-gradient(150deg, rgba(120, 165, 255, 0.34), rgba(47, 107, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.item-avatar svg { width: 21px; height: 21px; }
.item-avatar.media { padding: 0; overflow: hidden; background: rgba(47, 107, 255, 0.08); }
.item-avatar.media img,
.item-avatar.media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-avatar.pkg { color: #7a4bd6; background: linear-gradient(150deg, rgba(160, 130, 255, 0.32), rgba(120, 90, 220, 0.1)); }
.item-avatar.addon { color: #0c8f86; background: linear-gradient(150deg, rgba(90, 220, 200, 0.28), rgba(24, 181, 122, 0.1)); }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.item-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; opacity: 0.92; }
.brand-initial { font-size: 14px; font-weight: 700; color: var(--blue-deep); }
.brand-pick { display: flex; align-items: center; gap: 8px; }
.brand-pick select { flex: 1; min-width: 0; }
.item-title { font-size: 14.5px; font-weight: 650; }
.item-sub { font-size: 12px; color: var(--muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-sub.pre { white-space: pre-line; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 7px;
  color: var(--ink-2);
  background: rgba(47, 107, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.tag.off { color: #98a3b8; background: rgba(140, 150, 170, 0.1); }
.tag.price { color: var(--blue-deep); font-weight: 600; background: rgba(47, 107, 255, 0.1); }
.item-price { font-size: 16px; font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.item-price small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.item-actions { display: flex; gap: 4px; }
.mini-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.mini-btn svg { width: 15px; height: 15px; }
.mini-btn:active { transform: scale(0.94); }
.mini-btn.danger { color: #e35b6b; }

/* ---------- 案例展示 ---------- */
.case-list { display: flex; flex-direction: column; gap: 12px; }
.case-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow-sm);
}
.case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #dbe8ff, #eef4ff);
  overflow: hidden;
}
.case-media img,
.case-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-media {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #97a6c4;
  font-size: 11px;
}
.empty-media svg { width: 30px; height: 30px; }
.case-kind {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(16, 34, 74, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.case-off {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 77, 94, 0.84);
}
.case-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}
.case-play svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(16, 34, 74, 0.46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.case-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 8px; }
.case-body .item-sub { -webkit-line-clamp: 2; }
.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px dashed rgba(47, 107, 255, 0.3);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.upload-preview {
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  background: linear-gradient(150deg, #e4eeff, #f4f8ff);
}
.upload-preview img,
.upload-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-preview.sm { height: 104px; }
.brand-logo-preview { height: 110px; }
.brand-logo-preview img { width: auto; max-width: 60%; height: 100%; object-fit: contain; }
.upload-hint { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.6; }

/* ---------- 更多 ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #6d9dff, var(--blue));
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.3);
}
.profile-name { font-size: 16px; font-weight: 700; }
.profile-role { margin-top: 4px; font-size: 12px; color: var(--muted); }

.menu-group { border-radius: var(--radius); overflow: hidden; background: var(--glass); border: 1px solid var(--stroke); box-shadow: var(--shadow-sm); }
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: rgba(47, 107, 255, 0.05); }
.menu-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(47, 107, 255, 0.1);
}
.menu-ico svg { width: 17px; height: 17px; }
.menu-ico.red { color: #e35b6b; background: rgba(255, 77, 94, 0.1); }
.menu-label { flex: 1; font-size: 14px; font-weight: 500; }
.menu-value { font-size: 12px; color: var(--muted); }
.menu-arrow { color: #b6c1d6; display: flex; }
.menu-arrow svg { width: 16px; height: 16px; }

.more-foot { text-align: center; font-size: 11px; color: #a2aec4; padding-top: 6px; letter-spacing: 0.5px; }

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 34, 74, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.2s ease both;
}
.sheet {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: 28px 28px 0 0;
  background: rgba(247, 250, 255, 0.9);
  box-shadow: 0 -20px 50px rgba(26, 56, 120, 0.22);
  display: flex;
  flex-direction: column;
  animation: sheetUp 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sheet-grab { width: 38px; height: 4.5px; border-radius: 999px; background: rgba(120, 140, 180, 0.28); margin: 9px auto 2px; flex: 0 0 auto; }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px 20px;
  flex: 0 0 auto;
}
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.sheet-body {
  padding: 2px 20px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.sheet-form { display: flex; flex-direction: column; gap: 13px; }
.sheet-actions { display: flex; gap: 10px; padding-top: 4px; }
.sheet-actions .btn { flex: 1; }

.detail-block {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.detail-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.detail-row span { color: var(--muted); flex: 0 0 auto; }
.detail-row b { font-weight: 500; text-align: right; word-break: break-all; }
.detail-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line); }
.detail-total span { font-size: 13px; color: var(--muted); }
.detail-total b { font-size: 24px; color: var(--blue-deep); letter-spacing: -0.6px; }

.addon-check {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.addon-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.addon-check .ac-main { flex: 1; min-width: 0; }
.addon-check .ac-name { display: block; font-size: 13px; font-weight: 500; }
.addon-check .ac-cat { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.addon-check .ac-price { font-size: 12.5px; color: var(--blue-deep); font-weight: 600; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 13px;
}
.switch { position: relative; width: 46px; height: 28px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(150, 163, 190, 0.35);
  transition: background 0.22s;
}
.switch i::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(20, 40, 80, 0.2);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.switch input:checked + i { background: linear-gradient(135deg, #6d9dff, var(--blue)); }
.switch input:checked + i::after { transform: translateX(18px); }

.empty {
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty-ico {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9db5e0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.empty-ico svg { width: 26px; height: 26px; }
.empty.loading { gap: 12px; }
.loading-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(109, 157, 255, 0.24);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
.empty.error { color: var(--danger); }
.empty.error .empty-ico { color: #f4a3ab; }
.empty.error .btn { margin-top: 2px; }

/* ---------- 对话框 / Toast ---------- */
.dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 34, 74, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.18s ease both;
}
.dialog {
  width: 100%;
  max-width: 320px;
  border-radius: 24px;
  padding: 22px 20px 18px;
  background: rgba(250, 252, 255, 0.92);
  animation: rise 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dialog h3 { margin: 0 0 8px; font-size: 16px; text-align: center; }
.dialog p { margin: 0 0 18px; font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.6; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-actions .btn { flex: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(118px + var(--safe-bottom));
  z-index: 90;
  transform: translate(-50%, 14px);
  max-width: 82vw;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 13px;
  color: #fff;
  background: rgba(16, 34, 74, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(16, 34, 74, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  text-align: center;
  line-height: 1.45;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(196, 38, 55, 0.9); }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 40;
  max-width: 596px;
  margin: 0 auto;
  border-radius: 26px;
  padding: 8px 6px;
  display: flex;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 40px rgba(30, 70, 150, 0.18);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 2px 5px;
  border-radius: 18px;
  color: #8b98b4;
  transition: color 0.2s, background 0.2s;
}
.tab .icon { width: 21px; height: 21px; }
.tab span { font-size: 10px; font-weight: 500; letter-spacing: 0.2px; }
.tab.active { color: var(--blue); background: rgba(47, 107, 255, 0.08); }
.tab.active .icon { filter: drop-shadow(0 4px 6px rgba(47, 107, 255, 0.3)); }

/* ---------- 动画 ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 720px) {
  .tabbar { bottom: 18px; }
  .page { padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
