/* ============ 赴星 · 液态玻璃设计系统（Liquid Glass） ============ */
:root {
  --primary: #4a6cf7;
  --primary-deep: #3a56d4;
  --primary-light: #eef1ff;
  --gold: #f5b94e;
  --success: #22c55e;
  --danger: #ef4444;
  --bg: #e9ecfa;
  --card: rgba(255, 255, 255, 0.58);
  --card-solid: #ffffff;
  --text: #1a1f36;
  --text-2: #5a6178;
  --text-3: #9aa1b5;
  --border: rgba(255, 255, 255, 0.65);
  --border-soft: rgba(255, 255, 255, 0.4);
  --shadow: 0 8px 32px rgba(31, 38, 135, 0.12), 0 2px 8px rgba(31, 38, 135, 0.06);
  --shadow-lg: 0 20px 60px rgba(31, 38, 135, 0.18), 0 8px 24px rgba(31, 38, 135, 0.1);
  --glass-blur: blur(24px) saturate(180%);
  --radius: 22px;
  --radius-sm: 14px;
}
[data-theme="dark"] {
  --primary: #6b85ff;
  --primary-deep: #5a72e0;
  --primary-light: rgba(107, 133, 255, 0.15);
  --bg: #0b0f1c;
  --card: rgba(22, 28, 46, 0.62);
  --card-solid: #161c2e;
  --text: #eef1ff;
  --text-2: #a8b0c8;
  --text-3: #6b7390;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
  --glass-blur: blur(24px) saturate(160%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
html, body { overflow-x: hidden; }
body {
  scroll-padding-top: env(safe-area-inset-top);
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #dfe4f5 0%, #e8eaf6 40%, #f0e8f8 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
[data-theme="dark"] body { background: linear-gradient(135deg, #070a14 0%, #0b0f1c 50%, #101428 100%); }

/* 手机壳 */
.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: linear-gradient(165deg, #e6eafc 0%, #efe9fb 45%, #f9eaf6 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
}
@supports (height: 100dvh) {
  .phone-shell { height: 100dvh; }
  body { min-height: 100dvh; }
}
@media (min-width: 500px) and (hover: hover) and (pointer: fine) {
  .phone-shell { height: 90vh; max-height: 92vh; border-radius: 36px; margin: 20px 0; padding-top: 0; padding-bottom: 0; }
}
@supports (height: 90dvh) {
  @media (min-width: 500px) and (hover: hover) and (pointer: fine) {
    .phone-shell { height: 90dvh; }
  }
}
/* 触屏宽屏（平板/折叠屏）同样铺满，不留上下左右背景 */
@media (min-width: 500px) and (pointer: coarse) {
  .phone-shell { width: 100%; max-width: none; border-radius: 0; margin: 0; }
}

/* 手机端顶部额外留白，避免被浮动浏览器地址栏遮挡 */
@media (max-width: 500px) {
  .page { padding-top: 20px; }
  .page > .topbar:first-child { margin-top: 6px; }
}

/* 背景装饰星星 */
.deco-stars {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.deco-star {
  position: absolute;
  background: linear-gradient(135deg, #7B8CFF 0%, #9D7CFF 100%);
  clip-path: polygon(50% 0%, 57% 40%, 100% 50%, 57% 60%, 50% 100%, 43% 60%, 0% 50%, 43% 40%);
  opacity: 0.25;
  animation: decoFloat 5s ease-in-out infinite, decoTwinkle 3.5s ease-in-out infinite;
}
@keyframes decoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(15deg); }
}
@keyframes decoTwinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}
.deco-star.s1 { top: 8%; left: 12%; width: 14px; height: 14px; animation-delay: 0s, 0s; }
.deco-star.s2 { top: 12%; right: 10%; width: 10px; height: 10px; animation-delay: 0.8s, 0.5s; }
.deco-star.s3 { top: 28%; right: 6%; width: 18px; height: 18px; animation-delay: 1.5s, 1s; opacity: 0.3; }
.deco-star.s4 { top: 42%; left: 5%; width: 8px; height: 8px; animation-delay: 2s, 1.5s; }
.deco-star.s5 { top: 55%; right: 14%; width: 12px; height: 12px; animation-delay: 0.5s, 2s; }
.deco-star.s6 { top: 68%; left: 8%; width: 16px; height: 16px; animation-delay: 1.2s, 0.8s; opacity: 0.28; }
.deco-star.s7 { top: 80%; right: 8%; width: 10px; height: 10px; animation-delay: 2.5s, 1.2s; }
.deco-star.s8 { top: 88%; left: 18%; width: 12px; height: 12px; animation-delay: 1.8s, 2.5s; }
/* 暗夜模式星星更亮 */
[data-theme="dark"] .deco-star { background: linear-gradient(135deg, #8B9BFF 0%, #B095FF 100%); opacity: 0.35; }
/* 液态玻璃背景色块（彩色模糊 blob） */
.phone-shell::before, .phone-shell::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none; z-index: 0;
}
.phone-shell::before {
  width: 360px; height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(99, 128, 255, 0.65), rgba(99, 128, 255, 0) 70%);
  top: -60px; right: -90px;
}
.phone-shell::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle at 60% 40%, rgba(186, 120, 255, 0.55), rgba(186, 120, 255, 0) 70%);
  bottom: 12%; left: -70px;
}
#app::before {
  content: ''; position: fixed; width: 280px; height: 280px; border-radius: 50%;
  filter: blur(70px); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 170, 210, 0.4), rgba(255, 170, 210, 0) 70%);
  top: 45%; right: -100px;
}
[data-theme="dark"] .phone-shell::before {
  background: radial-gradient(circle at 30% 30%, rgba(107, 133, 255, 0.35), rgba(107, 133, 255, 0) 70%);
}
[data-theme="dark"] .phone-shell::after {
  background: radial-gradient(circle at 60% 40%, rgba(147, 97, 220, 0.3), rgba(147, 97, 220, 0) 70%);
}

#app { z-index: 1; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page { padding: 16px 16px 100px; animation: pageIn .35s cubic-bezier(.4,0,.2,1); min-height: 100%; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 顶栏 */
.topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; min-height: 44px; }
.topbar .title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topbar .sub { font-size: 15px; color: var(--text-2); margin-top: 6px; font-weight: 500; }
/* 首页问候语 */
.home-topbar { margin-bottom: 18px; }
.greet { font-size: 15px; margin-top: 6px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: baseline; }
.greet-hi { color: var(--primary); font-weight: 700; }
.greet-name {
  font-weight: 800; font-size: 17px; margin: 0 1px;
  background: linear-gradient(120deg, #4a6cf7 0%, #8b5cf6 40%, #ec4899 75%, #f5b94e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.greet-tail { color: var(--text-2); }
[data-theme="dark"] .greet-tail { color: var(--text-3); }

/* 足迹地图 */
.map-card { overflow: hidden; }
.map-wrap {
  position: relative; width: 100%; aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, rgba(74,108,247,0.04), rgba(139,92,246,0.03));
  border-radius: 16px; border: 1px solid var(--border-soft);
  overflow: hidden; margin-bottom: 14px;
}
.china-map { width: 100%; height: 100%; display: block; }
.map-marker { transform-origin: center; transform-box: fill-box; }
.map-star-pulse { animation: mapStarPulse 2.5s ease-in-out infinite; }
@keyframes mapStarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.prov-pulse { animation: provPulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes provPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.map-city-label {
  font-size: 11px; font-weight: 700; fill: var(--primary);
  paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-width: 3;
}
[data-theme="dark"] .map-city-label { stroke: rgba(11,15,28,0.8); }
.map-rank { border-top: 1px solid var(--border-soft); padding-top: 12px; }
.map-rank-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.map-rank-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 10px; margin-bottom: 4px; transition: background .2s;
}
.map-rank-item:hover { background: rgba(74,108,247,0.06); }
.map-rank-num {
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; background: rgba(74,108,247,0.1); color: var(--primary); flex-shrink: 0;
}
.map-rank-item:nth-child(1) .map-rank-num { background: linear-gradient(135deg, #f5b94e, #f0a030); color: #fff; }
.map-rank-item:nth-child(2) .map-rank-num { background: linear-gradient(135deg, #c0c8d8, #9aa5bd); color: #fff; }
.map-rank-item:nth-child(3) .map-rank-num { background: linear-gradient(135deg, #d4a574, #b8895a); color: #fff; }
.map-rank-city { flex: 1; font-size: 14px; font-weight: 600; }
.map-rank-count { font-size: 13px; font-weight: 700; color: var(--primary); }

/* 玻璃卡片 */
.card {
  background: var(--card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.7);
  position: relative;
}
[data-theme="dark"] .card { box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; }

/* 布局工具 */
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.muted { color: var(--text-3); font-size: 13px; }

/* 表单 */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, .textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(120,130,160,0.2);
  border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text);
  outline: none; transition: all .25s;
  font-family: inherit;
}
[data-theme="dark"] .input, [data-theme="dark"] .textarea { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.input:focus, .textarea:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 0 4px rgba(74,108,247,0.15);
}
[data-theme="dark"] .input:focus, [data-theme="dark"] .textarea:focus {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(107,133,255,0.2);
}
.textarea { min-height: 90px; resize: vertical; }
.input::placeholder { color: var(--text-3); }

/* 按钮 —— 液态玻璃质感，强层次 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 22px; border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  font-family: inherit; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after { /* 顶部高光层 */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0));
  pointer-events: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(74,108,247,0.4), 0 2px 6px rgba(74,108,247,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(74,108,247,0.5), 0 4px 10px rgba(74,108,247,0.35); }
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 12px rgba(74,108,247,0.35); }
[data-theme="dark"] .btn-primary { box-shadow: 0 8px 24px rgba(107,133,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2); }

.btn-ghost {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(31,38,135,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
}
[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,0.06); border-color: var(--border); color: var(--text-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.btn-ghost:hover { background: rgba(255,255,255,0.7); transform: translateY(-1px); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-ghost:active { transform: scale(0.98); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-text { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 6px; font-family: inherit; }
.btn-text:hover { opacity: 0.75; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; border: none; border-radius: 12px;
  background: rgba(255,255,255,0.4); backdrop-filter: blur(8px);
  color: var(--text-2); cursor: pointer; transition: all .2s;
}
[data-theme="dark"] .icon-btn { background: rgba(255,255,255,0.06); color: var(--text-2); }
.icon-btn:hover { background: rgba(255,255,255,0.7); color: var(--text); }
[data-theme="dark"] .icon-btn:hover { background: rgba(255,255,255,0.12); }

/* 标签 */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
[data-theme="dark"] .tag-blue { background: rgba(107,133,255,0.18); color: var(--primary); }
.tag-gray { background: rgba(120,120,140,0.12); color: var(--text-2); }
.tag-red { background: rgba(239,68,68,0.12); color: var(--danger); }
.tag-green { background: rgba(34,197,94,0.12); color: var(--success); }
.tag-gold { background: rgba(245,185,78,0.15); color: #d99a2b; }

/* 分段控件 */
.seg {
  display: flex; background: rgba(255,255,255,0.4);
  backdrop-filter: blur(12px); border-radius: 14px; padding: 4px;
  margin-bottom: 14px; border: 1px solid var(--border-soft);
}
[data-theme="dark"] .seg { background: rgba(255,255,255,0.05); }
.seg button {
  flex: 1; padding: 9px 8px; border: none; background: transparent;
  border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all .25s; font-family: inherit;
}
.seg button.on {
  background: var(--card-solid); color: var(--text);
  box-shadow: 0 2px 8px rgba(31,38,135,0.1), 0 1px 2px rgba(31,38,135,0.06);
}
[data-theme="dark"] .seg button.on { background: rgba(255,255,255,0.12); color: var(--text); }

/* chip 分类 */
.chip {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.4); border: 1px solid var(--border-soft);
  color: var(--text-2); cursor: pointer; transition: all .2s; font-family: inherit;
  backdrop-filter: blur(8px); white-space: nowrap;
}
[data-theme="dark"] .chip { background: rgba(255,255,255,0.05); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(74,108,247,0.3); }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }

/* 列表项 */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
}
.list-item:last-child { border-bottom: none; }
.li-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); border: 1px solid var(--border-soft); color: var(--primary); flex-shrink: 0; box-shadow: 0 2px 6px rgba(74,108,247,0.08), inset 0 1px 0 rgba(255,255,255,0.8); }
[data-theme="dark"] .li-ico { background: rgba(255,255,255,0.08); border-color: var(--border); }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; }
.empty .ei {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 14px;
  background: radial-gradient(circle at 35% 30%, rgba(107,133,255,0.18), rgba(107,133,255,0.04) 70%);
  color: var(--primary); font-size: 32px;
}
.empty p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.empty h3 { margin-bottom: 6px; font-size: 17px; }

/* 免责声明 */
.disclaimer {
  font-size: 11px; color: var(--text-3); text-align: center;
  padding: 12px 20px; line-height: 1.7;
  background: rgba(255,255,255,0.3); border-radius: 12px;
  backdrop-filter: blur(8px); border: 1px solid var(--border-soft);
}
[data-theme="dark"] .disclaimer { background: rgba(255,255,255,0.03); }

/* 浮动按钮 */
.float-add {
  position: fixed; bottom: 96px; right: calc(50% - 195px);
  width: 54px; height: 54px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 50; box-shadow: 0 8px 24px rgba(74,108,247,0.45);
  transition: all .25s;
}
@media (max-width: 500px) { .float-add { right: 20px; } }
.float-add:hover { transform: scale(1.08) rotate(90deg); }
.float-add:active { transform: scale(0.95); }

/* 统一新增悬浮按钮：固定在底部菜单上方，所有页面共用 */
.fab-add {
  position: absolute; bottom: calc(110px + env(safe-area-inset-bottom)); right: 20px;
  width: 54px; height: 54px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 90;
  box-shadow: 0 8px 24px rgba(74,108,247,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 500px) { .fab-add { right: 20px; } }
.fab-add:hover { transform: scale(1.06); }
.fab-add:active { transform: scale(0.94); }

/* 图片裁剪 */
.crop-mask {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(8,12,24,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.crop-panel {
  width: min(92vw, 360px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 12px;
  box-shadow: 0 24px 60px rgba(15,20,40,0.35);
}
.crop-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 15px;
}
.crop-stage {
  position: relative; overflow: hidden; margin: 0 auto;
  background: #101322; border-radius: 12px;
  touch-action: none; cursor: grab; user-select: none;
}
.crop-stage img {
  position: absolute; left: 0; top: 0; max-width: none;
  will-change: transform; pointer-events: auto; cursor: grab;
}
.crop-stage img:active { cursor: grabbing; }
.crop-zoom {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; font-size: 13px; color: var(--text-2);
}
.crop-zoom input { flex: 1; accent-color: var(--primary); }
.crop-aspects { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.crop-aspects button {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-2); cursor: pointer; font-size: 13px;
  font-family: inherit;
}
.crop-aspects button:hover { color: var(--primary); border-color: var(--primary); }

/* 进度条 */
.progress-bar { height: 8px; background: rgba(120,120,140,0.12); border-radius: 8px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  box-shadow: 0 0 8px rgba(74,108,247,0.4); transition: width .4s; }

/* 进度环 */
.ring {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(120,120,140,0.12) 0);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--card-solid); box-shadow: inset 0 2px 6px rgba(0,0,0,0.08); }
[data-theme="dark"] .ring::before { background: var(--card-solid); }
.ring > div { position: relative; font-size: 12px; font-weight: 700; color: var(--primary); }

/* Hero 卡（渐变 + 星点 + 玻璃层） */
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5b7bf8 0%, #4a6cf7 45%, #6d5ae0 100%);
  border-radius: var(--radius); padding: 22px; margin: 0 -8px 14px;
  color: #fff; box-shadow: 0 16px 40px rgba(74,108,247,0.35), 0 4px 12px rgba(74,108,247,0.2);
}
.hero-card::before { /* 光晕 */
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
}
.hero-card::after { /* 顶部玻璃高光 */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}
.stars-bg { position: absolute; inset: 0; pointer-events: none; }
.stars-bg::before, .stars-bg::after {
  content: ''; position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.8); box-shadow: 0 0 6px rgba(255,255,255,0.8);
  animation: twinkle 3s ease-in-out infinite;
}
.stars-bg::before { top: 25%; left: 20%; }
.stars-bg::after { top: 55%; right: 25%; animation-delay: 1.5s; }
@keyframes twinkle { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.hero-card .artist { font-size: 21px; font-weight: 800; position: relative; letter-spacing: -0.3px; }
.hero-card .place { font-size: 13px; opacity: 0.92; margin-top: 5px; position: relative; }
.todo-item { cursor: pointer; transition: background .2s; border-radius: 10px; margin: 0 -8px; padding: 8px; }
.todo-item:hover { background: rgba(74,108,247,0.06); }

/* 倒计时 */
.countdown { display: flex; gap: 8px; margin-top: 16px; position: relative; }
.countdown .unit {
  flex: 1; text-align: center; padding: 10px 4px 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.1);
}
.countdown .num { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown .lbl { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* 快捷操作 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.q {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 6px 2px; border-radius: 16px; cursor: pointer;
  background: transparent; border: none;
  transition: all .25s;
}
.q:hover .qi { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 20px rgba(74,108,247,0.2); }
.q:active .qi { transform: scale(0.94); }
.qi {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 17px;
  background: linear-gradient(135deg, rgba(99,128,255,0.16), rgba(139,92,246,0.12));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--primary);
  box-shadow: 0 3px 10px rgba(74,108,247,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: all .25s;
}
[data-theme="dark"] .qi { background: linear-gradient(135deg, rgba(107,133,255,0.2), rgba(139,92,246,0.14)); border-color: var(--border); }
.q span:last-child { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* 功能宫格 */
.func-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.f {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px 10px; border: none; border-radius: 16px; cursor: pointer;
  background: transparent;
  transition: all .25s; font-family: inherit;
}
.f:hover .fi { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 20px rgba(74,108,247,0.2); }
.f:active .fi { transform: scale(0.94); }
.fi { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, rgba(99,128,255,0.16), rgba(139,92,246,0.12)); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.5); color: var(--primary); box-shadow: 0 3px 10px rgba(74,108,247,0.1), inset 0 1px 0 rgba(255,255,255,0.6); transition: all .25s; }
[data-theme="dark"] .fi { background: linear-gradient(135deg, rgba(107,133,255,0.2), rgba(139,92,246,0.14)); border-color: var(--border); }
.f-name { font-size: 12px; font-weight: 600; color: var(--text-1); text-align: center; line-height: 1.3; }
.f-sub { font-size: 11.5px; font-weight: 700; color: var(--primary); text-align: center; line-height: 1.2; min-height: 14px; }
.f-sub-empty { color: var(--text-3); font-weight: 500; }
.f-prog { width: 42px; height: 4px; border-radius: 2px; background: rgba(74,108,247,0.12); overflow: hidden; margin-top: -1px; }
.f-prog-bar { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-deep)); transition: width .4s ease; }

/* 禁带提示 */
.forbid-banner {
  display: flex; align-items: flex-start; gap: 8px;
  background: linear-gradient(135deg, rgba(245,185,78,0.15), rgba(245,185,78,0.08));
  border: 1px solid rgba(245,185,78,0.3);
  border-left: 3px solid var(--gold);
  border-radius: 14px; padding: 12px 14px;
  font-size: 12px; color: #8a6d2b; line-height: 1.7; margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .forbid-banner { color: #d4b06a; }

/* 清单项 */
.check-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
.check-item:last-child { border-bottom: none; }
.cbox {
  width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--border-soft);
  background: rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .25s; flex-shrink: 0; color: #fff; font-size: 14px; font-weight: 700;
}
[data-theme="dark"] .cbox { background: rgba(255,255,255,0.05); }
.cbox.on {
  background: linear-gradient(135deg, var(--success), #16a34a);
  border-color: var(--success);
  box-shadow: 0 3px 10px rgba(34,197,94,0.35);
  transform: scale(1.05);
}
.check-item.done .name { text-decoration: line-through; color: var(--text-3); }
.check-item .name { font-size: 14px; font-weight: 500; }

/* 时间线 */
.tl { position: relative; padding-left: 20px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, var(--primary), rgba(74,108,247,0.1)); border-radius: 2px; }
.tn { position: relative; padding: 10px 0 14px; }
.tn::before { content: ''; position: absolute; left: -19px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light), 0 0 8px rgba(74,108,247,0.4); }
.tt { font-size: 14px; font-weight: 600; }
.tm { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* 票根 */
/* 票根（扁长横版纪念票） */
.ticket {
  position: relative; display: flex; align-items: stretch;
  min-height: 162px; border-radius: 16px; overflow: hidden;
  margin: 0 0 14px; border: 1px solid var(--border-soft);
  background: var(--card-solid); box-shadow: var(--shadow-lg);
}
.card .ticket { margin-bottom: 0; }
.t-side {
  position: relative; flex: 0 0 108px; width: 108px; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 12px 8px 12px 10px; overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,0.28), transparent 42%),
    radial-gradient(circle at 10% 92%, rgba(255,255,255,0.14), transparent 46%),
    linear-gradient(165deg, #5b7bf8 0%, #4a6cf7 52%, #6d5ae0 100%);
}
.t-side::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.07) 0 10px, transparent 10px 22px);
}
.t-side-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-side-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,28,0.08), rgba(8,10,28,0.45)); }
.t-side-head { position: relative; font-size: 10px; letter-spacing: 3px; font-weight: 800; opacity: 0.95; writing-mode: vertical-rl; }
.t-side-mark { position: relative; font-size: 27px; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.t-side-date { position: relative; font-size: 10px; letter-spacing: 1.5px; opacity: 0.96; writing-mode: vertical-rl; font-weight: 600; }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 11px 12px 9px 14px; }
.t-top { display: flex; align-items: center; gap: 8px; }
.t-name { font-size: 16px; font-weight: 800; letter-spacing: 0.2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-flag { margin-left: auto; flex: none; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: rgba(74,108,247,0.12); color: var(--primary); }
.t-flag.done { background: rgba(233,72,68,0.12); color: #e2504a; }
.t-where { font-size: 11px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 8px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--border-soft); }
.t-cell { min-width: 0; }
.t-cell .k { display: block; font-size: 9px; color: var(--text-3); letter-spacing: 0.4px; margin-bottom: 1px; }
.t-cell b { display: block; font-size: 11.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-cell.price b { color: #e5484d; }
.t-msg { font-size: 10.5px; color: var(--text-2); font-style: italic; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-act { margin-top: auto; display: flex; justify-content: flex-end; gap: 14px; padding-top: 6px; }
.t-act .btn-text { font-size: 11px; color: var(--text-2); padding: 0; }
.stamp {
  position: absolute; top: 50%; left: 31px; right: auto; margin-top: -22px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid rgba(239,68,68,0.8); color: rgba(239,68,68,0.88);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; text-align: center; line-height: 1.25;
  transform: rotate(-12deg); opacity: 0.9; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(239,68,68,0.08), transparent 70%);
  animation: stampIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes stampIn { from { transform: rotate(-12deg) scale(2); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 0.9; } }
/* ---- 星光现场：左栏封面主视觉 ---- */
.ticket.st-live .t-side {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,0.3), transparent 46%),
    radial-gradient(circle at 15% 95%, rgba(255,255,255,0.18), transparent 50%),
    linear-gradient(160deg, #7c5cff 0%, #b15cff 55%, #f472b6 115%);
}
.ticket.st-live .t-side-mark { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.3); }
/* ---- 黑金夜场 ---- */
.ticket.st-night { background: linear-gradient(165deg, #20212e 0%, #12131b 100%); border-color: rgba(255,255,255,0.09); }
.ticket.st-night .t-side {
  background:
    radial-gradient(circle at 85% 15%, rgba(233,185,73,0.25), transparent 46%),
    linear-gradient(165deg, #2b2c3a 0%, #15161f 100%);
  color: #d7b35e;
}
.ticket.st-night .t-side-head, .ticket.st-night .t-side-date { color: #d7b35e; }
.ticket.st-night .t-name { color: #f4f1fb; }
.ticket.st-night .t-where, .ticket.st-night .t-msg { color: #9c9db1; }
.ticket.st-night .t-cell .k { color: #989ab1; }
.ticket.st-night .t-cell b { color: #f0edfb; }
.ticket.st-night .t-cell.price b { color: #e9b949; }
.ticket.st-night .t-cols { border-top-color: rgba(255,255,255,0.14); }
.ticket.st-night .t-flag { color: #e9b949; background: rgba(233,185,73,0.14); }
.ticket.st-night .t-flag.done { color: #ff8a86; background: rgba(255,138,134,0.12); }
.ticket.st-night .t-act .btn-text { color: #8f90a6; }
/* ---- 复古纸票 ---- */
.ticket.st-paper { background: #f6ecd8; border-color: #e2cba2; box-shadow: 0 10px 26px rgba(150,110,60,0.18); }
.ticket.st-paper .t-side { background: linear-gradient(165deg, #e0c59b 0%, #c7a375 100%); color: #593d21; }
.ticket.st-paper .t-side::after { opacity: 0.4; }
.ticket.st-paper .t-main, .ticket.st-paper .t-name { color: #3f2d18; }
.ticket.st-paper .t-where, .ticket.st-paper .t-msg { color: #7c5b35; }
.ticket.st-paper .t-cell .k { color: #a38258; }
.ticket.st-paper .t-cell b { color: #3f2d18; }
.ticket.st-paper .t-cell.price b { color: #b3342e; }
.ticket.st-paper .t-cols { border-top-color: #dfc49a; }
.ticket.st-paper .t-flag { color: #4d2f10; background: #e7d2a8; }
.ticket.st-paper .t-act .btn-text { color: #8a683f; }
@media (max-width: 370px) {
  .ticket { min-height: 152px; }
  .t-side { flex-basis: 92px; width: 92px; }
  .t-cols { grid-template-columns: repeat(2, 1fr); row-gap: 4px; }
  .ticket > .stamp { left: 24px; }
  .t-main { padding: 10px 10px 8px 12px; }
}

/* 统计 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  text-align: center; padding: 14px 6px; border-radius: 16px;
  background: var(--card); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.6);
}
[data-theme="dark"] .stat { box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05); }
.stat .n {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .t { font-size: 11px; color: var(--text-3); margin-top: 2px; font-weight: 600; }

/* 底部导航 —— 毛玻璃悬浮胶囊（手机壳直接子元素，absolute 固定，绝不随滚动移动） */
.tabbar {
  position: absolute; bottom: calc(12px + env(safe-area-inset-bottom));
  left: 16px; right: 16px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 8px;
  background: rgba(255,255,255,0.32);
  backdrop-filter: blur(42px) saturate(220%);
  -webkit-backdrop-filter: blur(42px) saturate(220%);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 28px;
  box-shadow:
    0 18px 50px rgba(31,38,135,0.25),
    0 6px 18px rgba(31,38,135,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(255,255,255,0.25),
    inset 0 8px 24px rgba(255,255,255,0.25);
  z-index: 100;
}
[data-theme="dark"] .tabbar {
  background: rgba(18,24,44,0.4);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    inset 0 8px 24px rgba(255,255,255,0.06);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border: none; background: transparent; cursor: pointer;
  color: var(--text-3); font-size: 11px; font-weight: 600;
  transition: all .3s cubic-bezier(.34,1.2,.64,1);
  font-family: inherit; position: relative;
  border-radius: 20px;
}
.tab .ti { display: flex; align-items: center; justify-content: center; transition: all .3s cubic-bezier(.34,1.2,.64,1); }
.tab .ti svg { width: 24px !important; height: 24px !important; stroke-width: 1.9 !important; }
.tab:hover { color: var(--primary); background: rgba(74,108,247,0.08); }
[data-theme="dark"] .tab:hover { background: rgba(107,133,255,0.12); }

/* 选中项 —— 玻璃液态效果 */
.tab.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(74,108,247,0.88), rgba(139,92,246,0.88));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 10px 28px rgba(74,108,247,0.45),
    0 4px 10px rgba(139,92,246,0.3),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    inset 0 6px 16px rgba(255,255,255,0.2);
  transform: translateY(-3px);
}
.tab.on .ti { transform: scale(1.1); }
.tab.on::before { display: none; }

/* 弹窗 —— 毛玻璃 */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,15,28,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
  max-height: 85vh; overflow-y: auto;
}
[data-theme="dark"] .modal { background: rgba(22,28,46,0.9); border-top-color: rgba(255,255,255,0.1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.modal-body { margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* Toast */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 300; padding: 11px 20px; border-radius: 14px;
  background: rgba(26,31,54,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 80%; text-align: center;
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* 登录页 */
.auth-wrap { padding: 50px 24px 30px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.auth-logo-icon {
  width: 64px; height: 64px; margin: 0 auto 12px;
  animation: logoStarFloat 3.5s ease-in-out infinite;
}
.auth-logo-icon img { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 4px 16px rgba(91,108,255,0.45)); }
.auth-logo {
  font-size: 44px; font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(135deg, #5B6CFF 0%, #7C5CFF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(91,108,255,0.3));
}

/* 引导页 —— 单页轮播 */
.onb-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 26px calc(36px + env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}
.onb-slides {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.onb-slide {
  display: none;
  text-align: center;
  animation: onbFade .35s ease;
}
.onb-slide.active { display: block; }
@keyframes onbFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.onb-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 30px; margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(107,133,255,0.18), rgba(139,92,246,0.12));
  backdrop-filter: blur(12px); border: 1px solid var(--border);
  color: var(--primary); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.7);
}
[data-theme="dark"] .onb-emoji { box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06); }
.onb-slide h3 { font-size: 23px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.3px; }
.onb-desc { font-size: 15px; color: var(--text-2); line-height: 1.8; max-width: 290px; margin: 0 auto; }
.onb-dots {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 22px;
}
.onb-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(120,120,140,0.25); transition: all .3s cubic-bezier(.4,0,.2,1); cursor: pointer;
}
[data-theme="dark"] .onb-dots .dot { background: rgba(255,255,255,0.15); }
.onb-dots .dot.active {
  width: 26px; border-radius: 4px; background: var(--primary);
  box-shadow: 0 0 8px rgba(74,108,247,0.4);
}
.onb-actions { padding-top: 4px; }

/* 头像 */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff;
  font-weight: 700; font-size: 16px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(74,108,247,0.3);
}
.avatar.big { width: 60px; height: 60px; font-size: 22px; }

/* 照片缩略图 */
.photo-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border-soft); }

/* 演唱会卡片 */
.concert-card {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; cursor: pointer;
  background: var(--card); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .25s;
}
[data-theme="dark"] .concert-card { box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05); }
.concert-card:hover { transform: translateY(-2px); }
.concert-cover {
  height: 110px; position: relative; display: flex; align-items: flex-end; padding: 14px 16px;
  background: linear-gradient(135deg, #5b7bf8, #6d5ae0); overflow: hidden;
}
.concert-cover::before { content: ''; position: absolute; top: -20px; right: -20px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%); }
.cc-ico { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%); color: rgba(255,255,255,0.5); }
.concert-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.concert-body { padding: 14px 16px; }
.concert-card.past .concert-cover { background: linear-gradient(135deg, #8892b0, #6b7390); filter: saturate(0.7); }
.concert-card.past .concert-cover img { filter: grayscale(0.4) brightness(0.85); }
.cc-past-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 12px;
  background: rgba(255,255,255,0.25); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.3);
}
/* 白色背景上的编辑胶囊 */
.edit-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 18px;
  background: rgba(74,108,247,0.08);
  color: var(--primary); font-size: 12px; font-weight: 700;
  border: 1px solid rgba(74,108,247,0.18);
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.edit-pill:hover { background: rgba(74,108,247,0.15); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(74,108,247,0.15); }
.edit-pill:active { transform: scale(0.97); }
[data-theme="dark"] .edit-pill { background: rgba(107,133,255,0.12); color: var(--primary); border-color: rgba(107,133,255,0.25); }
.cc-edit {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 20px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.25); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 12px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all .2s; font-family: inherit;
}
.cc-edit:hover { background: rgba(255,255,255,0.4); transform: scale(1.05); }
.cc-edit:active { transform: scale(0.95); }
.cc-edit svg { width: 14px !important; height: 14px !important; stroke-width: 2 !important; }

/* 加载 */
.boot-loading { display: flex; align-items: center; justify-content: center; }
.stars-loader { display: flex; gap: 10px; }
.stars-loader span.load-star {
  width: 20px; height: 20px;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(91,108,255,0.4));
  animation: bounce 1.2s ease-in-out infinite;
}
.stars-loader span.load-star img { width: 100%; height: 100%; display: block; }
.stars-loader span:nth-child(2) { animation-delay: 0.15s; }
.stars-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,80%,100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

/* 图标容器内 SVG 统一放大加粗 */
.fi svg, .qi svg, .li-ico svg, .ei svg, .onb-emoji svg, .cc-ico svg {
  width: 26px !important; height: 26px !important; stroke-width: 2 !important;
}
.qi svg { width: 28px !important; height: 28px !important; }
.onb-emoji svg { width: 40px !important; height: 40px !important; }
.ei svg { width: 34px !important; height: 34px !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 0; height: 0; }

/* ============ 启动页 Splash ============ */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #e6eafc 0%, #efe9fb 45%, #f9eaf6 100%);
  transition: opacity .6s ease, visibility .6s;
  overflow: hidden;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-bg { position: absolute; inset: 0; pointer-events: none; }
.splash-bg::before, .splash-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px);
}
.splash-bg::before {
  width: 380px; height: 380px;
  background: radial-gradient(circle at 30% 30%, rgba(99,128,255,0.55), rgba(99,128,255,0) 70%);
  top: -80px; right: -100px;
  animation: splashFloat 8s ease-in-out infinite;
}
.splash-bg::after {
  width: 340px; height: 340px;
  background: radial-gradient(circle at 60% 40%, rgba(186,120,255,0.5), rgba(186,120,255,0) 70%);
  bottom: 8%; left: -80px;
  animation: splashFloat 10s ease-in-out infinite reverse;
}
@keyframes splashFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.08); }
}
.splash-content {
  position: relative; text-align: center;
  animation: splashUp .9s cubic-bezier(.34,1.2,.64,1);
}
.splash-logo-icon {
  width: 84px; height: 84px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  animation: logoStarFloat 3s ease-in-out infinite;
}
.splash-brand-icon { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 6px 20px rgba(91,108,255,0.5)) drop-shadow(0 0 30px rgba(124,92,255,0.3)); }
@keyframes logoStarFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}
.splash-logo {
  font-size: 56px; font-weight: 900; letter-spacing: 8px;
  background: linear-gradient(135deg, #5B6CFF 0%, #7C5CFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 24px rgba(91,108,255,0.3));
  line-height: 1.1;
}
.splash-sub {
  font-size: 13px; color: #6b7390; margin-top: 12px;
  letter-spacing: 3px; font-weight: 500;
}
.splash-version {
  margin-top: 8px; font-size: 11px; color: #a0a8c0;
  letter-spacing: 1px; font-weight: 600; min-height: 14px;
}
.splash-loader {
  position: relative; display: flex; gap: 16px; margin-top: 48px;
  animation: splashUp 1s .2s both cubic-bezier(.34,1.2,.64,1);
}
.splash-loader span.loader-star {
  width: 22px; height: 22px;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(91,108,255,0.5));
  animation: starTwinkle 1.6s ease-in-out infinite;
}
.splash-loader span.loader-star img { width: 100%; height: 100%; display: block; }
.splash-loader span:nth-child(2) { animation-delay: .25s; }
.splash-loader span:nth-child(3) { animation-delay: .5s; }
@keyframes starTwinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.15) rotate(18deg); opacity: 1; }
}
.splash-tag {
  position: absolute; bottom: calc(48px + env(safe-area-inset-bottom));
  font-size: 12px; color: #9aa1b5; letter-spacing: 3px; font-weight: 500;
  animation: splashUp 1s .4s both cubic-bezier(.34,1.2,.64,1);
}
@keyframes splashUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
[data-theme="dark"] .splash {
  background: linear-gradient(165deg, #0a0e1c 0%, #101428 45%, #160f24 100%);
}
[data-theme="dark"] .splash-sub { color: #a8b0c8; }
[data-theme="dark"] .splash-tag { color: #6b7390; }

/* ============================================================
   移动端全面适配（触摸优化 / 点击区域 / 小屏断点 / 图片自适应 / 弹窗导航）
   ============================================================ */

/* ---------- 1. 全局触摸优化 ---------- */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
button, .tab, .f, .q, .list-item, .chip, .seg button, .cat-tabs > *, .map-rank-item, .tn {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
input, textarea, select {
  user-select: text;
  -webkit-user-select: text;
  -webkit-appearance: none;
  appearance: none;
}
/* 图片自适应全局 */
img { max-width: 100%; height: auto; }

/* ---------- 2. 最小点击区域 44×44px（iOS HIG 标准） ---------- */
.btn { min-height: 46px; }
.btn-sm { min-height: 36px; }
.btn-text {
  min-height: 36px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px;
}
.icon-btn { min-width: 44px; min-height: 44px; }
.tab { min-height: 52px; }
.seg button { min-height: 40px; }
.chip { min-height: 36px; }
.list-item { min-height: 48px; }
.f { min-height: 80px; }
.q { min-height: 72px; }

/* ---------- 3. 输入框字号 ≥16px（防止 iOS 聚焦自动缩放） ---------- */
.input, .textarea, select { font-size: 16px !important; }
.input::placeholder, .textarea::placeholder { font-size: 15px; }
.field label { font-size: 14px; }

/* ---------- 4. 小屏断点 ≤380px（iPhone SE / 小屏安卓） ---------- */
@media (max-width: 380px) {
  .page { padding: 14px 14px 95px; }
  .topbar { margin-bottom: 12px; min-height: 38px; }
  .topbar .title { font-size: 22px; letter-spacing: -0.3px; }
  .topbar .sub { font-size: 13px; margin-top: 4px; }
  .home-topbar { margin-bottom: 14px; }
  .greet { font-size: 13px; margin-top: 4px; }
  .greet-name { font-size: 15px; }
  .hero-card { padding: 16px !important; }
  .hero-card .artist { font-size: 17px !important; }
  .hero-card .place { font-size: 12px !important; }
  .countdown .num { font-size: 22px !important; }
  .countdown .lbl { font-size: 10px !important; }
  .card { padding: 14px !important; border-radius: 18px !important; }
  .card h3 { font-size: 15px !important; }
  .stat-grid { gap: 8px; }
  .stat { padding: 10px 4px; border-radius: 14px; }
  .stat .n { font-size: 18px; }
  .stat .t { font-size: 10px; }
  .func-grid { gap: 6px; }
  .fi { width: 46px !important; height: 46px !important; border-radius: 14px !important; }
  .fi svg { width: 22px !important; height: 22px !important; }
  .f-name { font-size: 11px !important; }
  .f-sub { font-size: 10.5px !important; }
  .quick { gap: 8px; }
  .qi { width: 44px !important; height: 44px !important; }
  .tabbar { left: 12px; right: 12px; padding: 8px 6px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .tab { font-size: 10px; gap: 3px; padding: 6px 2px; min-height: 48px; }
  .tab .ti svg { width: 22px !important; height: 22px !important; }
  .seg { padding: 3px; border-radius: 12px; }
  .seg button { font-size: 12px; padding: 8px 6px; min-height: 36px; }
  .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }
  .modal { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .modal h3 { font-size: 16px; }
  .back-bar { padding: 10px 14px; min-height: 48px; }
  .back-bar .bb-title { font-size: 16px; }
  .edit-pill { padding: 6px 12px; font-size: 12px; min-height: 32px; }
  .list-item { padding: 11px 0; min-height: 44px; gap: 10px; }
  .ticket { border-radius: 16px; }
  .map-wrap { aspect-ratio: 4 / 3; }
  .map-city-label { font-size: 9px; }
  .map-rank-item { padding: 7px 8px; }
  .avatar.big { width: 56px !important; height: 56px !important; font-size: 22px !important; }
  .ring { width: 48px !important; height: 48px !important; font-size: 13px !important; }
  .forbid-banner { padding: 10px 12px; font-size: 11px; }
  .splash-logo { font-size: 48px; letter-spacing: 4px; }
  .splash-sub { font-size: 12px; letter-spacing: 1px; }
  .splash-logo-icon { width: 60px; height: 60px; }
}

/* ---------- 5. 中屏 381px~430px 微调 ---------- */
@media (min-width: 381px) and (max-width: 430px) {
  .topbar .title { font-size: 24px; }
  .func-grid { gap: 8px; }
  .tabbar { left: 14px; right: 14px; }
}

/* ---------- 6. 图片与媒体自适应 ---------- */
.photo-thumb {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 12px; cursor: pointer;
}
.avatar { object-fit: cover; flex-shrink: 0; }
.hero-card { background-size: cover !important; background-position: center !important; }
/* 图片加载失败占位 */
img:before {
  content: ''; display: block; width: 100%; height: 100%;
  background: rgba(74,108,247,0.06); border-radius: inherit;
}

/* ---------- 7. 弹窗移动端优化 ---------- */
.modal-mask { align-items: flex-end; }
.modal {
  max-height: 88vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* 弹窗内表单聚焦时自动滚动到可视区 */
.modal .input:focus, .modal .textarea:focus {
  scroll-margin-bottom: 120px;
}
/* 弹窗遮罩点击区域优化 */
.modal-mask { cursor: pointer; }
.modal { cursor: default; }

/* ---------- 8. Toast 移动端优化（顶部，避开刘海/状态栏） ---------- */
.toast-root {
  position: fixed; left: 0; right: 0; top: 0;
  z-index: 300; pointer-events: none;
  display: flex; justify-content: center;
  padding-top: calc(16px + env(safe-area-inset-top));
}
.toast {
  pointer-events: auto; padding: 12px 22px; border-radius: 14px;
  font-size: 14px; font-weight: 600;
  max-width: 88%; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- 9. 返回栏与顶部导航移动端 ---------- */
.back-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; min-height: 52px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  margin: -16px -16px 14px;
}
[data-theme="dark"] .back-bar {
  background: rgba(11,15,28,0.75);
  border-bottom-color: rgba(255,255,255,0.08);
}
.back-bar .bb-back {
  min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(74,108,247,0.1); color: var(--primary);
  border: none; cursor: pointer; transition: all .2s;
}
.back-bar .bb-back:active { background: rgba(74,108,247,0.2); transform: scale(0.94); }
.back-bar .bb-title { font-size: 17px; font-weight: 700; flex: 1; }
.back-bar .bb-actions { display: flex; gap: 8px; }

/* ---------- 10. 页面底部安全间距（防止内容被悬浮 tabbar 遮挡） ---------- */
.page { padding-bottom: 110px !important; }
@media (max-width: 380px) {
  .page { padding-bottom: 100px !important; }
}
/* 最后一个元素后额外留白 */
.page > *:last-child { margin-bottom: 8px; }

/* ---------- 11. 横屏适配 ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .phone-shell { max-width: 100%; height: 100vh; border-radius: 0; margin: 0; }
  .hero-card { padding: 12px !important; }
  .countdown { gap: 12px !important; }
  .countdown .num { font-size: 20px !important; }
  .tabbar { bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px; }
  .tab { min-height: 44px; font-size: 10px; }
  .tab .ti svg { width: 20px !important; height: 20px !important; }
  .modal { max-height: 92vh; }
  .page { padding: 12px 16px 90px; }
}

/* ---------- 12. 高刷屏流畅度 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 13. 安全区域全面适配 ---------- */
@supports (padding: max(0px)) {
  .page {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .back-bar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* ---------- 14. 表格自适应（记账/统计如有表格） ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
@media (max-width: 380px) {
  table { font-size: 12px; }
  th, td { padding: 8px 6px; }
}

/* ---------- 15. 选中态文字颜色修复（防止渐变文字在选中时异常） ---------- */
::selection { background: rgba(74,108,247,0.2); color: inherit; }

/* ============================================================
   16. 社区模块 · 现代信息流设计
   ============================================================ */

/* ---------- 社区顶部：搜索栏 ---------- */
.community-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(230,234,252,0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  padding: 8px 0 10px;
  margin: -4px -16px 0;
  padding-left: 16px;
  padding-right: 16px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 0 14px;
  height: 40px;
  box-shadow: 0 2px 10px rgba(74,108,247,0.05);
  transition: all 0.25s;
}
.search-box:focus-within {
  background: #fff;
  box-shadow: 0 4px 16px rgba(74,108,247,0.12);
  border-color: rgba(74,108,247,0.3);
}
.search-icon { color: #a0a8c0; display:flex; align-items:center; flex-shrink:0; }
.search-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 14px; color: #1a1f36; height: 100%;
}
.search-input::placeholder { color: #b0b8d0; }
.search-clear {
  background: rgba(160,168,192,0.18); border: none;
  width: 20px; height: 20px; border-radius: 50%;
  color: #6b7390; font-size: 14px; line-height: 1;
  cursor: pointer; display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}

/* ---------- 分类胶囊栏 ---------- */
.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 0 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 18px;
  border: 1px solid rgba(74,108,247,0.15);
  background: rgba(255,255,255,0.65);
  color: #6b7390;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(10px);
}
.cat-tab.on {
  background: linear-gradient(135deg, #4a6cf7, #7c5cff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(74,108,247,0.35);
  font-weight: 600;
  transform: scale(1.04);
}

/* ---------- 排序行 ---------- */
.sort-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 0 12px;
}
.sort-row .seg {
  background: rgba(255,255,255,0.55);
  border-radius: 10px; padding: 3px;
  backdrop-filter: blur(10px);
}
.sort-row .seg button {
  padding: 5px 16px; font-size: 12px; border-radius: 8px;
  border: none; background: transparent; color: #6b7390; cursor: pointer;
  transition: all 0.2s;
}
.sort-row .seg button.on {
  background: #fff; color: #4a6cf7; font-weight: 600;
  box-shadow: 0 2px 6px rgba(74,108,247,0.12);
}

/* ---------- 帖子卡片（现代信息流） ---------- */
.post-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(74,108,247,0.05);
}
.post-card:active {
  transform: scale(0.985);
  box-shadow: 0 1px 6px rgba(74,108,247,0.08);
}
.post-card.hot {
  border-color: rgba(245,185,78,0.35);
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(245,185,78,0.05));
}

/* 作者行 */
.post-author-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #4a6cf7, #7c5cff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74,108,247,0.25);
}
.post-author-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.post-author-name {
  font-size: 13px; font-weight: 600; color: #1a1f36;
}
.post-time { font-size: 11px; color: #a0a8c0; }
.hot-badge {
  background: linear-gradient(135deg, #f5b94e, #f0932b);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(240,147,43,0.3);
}
.post-cat-row { margin-bottom: 8px; }

/* 帖子文字 */
.post-title {
  font-size: 16px; font-weight: 700; color: #1a1f36;
  line-height: 1.45; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-excerpt {
  font-size: 13.5px; color: #6b7390; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px;
}

/* 图片布局 */
.post-imgs { margin-bottom: 10px; }
.post-imgs.single .post-img.single {
  width: 100%; height: 200px; object-fit: cover; border-radius: 14px; cursor: pointer;
}
.post-imgs.grid {
  display: grid; gap: 6px; border-radius: 14px; overflow: hidden;
}
.post-imgs.grid.count-2 { grid-template-columns: 1fr 1fr; }
.post-imgs.grid.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.post-img-wrap {
  position: relative; padding-top: 100%; overflow: hidden; border-radius: 10px;
}
.post-img-wrap .post-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; cursor: pointer;
}
.img-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; cursor: pointer;
}

/* 互动栏 */
.post-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid rgba(74,108,247,0.07);
}
.post-stats {
  display: flex; gap: 18px; font-size: 12.5px; color: #a0a8c0;
}
.post-stats span {
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.post-stats .liked { color: #e74c3c; }

/* ---------- 悬浮发布按钮 ---------- */
.fab-btn {
  position: fixed; bottom: 96px; right: 20px;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #4a6cf7, #7c5cff);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(74,108,247,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
  z-index: 100;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
}
.fab-btn:active { transform: scale(0.9) rotate(90deg); }

/* ---------- 空状态 ---------- */
.community-empty {
  text-align: center; padding: 70px 24px;
}
.community-empty .empty-icon {
  color: rgba(74,108,247,0.25); margin-bottom: 18px;
}
.community-empty h3 {
  font-size: 17px; color: #1a1f36; margin-bottom: 8px; font-weight: 600;
}
.community-empty p {
  font-size: 13px; color: #a0a8c0; margin-bottom: 22px; line-height: 1.6;
}

/* ---------- 公告横幅 ---------- */
.community-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(74,108,247,0.09), rgba(124,92,255,0.09));
  border: 1px solid rgba(74,108,247,0.15);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
}
.banner-icon {
  font-size: 24px; flex-shrink: 0;
  animation: twinkle 2.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.55; transform:scale(1.12); }
}
.banner-text { flex:1; min-width:0; }
.banner-title { font-size:13.5px; font-weight:700; color:#1a1f36; margin-bottom:2px; }
.banner-desc { font-size:11px; color:#6b7390; line-height:1.4; }

/* ============================================================
   帖子详情页
   ============================================================ */
.post-detail {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 18px; padding: 18px; margin-bottom: 14px;
}
.post-detail-title {
  font-size: 20px; font-weight: 700; color: #1a1f36;
  line-height: 1.4; margin: 10px 0 12px;
}
.post-content {
  font-size: 15px; color: #2a2f46; line-height: 1.85;
  margin-bottom: 14px; white-space: pre-wrap; word-break: break-word;
}
.post-imgs.detail {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}
.post-img.detail {
  width: 100%; border-radius: 14px; cursor: pointer;
  max-height: 360px; object-fit: cover;
}
.post-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid rgba(74,108,247,0.07);
  margin-top: 4px;
}
.post-views {
  font-size: 12px; color: #a0a8c0;
  display: inline-flex; align-items: center; gap: 4px;
}

/* 详情页底部固定互动栏 */
.detail-action-bar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-top: 1px solid rgba(74,108,247,0.1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  z-index: 120;
}
.detail-action-bar .comment-entry {
  flex: 1; height: 38px;
  background: rgba(74,108,247,0.06);
  border-radius: 19px; border: none;
  display: flex; align-items: center; padding: 0 16px;
  color: #a0a8c0; font-size: 13px; cursor: pointer;
}
.action-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(74,108,247,0.06); border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: #6b7390; font-size: 10px; gap: 1px;
  transition: all 0.2s; position: relative;
}
.action-icon-btn svg { width: 18px; height: 18px; }
.action-icon-btn.active { color: #e74c3c; background: rgba(231,76,60,0.1); }
.action-icon-btn.fav-active { color: #f5b94e; background: rgba(245,185,78,0.12); }
.action-icon-btn:active { transform: scale(0.88); }
.action-icon-btn .num {
  position: absolute; top: -2px; right: -2px;
  background: #e74c3c; color: #fff; font-size: 9px;
  min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-weight: 600;
}

/* ============================================================
   评论区（现代风格）
   ============================================================ */
.comment-input-row {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 16px;
}
.comment-input-row .input {
  flex: 1; font-size: 13.5px; height: 40px;
  border-radius: 20px; background: rgba(74,108,247,0.05);
  border: 1px solid transparent;
}
.comment-input-row .input:focus {
  background: #fff; border-color: rgba(74,108,247,0.3);
}
.comment-item {
  display: flex; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid rgba(74,108,247,0.05);
}
.comment-item:last-child { border-bottom: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.comment-author { font-size: 13px; font-weight: 600; color: #4a6cf7; }
.comment-time { font-size: 11px; color: #b0b8d0; }
.comment-content {
  font-size: 14px; color: #2a2f46; line-height: 1.6; word-break: break-word;
}
.comment-actions { display: flex; gap: 18px; margin-top: 6px; }
.comment-like, .comment-reply {
  background: none; border: none; font-size: 11.5px; color: #a0a8c0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 6px; transition: all 0.2s;
}
.comment-like:active, .comment-reply:active { background: rgba(74,108,247,0.06); }
.comment-like.liked { color: #e74c3c; }
.comment-empty { text-align: center; padding: 28px 0; }
.comment-empty .ei { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }
.comment-empty p { font-size: 13px; color: #b0b8d0; margin: 0; }

/* ============================================================
   发布页（现代表单）
   ============================================================ */
.post-tips {
  display: flex; gap: 10px;
  background: linear-gradient(135deg, rgba(245,185,78,0.08), rgba(240,147,43,0.04));
  border: 1px solid rgba(245,185,78,0.18);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
}
.tip-icon { font-size: 20px; flex-shrink: 0; }
.tip-text { flex: 1; }
.tip-text b { font-size: 13px; color: #b8862e; display: block; margin-bottom: 2px; }
.tip-text p { font-size: 11.5px; color: #8a7a5a; line-height: 1.5; margin: 0; }

.cat-select { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-option {
  padding: 8px 20px; border-radius: 16px;
  border: 1.5px solid rgba(74,108,247,0.15);
  background: rgba(255,255,255,0.6);
  color: #6b7390; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
}
.cat-option.on {
  background: linear-gradient(135deg, #4a6cf7, #7c5cff);
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(74,108,247,0.3);
}

.field-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.field-head label { margin: 0; }
.char-count { font-size: 11px; color: #b0b8d0; }

/* 九宫格图片上传 */
.img-upload-area {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.img-upload-btn {
  aspect-ratio: 1;
  border: 2px dashed rgba(74,108,247,0.25);
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: #a0a8c0; gap: 4px;
  background: rgba(74,108,247,0.03);
  transition: all 0.2s;
}
.img-upload-btn:active {
  border-color: #4a6cf7; background: rgba(74,108,247,0.06);
}
.img-preview {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* 标签颜色 */
.tag-green { background: rgba(52,199,89,0.12); color: #248a3d; border: 1px solid rgba(52,199,89,0.2); }
.tag-purple { background: rgba(124,92,255,0.12); color: #6a4ad4; border: 1px solid rgba(124,92,255,0.2); }
.tag-gold { background: rgba(245,185,78,0.14); color: #b8862e; border: 1px solid rgba(245,185,78,0.25); }

/* 禁用按钮 */
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 详情页底部留白（给固定互动栏） */
.page:has(.detail-action-bar) { padding-bottom: 80px; }
.page:has(.fab-btn) { padding-bottom: 90px; }

/* ---------- 评论编辑器弹层 ---------- */
.comment-editor-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: flex-end;
  animation: maskFade 0.2s ease;
}
@keyframes maskFade { from { opacity: 0; } to { opacity: 1; } }
.comment-editor {
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(30px);
  border-radius: 20px 20px 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  animation: editorSlide 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes editorSlide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.comment-editor-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.comment-editor-head b { font-size: 15px; color: #1a1f36; }
.comment-editor .input {
  width: 100%; border-radius: 12px;
  background: rgba(74,108,247,0.05);
  border: 1px solid transparent;
  padding: 12px; font-size: 14px;
  line-height: 1.6; outline: none;
  font-family: inherit;
}
.comment-editor .input:focus {
  background: #fff; border-color: rgba(74,108,247,0.3);
}

/* ============ 年度回忆册 ============ */
.recap-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 0 14px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(120deg, #4a6cf7 0%, #7c5cff 55%, #9d5cff 100%);
  color: #fff; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(93, 84, 245, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.recap-banner::after {
  content: ''; position: absolute; top: -46px; right: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.recap-banner-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.recap-banner-sub { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.recap-banner-go { font-size: 24px; opacity: 0.9; position: relative; }

.recap-years { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.recap-year {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.4); color: var(--text-2);
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  backdrop-filter: blur(8px); transition: all 0.2s;
}
[data-theme="dark"] .recap-year { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }
.recap-year.on {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(74, 108, 247, 0.35);
}

.recap-hero {
  position: relative; overflow: hidden; margin: 0 0 12px;
  padding: 22px 20px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #35408f 0%, #4a3a8f 55%, #1f2552 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.recap-hero::before {
  content: ''; position: absolute; top: -70px; right: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
}
.recap-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recap-hero-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 15, 40, 0.25) 0%, rgba(12, 15, 40, 0.7) 100%);
}
.recap-hero-kicker { position: relative; display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: 0.92; }
.recap-hero-year { position: relative; margin-top: 6px; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: 2px; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.recap-hero-slogan { position: relative; margin-top: 10px; font-size: 14px; opacity: 0.92; }
.recap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.recap-stats .stat { padding: 12px 4px; }
.recap-stats .stat .n { font-size: 19px; }
.recap-stats .stat .t { font-size: 10px; }
@media (max-width: 370px) { .recap-stats { grid-template-columns: repeat(2, 1fr); } }

.recap-artist { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.recap-artist:last-child { border-bottom: none; }
.recap-medal { font-size: 22px; line-height: 1; width: 30px; text-align: center; }
.recap-artist-name { font-weight: 700; }

.recap-poster-img { display: block; margin: 0 auto; height: min(52vh, 430px); width: auto; max-width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); }


/* 票面样式选择器 */
.tk-styles { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; }
.tkopt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.tkopt .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; background: var(--sw, #4a6cf7); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.tkopt.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tkopt.active .sw { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* 放大查看票面 */
.zoom-ticket-img { width: 100%; max-height: 56vh; object-fit: cover; border-radius: 16px; }

/* 海报风格选择 */
.recap-poster-opts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.recap-poster-opts .chip { padding: 6px 12px; }
