/* ============================================================
   DancerOS 赛事地图 · 整站样式（视觉优化版 V2）
   方向：安静的产品框架 + 有个性的赛事海报 + 清晰城市日期
   说明：本文件为整体重写版，公共设计变量集中管理于 :root，
        禁止在文件末尾追加更强选择器或 !important 覆盖。
   ============================================================ */

/* ===== 01 · 设计变量 ===== */
:root {
  /* 颜色 */
  --bg:          #F6F7F9;   /* 页面底色 */
  --surface:     #FFFFFF;   /* 卡片 */
  --ink:         #19202B;   /* 主文字 */
  --ink-2:       #566174;   /* 次文字 */
  --ink-3:       #626B7B;   /* 辅助文字（保持可读） */
  --line:        #DFE3EA;   /* 分隔线 / 边框 */
  --line-strong: #C8CED9;
  --brand:       #6545CC;   /* 品牌紫：仅选中态与主操作 */
  --brand-ink:   #55409A;   /* 紫浅底上的可读紫（对比度达标） */
  --brand-soft:  #F2EEFB;   /* 紫浅底 */
  --ok:          #286344;
  --ok-soft:     #EDF5EF;
  --warn:        #885B16;
  --warn-soft:   #FBF0DD;
  --err:         #9B3045;
  --err-soft:    #F9EDF0;

  /* 尺寸 */
  --container: 1200px;
  --radius-card: 16px;
  --radius-ctrl: 10px;
  --radius-pill: 999px;
  --nav-h: 72px;            /* 桌面导航高度 */
  --nav-h-m: 56px;          /* 手机导航高度 */

  /* 阴影（轻） */
  --shadow-sm: 0 1px 2px rgba(20, 21, 26, .05);
  --shadow:    0 1px 2px rgba(20, 21, 26, .05), 0 10px 28px -18px rgba(20, 21, 26, .18);
  --shadow-md: 0 4px 16px -8px rgba(25, 32, 43, .14);
  --shadow-lg: 0 12px 40px -12px rgba(20, 21, 26, .22);

  /* 动效 */
  --t: 150ms;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ===== 02 · 基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 144px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 03 · 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
}
.brand img { height: 28px; width: auto; }
.brand .brand-sub {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding-left: 10px; border-left: 1px solid var(--line);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav .nav-link {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 14px;
  border-radius: var(--radius-ctrl);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  cursor: pointer;
}
.main-nav .nav-link:hover { color: var(--ink); background: var(--bg); }
.main-nav .nav-link.active { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
.header-cta { flex: none; display: flex; align-items: center; gap: 12px; }
.nav-account { color: var(--ink-2); font-size: 13.5px; font-weight: 550;  min-height: 44px; display: inline-flex; align-items: center;}
.nav-account:hover, .nav-account.active { color: var(--brand-ink); }

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-ctrl);
  font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn:disabled, .btn-line:disabled { background: #E9EDF3; color: var(--ink-2); border-color: #D8DEE7; opacity: 1; }
.nav-cta { min-height: 44px; padding: 0 18px; }

/* ===== 04 · 紧凑标题区（首屏信息密度优先） ===== */
.page-title {
  max-width: var(--container); margin: 0 auto;
  padding: 28px 24px 16px;
}
.page-title h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
}
.page-title .sub {
  margin-top: 8px; font-size: 14px; color: var(--ink-2);
}
/* 信息说明（可展开单行） */
.info-notice { margin-top: 2px; }
.notice-toggle {
  width: 100%; text-align: left;
  background: transparent;
  padding: 2px 0 0;
  font-size: 12px; color: var(--ink-3);
  transition: color var(--t) var(--ease);
}
.notice-toggle:hover { color: var(--ink-2); }
.notice-toggle em { font-style: normal; color: var(--brand-ink); font-weight: 600; white-space: nowrap; margin-left: 4px; }
.notice-full {
  margin-top: 8px; padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-ctrl);
  font-size: 13px; line-height: 1.8; color: var(--ink-2);
}
.notice-full h4 { font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.notice-full b { color: var(--ink); }
.notice-full a { color: var(--brand-ink); font-weight: 600; }
.notice-full a:hover { text-decoration: underline; }

/* ===== 05 · 筛选栏 ===== */
.filter-bar {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(246, 247, 249, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filter-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 8px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.filter-main {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
/* 筛选控件保持可读与可点按 */
.filter-bar .search-box input { height: 44px; }
.filter-bar .filter-select { height: 44px; }
.filter-bar .filter-toggle { height: 44px; }
.search-box { flex: 1 1 220px; position: relative; min-width: 200px; }
.search-box input {
  width: 100%; height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctrl);
  background: var(--surface);
  font-size: 14px; outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box::before {
  content: "";
  position: absolute; left: 13px; top: 50%; margin-top: -7px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239096A3' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.8-3.8'/></svg>") center/contain no-repeat;
  pointer-events: none;
}
.filter-select {
  height: 44px; padding: 0 36px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ctrl);
  background-color: var(--surface);
  font-size: 13.5px; outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23626674' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--t) var(--ease);
  max-width: 190px;
}
.filter-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.filter-select.selected { border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.filter-toggle {
  height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctrl);
  background: var(--surface);
  font-size: 13.5px; color: var(--ink-2);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.filter-toggle:hover { color: var(--ink); }
.filter-toggle::after {
  content: ""; width: 9px; height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23626674' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") center/contain no-repeat;
  transition: transform var(--t) var(--ease);
}
.filter-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.filter-toggle.has-active { border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.filter-clear {
  height: 44px; padding: 0 12px;
  font-size: 13px; color: var(--ink-2);
  border-radius: var(--radius-ctrl);
  transition: color var(--t) var(--ease);
}
.filter-clear:hover { color: var(--err); }

/* 高级筛选面板 */
.filter-adv {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.adv-group { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.adv-group + .adv-group { border-top: 1px solid var(--line); padding-top: 12px; }
.adv-label {
  flex: none; width: 44px; padding-top: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip {
  min-height: 34px; padding: 5px 14px;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  transition: all var(--t) var(--ease);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.active {
  background: var(--brand-soft); border-color: var(--brand);
  color: var(--brand-ink); font-weight: 600;
}
.chip.active::before { content: "✓"; font-size: 12px; }
.chip b { font-weight: 600; font-size: 12px; opacity: .6; margin-left: 2px; }
.adv-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.date-range { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.date-range input[type="date"] {
  height: 36px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctrl);
  background: var(--surface); font-size: 13px; outline: none;
}
.date-range input[type="date"]:focus { border-color: var(--brand); }

/* ===== 06 · 主体与列表 ===== */
.section {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 24px 40px;
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.view-switch { display: inline-flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-ctrl); padding: 2px; }
.view-switch button {
  height: 32px; padding: 0 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all var(--t) var(--ease);
}
.view-switch button.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

/* 结果条数 */
.result-info {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px; color: var(--ink-2);
}
.result-info b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.result-clear {
  font-size: 13px; color: var(--brand-ink); font-weight: 600;
  min-height: 36px; padding: 0 10px;
}
.result-clear:hover { text-decoration: underline; }

/* ===== 07 · 赛事卡片 ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.event-card:hover, .event-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.event-card.is-ended .card-cover img,
.event-card.is-ended .cover-card { opacity: .82; }
.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #EEF0F4;
  overflow: hidden;
}
.card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  /* 无封面时回退原海报：顶部偏置裁切（标题/主视觉区），避免中心裁到二维码/奖金区 */
  object-position: 50% 15%;
}
.cover-flag {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.cover-flag.today { background: var(--warn-soft); color: var(--warn); }
.cover-flag.ended { background: rgba(20, 21, 26, .55); color: #fff; }
.card-body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.card-name {
  font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.card-when {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.card-when .sep { color: var(--line-strong); }
.card-venue {
  font-size: 13px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-src {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 8px;
}

/* 备用封面（无海报赛事）：深色极简底，明显弱于真实海报，仅保证布局完整 */
.cover-card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  padding: 16px 18px;
  background: linear-gradient(160deg, #1C1D23, #101116);
  color: #E7E8EC;
}
.cover-card .cc-mark {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: rgba(231, 232, 236, .38);
}
.cover-card .cc-mark img { width: 13px; height: 13px; border-radius: 3px; opacity: .5; }
.cover-card .cc-name {
  font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-card .cc-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.cover-card .cc-meta .cc-dot { color: #45474F; }
.cover-card.big .cc-name { font-size: 22px; -webkit-line-clamp: 3; color: var(--ink); }
.cover-card.big .cc-meta { font-size: 14px; }
/* 图片核验中提示卡 */
.poster-review {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #F0F1F5; color: var(--ink-2);
  padding: 16px; text-align: center;
}
.poster-review .pr-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
}
.poster-review .pr-text { font-size: 12.5px; font-weight: 500; }

/* 骨架屏（与卡片同形） */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.sk {
  background: linear-gradient(90deg, #EEF0F4 25%, #F6F7F9 45%, #EEF0F4 65%);
  background-size: 220% 100%;
  animation: sk-shimmer 1.4s ease infinite;
}
@keyframes sk-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sk-cover { aspect-ratio: 16 / 9; }
.sk-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 14px; border-radius: 6px; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-line.w40 { width: 40%; height: 11px; }

/* 空状态 / 错误状态 */
.empty-state, .error-state {
  text-align: center; padding: 72px 20px;
  color: var(--ink-2);
}
.empty-state .es-title, .error-state .es-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.empty-state .es-sub, .error-state .es-sub { font-size: 13.5px; margin-top: 6px; color: var(--ink-2); }
.empty-state .btn, .error-state .btn { margin-top: 18px; }

/* ===== 08 · 详情视图 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 21, 26, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn var(--t) var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-card);
  width: min(90vw, 1360px);
  height: 92vh;
  max-width: none;
  max-height: 94vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 180ms var(--ease);
}
@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t) var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
/* 顶部主视觉：桌面约占弹层 30-35% 高度，内容区独立滚动 */
.modal-banner {
  flex: none;
  width: 100%;
  height: clamp(240px, 32vh, 340px);
  background: #101116;
  overflow: hidden;
}
.modal-banner .mb-media { position: relative; width: 100%; height: 100%; }
.modal-banner .mb-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* 回退原海报时顶部偏置裁切（与卡片一致），禁止中心裁到二维码/奖金区 */
  object-position: 50% 15%;
}
.modal-banner .mb-media .poster-review { position: absolute; inset: 0; }
.modal-info {
  flex: 1; min-height: 0;
  padding: 28px clamp(28px, 4vw, 54px) 34px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.modal-info h2 {
  font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
/* 状态小标记（至多一个） */
.mi-statusline { display: flex; align-items: center; }
.mi-state {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
}
.mi-state.today { background: var(--warn-soft); color: var(--warn); }
.mi-state.ended { background: #EEF0F4; color: var(--ink-2); }
/* 来源说明：低视觉权重，一行小字，点击展开 */
.src-details { font-size: 12.5px; color: var(--ink-3); }
.src-details summary {
  cursor: pointer; color: var(--ink-3);
  list-style: none; min-height: 28px; display: flex; align-items: center;
}
.src-details summary::-webkit-details-marker { display: none; }
.src-details summary::before { content: "▾"; font-size: 12px; margin-right: 5px; color: var(--line-strong); transition: transform var(--t) var(--ease); }
.src-details:not([open]) summary::before { transform: rotate(-90deg); }
.src-details summary:hover { color: var(--ink-2); }
.src-details .src-body {
  padding: 8px 0 2px 15px;
  display: flex; flex-direction: column; gap: 6px;
}
.src-details .src-body p { font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.src-details .src-body a { color: var(--brand-ink); font-weight: 600; }
.src-details .src-body a:hover { text-decoration: underline; }
.mi-block { display: flex; flex-direction: column; gap: 8px; }
.mi-block h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3);
}
.mi-row { display: flex; gap: 12px; font-size: 14.5px; align-items: baseline; }
.mi-row .k { flex: none; width: 62px; font-size: 12.5px; color: var(--ink-3); }
.mi-row .v { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.mi-row .v.strong { font-size: 16px; font-weight: 700; }
.mi-row .v.dim { color: var(--ink-2); font-size: 13.5px; }
.mi-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mi-tags span {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 4px 11px;
}
.mi-tags .more {
  color: var(--brand-ink); font-weight: 600; cursor: pointer;
  background: var(--brand-soft); border-color: transparent;
}
.modal-desc {
  font-size: 14px; line-height: 1.75; color: var(--ink-2);
  white-space: pre-wrap;
}
.mi-divider { border: none; border-top: 1px solid var(--line); }
/* 主操作 */
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* 主办方模块 + 认领小入口 */
.org-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-ctrl);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.org-block .org-name { font-weight: 700; }
.org-block .org-claim {
  font-size: 13px; color: var(--brand-ink); font-weight: 600;
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 2px;
  align-self: flex-start;
}
.org-block .org-claim:hover { text-decoration: underline; }
.org-block .org-cert {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 12px; font-weight: 700;
}
/* 信息末尾：纠错等小入口 */
.mi-links { display: flex; gap: 14px; flex-wrap: wrap; }
.mi-links a { font-size: 13px; color: var(--ink-2); font-weight: 500; min-height: 36px; display: inline-flex; align-items: center; }
.mi-links a:hover { color: var(--ink); text-decoration: underline; }
/* 赛事海报模块：完整原海报，保持原始宽高比，居中，桌面端最大 560px（不铺满弹窗）。
 * 白色背景独立内容区：上边分隔线与前方信息块区隔，不套横向图片容器 */
.poster-block {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.poster-block[hidden] { display: none; }
.poster-block h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3);
}
.pb-figure {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pb-figure img {
  display: block;
  width: auto; height: auto;
  max-width: min(560px, 100%);
  max-height: min(58vh, 720px);
  object-fit: contain; /* 完整海报：禁 cover/裁切/拉伸，保持原始宽高比 */
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(16, 17, 22, .06);
  cursor: zoom-in;
  transition: box-shadow var(--t) var(--ease);
}
.pb-figure img:hover { box-shadow: 0 4px 16px rgba(16, 17, 22, .12); }
.pb-figure img:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.pb-figure figcaption {
  font-size: 12px; line-height: 1.6; color: var(--ink-3);
  text-align: center; max-width: 560px;
}
/* 多海报缩略图行（V1.1）：主图下方，点击切换 */
.pb-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 10px;
}
.pb-thumbs[hidden] { display: none; }
.pb-thumb {
  width: 56px; height: 74px; padding: 0;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: var(--surface); cursor: pointer;
  transition: border-color var(--t) var(--ease);
}
.pb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-thumb:hover { border-color: var(--line-strong); }
.pb-thumb.active { border-color: var(--brand); }
/* 权利与信息说明 */
.modal-rights {
  border-top: 1px dashed var(--line-strong);
  padding-top: 12px;
  font-size: 12px; color: var(--ink-3);
}
.modal-rights summary {
  cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 12.5px;
  list-style: none; min-height: 32px; display: flex; align-items: center;
}
.modal-rights summary::-webkit-details-marker { display: none; }
.modal-rights summary::before { content: "▸"; margin-right: 4px; }
.modal-rights[open] summary::before { content: "▾"; }
.rights-body { padding-top: 6px; line-height: 1.8; }
.rights-body p { margin-bottom: 6px; }
/* 海报全图查看层：深色半透明背景，contain 原比例（禁 cover），可缩放/拖拽 */
.poster-viewer {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(16, 17, 22, .88);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  overflow: hidden;
}
.poster-viewer img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-ctrl);
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
}
.poster-viewer img.is-zoomed { cursor: grabbing; }
/* 右上角固定关闭按钮 */
.pv-close {
  position: fixed; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #18191C;
  box-shadow: var(--shadow-sm);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.pv-close:hover { transform: rotate(90deg); background: #fff; }
.pv-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* 操作提示：低权重小字，几秒后淡出 */
.pv-hint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 2;
  font-size: 12px; color: #E0E5EE;
  background: rgba(16, 17, 22, .5);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  pointer-events: none;
  animation: pvHint 5s var(--ease) forwards;
}
@keyframes pvHint {
  0%, 60% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ===== 09 · 地区分布 ===== */
.region-map {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.region-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.region-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.region-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.region-head h3 { font-size: 16px; font-weight: 700; }
.region-head .rc { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.region-head .rc small { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }
.city-list { display: flex; flex-wrap: wrap; gap: 6px; }
.city-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px; font-size: 12.5px; color: var(--ink);
  cursor: pointer; min-height: 30px;
  transition: all var(--t) var(--ease);
}
.city-tag:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.city-tag b { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.region-empty { color: var(--ink-3); font-size: 13px; }

/* ===== 10 · 办赛提示区 + 页脚 ===== */
.host-cta {
  max-width: var(--container); margin: 8px auto 0;
  padding: 0 24px 48px;
}
.host-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}
.host-cta-inner h3 { font-size: 16px; font-weight: 700; }
.host-cta-inner p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 44px 24px 28px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--ink-2); line-height: 1.7; max-width: 320px; }
.footer-col h5 {
  font-size: 12px; letter-spacing: .1em; color: var(--ink-3);
  font-weight: 700; margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); transition: color var(--t) var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--container); margin: 28px auto 0;
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--ink-3);
}

/* ===== 11 · 响应式 ===== */
@media (max-width: 1023px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .region-map { grid-template-columns: repeat(2, 1fr); }
  .modal { width: 92vw; height: 92vh; flex-direction: column; overflow: hidden; }
  .modal-banner { flex: none; height: clamp(220px, 31vh, 300px); }
  .modal-info { padding: 22px 24px 30px; overflow-y: auto; }
}
@media (max-width: 639px) {
  :root { --nav-h: var(--nav-h-m); }
  .header-inner {
    height: auto; flex-wrap: wrap;
    padding: 8px 16px;
    row-gap: 0;
  }
  .header-inner > .main-nav {
    order: 3; width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .main-nav .nav-link { flex: none; padding: 0 12px; }
  .nav-account { font-size: 13px; }
  .header-cta { margin-left: auto; }
  .brand img { height: 24px; }
  .page-title { padding: 12px 16px 8px; }
  .page-title h1 { font-size: 27px; }
  .filter-inner { padding: 8px 16px; }
  .filter-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .search-box { grid-column: 1 / -1; min-width: 0; }
  .filter-main > .filter-select { max-width: none; width: 100%; min-width: 0; }
  .filter-main > #sortSelect { grid-column: 1 / -1; }
  .filter-toggle { width: 100%; min-width: 0; justify-content: center; }
  .filter-clear { width: 100%; min-width: 0; }
  .section { padding: 16px 16px 32px; }
  .events-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-body { padding: 14px; }
  .card-name { font-size: 16px; }
  .region-map { grid-template-columns: 1fr; }
  .modal-mask { padding: 0; }
  .modal {
    width: 100vw; height: 100vh; height: 100dvh;
    max-width: none; max-height: none;
    border-radius: 0;
  }
  .modal-close { position: fixed; top: 12px; right: 12px; width: 40px; height: 40px; }
  .modal-banner { height: clamp(190px, 30vh, 260px); }
  .modal-info { padding: 18px 16px 32px; overflow-y: auto; }
  .modal-info h2 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .host-cta { padding: 0 16px 32px; }
  .poster-viewer { padding: 12px; }
  .poster-viewer img { max-width: 90vw; max-height: 88vh; }
  .pv-close { top: 12px; right: 12px; width: 36px; height: 36px; }
  /* 移动端：完整海报 = 100vw - 32px（左右边距 16px），保持原比例，页面自然滚动，禁止固定高度 */
  .pb-figure img { width: calc(100vw - 32px); max-width: 100%; max-height: 62vh; height: auto; }
  .pb-figure figcaption { max-width: 100%; }
}
@media (max-width: 359px) {
  .filter-main { grid-template-columns: 1fr; }
  .filter-main > #sortSelect, .search-box { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   通用表单页（request / submit / my-events / legal 共用）
   —— 类名保留，视觉并入新令牌体系
   ============================================================ */
.page-wrap {
  max-width: 860px; margin: 0 auto; padding: 28px 24px 90px;
}
.form-wrap-narrow { max-width: 760px; }
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius-ctrl);
  background: var(--surface); margin-bottom: 18px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.page-back:hover { color: var(--ink); border-color: var(--line-strong); }
.page-head { margin-bottom: 22px; }
.page-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.015em; margin: 8px 0 6px; }
.page-head .lead { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-3);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.form-card + .form-card { margin-top: 16px; }
.form-card h3 { font-size: 16px; margin-bottom: 14px; }
.form-card h3 .sub { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 8px; }

.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fgrid2 .full, .fgrid2 .fullw { grid-column: 1 / -1; }
@media (max-width: 639px) { .fgrid2 { grid-template-columns: 1fr; } }

.fitem2 { display: flex; flex-direction: column; }
.fitem2 label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.fitem2 label .req { color: var(--err); margin-left: 2px; }
.fitem2 input, .fitem2 select, .fitem2 textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctrl);
  font-size: 15px; background: #F8F9FB; outline: none; font-family: inherit;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.fitem2 textarea { min-height: 84px; resize: vertical; }
.fitem2 input:focus, .fitem2 select:focus, .fitem2 textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.fitem2 .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.fitem2 .field-error { font-size: 12.5px; color: var(--err); margin-top: 4px; display: none; }
.fitem2.has-error input, .fitem2.has-error select, .fitem2.has-error textarea { border-color: var(--err); }
.fitem2.has-error .field-error { display: block; }

.declare-box {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: var(--radius-ctrl);
  padding: 16px 18px; margin: 18px 0 4px;
}
.declare-box h4 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.declare-box ol { margin: 0 0 12px 18px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); list-style: decimal; }
.declare-box.has-error { border-color: var(--err); }
.declare-box .field-error { font-size: 12.5px; color: var(--err); margin-top: 4px; display: none; }
.declare-box.has-error .field-error { display: block; }
.checkline {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13px;
  color: var(--ink); margin: 8px 0; cursor: pointer; line-height: 1.6;
}
.checkline input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--brand); flex-shrink: 0; }
.privacy-note {
  font-size: 12px; color: var(--ink-3); line-height: 1.8;
  background: var(--bg); border-radius: var(--radius-ctrl); padding: 10px 14px; margin-top: 14px;
}
.ban-note {
  font-size: 12px; color: var(--err); line-height: 1.8;
  border: 1px dashed var(--err); border-radius: var(--radius-ctrl); padding: 10px 14px; margin-top: 14px;
}
/* 我要办赛 · 多海报预览列表（V1.1） */
.poster-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.poster-item {
  position: relative; width: 92px; height: 122px;
  border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden;
  background: var(--surface);
}
.poster-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-tag {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-size: 12px; text-align: center; padding: 2px 0;
  background: rgba(0,0,0,.55); color: #fff;
}
.poster-del {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 20px;
  padding: 0; cursor: pointer;
}
.poster-del:hover { background: var(--err); }
.poster-count { width: 100%; font-size: 12px; color: var(--ok); }

.submit-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.btn-big {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 32px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--radius-ctrl); cursor: pointer;
  transition: background var(--t) var(--ease), opacity var(--t) var(--ease);
}
.btn-big:hover:not(:disabled) { background: var(--brand-ink); }
.btn-big:disabled { opacity: 1; background: #E9EDF3; color: var(--ink-2); cursor: not-allowed; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctrl); cursor: pointer;
  transition: all var(--t) var(--ease);
}
.btn-line:hover { color: var(--ink); border-color: var(--ink-2); }

/* 两选一入口卡 */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
@media (max-width: 639px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.choice-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-ctrl);
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 14px; font-weight: 800; margin-bottom: 2px;
}
.choice-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.choice-card h3 { font-size: 18px; }
.choice-card p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.choice-card .go { font-size: 13px; font-weight: 700; color: var(--brand-ink); margin-top: 6px; }

/* 状态徽章（我的赛事 / 后台通用） */
.stag {
  display: inline-block; font-size: 12px; font-weight: 700;
  border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap;
}
.stag.draft       { background: var(--bg); color: var(--ink-2); }
.stag.pending_review, .stag.submitted, .stag.reviewing { background: var(--warn-soft); color: var(--warn); }
.stag.approved, .stag.published, .stag.verified { background: var(--ok-soft); color: var(--ok); }
.stag.rejected    { background: var(--err-soft); color: var(--err); }
.stag.changes_pending, .stag.need_more_info, .stag.disputed { background: var(--brand-soft); color: var(--brand-ink); }
.stag.withdrawn, .stag.hidden, .stag.removed { background: var(--line); color: var(--ink-2); }
.stag.expired     { background: var(--bg); color: var(--ink-2); }
.stag.completed   { background: #E3EDF8; color: #1F5F8B; }

/* 我的 */
.my-section { margin-top: 24px; }
.my-section + .my-section { margin-top: 32px; }
.my-section-head {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-end;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.my-section-head h3 { margin: 0; font-size: 17px; }
.my-section-head p { margin: 5px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.my-section h4 { margin: 18px 0 10px; font-size: 14px; color: var(--ink-2); }
.me-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 20px; margin-bottom: 14px;
}
.me-card.compact { padding: 16px 18px; }
.me-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.me-head h4 { font-size: 15.5px; flex: 1; min-width: 200px; }
.me-meta { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.me-status-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.me-note {
  font-size: 12.5px; color: var(--warn); background: var(--warn-soft);
  border-radius: var(--radius-ctrl); padding: 8px 12px; margin-top: 8px; line-height: 1.6;
}
.me-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* 法务页 */
.legal-sec { margin-bottom: 26px; }
.legal-sec h3 { font-size: 18px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-sec h4 { font-size: 14.5px; margin: 14px 0 6px; }
.legal-sec p, .legal-sec li { font-size: 13.5px; color: var(--ink-2); line-height: 2; }
.legal-sec ul, .legal-sec ol { margin: 4px 0 4px 20px; list-style: disc; }
.legal-toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 20px; margin-bottom: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.legal-toc a { font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.legal-toc a:hover { text-decoration: underline; }

/* 成功结果页 */
.ok-panel {
  text-align: center; padding: 48px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.ok-panel h3 { font-size: 20px; margin: 12px 0 8px; }
.ok-panel p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.ok-panel .rid {
  display: inline-block; font-family: Consolas, monospace; font-size: 13px; font-weight: 700;
  background: var(--bg); border-radius: 6px; padding: 4px 12px; margin-top: 8px;
}
.ok-panel .oi {
  width: 52px; height: 52px; margin: 0 auto;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* 编辑弹窗（我的赛事 / 后台共用） */
.edit-modal {
  width: 100%; max-width: 720px; max-height: 90vh; overflow: auto;
  background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}
.edit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.edit-head h2 { font-size: 18px; font-weight: 700; }
.edit-close {
  width: 36px; height: 36px; flex-shrink: 0; border: none; border-radius: 50%;
  background: var(--bg); color: var(--ink-2); font-size: 17px; line-height: 1; cursor: pointer;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.edit-close:hover { color: var(--ink); background: var(--line); }
.edit-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.btn-cancel, .btn-save {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 22px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-ctrl); cursor: pointer; border: 1px solid transparent;
}
.btn-cancel { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-cancel:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-save { background: var(--brand); color: #fff; }
.btn-save:hover { background: var(--brand-ink); }

/* ============================================
   全国赛事分布图（地图视图，单列中国地图）
   - 上：地区快速筛选 chips
   - 中：深色画布 + 真实省界（事件数热力）+ 城市光点 + 九段线
   - 下：同筛选条件下的赛事卡片（与列表视图同步）
   - 全站白底导航保持不变
   ============================================ */

/* 地区快速筛选 chips（地图视图标题下方一行） */
.region-quick {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 12px;
  padding: 2px 0;
}
.rq-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .15s ease-out;
}
.rq-chip b { color: inherit; font-weight: 700; }
.rq-chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px;
  font-size: 12px; font-weight: 700;
  background: var(--bg); color: var(--ink-3);
  border-radius: 999px; font-variant-numeric: tabular-nums;
}
.rq-chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.rq-chip:hover span { background: var(--brand-soft); color: var(--brand-ink); }
.rq-chip.active { background: var(--brand); border-color: var(--brand); color: #FFF; }
.rq-chip.active span { background: rgba(255,255,255,.22); color: #FFF; }
.rq-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 地图区：左 ~70% 全国地图 + 右 ~30% 城市赛事面板（桌面端） */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 14px;
  margin: 0 0 18px;
  align-items: stretch;
}

/* 地图主图：桌面端固定高度 420–480px（SVG 等比缩放居中，不裁切边界） */
.china-map {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  height: clamp(420px, 48vh, 480px);
}
.china-map-stage {
  position: relative;
  width: 100%; height: auto; flex: 1; min-height: 0; padding-bottom: 42px;
}
.cm-svg { width: 100%; height: 100%; display: block; }
.china-map-empty { padding: 80px 24px; text-align: center; color: var(--ink); font-size: 14px; }
.china-map-attrib {
  position: static;
  right: 14px; bottom: 10px;
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; max-width: 100%; line-height: 1.5;
  pointer-events: none;
}

/* 省份：fill 由内联决定，stroke 在 CSS 内统一 */
.cm-prov { cursor: pointer; transition: opacity .2s ease-out, filter .2s ease-out; }
.cm-prov .cm-prov-path { fill: inherit; stroke: #B2A9CC; stroke-width: .6; stroke-linejoin: round; transition: all .2s ease-out; }
.cm-prov:hover .cm-prov-path { stroke: var(--brand-ink); stroke-width: 1.2; filter: none; }
.cm-prov.is-active .cm-prov-path { stroke: var(--brand-ink); stroke-width: 1.6; filter: none; }
.cm-prov.is-dim { opacity: .35; }
.cm-prov:focus { outline: none; }
.cm-prov:focus-visible .cm-prov-path { stroke: var(--brand-ink); stroke-width: 1.5; }

/* 九段线 */
.cm-jd { fill: none; stroke: #7F7891; stroke-width: .8; stroke-linecap: round; stroke-dasharray: 4 3; opacity: .8; }

/* 城市光点 */
.cm-city { cursor: pointer; transition: transform .15s ease-out; transform-box: fill-box; transform-origin: center; }
.cm-city:hover { transform: scale(1.08); }
.cm-city:focus { outline: none; }
.cm-city:focus-visible .cm-city-pulse { stroke: var(--brand-ink); stroke-width: 2; }
.cm-city-pulse {
  fill: rgba(101, 69, 204, .12);
  stroke: rgba(101, 69, 204, .35);
  stroke-width: 1;
  transition: all .25s ease-out;
}
.cm-city-core {
  fill: #6545CC;
  filter: none;
  transition: all .25s ease-out;
}
.cm-city-label {
  fill: var(--ink);
  font-size: 22px; font-weight: 600;
  paint-order: stroke fill;
  stroke: var(--brand-ink); stroke-width: 3; stroke-linejoin: round;
  pointer-events: none;
  opacity: 0; transition: opacity .15s ease-out;
}
/* 标签密度：重点城市常驻显示，其余 hover / 聚焦 / 选中时显示 */
.cm-city.is-key .cm-city-label { opacity: 1; }
.cm-city:hover .cm-city-label,
.cm-city:focus-visible .cm-city-label,
.cm-city.is-active .cm-city-label { opacity: 1; }
.cm-city-num { fill: var(--brand-ink); font-weight: 700; }
.cm-city.is-active .cm-city-core { fill: var(--brand-ink); filter: none; }
.cm-city.is-active .cm-city-pulse { fill: rgba(101, 69, 204, .35); stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; }

/* 图例 */
.cm-legend {
  position: absolute;
  left: 16px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(101, 69, 204, .25);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
  pointer-events: none;
}
.cm-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.cm-legend-tip { margin-left: 4px; }

/* ===== 城市赛事面板（地图右栏）===== */
.city-panel {
  display: flex; flex-direction: column;
  min-height: 0;
  height: clamp(420px, 48vh, 480px);   /* 与左栏地图同高，不被内容撑开 */
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.cp-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-title b { color: var(--ink); font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.cp-title span { color: var(--ink-2); font-size: 12px; }
.cp-clear {
  flex: none; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(101, 69, 204, .35); border-radius: 999px;
  background: rgba(101, 69, 204, .12);
  color: var(--brand-ink); font-size: 12px; cursor: pointer;
  transition: all .15s ease-out;
}
.cp-clear:hover { background: rgba(101, 69, 204, .28); color: var(--brand-ink); }
.cp-body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 6px 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: #B2A9CC transparent;
}
.cp-body::-webkit-scrollbar { width: 6px; }
.cp-body::-webkit-scrollbar-thumb { background: #B2A9CC; border-radius: 3px; }

/* 城市排行行 */
.cp-city {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease-out;
 min-height: 44px;}
.cp-city:hover { background: rgba(101, 69, 204, .14); }
.cp-city:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cp-city.is-active { background: rgba(101, 69, 204, .22); }
.cp-rank {
  flex: none; width: 20px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cp-rank.top { color: var(--brand-ink); }
.cp-cityname {
  flex: 1; min-width: 0;
  color: var(--ink); font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-count {
  flex: none;
  min-width: 22px; height: 18px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--brand-ink);
  background: rgba(101, 69, 204, .18);
  border-radius: 999px;
}

/* 城市赛事行（选中城市后） */
.cp-event {
  display: flex; align-items: center; gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease-out;
}
.cp-event:hover { background: rgba(101, 69, 204, .14); }
.cp-event:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cp-cover {
  flex: none; width: 44px; height: 44px;
  border-radius: 7px; overflow: hidden;
  background: var(--brand-soft);
  border: 1px solid #B2A9CC;
}
.cp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cp-name {
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-meta {
  color: var(--ink-2); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-flag {
  flex: none; font-size: 12px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px;
}
.cp-flag.today { color: var(--ok); background: rgba(52, 199, 123, .18); }
.cp-flag.ended { color: var(--ink-2); background: rgba(140, 145, 168, .18); }
.cp-none { padding: 18px 10px; text-align: center; color: var(--ink-2); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  .cm-prov, .cm-prov .cm-prov-path, .cm-city, .cm-city-pulse, .cm-city-core { transition: none !important; }
  .cm-prov:hover .cm-prov-path, .cm-city:hover { transform: none; }
}

/* 平板及以下：地图 + 面板上下堆叠 */
@media (max-width: 960px) {
  .map-layout { grid-template-columns: 1fr; }
  .china-map { height: auto; }
  .china-map-stage { aspect-ratio: 1000 / 720; height: auto; }
  .city-panel { height: auto; max-height: 380px; }
}
@media (max-width: 480px) {
  .cm-city-label { display: none; }
  .region-quick { gap: 6px; }
  .rq-chip { padding: 6px 11px; font-size: 12.5px; }
  .cm-legend { font-size: 12px; padding: 5px 10px; }
  .china-map-attrib { font-size: 12px; max-width: 100%; }
  .city-panel { max-height: 320px; }
  .cp-event { gap: 8px; }
  .cp-cover { width: 38px; height: 38px; }
}

/* ===== 赛事档案 / 比赛结果（V1）===== */
/* 卡片封面「赛事档案」标记：品牌深色，与今日开赛/已结束并列 */
.cover-flag.archived { background: var(--brand-ink, #1F2A44); color: #fff; }
/* 详情页状态行「赛事档案」 */
.mi-state.archived { background: var(--brand-soft, #E8EEF9); color: var(--brand-ink, #1F2A44); font-weight: 600; }
/* 详情页【比赛结果】模块（与海报模块同样式骨架） */
.archive-result-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-bottom: 12px;
}
.archive-result-summary div {
  padding: 10px 11px; border: 1px solid var(--line);
  border-radius: var(--radius-ctrl); background: var(--bg);
}
.archive-result-summary strong {
  display: block; color: var(--ink); font-size: 15px;
  line-height: 1.3; overflow-wrap: anywhere;
}
.archive-result-summary span {
  display: block; margin-top: 4px; color: var(--ink-3);
  font-size: 12px; font-weight: 600;
}
.result-block .result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
/* 分享浮层：链接 + 二维码 */
.share-mask {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(15, 16, 20, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.share-mask[hidden] { display: none; }
.share-card {
  position: relative; width: min(400px, 92vw);
  background: var(--surface, #fff); border-radius: 16px;
  padding: 26px 26px 22px; text-align: center;
  box-shadow: 0 24px 64px rgba(10, 12, 20, .28);
}
.share-card h4 { margin: 0 0 16px; font-size: 16px; }
.share-close {
  position: absolute; top: 10px; right: 12px;
  border: none; background: none; font-size: 22px; line-height: 1;
  color: var(--ink-3, #999); cursor: pointer; padding: 4px;
}
.share-close:hover { color: var(--ink, #222); }
.share-url-row { display: flex; gap: 8px; }
.share-url-row input {
  flex: 1; min-width: 0; padding: 9px 12px; font-size: 12.5px;
  border: 1px solid var(--line, #DCD8D0); border-radius: 8px;
  color: var(--ink-2, #666); background: var(--bg, #F7F5F1);
}
.share-qr-wrap { margin: 18px auto 10px; width: max-content; }
.share-qr-wrap img {
  width: 180px; height: 180px; display: block;
  border: 1px solid var(--line, #E5E1DA); border-radius: 10px; padding: 6px; background: #fff;
}
.share-qr-wrap img[hidden] { display: none; }
.share-tip { margin: 6px 0 0; font-size: 12px; color: var(--ink-3, #999); line-height: 1.7; }

/* ===== 结果纠错表单（request.html result_correction）===== */
/* .fitem2 的 display:flex 会覆盖 hidden 属性，这里显式恢复 */
.fitem2[hidden] { display: none; }
.rc-title {
  font-size: 13.5px; font-weight: 700; color: var(--ink, #222);
  padding-bottom: 8px; margin-bottom: 2px;
  border-bottom: 1px dashed var(--line-strong, #D8D2C8);
}
.rc-title .sub { font-weight: 400; color: var(--ink-3, #999); font-size: 12px; margin-left: 6px; }
#rcBlock { padding: 14px; border: 1px solid var(--line-strong, #E0DAD0); border-radius: 12px; background: var(--bg, #FAF8F5); }


/* Touch targets and small-screen form spacing */
@media (max-width: 640px), (pointer: coarse) {
  .btn-sm, .chip, .view-btn, .sort-btn, .city-tag, .rq-chip, .page-back, .mi-links a, .mi-claim, .src-details summary, .rights-details summary, .notice-toggle { min-height: 44px; }
  .modal-close, .edit-close, .pv-close, .share-close { min-width: 44px; min-height: 44px; }
  .fitem2 input, .fitem2 select, .fitem2 textarea { font-size: 16px; }
}
@media (max-width: 640px) {
  .archive-result-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-wrap { padding: 24px 16px calc(48px + env(safe-area-inset-bottom)); }
  .form-card { padding: 22px 18px; }
  .form-card h3 .sub { display: block; margin: 6px 0 0; }
  .submit-row > .btn-big { width: 100%; }
  .filter-bar { position: static; }
  .page-title { padding-top: 22px; }
}
