/* ============================================================
   macaushow v3 视觉系统 —「白底 · 明亮 · 清晰 · 卡片式演出列表」
   设计方向（用户明确 brief）：白底、明亮、清晰、方便快捷操作。
   skill 原则：遵循 brief；克制留白；信息即结构；动效最少；
   响应式 + 键盘焦点 + reduced-motion。
   色板：白底 / 浅灰表面 / 深墨文字 / 暖橙（演出海报感）/ 靛蓝（点缀）
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface2: #F6F8FB;
  --line: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --accent: #EA580C;        /* 暖橙（海报感） */
  --accent2: #4F46E5;       /* 靛蓝（点缀） */
  --ok: #16A34A;
  --bad: #DC2626;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .05);
  --font-display: Georgia, "Songti SC", "SimSun", serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 12px 0; position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 19px; font-weight: 800; color: var(--text); text-decoration: none; font-family: var(--font-display); }
.logo::before { content: "✦ "; color: var(--accent); font-size: 12px; vertical-align: 2px; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
nav a:hover { color: var(--accent); background: var(--surface2); }
nav a.nav-booking { color: #fff; background: var(--accent); font-weight: 700; padding: 6px 16px; }
nav a.nav-booking:hover { background: var(--accent2); color: #fff; }
.lang-switch { position: relative; display: inline-block; margin-left: 10px; }
.lang-btn { color: var(--muted); cursor: pointer; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.lang-btn:hover { color: var(--accent); }
.lang-menu { display: none; position: absolute; right: 0; top: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0; min-width: 132px; z-index: 40; }
.lang-menu a { display: block; color: var(--text); padding: 7px 16px; margin: 0; border-radius: 0; font-size: 13px; }
.lang-menu a:hover { background: var(--surface2); color: var(--accent); }
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { display: block; }

main { padding: 26px 0 54px; }
h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--text); }
h2 { font-family: var(--font-display); font-size: 20px; margin: 22px 0 10px; font-weight: 600; }
.lead { color: var(--muted); font-size: 15px; max-width: 660px; }

/* ---------- Hero ---------- */
.hero { padding: 22px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.hero h1 { font-size: 38px; }

/* 代订 CTA 条 */
.booking-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(120deg, #FFF4EC, #FFEFD8);
  border: 1px solid #FAD9B8; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; flex-wrap: wrap;
}
.booking-cta-text strong { display: block; font-size: 16px; color: var(--accent); margin-bottom: 4px; }
.booking-cta-text span { color: var(--muted); font-size: 13px; }
.booking-cta .btn { margin-top: 0; }
.booking-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.booking-cta-actions .btn.ghost { background: #fff; border: 1px solid var(--accent); color: var(--accent); }
.booking-cta-actions .btn.ghost:hover { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .booking-cta-actions { width: 100%; } .booking-cta-actions .btn { flex: 1; text-align: center; } }

/* ---------- 筛选 chips ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.chip { padding: 6px 16px; border-radius: 999px; background: var(--surface2); color: var(--muted); text-decoration: none; font-size: 14px; border: 1px solid transparent; }
.chip.active, .chip:hover { background: #fff; color: var(--accent); border-color: var(--accent); }

/* ---------- 演出列表：卡片式 ---------- */
.event-list { display: grid; gap: 14px; }
.event-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 210px 1fr auto; gap: 18px; padding: 14px;
  align-items: center; transition: box-shadow .15s, transform .15s;
  cursor: pointer;
}
.event-card:hover { box-shadow: 0 6px 24px rgba(15,23,42,.12); transform: translateY(-1px); }
.event-card.no-poster { grid-template-columns: 1fr auto; }
/* 海报大图 */
.event-poster { width: 210px; height: 120px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); }
.event-main h2 { font-size: 17px; margin: 0 0 5px; font-family: var(--font-body); font-weight: 700; }
.event-main h2 a { color: var(--text); text-decoration: none; }
.event-main h2 a:hover { color: var(--accent); }
.event-main .meta { font-size: 13px; }
.event-main .dates { margin-top: 6px; font-size: 13px; color: var(--muted); }
.onsale-highlight { color: var(--accent); font-weight: 700; }
.event-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.status-badge { padding: 3px 12px; border-radius: 999px; font-size: 13px; background: var(--surface2); color: var(--text); font-weight: 600; }
.status-onsale .status-badge { background: #DCFCE7; color: #15803D; }
.status-scheduled .status-badge { background: #FFF7ED; color: #C2410C; }
.status-soldout .status-badge, .status-ended .status-badge { background: #FEE2E2; color: #B91C1C; }
.price { color: var(--muted); font-size: 14px; font-family: var(--font-mono); }

/* ---------- 按钮（行动词明确） ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; font-family: var(--font-body); transition: background .15s;
}
.btn:hover { background: var(--accent2); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 详情页 ---------- */
.breadcrumb { margin-bottom: 14px; font-size: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.event-detail h1 { font-size: 28px; }
.event-hero-poster { margin: 0 0 14px; }
.event-hero-poster-img { max-width: 320px; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.event-hero-poster figcaption { margin-top: 6px; font-size: 12px; }
.info-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; background: var(--surface2); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { color: var(--muted); width: 120px; font-weight: 500; font-size: 13px; }
.channel-list { list-style: none; margin-bottom: 22px; }
.channel-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.channel-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.subscribe-cta { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.seatmap { margin: 20px 0; }
.seatmap img { border-radius: var(--radius); }
.seatmap-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.seat-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.note { font-size: 13px; margin-top: 16px; color: var(--muted); }
.muted { color: var(--muted); }
.lang-strip { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.lang-strip a { margin: 0 4px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 34px; margin-top: 30px; color: var(--muted); font-size: 13px; background: var(--surface2); }
.site-footer .container { border-radius: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .lang-switcher { margin-top: 8px; }

/* ---------- 浮动"咨询客服"按钮（全站） ---------- */
.support-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 20px rgba(234, 88, 12, .35);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.support-fab:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79, 70, 229, .3); }
.support-fab:active { transform: scale(.96); }
.support-fab:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.support-fab .fab-ico { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .support-fab, .support-fab:hover { transition: none; transform: none; } }
@media (max-width: 760px) {
  .support-fab { right: 14px; bottom: 14px; padding: 14px; }
  .support-fab .fab-label { display: none; } /* 移动端缩为圆形图标 */
}

/* ---------- 其他组件 ---------- */
.guide-list { display: grid; gap: 12px; }
.guide-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.guide-item h2 { font-size: 16px; margin: 0; }
.guide-item h2 a { color: var(--text); text-decoration: none; }
.guide-item h2 a:hover { color: var(--accent); }
.subscribe-box { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.subscribe-box h2 { font-size: 18px; margin: 16px 0 8px; }
/* 站内提醒清单（subscribe.html / reminders.html 共用） */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 12px 0; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item .title { font-weight: 600; font-size: 15px; }
.item .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--ok); color: #fff; white-space: nowrap; }
.badge.warn { background: var(--accent); color: #fff; }
.notice { border-left: 3px solid var(--accent); background: #FFF7ED; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 12px 0; }
.qr-placeholder { width: 160px; height: 160px; border: 2px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0; }
.hotels { margin-top: 10px; }
.hotel-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hotel-table th, .hotel-table td { padding: 10px 12px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.hotel-table th { color: var(--muted); font-weight: 500; background: var(--surface2); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 28px; }
  .event-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .event-poster { width: 100%; height: 150px; }
  .event-side { flex-direction: row; align-items: center; gap: 10px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
