* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; font-size:14px; color:#1a1a1a; background:#f4f5f7; min-height:100vh; -webkit-font-smoothing:antialiased; }

/* ===== 顶部导航 ===== */
.nav { position:sticky; top:0; z-index:50; background:linear-gradient(135deg,#e11d48,#f43f5e); color:#fff; padding:14px 16px; padding-top:calc(14px + env(safe-area-inset-top)); box-shadow:0 2px 8px rgba(225,29,72,0.25); }
.nav-title { font-size:18px; font-weight:700; }
.nav-sub { font-size:12px; opacity:0.85; margin-top:2px; }

/* ===== 年份选择 ===== */
.year-bar { display:flex; gap:10px; padding:12px 12px; background:#fff; position:sticky; top:calc(56px + env(safe-area-inset-top)); z-index:40; border-bottom:1px solid #f0f0f0; }
.year-chip { flex-shrink:0; padding:6px 14px; border-radius:16px; background:#f4f5f7; color:#666; font-size:13px; font-weight:500; cursor:pointer; transition:all 0.15s; }
.year-chip.active { background:linear-gradient(135deg,#e11d48,#f43f5e); color:#fff; box-shadow:0 2px 8px rgba(225,29,72,0.3); }

/* ===== 年度汇总 ===== */
.year-summary { padding:14px 16px 4px; font-size:13px; color:#666; font-weight:500; }
.hall-totals { display:flex; gap:10px; padding:6px 16px 14px; }
.ht-chip { flex:1; background:#fff; border-radius:10px; padding:10px; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
.ht-n { display:block; font-size:22px; font-weight:700; color:#e11d48; line-height:1; }
.ht-l { display:block; font-size:11px; color:#888; margin-top:4px; }

/* ===== 月份块 ===== */
.month-block { background:#fff; border-radius:14px; margin:10px 12px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,0.05); }
.month-head { display:flex; align-items:baseline; padding:14px 16px 10px; border-bottom:1px solid #f5f5f5; }
.month-title { font-size:17px; font-weight:700; color:#1a1a1a; }
.month-sub { font-size:12px; color:#aaa; margin-left:8px; font-weight:500; }

/* 厅行 */
.hall-row { padding:10px 16px; border-bottom:1px solid #f7f7f7; }
.hall-row:last-child { border-bottom:none; }
.hall-label { font-size:12px; color:#555; font-weight:600; margin-bottom:8px; display:flex; align-items:center; }
.hall-label::before { content:""; display:inline-block; width:3px; height:12px; background:#e11d48; border-radius:2px; margin-right:6px; }

/* 日期卡片行 */
.day-cards { display:flex; flex-wrap:wrap; gap:8px; }
.day-card { display:inline-flex; flex-direction:column; align-items:center; justify-content:center; min-width:48px; padding:6px 10px; background:linear-gradient(135deg,#fef2f2,#fee2e2); color:#e11d48; font-weight:600; border-radius:8px; cursor:pointer; transition:transform 0.1s, box-shadow 0.1s; border:1px solid #fecaca; line-height:1.2; }
.day-card:active { transform:scale(0.95); box-shadow:0 0 0 2px rgba(225,29,72,0.3); }
.day-card .dc-day { font-size:15px; }
.day-card .dc-oh { font-size:11px; color:#fff; background:#e11d48; padding:1px 6px; border-radius:6px; margin-top:3px; font-weight:500; letter-spacing:1px; }
.no-booking { color:#ccc; font-size:13px; padding:4px 0; }

/* ===== 图例 ===== */
.legend { display:flex; gap:16px; padding:6px 16px 14px; flex-wrap:wrap; }
.lg-item { display:flex; align-items:center; gap:6px; font-size:12px; color:#555; }
.lg-dot { width:12px; height:12px; border-radius:3px; display:inline-block; border:1px solid rgba(0,0,0,0.1); }

/* ===== 空状态 ===== */
.empty-year { padding:60px 20px; text-align:center; color:#999; font-size:15px; background:#fff; margin:20px 12px; border-radius:14px; }
.hint { padding:40px 20px; text-align:center; color:#888; font-size:13px; }
.err { margin:20px 12px; padding:14px; background:#fef2f2; border:1px solid #fecaca; border-radius:10px; color:#b91c1c; font-size:13px; text-align:center; line-height:1.6; }

/* ===== FAB ===== */
.fab { position:fixed; right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,#e11d48,#f43f5e); color:#fff; font-size:22px; border:none; box-shadow:0 4px 16px rgba(225,29,72,0.4); z-index:60; cursor:pointer; }

/* ===== 详情弹窗 ===== */
.day-mask { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:200; display:flex; align-items:flex-end; animation:fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.day-sheet { background:#fff; width:100%; max-height:80vh; border-radius:16px 16px 0 0; overflow:hidden; animation:slideUp 0.25s ease; }
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
.day-sheet-head { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid #f0f0f0; position:sticky; top:0; background:#fff; }
.day-sheet-title { font-size:16px; font-weight:700; color:#1a1a1a; }
.day-close { font-size:20px; color:#999; cursor:pointer; padding:4px 8px; }
.day-sheet-body { padding:8px 0; max-height:calc(80vh - 55px); overflow-y:auto; }

.detail-hall { padding:12px 16px; border-bottom:1px solid #f5f5f5; }
.detail-hall:last-child { border-bottom:none; }
.detail-hall-name { font-size:13px; font-weight:700; color:#e11d48; margin-bottom:8px; }
.detail-item { display:flex; align-items:center; gap:8px; padding:6px 0; }
.detail-name { font-size:15px; font-weight:600; color:#1a1a1a; }
.detail-oc { font-size:12px; color:#fff; background:#667eea; padding:2px 8px; border-radius:10px; }
.detail-no { font-size:11px; color:#999; }

/* ===== Loading ===== */
.loading { position:fixed; inset:0; background:rgba(255,255,255,0.85); display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:150; }
.loading.hidden { display:none; }
.spinner { width:32px; height:32px; border:3px solid #fecaca; border-top-color:#e11d48; border-radius:50%; animation:spin 0.8s linear infinite; }
.lt { margin-top:10px; color:#666; font-size:13px; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ===== 旧样式兼容（保留但不再使用）===== */
.empty { padding:40px 20px; text-align:center; color:#999; font-size:14px; }

/* ===== 响应式 ===== */
@media (min-width:600px) {
  body { background:#e5e7eb; }
  #root { max-width:480px; margin:0 auto; background:#f4f5f7; min-height:100vh; box-shadow:0 0 20px rgba(0,0,0,0.08); }
}

/* ===== 详情弹窗 ===== */
.detail-hall { padding:8px 16px; }
.detail-hall-name { font-size:13px; font-weight:600; color:#9ca3af; margin:12px 0 6px; letter-spacing:0.5px; }
.detail-booking { background:#fafafa; border-radius:10px; padding:12px 14px; margin-bottom:10px; border-left:3px solid #e11d48; }
.detail-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.detail-name { font-size:17px; font-weight:700; }
.detail-oc { font-size:12px; padding:2px 10px; border-radius:10px; font-weight:600; }
.detail-no { font-size:11px; color:#9ca3af; margin-left:auto; }
.detail-row { display:flex; gap:8px; font-size:13px; padding:2px 0; }
.detail-label { color:#9ca3af; min-width:68px; flex-shrink:0; }
.detail-val { color:#374151; word-break:break-all; }
.empty { text-align:center; padding:20px; color:#9ca3af; font-size:14px; }
