/* =========================================================================
 * style.css —— 行程日历 · iOS26 Liquid Glass 全量覆盖
 * 白底 + 红按钮主题 / 深色双主题 / 悬浮圆润导航 / 天气内嵌日期格 / 手记
 * 2026 · WZY
 * ========================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --header-h: 50px;
  --radius: 20px;
}

/* ---------- 双主题 ---------- */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg2: #F4F4F7;
  --card: rgba(255,255,255,0.78);
  --card-solid: #FFFFFF;
  --text: #1C1C1E;
  --text2: #8E8E93;
  --line: rgba(60,60,67,0.10);
  --accent: #FF3B30;
  --accent-deep: #E62E24;
  --accent-soft: rgba(255,59,48,0.10);
  --bar-bg: rgba(0,0,0,0.045);
  --input-bg: rgba(118,118,128,0.10);
  --glass: linear-gradient(160deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18));
  --glass-border: rgba(255,255,255,0.48);
  --shadow: 0 14px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --modal-bg: rgba(28,28,30,0.32);
  --sheet-bg: rgba(250,250,252,0.52);
  --tab-bg: rgba(250,250,252,0.40);
  --wx-bg: rgba(0,0,0,0.035);
}
[data-theme="dark"] {
  --bg: #000000;
  --bg2: #111114;
  --card: rgba(28,28,30,0.72);
  --card-solid: #1C1C1E;
  --text: #FFFFFF;
  --text2: #98989F;
  --line: rgba(84,84,88,0.38);
  --accent: #FF453A;
  --accent-deep: #FF6A5E;
  --accent-soft: rgba(255,69,58,0.18);
  --bar-bg: rgba(255,255,255,0.06);
  --input-bg: rgba(118,118,128,0.24);
  --glass: linear-gradient(165deg, rgba(44,44,46,0.46), rgba(28,28,30,0.20));
  --glass-border: rgba(120,120,128,0.22);
  --shadow: 0 16px 44px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-soft: 0 8px 26px rgba(0,0,0,0.35);
  --modal-bg: rgba(0,0,0,0.6);
  --sheet-bg: rgba(40,40,42,0.55);
  --tab-bg: rgba(28,28,30,0.42);
  --wx-bg: rgba(255,255,255,0.06);
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  user-select: none;
  overflow-x: hidden;
}

/* ---------- 背景极光：液态玻璃可折射的内容层 ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5; will-change: transform; }
/* 斜向光带 + 暖辉（源自 GitHub GlassKit .glass-bg::before/::after，博采众长） */
.aurora::before {
  content: ""; position: absolute; top: 20%; left: -30%; width: 160%; height: 55%;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(90, 210, 200, 0.20), transparent 50%),
    radial-gradient(ellipse at 65% 55%, rgba(110, 200, 190, 0.14), transparent 45%);
  transform: rotate(-8deg);
}
.aurora::after {
  content: ""; position: absolute; top: 40%; right: -20%; width: 70%; height: 50%;
  background: radial-gradient(ellipse at center, rgba(220, 160, 70, 0.14), transparent 65%);
}
[data-theme="dark"] .aurora::before {
  background:
    radial-gradient(ellipse at 35% 45%, rgba(60, 160, 200, 0.18), transparent 50%),
    radial-gradient(ellipse at 65% 55%, rgba(70, 170, 190, 0.12), transparent 45%);
}
[data-theme="dark"] .aurora::after { background: radial-gradient(ellipse at center, rgba(220, 150, 70, 0.12), transparent 65%); }
[data-theme="light"] .aurora i.b1 { width: 340px; height: 340px; left: -110px; top: -80px; background: radial-gradient(circle, rgba(255,59,48,0.34), rgba(255,59,48,0)); animation: drift1 26s ease-in-out infinite alternate; }
[data-theme="light"] .aurora i.b2 { width: 320px; height: 320px; right: -100px; top: 20%; background: radial-gradient(circle, rgba(0,122,255,0.26), rgba(0,122,255,0)); animation: drift2 32s ease-in-out infinite alternate; }
[data-theme="light"] .aurora i.b3 { width: 280px; height: 280px; left: 14%; bottom: 5%; background: radial-gradient(circle, rgba(175,82,222,0.22), rgba(175,82,222,0)); animation: drift1 38s ease-in-out infinite alternate-reverse; }
[data-theme="dark"] .aurora i.b1 { width: 360px; height: 360px; left: -120px; top: -90px; background: radial-gradient(circle, rgba(255,69,58,0.34), rgba(255,69,58,0)); animation: drift1 26s ease-in-out infinite alternate; }
[data-theme="dark"] .aurora i.b2 { width: 340px; height: 340px; right: -110px; top: 18%; background: radial-gradient(circle, rgba(0,122,255,0.30), rgba(0,122,255,0)); animation: drift2 32s ease-in-out infinite alternate; }
[data-theme="dark"] .aurora i.b3 { width: 300px; height: 300px; left: 12%; bottom: 4%; background: radial-gradient(circle, rgba(175,82,222,0.26), rgba(175,82,222,0)); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(44px, 30px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(-40px, 26px); } }

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; background: transparent; }
[hidden] { display: none !important; }
.ico { width: 1em; height: 1em; vertical-align: -0.12em; }

/* ---------- 液态玻璃通用覆层（折射 + 镜面高光，源自 GitHub Mael-667） ---------- */
.lg, .glass-top, .cal-card, .tabbar, .sheet, .modal-card, .set-card, .device-card, .auth-card, .card, .health-summary .hs {
  position: relative;
}
.lg::before, .glass-top::before, .cal-card::before, .tabbar::before, .sheet::before, .modal-card::before, .set-card::before, .device-card::before, .auth-card::before, .card::before, .health-summary .hs::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  /* 透明淡色玻璃：薄薄一层白让极光透出来，不做奶白 */
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.02) 42%, rgba(255,255,255,0.09) 100%);
}
/* 大表面：折射 + 动态光斑游走高光（iOS26 液态玻璃真实反光感） */
.glass-top::before, .cal-card::before, .tabbar::before, .sheet::before, .modal-card::before {
  filter: url(#lgRefract);
  background:
    linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.22) 42%, rgba(255,255,255,0.04) 56%, transparent 78%),
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.02) 42%, rgba(255,255,255,0.09) 100%);
  background-size: 220% 100%, 100% 100%;
  animation: lgSweep 11s ease-in-out infinite;
}
@keyframes lgSweep {
  0%, 100% { background-position: -60% 0, 0 0; }
  52% { background-position: 165% 0, 0 0; }
}
[data-theme="dark"] .glass-top::before, [data-theme="dark"] .cal-card::before, [data-theme="dark"] .tabbar::before, [data-theme="dark"] .sheet::before, [data-theme="dark"] .modal-card::before {
  background:
    linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.09) 42%, rgba(255,255,255,0.02) 56%, transparent 78%),
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.008) 42%, rgba(255,255,255,0.03) 100%);
  background-size: 220% 100%, 100% 100%;
}
.lg::after, .glass-top::after, .cal-card::after, .tabbar::after, .sheet::after, .modal-card::after, .set-card::after, .device-card::after, .auth-card::after, .card::after, .health-summary .hs::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  /* 发光描边 + 内嵌高光（GlassKit 风格） */
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.34), inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -1px 1px rgba(0,0,0,0.04), inset 1px 0 1px rgba(255,255,255,0.18), inset -1px 0 1px rgba(255,255,255,0.18);
}
.lg > *, .glass-top > *, .cal-card > *, .tabbar > *, .sheet > *, .modal-card > *, .set-card > *, .device-card > *, .auth-card > *, .card > *, .health-summary .hs > * { position: relative; z-index: 2; }
[data-theme="dark"] .lg::before, [data-theme="dark"] .glass-top::before, [data-theme="dark"] .cal-card::before, [data-theme="dark"] .tabbar::before, [data-theme="dark"] .sheet::before, [data-theme="dark"] .modal-card::before, [data-theme="dark"] .set-card::before, [data-theme="dark"] .device-card::before, [data-theme="dark"] .auth-card::before, [data-theme="dark"] .card::before, [data-theme="dark"] .health-summary .hs::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.006) 42%, rgba(255,255,255,0.03) 100%);
}
[data-theme="dark"] .lg::after, [data-theme="dark"] .glass-top::after, [data-theme="dark"] .cal-card::after, [data-theme="dark"] .tabbar::after, [data-theme="dark"] .sheet::after, [data-theme="dark"] .modal-card::after, [data-theme="dark"] .set-card::after, [data-theme="dark"] .device-card::after, [data-theme="dark"] .auth-card::after, [data-theme="dark"] .card::after, [data-theme="dark"] .health-summary .hs::after {
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.10), inset 0 1px 1px rgba(255,255,255,0.16), inset 0 -1px 1px rgba(0,0,0,0.4), inset 1px 0 1px rgba(255,255,255,0.06), inset -1px 0 1px rgba(255,255,255,0.06);
}

/* ================= 登录 ================= */
.auth-screen {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 0%, #FFF3F0 0%, var(--bg) 55%);
  padding: 24px;
}
[data-theme="dark"] .auth-screen { background: radial-gradient(120% 100% at 50% 0%, #2A1210 0%, var(--bg) 60%); }
.auth-card {
  width: 100%; max-width: 360px; padding: 34px 26px 26px; text-align: center;
  border-radius: 32px; background: var(--glass);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%);
  animation: authIn 0.5s cubic-bezier(0.2,0.9,0.3,1);
}
@keyframes authIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.auth-logo {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px;
  background: linear-gradient(150deg, var(--accent), #FF9A8A); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255,255,255,0.4);
}
.auth-logo svg { width: 40px; height: 40px; }
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.auth-sub { font-size: 13px; color: var(--text2); margin: 6px 0 22px; }
.auth-fields { display: flex; flex-direction: column; gap: 10px; }
.auth-input {
  background: var(--input-bg); border: none; border-radius: 14px; padding: 14px 16px;
  font-size: 16px; color: var(--text); font-family: inherit; outline: none; width: 100%;
}
.auth-input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.auth-error { color: var(--accent); font-size: 13px; margin: 10px 0 0; text-align: left; }
.auth-btn { margin-top: 16px; width: 100%; }
.auth-switch { background: none; border: none; color: var(--accent); font-size: 14px; margin-top: 16px; cursor: pointer; font-family: inherit; }
.auth-note { font-size: 11px; color: var(--text2); margin-top: 16px; opacity: 0.75; }

/* ================= 顶部：悬浮液态玻璃胶囊 ================= */
.app-header {
  position: sticky; z-index: 30;
  top: calc(var(--safe-top) + 8px);
  margin: calc(var(--safe-top) + 8px) 10px 0;
  height: var(--header-h);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px;
  background: color-mix(in srgb, var(--bg) 34%, transparent);
  border: 0.5px solid var(--glass-border);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.32), inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 28px rgba(0,0,0,0.07);
  -webkit-backdrop-filter: saturate(190%) blur(26px); backdrop-filter: saturate(190%) blur(26px);
  overflow: hidden;
}
[data-theme="dark"] .app-header { background: color-mix(in srgb, #1C1C1E 30%, transparent); box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 30px rgba(0,0,0,0.5); }
.app-header > * { z-index: 2; }
/* .app-header 的 ::before 由上方「大表面折射 + 光斑游走」统一接管 */
.chrome-btn { background: none; border: none; font-size: 17px; padding: 8px 10px; color: var(--accent); font-weight: 600; cursor: pointer; border-radius: 10px; font-family: inherit; }
.chrome-btn:active { opacity: 0.5; }
.chrome-btn.add { font-size: 26px; font-weight: 300; line-height: 1; }
.hd-title { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; text-align: center; }
.hd-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; min-width: 0; }
.hd-nav .hd-title { flex: none; cursor: pointer; padding: 6px 8px; border-radius: 10px; }
.nav-arrow { background: none; border: none; color: var(--accent); font-size: 24px; font-weight: 400; cursor: pointer; padding: 6px 8px; border-radius: 10px; line-height: 1; }
.hd-left, .hd-right { min-width: 64px; }
.hd-right { text-align: right; }

.banner { margin: 10px 14px 0; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; background: rgba(255,149,0,0.16); color: var(--text); border: 0.5px solid rgba(255,149,0,0.35); }

main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.tab-pane { flex: 1; overflow-y: auto; padding: 12px 0 calc(var(--tabbar-h) + var(--safe-bottom) + 40px); -webkit-overflow-scrolling: touch; }

/* ================= 玻璃日历卡 ================= */
.glass {
  background: var(--glass);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-border);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
}
.cal-card { margin: 4px 14px; border-radius: 30px; padding: 12px 6px 10px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 14px 44px rgba(0,0,0,0.06); }

.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 6px 2px; font-size: 12px; color: var(--text2); text-align: center; font-weight: 500; }

/* ================= 日/周/月 视图切换（iOS 日历风格） ================= */
.view-seg {
  display: flex; margin: 4px auto 10px; width: max-content;
  padding: 3px; border-radius: 12px;
  background: var(--bar-bg);
  border: 0.5px solid var(--glass-border);
  position: relative;
}
.vs-btn {
  border: none; background: none; color: var(--text2); font-family: inherit;
  font-size: 12.5px; font-weight: 600; padding: 5px 18px; border-radius: 9px; cursor: pointer;
  transition: 0.22s;
}
.vs-btn.active {
  color: #fff; background: var(--accent);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ================= 今日概览条（iOS 日历风格） ================= */
.today-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 6px 10px; padding: 10px 13px; border-radius: 15px;
  background: linear-gradient(140deg, var(--accent-soft), rgba(255,149,0,0.10));
  border: 0.5px solid var(--glass-border);
  font-size: 12.5px; cursor: pointer;
}
.today-strip .ts-date { font-weight: 700; color: var(--text); }
.today-strip .ts-wx { display: flex; align-items: center; gap: 3px; color: var(--text2); }
.today-strip .ts-wx .wx-ico { width: 14px; height: 14px; }
.today-strip .ts-wx.adverse { color: var(--accent); }
.today-strip .ts-wx b { font-weight: 650; }
.today-strip .ts-ev { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow: hidden; }
.today-strip .ts-ev-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; color: var(--text2); }
.today-strip .ts-ev-item i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.today-strip .ts-ev.empty { color: var(--text2); opacity: 0.75; }
.today-strip .ts-more { font-size: 11px; color: var(--text2); }
.today-strip .ts-go {
  border: none; background: var(--input-bg); color: var(--text); font-family: inherit;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}

/* ================= 日程页搜索 + 分组 ================= */
.search-bar {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 10px;
  padding: 0 13px; height: 40px; border-radius: 13px;
  background: var(--input-bg); border: 0.5px solid var(--glass-border);
}
.search-ico { width: 16px; height: 16px; color: var(--text2); flex-shrink: 0; }
.search-bar input { flex: 1; border: none; background: none; outline: none; font-size: 15px; color: var(--text); font-family: inherit; }
.ev-group-head {
  font-size: 12px; font-weight: 700; color: var(--text2);
  padding: 10px 4px 6px; letter-spacing: 0.02em;
}

/* ================= 设置页周起始日分段 ================= */
.seg-mini { display: flex; padding: 2px; border-radius: 10px; background: var(--input-bg); border: 0.5px solid var(--glass-border); }
.sm-btn {
  border: none; background: none; color: var(--text2); font-family: inherit;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.sm-btn.active { background: var(--accent); color: #fff; }

/* ================= 周视图 ================= */
.weekview { padding: 0 6px; }
.weekview-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 3px; }
.weekview .wv-day {
  display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px;
  border-radius: 16px; cursor: pointer; position: relative; min-height: 96px;
}
.weekview .wv-day:active { transform: scale(0.95); }
.weekview .wv-wd { font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.weekview .wv-wd.sunday { color: var(--accent); }
.weekview .wv-num { font-size: 17px; font-weight: 700; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; }
.weekview .wv-day.today .wv-num { background: var(--accent); color: #fff; }
.weekview .wv-day.sel .wv-num { box-shadow: 0 0 0 2px var(--accent); }
.weekview .wv-day.pending .wv-num { background: var(--accent-soft); color: var(--accent); }
.weekview .wv-wx { font-size: 10px; color: var(--text2); margin: 3px 0 1px; }
.weekview .wv-wx .wx-ico { width: 14px; height: 14px; vertical-align: -3px; }
.weekview .wv-wx.adverse { color: var(--accent); }
.weekview .wv-bars { width: 86%; margin-top: 4px; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.weekview .wv-bar { height: 4px; border-radius: 3px; width: 100%; }
.weekview .wv-t { font-size: 9px; color: var(--text2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= 日视图 ================= */
.dayview { padding: 2px 12px 10px; }
.dayview-head { text-align: center; padding: 10px 0 4px; }
.dayview-wx { font-size: 13px; color: var(--text2); margin-top: 2px; }
.dayview-wx .wx-ico { width: 14px; height: 14px; vertical-align: -4px; }
.dayview-wx.adverse { color: var(--accent); }
.dayview-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dayview-empty { color: var(--text2); text-align: center; padding: 26px 0; font-size: 13px; }
.dayview-ev {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: var(--glass); border: 0.5px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.dayview-ev .ev-bar { width: 4px; align-self: stretch; border-radius: 3px; flex-shrink: 0; }
.dayview-ev .ev-t { font-size: 15px; font-weight: 650; flex: 1; }
.dayview-ev .ev-s { font-size: 12px; color: var(--text2); }
.dayview-journal {
  margin-top: 12px; padding: 14px 16px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(140deg, var(--accent-soft), rgba(255,149,0,0.12));
  border: 0.5px solid var(--glass-border);
}
.dayview-journal .dj-t { font-family: "Songti SC", serif; font-size: 15px; font-weight: 700; }
.dayview-journal .dj-p { font-size: 12.5px; color: var(--text2); margin-top: 3px; }
.month { padding: 0 6px; }
.week { margin-bottom: 3px; }
.week-cells { display: grid; grid-template-columns: repeat(7, 1fr); }

.cell {
  height: 64px; display: flex; flex-direction: column; align-items: center;
  padding-top: 3px; cursor: pointer; border-radius: 15px; position: relative; overflow: hidden;
  transition: transform 0.12s ease, background 0.2s;
}
.cell:active { transform: scale(0.94); }
.cell.om { opacity: 0.32; }
/* 日期格本身不再着色标注：区间/事件统一用「日期下方连续横线」表示（iOS 日历风格） */
.cell.pending::after { content: ""; position: absolute; inset: 4px; border-radius: 12px; border: 2px dashed var(--accent); opacity: 0.7; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.8; } }
.cell .num { width: 29px; height: 29px; line-height: 29px; text-align: center; font-size: 16.5px; font-weight: 400; border-radius: 50%; font-variant-numeric: tabular-nums; position: relative; }
.cell .num.today { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 40%, transparent); }
.cell .num.sel { background: rgba(120,120,128,0.26); }
.cell .wx { display: flex; align-items: center; gap: 2px; height: 15px; font-size: 9.5px; color: var(--text2); margin-top: 1px; }
.cell .wx .wx-ico { width: 13px; height: 13px; flex-shrink: 0; }
.cell .wx.adverse .wx-ico { color: var(--accent); }
.cell .wx.adverse b { color: var(--accent); }
.cell .wx b { font-weight: 600; font-size: 9.5px; color: var(--text2); }
.cell .lunar { font-size: 8.5px; color: var(--text2); margin-top: 1px; transform: scale(0.9); white-space: nowrap; }
.cell .jdot { position: absolute; right: 5px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(140deg, #FF9F45, var(--accent)); box-shadow: 0 1px 3px rgba(255,80,40,0.5); }

/* 每行日期下连续横线 */
.week-line { position: relative; margin: 0 4px 5px; height: var(--line-h, 6px); }
.bar-line { position: absolute; height: 5px; border-radius: 3px; top: calc(var(--row) * 7px); left: calc(var(--cs) / 7 * 100%); width: calc((var(--ce) - var(--cs) + 1) / 7 * 100%); background: var(--bc); box-shadow: 0 1px 4px color-mix(in srgb, var(--bc) 45%, transparent); }
.bar-more { position: absolute; height: 5px; line-height: 5px; right: 2px; top: 0; font-size: 9px; color: var(--text2); }

.cal-foot { display: flex; gap: 16px; padding: 8px 22px 2px; font-size: 12px; color: var(--text2); align-items: center; }
.cal-foot .mark { display: inline-flex; align-items: center; gap: 6px; }
.cal-foot .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.today-dot { background: var(--accent); box-shadow: 0 1px 4px color-mix(in srgb, var(--accent) 50%, transparent); }
.adverse-dot { background: linear-gradient(140deg, #FF9F45, var(--accent)); }

/* ================= 页签页头 / 列表 ================= */
.pane-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pane-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.pane-actions { display: flex; align-items: center; gap: 10px; }
.pane-mini { border: none; background: var(--input-bg); color: var(--text); font-size: 14px; font-weight: 600; border-radius: 17px; padding: 8px 16px; cursor: pointer; font-family: inherit; }
.pane-mini:active { opacity: 0.6; }
.pane-add { width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; background: var(--accent); color: #fff; font-size: 21px; line-height: 1; box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform 0.12s; }
.pane-add:active { transform: scale(0.9); }

.list { padding: 4px 14px; display: flex; flex-direction: column; gap: 10px; }
.card {
  border-radius: 20px; padding: 14px 15px; display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 0.5px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--glass-border);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  transition: transform 0.12s;
}
.card:active { transform: scale(0.985); }
.card .swatch { width: 5px; height: 38px; border-radius: 3px; flex-shrink: 0; }
.card .thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--bar-bg); flex-shrink: 0; }
.card .meta { flex: 1; min-width: 0; }
.card .meta .t { font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .s { font-size: 12.5px; color: var(--text2); margin-top: 2px; }
.card .del { width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; background: var(--bar-bg); color: var(--text2); font-size: 14px; flex-shrink: 0; }
.card .del:active { color: var(--accent); }
.empty { text-align: center; color: var(--text2); font-size: 14px; padding: 42px 0; }

/* ================= 手记 ================= */
.jcard { display: block; padding: 16px; }
.jcard .j-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.jcard .j-date { font-size: 12.5px; color: var(--text2); font-weight: 600; }
.jcard .j-title { font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: 19px; font-weight: 700; letter-spacing: 0.2px; margin-bottom: 6px; }
.jcard .j-text { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 14.5px; line-height: 1.75; color: var(--text); opacity: 0.92; white-space: pre-wrap; }
.jcard .j-text.muted { opacity: 0.45; font-style: italic; }
.jcard .j-thumbs { display: flex; gap: 6px; margin-top: 10px; }
.jcard .j-thumbs img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.mood-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text2); }
.mood-chip .ico { width: 16px; height: 16px; }
.mood-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mood-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid transparent; background: var(--input-bg); border-radius: 16px; padding: 10px 12px; cursor: pointer; color: var(--text2); font-size: 11px; font-family: inherit; }
.mood-btn .ico { width: 26px; height: 26px; }
.mood-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.jphotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.jphotos .jp { position: relative; }
.jphotos img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.jphotos .jp-x { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 11px; cursor: pointer; }
.jprompt { margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(140deg, var(--accent-soft), rgba(255,149,0,0.12)); font-size: 13px; line-height: 1.6; color: var(--text); }

/* ================= 健康 ================= */
.health-device { padding: 8px 18px 4px; font-size: 13px; color: var(--text2); line-height: 1.55; white-space: pre-line; }
.health-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px; }
.health-summary .hs { flex: 1 1 30%; min-width: 104px; border-radius: 16px; padding: 12px; background: var(--glass); border: 0.5px solid var(--glass-border); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.health-summary .hs .v { font-size: 17px; font-weight: 750; }
.health-summary .hs .u { font-size: 11px; color: var(--text2); }
.health-summary .hs .d { font-size: 11px; color: var(--text2); margin-top: 1px; }
.hl-unit { color: var(--text2); font-size: 14px; }

/* ================= 设置 ================= */
.set-card { margin: 6px 14px; border-radius: 20px; overflow: hidden; background: var(--glass); border: 0.5px solid var(--glass-border); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: var(--shadow-soft); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 0.5px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-title { font-size: 15.5px; font-weight: 600; }
.set-sub { font-size: 12px; color: var(--text2); margin-top: 1px; }
.set-input { background: var(--input-bg); border: none; border-radius: 10px; padding: 8px 12px; font-size: 15px; color: var(--text); font-family: inherit; outline: none; min-width: 0; }
.set-input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.mini-btn { border: none; background: var(--input-bg); color: var(--text); border-radius: 11px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.mini-btn:active { opacity: 0.6; }
.mini-btn.danger { color: var(--accent); }
.mini-btn.ai { color: var(--accent); background: var(--accent-soft); font-weight: 700; }

.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 31px; cursor: pointer; background: rgba(120,120,128,0.32); transition: 0.25s; }
.switch .slider::before { content: ""; position: absolute; width: 27px; height: 27px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25); transition: 0.25s; }
.switch input:checked + .slider { background: #34C759; }
.switch input:checked + .slider::before { transform: translateX(20px); }

.set-footer { padding: 18px 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.credit { font-size: 11px; letter-spacing: 0.4px; color: var(--text3); font-variant-numeric: tabular-nums; }
.dark-btn { width: 100%; padding: 15px; border-radius: 18px; border: 0.5px solid var(--glass-border); background: var(--glass); color: var(--text); font-size: 16px; font-weight: 650; cursor: pointer; -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: var(--shadow-soft); font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dark-btn .ico { width: 20px; height: 20px; color: var(--accent); }
.dark-btn:active { opacity: 0.75; }
.install-btn { width: 100%; padding: 13px; border-radius: 18px; border: 0.5px solid var(--glass-border); background: var(--glass); color: var(--text); font-size: 14.5px; font-weight: 650; cursor: pointer; -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: var(--shadow-soft); font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; }
.install-btn .ico { width: 18px; height: 18px; color: var(--accent); }
.install-btn:active { opacity: 0.75; }

/* ================= 底部液态玻璃导航 ================= */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + 10px);
  width: calc(100% - 22px); max-width: 478px;
  height: calc(var(--tabbar-h) + 8px); padding-bottom: 8px;
  display: flex; align-items: stretch;
  border-radius: 30px;
  background: var(--tab-bg);
  border: 0.5px solid var(--glass-border);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08), inset 0 0 0 0.5px rgba(255,255,255,0.5), inset 0 1px 0 rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(190%) blur(30px); backdrop-filter: saturate(190%) blur(30px);
  z-index: 40;
}
.tab-item {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text2); font-size: 9.5px; font-family: inherit; position: relative;
}
.tab-ico { width: 34px; height: 30px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: 0.22s; }
.tab-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab-item.active { color: var(--accent); font-weight: 700; }
.tab-item.active .tab-ico { background: var(--accent-soft); color: var(--accent); }
/* 活动页签聚光（GlassKit floating tab-bar spotlight） */
.tab-item.active::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 2px; bottom: 2px;
  border-radius: 20px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%);
}
.tab-item.active > * { position: relative; z-index: 1; }
.tab-item:active { opacity: 0.7; }

/* ================= 日期展开面板 ================= */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.16); z-index: 50; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet {
  position: fixed; z-index: 51; left: 8px; right: 8px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
  border-radius: 28px; background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%);
  border: 0.5px solid var(--glass-border); box-shadow: var(--shadow);
  padding: 8px 14px 16px; max-height: 56vh; display: flex; flex-direction: column;
}
.sheet.open { animation: sheetUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes sheetUp { from { transform: translateY(34px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--text2); opacity: 0.5; margin: 0 auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.sheet-date { font-size: 18px; font-weight: 750; letter-spacing: -0.3px; }
.sheet-date .lunar-inline { font-size: 12px; font-weight: 400; color: var(--text2); margin-left: 8px; }
.sheet-close { border: none; background: none; color: var(--accent); font-size: 15px; font-weight: 650; cursor: pointer; padding: 4px 6px; }
.sheet-events { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.sheet-ev { display: flex; align-items: center; gap: 10px; background: var(--glass); border: 0.5px solid var(--glass-border); border-radius: 15px; padding: 10px 12px; cursor: pointer; }
.sheet-ev .ev-bar { width: 4px; align-self: stretch; border-radius: 3px; flex-shrink: 0; }
.sheet-ev .ev-t { font-size: 15px; font-weight: 650; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-ev .ev-s { font-size: 12px; color: var(--text2); }
.sheet-ev .ev-del { border: none; background: var(--bar-bg); width: 26px; height: 26px; border-radius: 50%; color: var(--text2); cursor: pointer; font-size: 13px; flex-shrink: 0; }
.sheet-none { color: var(--text2); font-size: 13px; text-align: center; padding: 10px 0; }
.sheet-journal { margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(140deg, var(--accent-soft), rgba(255,149,0,0.12)); cursor: pointer; }
.sheet-journal .sj-t { font-family: "Songti SC", serif; font-size: 15px; font-weight: 700; }
.sheet-journal .sj-p { font-size: 12.5px; color: var(--text2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-actions { display: flex; gap: 10px; padding-top: 10px; }

/* ================= 按钮 ================= */
.btn { flex: 1; border: none; border-radius: 15px; padding: 14px 0; font-size: 15.5px; font-weight: 650; cursor: pointer; font-family: inherit; transition: transform 0.1s, opacity 0.15s; }
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 42%, transparent), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn.ghost { background: var(--input-bg); color: var(--text); }
.btn.danger-ghost { background: transparent; color: var(--accent); flex: 0 0 auto; padding: 14px 16px; }

/* ================= 弹窗 ================= */
.modal-mask { position: fixed; inset: 0; background: var(--modal-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 60; }
.modal { position: fixed; z-index: 61; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.modal-card {
  width: 100%; max-width: 520px; background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%);
  border-radius: 26px 26px 0 0; border: 0.5px solid var(--glass-border);
  padding: 16px 18px calc(22px + var(--safe-bottom));
  max-height: 88vh; display: flex; flex-direction: column;
  animation: sheetUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.modal-title { font-size: 17px; font-weight: 750; }
.modal-close { border: none; background: var(--input-bg); width: 30px; height: 30px; border-radius: 50%; color: var(--text2); font-size: 14px; cursor: pointer; }
.modal-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.hint { font-size: 11.5px; color: var(--text2); opacity: 0.75; }
.field > label { font-size: 13px; color: var(--text2); font-weight: 550; }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field input[type="number"], .field textarea, .field select {
  background: var(--input-bg); border: none; border-radius: 13px; padding: 13px 14px; font-size: 16px; color: var(--text); font-family: inherit; outline: none; width: 100%;
}
.field textarea { resize: none; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.check-label { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; color: var(--text); font-weight: 500; cursor: pointer; }
.check-label input { width: 18px; height: 18px; accent-color: var(--accent); }

.color-row { display: flex; gap: 11px; flex-wrap: wrap; padding: 2px 0; }
.color-dot { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: 0.15s; }
.color-dot.on { border-color: var(--text); transform: scale(1.12); }

.tk-photo-row { display: flex; gap: 8px; flex-wrap: wrap; }
#tkPhotoWrap { margin-top: 8px; }
#tkPhoto { max-width: 100%; max-height: 150px; border-radius: 12px; display: block; }
#tkPhotoClear { margin-top: 6px; }
.ai-result { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 12.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.nfc-status { margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; color: var(--text); background: linear-gradient(140deg, rgba(52,199,89,0.16), rgba(0,122,255,0.12)); display: flex; align-items: center; gap: 8px; }
.nfc-status .nfc-dot { width: 8px; height: 8px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 0 rgba(52,199,89,0.5); animation: nfcPulse 1.6s infinite; flex-shrink: 0; }
@keyframes nfcPulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.45); } 70% { box-shadow: 0 0 0 8px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
.tk-duo { display: flex; gap: 10px; }
.tk-half { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-half > label { font-size: 13px; color: var(--text2); font-weight: 550; }
.switch.inline { transform: scale(0.82); transform-origin: left center; }
.title-row { display: flex; gap: 8px; align-items: center; }
.title-row input { flex: 1; min-width: 0; }
.title-row .mini-btn { flex-shrink: 0; }

/* ================= 设备互联面板 ================= */
.device-card { margin: 4px 14px 6px; border-radius: 20px; padding: 13px 14px; }
.device-card .dc-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.device-card .dc-title .ico { width: 17px; height: 17px; color: var(--accent); }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc-item { border-radius: 13px; padding: 9px 8px; background: var(--input-bg); text-align: center; }
.dc-item .dc-ok { width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dc-item .dc-ok .ico { width: 14px; height: 14px; }
.dc-item.on .dc-ok { background: var(--accent-soft); color: var(--accent); }
.dc-item.off .dc-ok { background: var(--bar-bg); color: var(--text2); opacity: 0.6; }
.dc-item .dc-n { font-size: 10.5px; font-weight: 650; color: var(--text); }
.dc-item .dc-d { font-size: 9px; color: var(--text2); margin-top: 2px; line-height: 1.3; }
.device-note { font-size: 11px; color: var(--text2); margin-top: 9px; line-height: 1.55; }
.device-note.soft { font-size: 10.5px; opacity: 0.72; }

/* 一键连接健康设备（Web Bluetooth） */
.ble-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ble-row .mini-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ble-row .mini-btn .ico { width: 14px; height: 14px; }
.ble-st { font-size: 11px; color: var(--text2); line-height: 1.4; }

/* ================= 整机交互（原生壳桥） ================= */
.bridge-card { margin-top: 8px; padding: 13px 14px; }
.bridge-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.bridge-title { font-size: 14px; font-weight: 700; }
.bridge-badge { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 10px; background: var(--bar-bg); color: var(--text2); }
.bridge-badge.on { background: var(--accent-soft); color: var(--accent); }
.bridge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.bridge-item { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 12px; background: var(--input-bg); }
.bridge-item .bi-ok { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bridge-item.on .bi-ok { background: var(--accent-soft); color: var(--accent); }
.bridge-item.off .bi-ok { background: var(--bar-bg); color: var(--text2); opacity: 0.6; }
.bridge-item .bi-ok .ico { width: 12px; height: 12px; }
.bridge-item .bi-t { font-size: 11.5px; font-weight: 650; }
.bridge-item .bi-d { font-size: 9.5px; color: var(--text2); line-height: 1.3; }
.bridge-note { font-size: 11px; color: var(--text2); margin-top: 9px; line-height: 1.6; }
.bridge-sync { width: 100%; margin-top: 10px; }
.import-hint { font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre-line; }
.import-tip { font-size: 12px; color: var(--text2); line-height: 1.5; }
#hiFile { font-size: 13px; color: var(--text2); padding: 6px 0; }
.modal-foot { display: flex; gap: 10px; align-items: center; padding-top: 16px; }
.foot-spacer { flex: 1; }

/* ================= Toast ================= */
.toast { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 40px); background: rgba(0,0,0,0.82); color: #fff; font-size: 13.5px; padding: 11px 18px; border-radius: 22px; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.app-footer { text-align: center; font-size: 11px; color: var(--text2); opacity: 0.8; padding: 10px 0 8px; letter-spacing: 0.5px; }

/* ================= 响应式 ================= */
@media (min-width: 640px) {
  .cell { height: 70px; }
  .cell .wx { font-size: 10.5px; }
  .cell .wx .wx-ico { width: 15px; height: 15px; }
  .cell .lunar { font-size: 9.5px; }
}
@media (max-width: 380px) {
  .cell { height: 58px; }
  .cell .num { width: 27px; height: 27px; line-height: 27px; font-size: 15px; }
  .cell .wx .wx-ico { width: 12px; height: 12px; }
  .cell .lunar { font-size: 8px; }
  .tab-ico svg { width: 21px; height: 21px; }
}
