/* ============================================================
   旧宫镇日报 H5 · 极简暮色海滩透光 HUD 主题（Oceanic Twilight Glass HUD）
   专为手机全屏壁纸定制：完全释放黑色遮阳伞与海天原景
   ============================================================ */

:root {
  --blue: #38bdf8;
  --blue-dark: #0284c7;
  --blue-light: rgba(56, 189, 248, 0.16);
  --bg: #071322;
  --panel: rgba(8, 20, 36, 0.28);
  --line: rgba(255, 255, 255, 0.16);
  --soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #f1f5f9;
  --ink: #ffffff;
  --teal: #2dd4bf;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --sunset: #fb923c;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html {
  min-height: 100%;
  background: #071322;
  scroll-padding-top: 68px;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: transparent !important;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 背景氛围遮罩层：透明玻璃模式下完全透明，释放纯净海滩海天背景 */
body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: transparent !important;
  pointer-events: none !important;
  display: block !important;
}

/* 手机全屏壁纸：像素级契合视口，绝无白雾或拉伸裁切 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: -2;
  background: #071322 url("/static/assets/ocean-dusk-bg.jpg?v=2026090509") center center / cover no-repeat;
  pointer-events: none;
  display: block !important;
}

/* ---------- 顶栏 (Header) 融入天空透明毛玻璃 ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 18, 34, 0.72) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

header .wrap {
  max-width: 960px;
  min-height: 56px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mascot {
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(30, 60, 90, 0.5);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 8px 18px rgba(0, 0, 0, 0.4);
}

.mascot-img-lg {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-position: center 26%;
}

h1 {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

h2 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.sub {
  margin-top: 2px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* ---------- 主工作台容器 (Main) ---------- */

main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 14px 12px 60px;
  border: 0;
  background: transparent;
}

/* ---------- 公告提示 (Notice) ---------- */

.notice {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(8, 22, 42, 0.32) 100%) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.notice::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
  flex: none;
}

/* ---------- 状态进度格 (Status Grid) ---------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  border: 0;
  background: transparent;
}

.status-item {
  position: relative;
  min-height: 60px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(8, 22, 42, 0.28) 100%) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.status-item:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(12, 28, 54, 0.35) 100%) !important;
}

.status-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  display: block;
  background: rgba(56, 189, 248, 0.35);
}

.status-label {
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.status-value {
  margin-top: 3px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.status-item.ok {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(8, 22, 42, 0.35) 100%) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 12px rgba(56, 189, 248, 0.2) !important;
}
.status-item.ok::before {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}
.status-item.ok .status-label {
  color: #bae6fd;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.status-item.ok .status-value {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.status-item.warn {
  background: rgba(46, 32, 6, 0.45);
  border-color: rgba(251, 191, 36, 0.45);
}
.status-item.warn::before { background: #fbbf24; }
.status-item.warn .status-value { color: #fbbf24; }

.status-item.error {
  background: rgba(48, 12, 16, 0.45);
  border-color: rgba(248, 113, 113, 0.45);
}
.status-item.error::before { background: #f87171; }
.status-item.error .status-value { color: #f87171; }

/* ---------- 纯澈透明玻璃卡片 (Crystal Clear Glass) ---------- */
/* 彻底移除雾面毛玻璃 blur，呈现通透见底的真实透明玻璃质感，背景海滩海天一览无余 */

.card {
  position: relative;
  margin: 0 0 16px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(6, 18, 36, 0.38) 100%) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 20px rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.card:last-child {
  margin-bottom: 0;
}

.card.active-step {
  border-color: rgba(56, 189, 248, 0.6) !important;
  border-top: 1px solid rgba(125, 211, 252, 0.75) !important;
  border-left: 1px solid rgba(56, 189, 248, 0.6) !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(6, 20, 42, 0.45) 100%) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 20px 48px -6px rgba(0, 0, 0, 0.35), inset 4px 0 0 #38bdf8, inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.help {
  margin-top: 3px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

label {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* ---------- 文件框与表单输入 ---------- */

.filebox {
  min-height: 90px;
  border: 1.5px dashed rgba(56, 189, 248, 0.6) !important;
  border-radius: 14px;
  background: rgba(8, 22, 42, 0.35) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filebox:hover,
.filebox:focus-within {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.16) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2) !important;
}

.filebox.has-file {
  border-style: solid;
  border-color: #38bdf8 !important;
  background: rgba(8, 26, 52, 0.45) !important;
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  box-shadow: none;
}

.filebox.has-file .file-icon {
  background: #38bdf8;
  color: #081a2e;
}

.ftitle {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.fname {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.filebox.has-file .fname {
  color: #7dd3fc !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
}

input[type="number"],
input[type="date"],
textarea,
.access-input {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 12px;
  background: rgba(6, 16, 32, 0.35) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea::placeholder,
input::placeholder {
  color: rgba(226, 232, 240, 0.65) !important;
  font-weight: 500;
  text-shadow: none;
}

input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
.access-input:focus {
  border-color: #38bdf8 !important;
  background: rgba(10, 24, 46, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  outline: none;
}

/* ---------- 紧凑型期数/日期元数据栏与操作栏 ---------- */

.daily-meta-grid {
  display: grid !important;
  grid-template-columns: 100px 1fr !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

.daily-meta-grid label {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

body.theme-warm .daily-meta-grid label {
  color: #536c84 !important;
}

.daily-meta-grid input {
  margin-top: 3px !important;
  padding: 7px 10px !important;
  min-height: 38px !important;
  height: 38px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  border-radius: 8px !important;
}

.daily-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  min-height: 32px;
}

.daily-action-bar #dailyState {
  margin-top: 0 !important;
  flex: 1;
  min-width: 0;
}

.daily-action-bar #dailyState:empty {
  display: none !important;
}

.daily-action-bar #dailyState:not(:empty) {
  padding: 5px 12px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  border-radius: 8px !important;
}

.daily-action-bar #resetTodayFlow {
  flex: none;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 11.5px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  background: rgba(14, 165, 233, 0.22) !important;
  color: #e0f2fe !important;
  font-weight: 700 !important;
  margin-left: auto;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.daily-action-bar #resetTodayFlow:hover {
  background: rgba(14, 165, 233, 0.4) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

body.theme-warm .daily-action-bar #resetTodayFlow {
  border: 1px solid #fed7aa !important;
  background: #fff7ed !important;
  color: #c2410c !important;
}

body.theme-warm .daily-action-bar #resetTodayFlow:hover {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

/* ---------- 按钮系统 (Buttons) ---------- */

button,
a.button {
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
  border: 0;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
a.button:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

button.secondary,
a.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  text-shadow: none;
  box-shadow: none;
}

button.secondary:hover,
a.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

button.ghost,
a.button.ghost {
  background: transparent;
  color: #38bdf8;
  box-shadow: none;
}

button.ghost:hover,
a.button.ghost:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

button:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: #64829e;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.reset-action {
  color: #94b2cd;
}
.reset-action:hover {
  color: #f87171;
}

.primary-action {
  gap: 10px;
}

.primary-action-label {
  color: var(--muted);
}

/* ---------- 点位来源切换 (Point Tabs) ---------- */

.point-tabs {
  gap: 6px;
  margin: 6px 0 12px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(6, 16, 28, 0.35);
}

.point-tab {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94b2cd;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.point-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.point-tab.active {
  background: rgba(56, 189, 248, 0.24);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* ---------- 状态文本 / 摘要框 / 折叠面板 ---------- */

.state {
  min-height: 0;
  margin-top: 10px;
  color: #94b2cd;
  font-size: 13px;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.state:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 22, 42, 0.2) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.state.ok:not(:empty) {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(8, 22, 42, 0.24) 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  font-weight: 600;
}

.state.warn:not(:empty) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(8, 22, 42, 0.24) 100%) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #fbbf24 !important;
  font-weight: 600;
}

.state.error:not(:empty) {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(8, 22, 42, 0.24) 100%) !important;
  border-color: rgba(248, 113, 113, 0.5) !important;
  color: #f87171 !important;
  font-weight: 600;
}

.ready-hint.ok {
  color: #38bdf8;
}

.box,
.summary-box,
.point-fallback,
.check-item {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #f0f6fc;
}

.check-summary summary,
.point-check summary,
.soft-details summary {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #e0f2fe;
  font-weight: 800;
}

.soft-details {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.soft-details[open] summary {
  border-radius: 12px 12px 0 0;
}

summary {
  color: #e0f2fe;
}

/* ---------- 今日天气框 (Today Weather) ---------- */

.today-weather {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 22, 42, 0.2) 100%);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.today-weather-title {
  color: #38bdf8;
}

.today-weather-text {
  color: #ffffff;
}

.today-weather-copy {
  color: #a0bedc;
}

/* ---------- 数据核对表与折线图 ---------- */

.check-table th,
.check-table td {
  border-color: rgba(255, 255, 255, 0.12);
}

.check-table th {
  background: rgba(14, 32, 54, 0.6);
  color: #e0f2fe;
}

.chart-frame {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* ---------- 同比数据表与工作照片预览看板 ---------- */

.yoy-table-preview {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.yoy-table-caption {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
  color: #f1f5f9 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

.yoy-table-caption::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  flex: none;
}

.yoy-table-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
}

.yoy-table-item:active img {
  transform: scale(0.98);
  opacity: 0.9;
}

.yoy-table-preview img {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.yoy-table-item-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #bae6fd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

body.theme-warm .yoy-table-item-hint {
  color: #ea580c !important;
  text-shadow: none !important;
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.photo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 22, 42, 0.2) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.photo-item-preview {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 6.67 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}

.photo-item-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.photo-item-name {
  font-size: 13px;
  color: #f1f5f9;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-item-size {
  font-size: 11.5px;
  color: #94b2cd;
  margin-top: 2px;
}

.photo-item-remove {
  grid-column: 2;
  grid-row: 2;
  padding: 5px 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.photo-item-remove:hover {
  background: rgba(239, 68, 68, 0.32);
  color: #ffffff;
  border-color: #f87171;
}

/* ---------- 加载面板 (Loading Panel) ---------- */

.loading-panel {
  display: none;
  margin: 14px 0;
  min-height: 140px;
  padding: 24px 20px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  background: rgba(10, 24, 44, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  text-align: center;
}

.loading-panel.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f9ff;
  letter-spacing: 0.02em;
}

.loading-sub {
  font-size: 12.5px;
  color: #7dd3fc;
  line-height: 1.5;
  max-width: 480px;
}

/* ---------- 补录与就绪提示 ---------- */

.recovery,
.point-recovery-banner,
.ready-hint {
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  background: rgba(42, 28, 6, 0.45);
  color: #fde68a;
}

.ready-hint.ok {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(8, 22, 42, 0.22) 100%);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #38bdf8;
}

/* ---------- 最终生成区 (Final Step) ---------- */

.final-companion {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 22, 42, 0.2) 100%);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #e0f2fe;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.final-companion .mascot-img-sm {
  width: 80px;
  height: 98px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 42%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.final-button {
  min-height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.4);
}

.final-button:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.5);
}

.final-check-dot {
  background: rgba(255, 255, 255, 0.08);
  color: #8da6c0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.final-check-item.ok .final-check-dot {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4) inset;
}

.final-check-label {
  color: #e2e8f0;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.final-check-value {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.download-note {
  color: #cbd5e1;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.small {
  color: #cbd5e1;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.muted-note {
  color: #8da6c0;
}

/* ---------- MacBook 基金账单 (Billing Ticker) ---------- */

.billing-ticker {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.65);
  color: #94b2cd;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.billing-ticker:hover,
.billing-ticker:focus-visible {
  background: rgba(12, 26, 44, 0.75);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.billing-label {
  color: #94b2cd;
}

.billing-amount {
  color: #fbbf24;
}

.billing-popover,
.billing-bill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 18, 32, 0.85);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.billing-bill {
  background: rgba(8, 20, 36, 0.75);
}

.billing-bill-row,
.billing-popover-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.billing-bill-total,
.billing-popover-total {
  color: #fbbf24;
}

.billing-bill-note,
.billing-popover-note {
  color: #8da6c0;
}

/* ---------- 访问密码小门 (Access Gate) ---------- */

.access-gate {
  background: rgba(4, 10, 18, 0.65);
}

.access-dialog {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(10, 22, 38, 0.92);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.access-dialog::before {
  content: "";
  display: block;
  height: 4px;
  margin: -20px -20px 16px;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.access-kicker {
  color: #38bdf8;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.access-title {
  color: #ffffff;
}

.access-question {
  min-height: 0;
  margin: 10px 0 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.access-error {
  color: #f87171;
}

/* ============================================================
   HUD 暮色主题中的主题切换器外观 (桌面默认)
   ============================================================ */
.theme-switcher {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 30, 0.65);
  color: #94b2cd;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: all .2s ease;
}

.theme-switcher:hover {
  background: rgba(12, 26, 44, 0.75);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.theme-switcher-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

/* ---------- 移动端适配 ---------- */

@media (max-width: 760px) {
  body::after {
    background-position: center center;
    background-size: cover;
  }

  main {
    padding: 10px 10px !important;
  }

  header .wrap {
    padding: 6px 12px !important;
    min-height: 50px !important;
    gap: 8px !important;
  }

  .brand {
    gap: 8px !important;
    min-width: 0 !important;
  }

  .mascot-img-lg {
    width: 36px !important;
    height: 36px !important;
  }

  h1 {
    font-size: 15px !important;
    white-space: nowrap !important;
    max-width: 160px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sub {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 160px !important;
  }

  .header-actions {
    gap: 6px !important;
  }

  .status-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .status-item {
    min-height: 48px !important;
    padding: 6px 6px !important;
    border-radius: 10px !important;
    text-align: center !important;
  }

  .status-label {
    font-size: 10px !important;
    white-space: nowrap !important;
    display: block !important;
  }

  .status-value {
    font-size: 12px !important;
    white-space: nowrap !important;
    display: block !important;
    margin-top: 2px !important;
  }

  .card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }

  .head {
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  .grid,
  .charts {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* 紧凑型期数与日期：保持单行并排，不换行成两行大卡片 */
  .grid.daily-meta-grid,
  .daily-meta-grid {
    grid-template-columns: 82px 1fr !important;
    gap: 8px !important;
    margin-top: 6px !important;
  }

  .daily-meta-grid label {
    font-size: 11.5px !important;
  }

  .daily-meta-grid input {
    margin-top: 2px !important;
    padding: 5px 8px !important;
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12.5px !important;
  }

  /* 重新导入与状态提示：同排展示，高度紧凑 */
  .daily-action-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-top: 6px !important;
    min-height: 28px !important;
  }

  .daily-action-bar #dailyState:empty {
    display: none !important;
  }

  .daily-action-bar #dailyState:not(:empty) {
    display: inline-flex !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .daily-action-bar #resetTodayFlow {
    width: auto !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    background: rgba(14, 165, 233, 0.22) !important;
    color: #e0f2fe !important;
    margin: 0 0 0 auto !important;
    flex: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.theme-warm .daily-action-bar #resetTodayFlow {
    border: 1px solid #fed7aa !important;
    background: #fff7ed !important;
    color: #c2410c !important;
  }

  /* 上传框紧凑化：移动端压缩内边距与高度 */
  .filebox {
    min-height: 60px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
  }

  .file-meta {
    min-height: 42px !important;
    gap: 8px !important;
  }

  .file-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  body:not(.theme-warm) .ftitle {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    color: #ffffff !important;
  }

  body:not(.theme-warm) .fname {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #e2e8f0 !important;
  }

  body:not(.theme-warm) .filebox.has-file .fname {
    color: #7dd3fc !important;
    font-weight: 700 !important;
  }

  .label-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  body:not(.theme-warm) .label-row > span:first-child {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  }

  body.theme-warm .ftitle {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    color: #1c1917 !important;
    text-shadow: none !important;
  }

  body.theme-warm .fname {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #78716c !important;
    text-shadow: none !important;
  }

  body.theme-warm .filebox.has-file .fname {
    color: #ea580c !important;
    font-weight: 700 !important;
    text-shadow: none !important;
  }

  body.theme-warm .label-row > span:first-child {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #1c1917 !important;
    text-shadow: none !important;
  }

  .label-row .mini-action {
    font-size: 11.5px !important;
    padding: 2px 8px !important;
    min-height: 28px !important;
  }

  .yoy-metrics-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    margin: 6px 0 10px !important;
  }

  .yoy-metric-card {
    padding: 6px 3px !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    gap: 3px !important;
    text-align: center !important;
    align-items: center !important;
  }

  .yoy-metric-name {
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    letter-spacing: 0 !important;
  }

  .yoy-metric-val {
    font-size: 13.5px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .yoy-metric-unit {
    font-size: 9px !important;
    margin-left: 1px !important;
  }

  .yoy-metric-trend {
    font-size: 9px !important;
    padding: 1px 3px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    align-self: center !important;
    justify-content: center !important;
  }

  .yoy-table-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  .photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .billing-ticker {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    min-width: 64px !important;
    min-height: 32px !important;
    padding: 3px 6px !important;
  }

  .theme-switcher {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    min-height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    font-size: 11px !important;
    gap: 0 !important;
  }

  .theme-switcher-label {
    display: none !important;
  }
}

/* ============================================================
   🌾 经典暖黄主题 (Warm Amber Classic Theme) 完全复刻
   当切换到 warm 模式时生效，完全恢复最早的原版黄色主题
   ============================================================ */
body.theme-warm {
  color: #142538 !important;
  background: #f7f1e8 url("/static/assets/jiugong-workbench-bg.png?v=2026062201") center top / cover !important;
}

/* 彻底清除暖色主题下所有文字阴影，保证文字边缘绝对锐利、清爽、无重影无黑影 */
body.theme-warm,
body.theme-warm *,
body.theme-warm *::before,
body.theme-warm *::after {
  text-shadow: none !important;
}

body.theme-warm::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: rgba(255, 253, 249, 0.72) !important;
  pointer-events: none !important;
  display: block !important;
}

body.theme-warm::after {
  display: none !important;
}

/* 顶部导航与品牌 */
body.theme-warm header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: rgba(254, 252, 248, 0.94) !important;
  border-bottom: 1px solid #ebdccb !important;
  box-shadow: 0 2px 10px rgba(77, 48, 24, 0.05) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}

body.theme-warm h1 {
  color: #0c1b2b !important;
  text-shadow: none !important;
}

body.theme-warm h2 {
  color: #0c1b2b !important;
  text-shadow: none !important;
}

body.theme-warm .sub {
  color: #536c84 !important;
  text-shadow: none !important;
}

body.theme-warm .mascot {
  border: 2px solid rgba(18, 48, 71, 0.72) !important;
  border-radius: 14px !important;
  background: #f6dfbb !important;
  box-shadow: 0 5px 14px rgba(46, 35, 24, 0.16) !important;
}

body.theme-warm .mascot-img-lg {
  border-radius: 14px !important;
  width: 52px !important;
  height: 52px !important;
}

/* 主题切换按钮在暖黄主题下的样式 */
body.theme-warm .theme-switcher {
  border: 1px solid rgba(205, 143, 73, 0.28) !important;
  background: rgba(255, 249, 239, 0.94) !important;
  color: #7a3f00 !important;
  box-shadow: 0 8px 18px rgba(77, 48, 24, 0.12) !important;
}

body.theme-warm .theme-switcher:hover {
  background: #fff2db !important;
  color: #6b3500 !important;
  box-shadow: 0 10px 22px rgba(77, 48, 24, 0.16) !important;
}

body.theme-warm .theme-switcher-dot {
  background: #d97706 !important;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.6) !important;
}

/* MacBook 基金药丸在暖黄主题下的样式 */
body.theme-warm .billing-ticker {
  border: 1px solid rgba(205, 143, 73, 0.2) !important;
  background: rgba(255, 249, 239, 0.94) !important;
  color: #7a3f00 !important;
  box-shadow: 0 12px 24px rgba(77, 48, 24, 0.14) !important;
}

body.theme-warm .billing-ticker:hover,
body.theme-warm .billing-ticker:focus-visible {
  background: #fff4df !important;
  color: #7a3f00 !important;
  box-shadow: 0 12px 24px rgba(77, 48, 24, 0.18), 0 0 0 3px rgba(249, 115, 22, 0.16) !important;
}

body.theme-warm .billing-label {
  color: #7a3f00 !important;
}

body.theme-warm .billing-amount {
  color: #d96c00 !important;
}

body.theme-warm .billing-popover,
body.theme-warm .billing-bill {
  border: 1px solid rgba(205, 143, 73, 0.18) !important;
  border-radius: 8px !important;
  background: #fffdfa !important;
  color: #7a3f00 !important;
  box-shadow: 0 18px 40px rgba(77, 48, 24, 0.18) !important;
}

body.theme-warm .billing-bill {
  background: #fff8eb !important;
}

body.theme-warm .billing-bill-row,
body.theme-warm .billing-popover-row {
  border-top: 1px dashed #f0c58a !important;
}

body.theme-warm .billing-bill-total,
body.theme-warm .billing-popover-total {
  color: #c2410c !important;
}

body.theme-warm .billing-bill-note,
body.theme-warm .billing-popover-note {
  color: #8a4b09 !important;
}

/* 公告与状态条 */
body.theme-warm .notice {
  border: 1px solid rgba(205, 143, 73, 0.18) !important;
  border-radius: 8px !important;
  background: rgba(255, 247, 235, 0.9) !important;
  color: #854d0e !important;
  box-shadow: none !important;
}

body.theme-warm .notice::before {
  display: none !important;
}

body.theme-warm .status-item {
  border: 1px solid rgba(18, 48, 71, 0.08) !important;
  border-radius: 8px !important;
  background: rgba(255, 253, 250, 0.88) !important;
  box-shadow: 0 1px 0 rgba(56, 38, 20, 0.06) !important;
}

body.theme-warm .status-item::before {
  background: #d7c7b5 !important;
  height: 3px !important;
  border-radius: 8px 8px 0 0 !important;
}

body.theme-warm .status-label {
  color: #536c84 !important;
}

body.theme-warm .status-value {
  color: #344054 !important;
}

body.theme-warm .status-item.ok {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
}
body.theme-warm .status-item.ok::before {
  background: #ea580c !important;
}
body.theme-warm .status-item.ok .status-label {
  color: #9a3412 !important;
}
body.theme-warm .status-item.ok .status-value {
  color: #ea580c !important;
  font-weight: 700 !important;
}

body.theme-warm .status-item.warn {
  background: #fff3e1 !important;
}
body.theme-warm .status-item.warn::before {
  background: #d97706 !important;
}
body.theme-warm .status-item.warn .status-value {
  color: #d97706 !important;
}

body.theme-warm .status-item.error {
  background: #fff1ef !important;
}
body.theme-warm .status-item.error::before {
  background: #dc3545 !important;
}
body.theme-warm .status-item.error .status-value {
  color: #dc3545 !important;
}

/* 卡片 */
body.theme-warm .card {
  border: 1px solid rgba(18, 48, 71, 0.08) !important;
  border-radius: 8px !important;
  background: rgba(255, 253, 250, 0.94) !important;
  box-shadow: 0 16px 40px rgba(12, 28, 48, 0.12) !important;
}

body.theme-warm .card.active-step {
  background: rgba(255, 253, 250, 0.98) !important;
  box-shadow: 0 20px 48px rgba(77, 48, 24, 0.12), inset 4px 0 0 #ea580c !important;
}

body.theme-warm .num {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #ffffff !important;
  border: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25) !important;
}

body.theme-warm .help {
  color: #536c84 !important;
}

body.theme-warm label {
  color: #344054 !important;
}

body.theme-warm .filebox {
  border: 1px dashed #fdba74 !important;
  border-radius: 10px !important;
  background: #fffbf5 !important;
}

body.theme-warm .filebox:focus-within {
  border-color: #ea580c !important;
  background: #fff7ed !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14) !important;
}

body.theme-warm .filebox.has-file {
  border-style: solid !important;
  border-color: #ea580c !important;
  background: #fff7ed !important;
}

body.theme-warm .file-icon {
  background: #ffedd5 !important;
  color: #ea580c !important;
  border-radius: 10px !important;
}

body.theme-warm .filebox.has-file .file-icon {
  background: #ea580c !important;
  color: #ffffff !important;
}

body.theme-warm .ftitle {
  color: #263244 !important;
}

body.theme-warm .fname {
  color: #536c84 !important;
}

/* 输入框与文本域 */
body.theme-warm input[type=number],
body.theme-warm input[type=date],
body.theme-warm textarea {
  border: 1px solid #c8d3df !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #142538 !important;
}

body.theme-warm input[type=number]:focus,
body.theme-warm input[type=date]:focus,
body.theme-warm textarea:focus {
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

/* 按钮 */
body.theme-warm button,
body.theme-warm a.button {
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25) !important;
}

body.theme-warm button:hover,
body.theme-warm a.button:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
}

body.theme-warm button.secondary,
body.theme-warm a.button.secondary {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
  box-shadow: none !important;
}

body.theme-warm button.secondary:hover,
body.theme-warm a.button.secondary:hover {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border-color: #fdba74 !important;
}

body.theme-warm button.ghost,
body.theme-warm a.button.ghost {
  background: #fffaf0 !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
  box-shadow: none !important;
}

body.theme-warm button.ghost:hover,
body.theme-warm a.button.ghost:hover {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

body.theme-warm .reset-action {
  background: transparent !important;
  border-color: transparent !important;
  color: #b45309 !important;
}

/* Tab 切换器 */
body.theme-warm .point-tabs {
  border-radius: 8px !important;
  background: rgba(247, 239, 227, 0.86) !important;
}

body.theme-warm .yoy-table-caption {
  color: #101828 !important;
  font-family: "宋体", "SimSun", serif !important;
}

body.theme-warm .yoy-table-caption::before {
  background: #ea580c !important;
  box-shadow: none !important;
}

body.theme-warm .point-tab {
  background: transparent !important;
  color: #344054 !important;
  box-shadow: none !important;
}

body.theme-warm .point-tab:hover {
  background: #fff !important;
}

body.theme-warm .point-tab.active {
  background: #fff !important;
  color: #ea580c !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15) !important;
}

/* 提示与状态信息 */
body.theme-warm .primary-action-label,
body.theme-warm .muted-note,
body.theme-warm .download-note,
body.theme-warm .small {
  color: #536c84 !important;
}

body.theme-warm .state {
  color: #536c84 !important;
}

body.theme-warm .state.ok {
  color: #ea580c !important;
  font-weight: 600 !important;
}

body.theme-warm .state.ok:not(:empty) {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
}

body.theme-warm .state.warn {
  color: #d97706 !important;
}

body.theme-warm .state.error {
  color: #dc3545 !important;
}

body.theme-warm .box,
body.theme-warm .summary-box {
  border: 1px solid #fed7aa !important;
  border-radius: 8px !important;
  background: #fffbf5 !important;
  color: #431407 !important;
}

body.theme-warm .soft-details {
  border: 1px solid #fed7aa !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.theme-warm .soft-details summary,
body.theme-warm .check-summary summary,
body.theme-warm .point-check summary {
  border-radius: 8px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  font-weight: 700 !important;
}

body.theme-warm .soft-details summary:hover {
  background: #ffedd5 !important;
  color: #7c2d12 !important;
}

body.theme-warm .soft-details[open] summary {
  border-radius: 8px 8px 0 0 !important;
}

body.theme-warm .loading-panel {
  border: 1px solid rgba(205, 143, 73, 0.18) !important;
  border-radius: 8px !important;
  background: #fff5e8 !important;
  color: #8a4b09 !important;
}

body.theme-warm .loading-sub {
  color: #42639a !important;
}

body.theme-warm .recovery,
body.theme-warm .point-recovery-banner,
body.theme-warm .ready-hint {
  border: 1px solid #fed7aa !important;
  border-radius: 8px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
}

body.theme-warm .ready-hint.ok {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
  font-weight: 600 !important;
}

body.theme-warm .final-companion {
  border: 1px solid #fed7aa !important;
  border-radius: 8px !important;
  background: #fff8eb !important;
  color: #7a3f00 !important;
}

body.theme-warm .final-button {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28) !important;
}

body.theme-warm .final-button:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
}

body.theme-warm .final-check-dot {
  background: #fff !important;
  color: #c58a43 !important;
  box-shadow: 0 0 0 1px #f2d7ae inset !important;
}

body.theme-warm .final-check-item.ok .final-check-dot {
  background: #fff7ed !important;
  color: #ea580c !important;
  box-shadow: 0 0 0 1px #fed7aa inset !important;
}

body.theme-warm .final-check-label {
  color: #667085 !important;
}

body.theme-warm .final-check-value {
  color: #101828 !important;
}

body.theme-warm .access-gate {
  background: rgba(16, 24, 40, 0.3) !important;
}

body.theme-warm .access-dialog {
  border: 1px solid rgba(205, 143, 73, 0.28) !important;
  background: #fffdfa !important;
  box-shadow: 0 24px 64px rgba(52, 36, 20, 0.24) !important;
}

body.theme-warm .access-dialog::before {
  display: none !important;
}

body.theme-warm .access-kicker {
  color: #b45309 !important;
}

body.theme-warm .access-title {
  color: #0c1b2b !important;
}

body.theme-warm .access-question {
  color: #7a3f00 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

body.theme-warm .access-input {
  border: 1px solid #c8d3df !important;
  background: #fff !important;
  color: #142538 !important;
}

body.theme-warm .access-error {
  color: #dc3545 !important;
}

/* ============================================================
   同比分析高光仪表盘、状态胶囊徽章与舒适排版
   ============================================================ */

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.label-row .state,
.badge-pill {
  margin: 0 !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  border-radius: 999px !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.badge-pill:empty {
  display: none !important;
}

.badge-pill.ok:not(:empty) {
  background: rgba(10, 28, 52, 0.94) !important;
  border: 1px solid rgba(56, 189, 248, 0.55) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.badge-pill.warn:not(:empty) {
  background: rgba(36, 26, 10, 0.94) !important;
  border: 1px solid rgba(251, 191, 36, 0.55) !important;
  color: #fbbf24 !important;
}

.badge-pill.error:not(:empty) {
  background: rgba(38, 16, 16, 0.94) !important;
  border: 1px solid rgba(248, 113, 113, 0.55) !important;
  color: #f87171 !important;
}

/* ---------- 同比数据高光指标看板 (YoY Metrics Grid) ---------- */

.yoy-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 12px;
}

.yoy-metric-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(8, 22, 42, 0.2) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.yoy-metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.45);
}

.yoy-metric-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

.yoy-metric-val {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.yoy-metric-unit {
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
  margin-left: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.yoy-metric-trend {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
}

.yoy-metric-trend.up {
  background: rgba(42, 18, 18, 0.92);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.yoy-metric-trend.down {
  background: rgba(12, 32, 54, 0.92);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.yoy-metric-trend.flat {
  background: rgba(24, 32, 44, 0.92);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* ---------- 分析文案与文本框体验增强 ---------- */

.textarea-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 4px;
}

.textarea-hint {
  font-size: 12.5px;
  color: #e0f2fe;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

#sectionSix {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  letter-spacing: 0.02em !important;
  background: rgba(6, 16, 32, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#sectionSix:focus {
  border-color: #38bdf8 !important;
  background: rgba(10, 24, 46, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .yoy-metrics-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    margin: 6px 0 10px !important;
  }
  .yoy-metric-card {
    padding: 6px 2px !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    gap: 2px !important;
    text-align: center !important;
    align-items: center !important;
  }
  .yoy-metric-val {
    font-size: 13px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
}

/* ============================================================
   暖色主题下的同比看板、表格与照片预览组件完美覆盖 (消除黑框)
   ============================================================ */
body.theme-warm .badge-pill.ok:not(:empty) {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #ea580c !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

body.theme-warm .badge-pill.warn:not(:empty) {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #b45309 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

body.theme-warm .badge-pill.error:not(:empty) {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

body.theme-warm .yoy-metric-card {
  background: #ffffff !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.06) !important;
}

body.theme-warm .yoy-metric-card:hover {
  border-color: #f97316 !important;
  transform: translateY(-1px);
}

body.theme-warm .yoy-metric-name {
  color: #44403c !important;
  font-weight: 700 !important;
}

body.theme-warm .yoy-metric-val {
  color: #1c1917 !important;
  font-weight: 800 !important;
}

body.theme-warm .yoy-metric-unit {
  color: #c2410c !important;
  font-weight: 700 !important;
}

body.theme-warm .yoy-metric-trend.up {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

body.theme-warm .yoy-metric-trend.down {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}

body.theme-warm .yoy-metric-trend.flat {
  background: #f5f5f4 !important;
  color: #78716c !important;
  border: 1px solid #e7e5e4 !important;
}

body.theme-warm .textarea-hint {
  color: #9a3412 !important;
  font-weight: 700 !important;
}

body.theme-warm #sectionSix {
  background: #ffffff !important;
  color: #1c1917 !important;
  font-weight: 500 !important;
  border: 1px solid #fed7aa !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.theme-warm #sectionSix:focus {
  border-color: #ea580c !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
  color: #1c1917 !important;
}

body.theme-warm .yoy-table-preview {
  background: #ffffff !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.06) !important;
}

body.theme-warm .yoy-table-caption {
  color: #1c1917 !important;
  text-shadow: none !important;
}

body.theme-warm .yoy-table-caption::before {
  background: #ea580c !important;
  box-shadow: none !important;
}

body.theme-warm .yoy-table-preview img {
  border: 1px solid #f3e8dc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.theme-warm .photo-list {
  background: #ffffff !important;
  border: 1px solid #fed7aa !important;
}

body.theme-warm .photo-item {
  background: #fffbf5 !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.05) !important;
}

body.theme-warm .photo-item-name {
  color: #1c1917 !important;
}

body.theme-warm .photo-item-size {
  color: #78716c !important;
}

body.theme-warm .photo-item-remove {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

body.theme-warm .photo-item-remove:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

/* ---------- 图片放大弹窗 (Lightbox) ---------- */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.image-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  background: #ffffff;
}

.image-lightbox-close {
  align-self: flex-end !important;
  width: auto !important;
  min-height: 32px !important;
  height: 32px !important;
  margin-bottom: 8px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

.image-lightbox-close:active {
  transform: scale(0.95);
  background: rgba(15, 23, 42, 0.9) !important;
}

.image-lightbox-tip {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

body.theme-warm .image-lightbox-close {
  background: #ffffff !important;
  border: 1px solid #fdba74 !important;
  color: #ea580c !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-shadow: none !important;
}



