:root {
  /* 提取自长江行游轮官方 Logo 三色体系：晨曦金橙 / 三峡青翠 / 长江碧蓝 */
  --vc-blue-950: #081829;
  --vc-blue-900: #0d243d;
  --vc-blue-800: #173a5e;
  --vc-blue-600: #2b6496;
  --vc-blue-500: #3877ac;
  --vc-blue-400: #5796cb;
  --vc-green-600: #4c8c34;
  --vc-green-500: #62a346;
  --vc-amber-600: #cf7d18;
  --vc-amber-500: #e8962e;
  --vc-amber-400: #f4ae52;

  --ok-600: #0d9468;
  --rose-600: #e11d48;
  --rose-500: #f43f5e;

  --ink-900: #0d1f33;
  --ink-800: #1b3149;
  --ink-700: #2e455e;
  --ink-600: #49617b;
  --ink-500: #667d96;
  --ink-400: #8ba0b6;

  /* 毛玻璃设计变量 */
  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.46) 100%);
  --glass-bg-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.62) 100%);
  --glass-sub: rgba(255, 255, 255, 0.56);
  --glass-border: rgba(255, 255, 255, 0.84);
  --glass-border-subtle: rgba(255, 255, 255, 0.62);
  --glass-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    0 18px 42px -14px rgba(15, 42, 74, 0.12),
    0 4px 12px -4px rgba(15, 42, 74, 0.05);
  --glass-shadow-hover:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 26px 54px -16px rgba(15, 42, 74, 0.18),
    0 8px 20px -6px rgba(56, 119, 172, 0.12);

  --dark-glass-bg: linear-gradient(140deg, rgba(10, 27, 48, 0.84) 0%, rgba(18, 49, 82, 0.76) 56%, rgba(17, 64, 88, 0.78) 100%);
  --dark-glass-border: rgba(255, 255, 255, 0.22);
  --dark-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 28px 60px -20px rgba(8, 24, 44, 0.38);

  --blur-lg: blur(26px) saturate(185%);
  --blur-md: blur(18px) saturate(175%);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  /* 覆盖 Mac/iOS 苹方、鸿蒙/安卓思源黑、Windows 微软雅黑 UI */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 119, 172, 0.32) transparent;
}
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(56, 119, 172, 0.28);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(56, 119, 172, 0.48); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
  background-color: #e6eef7;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 底层流体江景光斑与波纹纹理 —— 让每一块毛玻璃都有真实的光影折射层次 */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(640px 480px at 12% 10%, rgba(232, 150, 46, 0.26) 0%, transparent 68%),
    radial-gradient(760px 560px at 88% 12%, rgba(56, 119, 172, 0.30) 0%, transparent 70%),
    radial-gradient(620px 500px at 24% 78%, rgba(98, 163, 70, 0.18) 0%, transparent 70%),
    radial-gradient(780px 560px at 82% 84%, rgba(43, 100, 150, 0.24) 0%, transparent 72%),
    linear-gradient(165deg, #eef4fb 0%, #e1ecf7 48%, #e9f1f6 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='900' viewBox='0 0 1440 900' fill='none'%3E%3Cpath d='M-120 260C220 140 520 380 880 250C1160 150 1340 230 1580 180' stroke='white' stroke-opacity='0.65' stroke-width='2'/%3E%3Cpath d='M-80 540C280 410 610 660 980 510C1220 412 1380 490 1560 450' stroke='%233877ac' stroke-opacity='0.14' stroke-width='2'/%3E%3Cpath d='M-100 730C260 630 640 830 1040 690C1280 606 1410 660 1580 620' stroke='%23e8962e' stroke-opacity='0.15' stroke-width='1.8'/%3E%3Ccircle cx='1160' cy='210' r='190' stroke='white' stroke-opacity='0.45' stroke-width='1.5'/%3E%3Ccircle cx='240' cy='640' r='230' stroke='white' stroke-opacity='0.4' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

img, video { max-width: 100%; display: block; }
a { color: var(--vc-blue-600); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--vc-blue-900); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 20px 24px 42px;
}

/* ===== 悬浮胶囊毛玻璃顶栏 ===== */
.topbar-wrap {
  position: sticky;
  top: 12px;
  z-index: 60;
  max-width: 1340px;
  margin: 12px auto 0;
  padding: 0 24px;
}
.topbar {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-900);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--ink-900); }
.brand__logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand__divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, rgba(27, 49, 73, 0.22), transparent);
  flex-shrink: 0;
}
.brand__meta { display: flex; flex-direction: column; min-width: 0; }
.brand__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  line-height: 1.25;
}
.brand__sub {
  font-size: 11.5px;
  color: var(--ink-500);
  white-space: nowrap;
  line-height: 1.25;
}

.topbar__actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* ===== 毛玻璃卡片与深海烟熏玻璃容器 ===== */
.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.glass-inset {
  background: var(--glass-sub);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dark-glass {
  background: var(--dark-glass-bg);
  -webkit-backdrop-filter: var(--blur-lg);
  backdrop-filter: var(--blur-lg);
  border: 1px solid var(--dark-glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--dark-glass-shadow);
  color: #f1f5f9;
}

/* ===== 精致矢量图标容器 ===== */
.ico-badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px -6px rgba(23, 58, 94, 0.18);
  color: var(--vc-blue-600);
}
.ico-badge--amber { color: var(--vc-amber-600); background: linear-gradient(145deg, rgba(255, 250, 240, 0.95), rgba(254, 236, 200, 0.65)); }
.ico-badge--green { color: var(--vc-green-600); background: linear-gradient(145deg, rgba(244, 253, 240, 0.95), rgba(218, 244, 208, 0.65)); }

/* ===== 按钮体系（通透晶体触感） ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.46; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary {
  background: linear-gradient(135deg, #1b4f82 0%, #2d70ab 55%, #23899c 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -8px rgba(27, 79, 130, 0.55);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 26px -8px rgba(27, 79, 130, 0.65); }

.btn-teal {
  background: linear-gradient(135deg, #2b74a8 0%, #3d988c 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 22px -8px rgba(43, 116, 168, 0.48);
}
.btn-teal:hover { color: #fff; filter: brightness(1.06); }

.btn-gold {
  background: linear-gradient(135deg, #f3ae4b 0%, #df8520 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px -8px rgba(223, 133, 32, 0.52);
  text-shadow: 0 1px 1px rgba(120, 62, 5, 0.22);
}
.btn-gold:hover { color: #fff; filter: brightness(1.05); }

.btn-ok {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px -6px rgba(5, 150, 105, 0.45);
}
.btn-ok:hover { color: #fff; filter: brightness(1.05); }

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-danger:hover { color: #fff; filter: brightness(1.05); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-800);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 12px -4px rgba(15, 42, 74, 0.08);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--vc-blue-900);
  border-color: #fff;
}

.btn-dark-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-sm { height: 31px; padding: 0 12px; font-size: 12px; gap: 5px; }
.btn-lg { height: 43px; padding: 0 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== 胶囊徽标 ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill--navy {
  background: rgba(43, 100, 150, 0.12);
  color: var(--vc-blue-800);
  border: 1px solid rgba(56, 119, 172, 0.2);
}
.pill--teal {
  background: rgba(56, 119, 172, 0.14);
  color: var(--vc-blue-800);
  border: 1px solid rgba(56, 119, 172, 0.25);
}
.pill--gold {
  background: rgba(232, 150, 46, 0.16);
  color: #a15c07;
  border: 1px solid rgba(232, 150, 46, 0.32);
}
.pill--ok {
  background: rgba(16, 185, 129, 0.15);
  color: #067652;
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.pill--rose {
  background: rgba(244, 63, 94, 0.14);
  color: var(--rose-600);
  border: 1px solid rgba(244, 63, 94, 0.26);
}
.pill--frosted-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* ===== 表单输入框（磨砂内凹晶体质感） ===== */
.input, .select, .textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(186, 204, 224, 0.75);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-900);
  font-size: 13.5px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 42, 74, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input, .select { height: 40px; padding-top: 0; padding-bottom: 0; }
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--vc-blue-500);
  box-shadow: 0 0 0 3px rgba(56, 119, 172, 0.16);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-800); }
.field__hint { font-size: 12px; color: var(--ink-500); }

/* ===== 毛玻璃模态弹窗 ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 26, 46, 0.44);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.is-open { display: flex; }
.modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 250, 255, 0.78) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 32px 64px -16px rgba(8, 24, 44, 0.28);
  animation: modalRise 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-dialog--wide { max-width: 720px; }
@keyframes modalRise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-head h3 { font-size: 17.5px; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-600);
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: #fff; color: var(--ink-900); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ===== 轻提示气泡 ===== */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(13, 36, 61, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid var(--vc-amber-500);
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 36px -10px rgba(8, 24, 44, 0.35);
  pointer-events: auto;
}

.footer {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-500);
}
.footer img { height: 22px; width: auto; opacity: 0.78; }

/* 旧版安卓 WebView 无 backdrop-filter 时的优雅降级高透底色 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar, .card, .modal-dialog {
    background: rgba(255, 255, 255, 0.95);
  }
  .dark-glass {
    background: rgba(11, 29, 51, 0.96);
  }
}

@media (max-width: 768px) {
  .topbar-wrap {
    position: relative;
    top: 0;
    margin-top: max(10px, env(safe-area-inset-top, 10px));
    padding: 0 max(12px, env(safe-area-inset-left, 12px));
  }
  .topbar { padding: 10px 14px; border-radius: 16px; gap: 10px; }
  .brand__logo-img { height: 30px; }
  .brand__divider, .brand__sub { display: none; }
  .brand__title { font-size: 13.5px; }
  .container {
    padding: 14px max(12px, env(safe-area-inset-left, 12px)) max(32px, env(safe-area-inset-bottom, 24px));
  }
  /* 防止 iOS Safari 点击输入框时强制放大整个页面 */
  .input, .select, .textarea { font-size: 16px; }
  .btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal-dialog {
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 18px 18px;
    max-height: 88dvh;
  }
}
