/* ==========================================================================
   工作台 · 玻璃气泡磨砂视觉
   淡蓝 + 淡黄双色背景气泡，全局固定覆盖，内容卡片为磨砂玻璃面板
   ========================================================================== */

:root {
  --ink: #14304c;
  --ink-soft: #4a6a88;
  --ink-mute: #7d93a8;
  --blue: #2f6bdd;
  --blue-deep: #1c4fb8;
  --blue-soft: #e7f1ff;
  --amber: #d98a1f;
  --amber-soft: #fff2d4;
  --green: #1f9d67;
  --green-soft: #e2f7ee;
  --red: #c4453d;
  --red-soft: #fdeceb;

  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-line: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 18px 44px rgba(46, 92, 148, 0.13);
  --glass-shadow-sm: 0 8px 22px rgba(46, 92, 148, 0.1);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --nav-height: 68px;
  --topbar-height: 62px;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  background: linear-gradient(165deg, #e6f2ff 0%, #f4faff 38%, #fff8e6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

/* ---------- 全局气泡背景（固定覆盖所有页面） ---------- */
.bubble-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.85;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}

.bubble--blue-a {
  width: 320px;
  height: 320px;
  top: -90px;
  left: -80px;
  background: radial-gradient(circle at 35% 35%, #bfe0ff, rgba(191, 224, 255, 0.35) 70%, transparent 72%);
}

.bubble--blue-b {
  width: 260px;
  height: 260px;
  right: -70px;
  top: 22%;
  background: radial-gradient(circle at 40% 40%, #cdeaff, rgba(205, 234, 255, 0.3) 70%, transparent 72%);
  animation-duration: 26s;
  animation-delay: -6s;
}

.bubble--amber-a {
  width: 300px;
  height: 300px;
  bottom: 6%;
  left: -110px;
  background: radial-gradient(circle at 45% 45%, #ffe9ab, rgba(255, 233, 171, 0.32) 70%, transparent 72%);
  animation-duration: 28s;
  animation-delay: -3s;
}

.bubble--amber-b {
  width: 230px;
  height: 230px;
  bottom: -80px;
  right: -60px;
  background: radial-gradient(circle at 50% 50%, #ffe08a, rgba(255, 224, 138, 0.3) 70%, transparent 72%);
  animation-duration: 24s;
  animation-delay: -9s;
}

.bubble--shimmer {
  width: 420px;
  height: 420px;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 68%);
  opacity: 0.55;
  animation: none;
}

/* 细小的玻璃气泡颗粒，增强磨砂层次 */
.bubble-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1.4px),
    radial-gradient(rgba(120, 170, 220, 0.22) 1px, transparent 1.4px);
  background-size: 120px 120px, 176px 176px;
  background-position: 0 0, 40px 60px;
  opacity: 0.55;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -26px, 0) scale(1.08);
  }
}

/* ---------- 布局 ---------- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px calc(var(--nav-height) + 34px);
  min-height: 100vh;
}

.app--plain {
  padding-bottom: 40px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--topbar-height);
  padding: 10px 16px;
  margin: 0 0 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow-sm);
}

.topbar__titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__sub {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__action {
  margin-left: auto;
  flex: none;
}

/* ---------- 页头 ---------- */
.hero {
  padding: 22px 4px 6px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero h2 {
  margin: 14px 0 6px;
  font-size: 26px;
  line-height: 1.28;
  letter-spacing: -0.2px;
}

.hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- 玻璃卡片 ---------- */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.glass--strong {
  background: var(--glass-strong);
}

.card {
  padding: 20px;
  margin-bottom: 16px;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.card__hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.card__foot {
  margin-top: 18px;
}

/* 玻璃高光条 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.15) 26%,
    rgba(255, 255, 255, 0) 52%,
    rgba(255, 240, 200, 0.28) 100%
  );
  opacity: 0.9;
  pointer-events: none;
}

.glass > * {
  position: relative;
  z-index: 1;
}

/* ---------- 表单 ---------- */
.field {
  margin-bottom: 18px;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.field__label .req {
  color: var(--red);
  font-weight: 700;
}

.field__tip {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-mute);
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(46, 92, 148, 0.05);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
}

.input::placeholder {
  color: #93a8bc;
}

.input:hover {
  background: rgba(255, 255, 255, 0.85);
}

.input:focus-visible,
.select:focus-visible,
.btn:focus-visible,
.choice:focus-visible,
.navitem:focus-visible,
.iconbtn:focus-visible,
.order-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.input[aria-invalid="true"] {
  border-color: var(--red);
  background: rgba(255, 245, 244, 0.95);
}

.input-affix {
  position: relative;
}

.input-affix .input {
  padding-left: 38px;
}

.input-affix__prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--ink-soft);
  pointer-events: none;
}

.input-affix__prefix svg {
  width: 16px;
  height: 16px;
}

.input-affix__suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-mute);
}

.field__error {
  display: none;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--red);
}

.field__error.is-visible {
  display: block;
}

/* 二选一：分段选择 */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 15px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.26) 50%, transparent 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(46, 92, 148, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  cursor: pointer;
  transition: all 0.18s ease;
}

.choice:hover {
  transform: translateY(-1px);
  background:
    radial-gradient(120% 110% at 22% 0%, #fff 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5));
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__dot {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #b7c9db;
  background: #fff;
  transition: all 0.18s ease;
}

.choice input:checked ~ .choice__dot {
  border-color: var(--blue);
  background: radial-gradient(circle at center, var(--blue) 0 45%, #fff 48% 100%);
  box-shadow: 0 0 0 4px rgba(47, 107, 221, 0.14);
}

.choice.is-checked,
.choice:has(input:checked) {
  color: var(--blue-deep);
  background:
    radial-gradient(120% 110% at 22% 0%, #fff 0%, rgba(255, 255, 255, 0.55) 50%, rgba(220, 235, 255, 0.7) 100%),
    linear-gradient(135deg, rgba(231, 241, 255, 0.95), rgba(255, 255, 255, 0.84));
  border-color: rgba(47, 107, 221, 0.45);
  box-shadow: 0 10px 22px rgba(47, 107, 221, 0.16), inset 0 1px 0 #fff;
}

.choice--amber.is-checked,
.choice--amber:has(input:checked) {
  color: #8a5a12;
  background:
    radial-gradient(120% 110% at 22% 0%, #fff 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 242, 212, 0.8) 100%),
    linear-gradient(135deg, rgba(255, 242, 212, 0.95), rgba(255, 255, 255, 0.86));
  border-color: rgba(217, 138, 31, 0.45);
  box-shadow: 0 10px 22px rgba(217, 138, 31, 0.16), inset 0 1px 0 #fff;
}

.choice--red.is-checked,
.choice--red:has(input:checked) {
  color: var(--red);
  background:
    radial-gradient(120% 110% at 22% 0%, #fff 0%, rgba(255, 255, 255, 0.55) 50%, rgba(253, 236, 235, 0.85) 100%),
    linear-gradient(135deg, rgba(253, 236, 235, 0.95), rgba(255, 255, 255, 0.86));
  border-color: rgba(196, 69, 61, 0.45);
  box-shadow: 0 10px 22px rgba(196, 69, 61, 0.14), inset 0 1px 0 #fff;
}

.choice--red input:checked ~ .choice__dot {
  border-color: var(--red);
  background: radial-gradient(circle at center, var(--red) 0 45%, #fff 48% 100%);
  box-shadow: 0 0 0 4px rgba(196, 69, 61, 0.14);
}

.choice input:focus-visible ~ .choice__dot {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 221, 0.25);
}

/* ---------- 按钮：全局玻璃气泡 ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.12) 42%, transparent 68%),
    linear-gradient(135deg, rgba(74, 131, 238, 0.92) 0%, rgba(47, 107, 221, 0.9) 55%, rgba(28, 79, 184, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  box-shadow:
    0 14px 30px rgba(47, 107, 221, 0.28),
    0 2px 6px rgba(28, 79, 184, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -10px 18px rgba(28, 79, 184, 0.22);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  text-decoration: none;
}

.btn::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 2px;
  height: 13%;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(47, 107, 221, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -10px 18px rgba(28, 79, 184, 0.22);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.62;
  box-shadow: none;
  transform: none;
}

.btn--block {
  width: 100%;
}

.btn--amber {
  color: #fff;
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 44%, transparent 68%),
    linear-gradient(135deg, rgba(243, 180, 74, 0.94) 0%, rgba(217, 138, 31, 0.92) 60%, rgba(181, 111, 18, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 14px 28px rgba(217, 138, 31, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -10px 18px rgba(181, 111, 18, 0.2);
}

.btn--green {
  color: #fff;
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 44%, transparent 68%),
    linear-gradient(135deg, rgba(60, 186, 133, 0.94) 0%, rgba(31, 157, 103, 0.92) 65%, rgba(21, 122, 78, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 14px 28px rgba(31, 157, 103, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -10px 18px rgba(21, 122, 78, 0.2);
}

.btn--ghost {
  color: var(--blue-deep);
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.4) 52%, rgba(226, 239, 255, 0.42) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 26px rgba(46, 92, 148, 0.12),
    inset 0 1px 0 #fff,
    inset 0 -8px 16px rgba(190, 214, 238, 0.2);
}

.btn--ghost:hover {
  background:
    radial-gradient(120% 110% at 22% 0%, #fff 0%, rgba(255, 255, 255, 0.55) 52%, rgba(226, 239, 255, 0.55) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.48));
}

.btn--quiet {
  color: var(--ink-soft);
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.24) 55%, transparent 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(46, 92, 148, 0.08);
}

.btn--danger {
  color: var(--red);
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.34) 55%, rgba(253, 236, 235, 0.5) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(196, 69, 61, 0.3);
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(196, 69, 61, 0.1);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13.5px;
  border-radius: var(--radius-pill);
}

.btn--icon {
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
}

.iconbtn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--blue-deep);
  background:
    radial-gradient(120% 120% at 28% 0%, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.44) 50%, rgba(214, 232, 255, 0.46) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow:
    0 10px 22px rgba(46, 92, 148, 0.16),
    inset 0 1px 0 #fff,
    inset 0 -7px 14px rgba(190, 214, 238, 0.24);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  flex: none;
}

.iconbtn::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 2px;
  height: 22%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  opacity: 0.55;
  pointer-events: none;
}

.iconbtn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 14px 26px rgba(46, 92, 148, 0.2),
    inset 0 1px 0 #fff,
    inset 0 -7px 14px rgba(190, 214, 238, 0.24);
}

.iconbtn:active {
  transform: scale(0.96);
}

.iconbtn svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
}

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--todo {
  color: #a5620d;
  background: var(--amber-soft);
  border-color: rgba(217, 138, 31, 0.28);
}

.badge--processing {
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-color: rgba(47, 107, 221, 0.28);
}

.badge--done {
  color: #146e49;
  background: var(--green-soft);
  border-color: rgba(31, 157, 103, 0.28);
}

.chip svg,
.badge svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chip--blue {
  color: var(--blue-deep);
  background: rgba(231, 241, 255, 0.8);
  border-color: rgba(47, 107, 221, 0.22);
}

.chip--amber {
  color: #8a5a12;
  background: rgba(255, 242, 212, 0.85);
  border-color: rgba(217, 138, 31, 0.22);
}

/* ---------- 订单卡片 ---------- */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.order-card:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(46, 92, 148, 0.14);
}

.order-card:active {
  transform: scale(0.995);
}

.order-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.order-card__no {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.order-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.order-card__meta b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed rgba(120, 160, 200, 0.28);
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---------- 状态进度条 ---------- */
.track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.track__step {
  position: relative;
  padding-top: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-mute);
  text-align: center;
}

.track__step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(120, 160, 200, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.track__step::after {
  content: "";
  position: absolute;
  top: 8px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(120, 160, 200, 0.25);
  z-index: -1;
}

.track__step:first-child::after {
  display: none;
}

.track__step.is-active {
  color: var(--blue-deep);
}

.track__step.is-active::before {
  background: var(--blue);
}

.track__step.is-current::before {
  box-shadow: 0 0 0 4px rgba(47, 107, 221, 0.18);
}

.track__step.is-done {
  color: var(--green);
}

.track__step.is-done::before {
  background: var(--green);
}

/* ---------- 空状态 / 骨架 ---------- */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-mute);
}

.empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow-sm);
  color: rgba(47, 107, 221, 0.55);
}

.empty__icon svg {
  width: 28px;
  height: 28px;
}

.empty h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.empty p {
  margin: 0;
  font-size: 13px;
}

.skeleton {
  height: 92px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.35) 20%,
    rgba(255, 255, 255, 0.7) 38%,
    rgba(255, 255, 255, 0.35) 56%
  );
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 140% 0;
  }
  to {
    background-position: -60% 0;
  }
}

/* ---------- 底部导航（全局磨砂） ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: 6px;
  width: calc(100% - 32px);
  max-width: 520px;
  padding: 8px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px rgba(46, 92, 148, 0.18);
}

.navitem {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 6px 4px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.navitem svg {
  width: 21px;
  height: 21px;
}

.navitem[aria-selected="true"],
.navitem.is-active {
  color: #fff;
  background:
    radial-gradient(120% 120% at 26% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 45%, transparent 70%),
    linear-gradient(135deg, rgba(74, 131, 238, 0.95), rgba(28, 79, 184, 0.95));
  border: 0;
  box-shadow:
    0 10px 22px rgba(47, 107, 221, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -8px 14px rgba(28, 79, 184, 0.22);
}

.navitem__count {
  position: absolute;
  top: 2px;
  right: 12px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  color: #fff;
  background: var(--amber);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(217, 138, 31, 0.4);
}

.navitem__count[hidden] {
  display: none;
}

/* ---------- 视图切换 ---------- */
.view[hidden] {
  display: none;
}

.view-enter {
  animation: viewIn 0.26s ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 底部弹层（订单详情） ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 48, 76, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sheet-backdrop[hidden] {
  display: none;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 41;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 100%);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--glass-line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 50px rgba(46, 92, 148, 0.22);
  overflow-y: auto;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet[hidden] {
  display: none;
}

.sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet__grip {
  width: 42px;
  height: 5px;
  margin: 6px auto 12px;
  background: rgba(120, 150, 180, 0.35);
  border-radius: var(--radius-pill);
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sheet__sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.sheet__close {
  margin-left: auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 14px;
  padding: 16px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
}

.detail-grid dt {
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-grid dd {
  margin: 0;
  font-weight: 600;
  word-break: break-all;
}

.timeline {
  margin: 16px 0 0;
  padding: 0 0 0 6px;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 16px 22px;
  font-size: 13px;
  color: var(--ink-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 221, 0.16);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: rgba(120, 160, 200, 0.32);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

.timeline b {
  color: var(--ink);
}

.sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.sheet__actions .btn {
  flex: 1 1 0;
}

/* ---------- Toast ---------- */
.toast-area {
  position: fixed;
  left: 50%;
  top: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 460px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(46, 92, 148, 0.18);
  animation: toastIn 0.24s ease both;
}

.toast--ok {
  border-left-color: var(--green);
}

.toast--warn {
  border-left-color: var(--amber);
}

.toast--err {
  border-left-color: var(--red);
}

.toast.is-leaving {
  animation: toastOut 0.2s ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- 搜索栏 / 筛选 ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.search .input-affix {
  flex: 1 1 auto;
}

.search .iconbtn {
  height: 48px;
  width: 48px;
  border-radius: var(--radius-md);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tab[aria-selected="true"] {
  color: var(--blue-deep);
  background:
    radial-gradient(120% 120% at 24% 0%, #fff 0%, rgba(255, 255, 255, 0.6) 50%, rgba(238, 246, 255, 0.9) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  border: 0;
  box-shadow:
    0 8px 18px rgba(46, 92, 148, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 1px 0 #fff;
}

.tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(120, 150, 180, 0.55);
  border-radius: var(--radius-pill);
}

.tab[aria-selected="true"] .tab__count {
  background: var(--blue);
}

.tab[data-status="todo"] .tab__count {
  background: var(--amber);
}

.tab[data-status="done"] .tab__count {
  background: var(--green);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 2px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
}

.section-title__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 160, 200, 0.32), transparent);
}

/* ---------- 权限卡片 ---------- */
.perm {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
}

.perm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--blue-deep);
  background: linear-gradient(135deg, rgba(231, 241, 255, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(47, 107, 221, 0.2);
  border-radius: 14px;
}

.perm__icon svg {
  width: 22px;
  height: 22px;
}

.perm__body {
  min-width: 0;
}

.perm__title {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
}

.perm__desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.perm__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.perm__status.is-granted {
  color: var(--green);
}

.perm__status.is-denied {
  color: var(--red);
}

.perm__status.is-default {
  color: var(--amber);
}

/* ---------- 登录页 ---------- */
.auth {
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 18px 40px;
  position: relative;
  z-index: 1;
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(140deg, #6fa3f5, var(--blue) 55%, var(--blue-deep));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 17px;
  box-shadow: 0 12px 26px rgba(47, 107, 221, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.auth__logo svg {
  width: 26px;
  height: 26px;
}

.auth__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.auth__tag {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.auth__card {
  padding: 24px 22px;
}

.auth__card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.auth__card .card__hint {
  margin-bottom: 20px;
}

.lock-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8a5a12;
  background: rgba(255, 242, 212, 0.82);
  border: 1px solid rgba(217, 138, 31, 0.28);
  border-radius: var(--radius-sm);
}

.lock-note svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
}

.lock-note--info {
  color: var(--blue-deep);
  background: rgba(231, 241, 255, 0.85);
  border-color: rgba(47, 107, 221, 0.24);
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--ink-mute);
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(120, 160, 200, 0.3);
}

.auth__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-mute);
}

.auth__foot a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- 成功回执 ---------- */
.receipt {
  padding: 22px;
  text-align: center;
}

.receipt__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  color: var(--green);
  background: rgba(226, 247, 238, 0.9);
  border: 1px solid rgba(31, 157, 103, 0.28);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(31, 157, 103, 0.18);
}

.receipt__icon svg {
  width: 32px;
  height: 32px;
}

.receipt h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.receipt p {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.receipt__no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(47, 107, 221, 0.35);
  border-radius: var(--radius-md);
}

.receipt__no span {
  font-size: 12px;
  color: var(--ink-soft);
}

.receipt__no b {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.6px;
}

.receipt__actions {
  display: flex;
  gap: 10px;
}

.receipt__actions .btn {
  flex: 1 1 0;
}

/* ---------- 工具类 ---------- */
.u-hidden {
  display: none !important;
}

.u-mt-8 {
  margin-top: 8px;
}

/* ---------- BUG 反馈表单 ---------- */
.field__hint-red {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  white-space: normal;
}

.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
}

.textarea {
  min-height: 190px;
  padding: 14px 15px;
  line-height: 1.65;
  resize: vertical;
  border-radius: 20px;
}

.warn-note {
  margin: 14px 0 0;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.65;
  color: #c0392b;
  text-align: center;
  background:
    radial-gradient(120% 110% at 22% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.4) 52%, rgba(253, 236, 235, 0.8) 100%),
    linear-gradient(145deg, rgba(255, 245, 244, 0.92), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(196, 69, 61, 0.28);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(196, 69, 61, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.badge--bug {
  color: #fff;
  background:
    radial-gradient(120% 120% at 26% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, rgba(224, 91, 82, 0.96), rgba(176, 45, 38, 0.98));
  box-shadow: 0 4px 10px rgba(196, 69, 61, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.order-card__bug {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 2px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8a3b35;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(253, 236, 235, 0.72);
  border: 1px solid rgba(196, 69, 61, 0.18);
  border-radius: 14px;
}

.detail-pre {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

/* ---------- 图片上传 ---------- */
.uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(120% 110% at 26% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.36) 55%, rgba(231, 241, 255, 0.5) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
  border: 1.5px dashed rgba(47, 107, 221, 0.32);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(46, 92, 148, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.uploader:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 107, 221, 0.5);
  background:
    radial-gradient(120% 110% at 26% 0%, #fff 0%, rgba(255, 255, 255, 0.5) 55%, rgba(231, 241, 255, 0.65) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.46));
}

.uploader__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--blue-deep);
  background:
    radial-gradient(120% 120% at 28% 0%, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.42) 52%, rgba(214, 232, 255, 0.5) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(46, 92, 148, 0.16), inset 0 1px 0 #fff;
}

.uploader__icon svg {
  width: 24px;
  height: 24px;
}

.uploader b {
  font-size: 14.5px;
  color: var(--blue-deep);
}

.uploader__hint {
  font-size: 12px;
  color: var(--ink-mute);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.upload-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(46, 92, 148, 0.1), inset 0 1px 0 #fff;
}

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

.upload-thumb__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 7px 5px;
  font-size: 10px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, transparent, rgba(20, 40, 70, 0.72));
}

.upload-thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(196, 69, 61, 0.18), inset 0 1px 0 #fff;
}

.upload-thumb__remove svg {
  width: 14px;
  height: 14px;
}

/* ---------- 管理员查看图片 ---------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.image-thumb {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(46, 92, 148, 0.1), inset 0 1px 0 #fff;
}

.image-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.image-thumb:hover img {
  transform: scale(1.03);
}

.image-thumb__name {
  display: block;
  padding: 7px 9px;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 入口页管理员登录 ---------- */
.auth__admin-link {
  display: block;
  margin: 24px auto 0;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink-mute);
  background:
    radial-gradient(120% 120% at 24% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.4) 52%, rgba(226, 239, 255, 0.5) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px rgba(46, 92, 148, 0.08), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth__admin-link:hover {
  color: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(46, 92, 148, 0.12), inset 0 1px 0 #fff;
}

/* ---------- 其余图标容器也加玻璃高光 ---------- */
.search .iconbtn {
  border-radius: 50%;
}

.auth__logo,
.empty__icon,
.perm__icon,
.receipt__icon {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
}

.auth__logo::after,
.empty__icon::after,
.perm__icon::after,
.receipt__icon::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 3px;
  height: 26%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  opacity: 0.65;
  pointer-events: none;
}

.auth__logo svg,
.empty__icon svg,
.perm__icon svg,
.receipt__icon svg {
  position: relative;
  z-index: 1;
}

.u-mt-16 {
  margin-top: 16px;
}

.u-mb-12 {
  margin-bottom: 12px;
}

.u-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.u-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.u-muted {
  color: var(--ink-soft);
  font-size: 12.5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 响应式 ---------- */
@media (min-width: 721px) {
  body {
    padding-bottom: 0;
  }

  .app {
    padding: 0 24px 120px;
  }

  .topbar {
    margin: 0 -24px 20px;
    padding: 14px 24px;
    border-radius: 0 0 26px 26px;
  }

  .card {
    padding: 24px;
  }

  .bottom-nav {
    bottom: 26px;
  }

  .hero h2 {
    font-size: 30px;
  }
}

@media (max-width: 400px) {
  .app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card {
    padding: 17px;
  }

  .choices {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 不支持 backdrop-filter 时保证可读性 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .topbar,
  .bottom-nav,
  .order-card,
  .sheet,
  .tabs,
  .toast {
    background: rgba(255, 255, 255, 0.93);
  }

  .bubble {
    filter: blur(50px);
    opacity: 0.6;
  }
}