/* ==========================================================
   赛事通 · 前台样式（Mobile First）
   断点：base=手机  ≥640 平板竖屏  ≥768 平板横屏  ≥1024 桌面
   ========================================================== */
:root {
  --primary: #2456e6;
  --primary-2: #4d7bff;
  --primary-dark: #16307f;
  --accent: #ff7a2f;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #8a94a6;
  --line: #e6eaf2;
  --bg: #f6f8fc;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(16, 24, 40, .06);
  --nav-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, li { margin: 0; padding: 0; list-style: none; }

/* 网格子项允许收缩，防止宽表格把布局撑出横向滚动 */
.hero-grid > *, .grid-3 > *, .grid-4 > *, .steps > *,
.two-col > *, .detail-grid > *, .center-grid > *,
.form-grid-2 > *, .fgroup-grid > *, .stand-wrap > * { min-width: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-muted { color: var(--ink-3); }
.text-primary { color: var(--primary); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-12 { margin-bottom: 12px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .22s; white-space: nowrap;
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: linear-gradient(135deg, #ff8a3d, #ff6b2c); color: #fff; box-shadow: 0 10px 22px rgba(255, 107, 44, .3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(255, 107, 44, .38); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: #1b46c8; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .38); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-line:hover { border-color: var(--primary); color: var(--primary); }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.badge-orange { background: #fff2e8; color: #d4520f; }
.badge-blue { background: #eaf0ff; color: #2456e6; }
.badge-green { background: #e7f7ef; color: #12805c; }
.badge-gray { background: #f1f3f7; color: #6b7485; }
.badge-red { background: #fdecec; color: #d93636; }

.alert { padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.8; }
.alert-info { background: #eef2ff; color: #1e46c0; }
.alert-warn { background: #fff7e8; color: #a35c00; }
.alert-success { background: #e8f8f0; color: #0d7a4f; }

/* ---------------- 顶部导航（移动端：汉堡抽屉） ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; height: var(--nav-h); gap: 10px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: .5px; min-width: 0; }
.logo > span:last-child { min-width: 0; }
.logo-mark {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(36, 86, 230, .3);
}
.logo small { display: none; }

/* 移动端菜单：下拉抽屉 */
.nav-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(16, 24, 40, .12);
  padding: 6px 12px 12px;
}
.nav-menu.open { display: block; }
.nav-menu a {
  display: block; padding: 13px 14px; border-radius: 10px;
  color: var(--ink-2); font-size: 15px; font-weight: 500;
}
.nav-menu a + a { margin-top: 2px; }
.nav-menu a:hover { color: var(--primary); background: #f0f4ff; }
.nav-menu a.active { color: var(--primary); background: #eef2ff; font-weight: 600; }

.nav-user { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-user .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.nav-user .btn-logout { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 9px; flex: none;
  background: transparent; border: 0; border-radius: 9px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero（移动端上下堆叠） ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #0c1730 0%, #16305f 42%, #2456e6 100%);
  padding: 44px 0 92px;
}
.hero::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 122, 47, .38), transparent 62%);
}
.hero::after { content: none; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px; color: #d6e2ff; margin-bottom: 16px;
}
.hero h1 { font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -.3px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb27a, #ff7a2f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 14px; font-size: 14px; line-height: 1.9; color: #c3d2ee; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1; min-width: 140px; }
.hero-note { margin-top: 20px; display: flex; gap: 14px; font-size: 12.5px; color: #9db2d8; flex-wrap: wrap; }
.hero-note span { display: flex; align-items: center; gap: 6px; }

.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px; padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(5, 15, 40, .35);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; font-size: 13px; color: #cfdcf5; }
.hero-card {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); margin-bottom: 8px; transition: .22s;
}
.hero-card:hover { background: rgba(255, 255, 255, .13); }
.hero-card:last-child { margin-bottom: 0; }
.hero-card .date {
  width: 48px; flex: none; text-align: center; background: rgba(255, 255, 255, .12);
  border-radius: 9px; padding: 6px 0; line-height: 1.2;
}
.hero-card .date b { display: block; font-size: 17px; }
.hero-card .date span { font-size: 11px; color: #b9caea; }
.hero-card .info { min-width: 0; }
.hero-card .info h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card .info p { font-size: 12px; color: #a9bce0; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 数据统计（移动端 2×2） ---------------- */
.stats {
  position: relative; z-index: 3; margin-top: -56px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 0;
  background: #fff; border-radius: 16px; padding: 18px 6px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .1);
}
.stat { text-align: center; padding: 4px 8px; }
.stat:nth-child(2n) { border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 14px; }
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat span { font-size: 12px; color: var(--ink-3); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 44px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.section-head .eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 2px; color: var(--primary);
  font-weight: 700; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.section-head p { margin-top: 8px; color: var(--ink-3); font-size: 13.5px; }

/* 移动端：全部单列 */
.grid-3, .grid-4, .steps { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* 功能模块卡片 */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 24, 40, .09); border-color: #d5e0f8; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; background: #eef2ff; color: var(--primary); margin-bottom: 14px;
}
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }

/* ---------------- 赛事卡片 ---------------- */
.comp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .25s;
}
.comp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16, 24, 40, .1); }
.comp-cover {
  position: relative; height: 138px; padding: 14px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #16305f, #2456e6); color: #fff; overflow: hidden;
}
.comp-cover.c1 { background: linear-gradient(135deg, #1b3b7a, #2f6bff); }
.comp-cover.c2 { background: linear-gradient(135deg, #7a2d0e, #ff7a2f); }
.comp-cover.c3 { background: linear-gradient(135deg, #0f5132, #17a673); }
.comp-cover.c4 { background: linear-gradient(135deg, #3b1d6e, #7c4dff); }
.comp-cover.c5 { background: linear-gradient(135deg, #6a1b4d, #e0409a); }
.comp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.comp-cover .level {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12px; backdrop-filter: blur(4px);
}
.comp-cover h3 { position: relative; font-size: 16px; font-weight: 700; line-height: 1.45; text-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.comp-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.comp-meta { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.comp-meta span { display: flex; align-items: center; gap: 8px; }
.comp-meta i { color: var(--primary); font-style: normal; flex: none; }
.comp-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; font-size: 13px;
}
.comp-foot .fee { color: var(--accent); font-weight: 700; font-size: 15px; }

/* ---------------- 流程 ---------------- */
.step { background: #fff; border: 1px dashed #cfd8ea; border-radius: var(--radius); padding: 20px 18px; position: relative; }
.step-no {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  font-weight: 700; margin-bottom: 12px; box-shadow: 0 8px 18px rgba(36, 86, 230, .28);
}
.step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-3); line-height: 1.8; }

/* ---------------- 两栏（移动端单列） ---------------- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { font-size: 16px; font-weight: 700; }
.panel-head a { font-size: 13px; color: var(--ink-3); flex: none; }
.panel-head a:hover { color: var(--primary); }

.news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item:first-child { padding-top: 0; }
.news-date {
  width: 52px; flex: none; text-align: center; border-radius: 9px; background: #f4f7ff;
  color: var(--primary); padding: 7px 0; line-height: 1.2;
}
.news-date b { display: block; font-size: 18px; }
.news-date span { font-size: 11px; color: var(--ink-3); }
.news-body { min-width: 0; }
.news-body h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.news-body h4:hover { color: var(--primary); }
.news-body p { font-size: 12.5px; color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }

.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.mini-list .t:hover { color: var(--primary); }

/* ---------------- 页脚（移动端单列居中） ---------------- */
.site-footer { background: #0c1730; color: #8d9fc0; padding: 40px 0 22px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 10px; font-weight: 600; }
.footer-grid a { display: block; font-size: 13px; padding: 5px 0; color: #8d9fc0; }
.footer-grid a:hover { color: #fff; }
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.9; color: #7f92b5; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 28px; padding-top: 18px;
  font-size: 12px; color: #6c7d9e; display: flex; flex-direction: column; gap: 6px; text-align: center;
}

/* ---------------- 内页通用 ---------------- */
.page-hero {
  background: linear-gradient(120deg, #0c1730, #1d3f88);
  color: #fff; padding: 30px 0 28px;
}
.page-hero h1 { font-size: 22px; font-weight: 800; line-height: 1.5; }
.page-hero p { margin-top: 8px; color: #b9caea; font-size: 13px; }
.breadcrumb { font-size: 12.5px; color: #93a6c9; margin-bottom: 10px; }
.breadcrumb a:hover { color: #fff; }

.filter-bar {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; margin-bottom: 18px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.chip { padding: 7px 14px; border-radius: 999px; background: #f4f6fb; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.chip:hover { background: #eaefff; color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; }
.filter-form { display: flex; gap: 8px; width: 100%; }
.filter-form .select { flex: 0 0 104px; width: 104px; height: 40px; }
.filter-form .input { flex: 1; min-width: 0; height: 40px; }
.filter-form .btn { flex: none; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .ico { font-size: 42px; opacity: .35; margin-bottom: 10px; }

/* 详情：移动端单列，侧栏沉底 */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.article-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
.article-box h1 { font-size: 21px; font-weight: 800; line-height: 1.5; }
.article-meta { display: flex; gap: 10px 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-content { padding-top: 18px; font-size: 14.5px; line-height: 2; color: #344054; overflow-wrap: break-word; }
.article-content h3 { font-size: 17px; margin: 22px 0 10px; color: var(--ink); }
.article-content h4 { font-size: 15px; margin: 18px 0 8px; }
.article-content p { margin: 10px 0; }
.article-content img { border-radius: 10px; margin: 12px 0; }
.article-content ul { padding-left: 22px; list-style: disc; margin: 10px 0; }
.article-content ol { padding-left: 22px; margin: 10px 0; }
.article-content blockquote { border-left: 3px solid var(--primary); background: #f7f9ff; padding: 10px 14px; margin: 14px 0; color: var(--ink-2); }
.article-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-content th { background: #f7f9ff; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 16px; }
.side-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--primary); }
.info-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; }
.info-row span:first-child { color: var(--ink-3); flex: none; }
.info-row span:last-child { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------------- 表单 ---------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-row label .req { color: #e33; margin-left: 3px; }
.form-row .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; min-height: 44px; height: 44px; padding: 0 14px; border: 1px solid #dfe4ee; border-radius: 10px;
  font-size: 16px; color: var(--ink); background: #fff; outline: none; transition: .2s;
  font-family: inherit; -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 86, 230, .12); }
/* 移动端单列 */
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.form-actions .btn { width: 100%; }

/* ---------------- 登录注册（移动端仅表单） ---------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--nav-h)); }
.auth-side { display: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 23px; font-weight: 800; }
.auth-box .sub { color: var(--ink-3); margin-top: 6px; margin-bottom: 22px; font-size: 14px; }
.auth-box .input { height: 46px; }
.auth-box .btn { width: 100%; height: 46px; margin-top: 8px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* ---------------- 个人中心（移动端：横向菜单条） ---------------- */
.center-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.side-menu {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.side-menu a {
  flex: none; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap;
}
.side-menu a:hover, .side-menu a.active { background: #eef2ff; color: var(--primary); font-weight: 600; }
.profile-card {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 14px; border-bottom: 0; margin-bottom: 0; flex: none;
  border-right: 1px solid var(--line); margin-right: 4px;
}
.avatar { width: 44px; height: 44px; border-radius: 50%; margin: 0; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700; flex: none; }

/* ---------------- 表格（移动端横向滚动） ---------------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-wrap .table { min-width: 680px; }
.table-wrap .table code { white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { background: #f8fafd; text-align: left; padding: 11px 12px; font-weight: 600; color: var(--ink-2); font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid #f0f3f9; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbff; }
.table code { font-size: 12px; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination li { display: inline-flex; }
.pagination li a, .pagination li span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-2); font-size: 13px;
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination li.disabled span { color: #c3c9d6; background: #f8f9fc; }

/* ---------------- 详情页标签页（移动端横向滚动） ---------------- */
.f-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--line, #e6ebf2); margin-bottom: 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none;
}
.f-tabs::-webkit-scrollbar { display: none; }
.f-tabs a {
  flex: none; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #5a6a85;
  border-radius: 8px 8px 0 0; position: relative;
}
.f-tabs a:hover { color: var(--primary); }
.f-tabs a.active { color: var(--primary); }
.f-tabs a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 3px; border-radius: 2px; background: var(--primary); }
.tab-pane.hide { display: none; }

/* ---------------- 报名名单 / 分组（移动端 1 列起） ---------------- */
.table td, .table th { white-space: normal; }
.fgroup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.fgroup-card { border: 1px solid #e6ebf2; border-radius: 12px; overflow: hidden; background: #fff; }
.fgroup-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f2f6fc; font-weight: 700; font-size: 14px; color: #14304f; }
.fgroup-head span { font-weight: 500; font-size: 12px; color: #6b7a93; }
.fgroup-row { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-top: 1px dashed #eef2f7; font-size: 13px; flex-wrap: wrap; }
.fgroup-row .seat { width: 20px; height: 20px; border-radius: 50%; background: #eef3fb; color: #4a6190; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fgroup-row .n { font-weight: 600; color: #1d2c44; }
.fgroup-card .table { min-width: 0; font-size: 12px; }
.stand-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
tr.adv-row td { background: #f2fbf6; }

/* ---------------- 前台时间轴（移动端横向滚动） ---------------- */
.ftl-day { margin-bottom: 20px; }
.ftl-date { font-weight: 700; font-size: 14px; color: #14304f; margin-bottom: 8px; }
.ftl-date small { font-weight: 500; color: #6b7a93; margin-left: 6px; }
.ftl-table td { font-size: 12.5px; padding: 8px 10px; }
.ftl-table th, .ftl-table td { white-space: nowrap; }
.ftl-match { line-height: 1.5; white-space: normal; min-width: 130px; }
.ftl-match .no { display: inline-block; min-width: 26px; padding: 0 4px; margin-right: 4px; border-radius: 4px; background: #eef3fb; color: #4a6190; font-size: 11px; text-align: center; }
.ftl-match em { font-style: normal; color: #98a6bd; margin: 0 2px; }
.ftl-match .sc { color: #0d7a4f; margin-left: 4px; }
.ftl-match.done { color: #8fa2bf; }

/* ---------------- 前台对阵图（移动端横向滚动） ---------------- */
.fbk-wrap { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.fbk-round { flex: 0 0 200px; display: flex; flex-direction: column; justify-content: flex-start; }
.fbk-title { font-weight: 700; font-size: 13px; color: #14304f; text-align: center; margin-bottom: 8px; padding: 6px; background: #f2f6fc; border-radius: 8px; }
.fbk-round .fbk-title { flex: none; }
.fbk-round .fbk-match { margin: 10px 0; }
.fbk-match { border: 1px solid #e6ebf2; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; background: #fff; }
.fbk-match .t { padding: 3px 6px; border-radius: 6px; font-weight: 600; color: #1d2c44; }
.fbk-match .t.win { background: #e8f8f0; color: #0d7a4f; }
.fbk-match .vs { text-align: center; color: #98a6bd; font-size: 11px; margin: 2px 0; }
.fbk-match .meta { text-align: center; color: #98a6bd; font-size: 11px; margin-top: 4px; border-top: 1px dashed #eef2f7; padding-top: 4px; }

/* ---------------- 报名类型单选（移动端纵向大卡片） ---------------- */
.type-radios { display: grid; grid-template-columns: 1fr; gap: 10px; }
.t-radio {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  border: 1.5px solid #dbe4f0; border-radius: 12px; padding: 13px 15px; cursor: pointer; transition: all .15s;
}
.t-radio input { position: absolute; opacity: 0; }
.t-radio b { font-size: 14.5px; color: #1d2c44; }
.t-radio span { font-size: 12px; color: #8a99b3; }
.t-radio.active { border-color: var(--primary); background: #f2f8ff; }
.t-radio.active b { color: var(--primary); }

/* ---------------- 搭档搜索 ---------------- */
.partner-results { margin-top: 10px; border: 1px solid #e6ebf2; border-radius: 10px; overflow: hidden; }
.pr-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f0f3f8; }
.pr-item:last-child { border-bottom: 0; }
.pr-info { flex: 1; min-width: 0; }
.pr-info b { font-size: 13.5px; color: #1d2c44; }
.pr-info span { display: block; font-size: 12px; color: #8a99b3; }
.pr-exact { font-style: normal; font-size: 11px; color: #0d7a4f; background: #e8f8f0; border-radius: 4px; padding: 2px 6px; }
.pr-empty { padding: 14px; font-size: 13px; color: #8a99b3; text-align: center; }
.partner-chosen { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #e8f8f0; color: #0d7a4f; font-size: 13.5px; }
.partner-chosen a { margin-left: 8px; text-decoration: underline; font-size: 12px; }

/* ==========================================================
   ≥640px：平板竖屏 / 大屏手机横屏
   ========================================================== */
@media (min-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 56px 0 100px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 15px; }
  .hero-actions .btn { flex: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats { grid-template-columns: repeat(4, 1fr); padding: 20px 8px; }
  .stat { border: 0 !important; border-right: 1px solid var(--line) !important; }
  .stat:last-child { border-right: 0 !important; }
  .stat b { font-size: 28px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-actions { flex-direction: row; }
  .form-actions .btn { width: auto; }
  .type-radios { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { font-size: 26px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .filter-bar { padding: 14px 16px; }
  .filter-form { width: auto; margin-left: auto; }
  .filter-form .input { width: 190px; flex: none; }
  .nav-user .btn-logout { display: inline-flex; }
}

/* ==========================================================
   ≥768px：平板横屏 / 小桌面
   ========================================================== */
@media (min-width: 768px) {
  :root { --nav-h: 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .comp-cover { height: 148px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 34px; }
  .two-col { grid-template-columns: 1.45fr 1fr; gap: 22px; }
  .detail-grid { grid-template-columns: 1fr 300px; gap: 22px; }
  .center-grid { grid-template-columns: 240px 1fr; gap: 20px; }
  .side-menu { display: block; padding: 12px; }
  .side-menu a { display: block; padding: 11px 16px; border-radius: 10px; font-size: 14px; }
  .side-menu a + a { margin-top: 2px; }
  .profile-card { display: block; text-align: center; padding: 20px 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; margin-bottom: 10px; }
  .avatar { width: 64px; height: 64px; margin: 0 auto 10px; font-size: 24px; }
  .panel { padding: 22px; }
  .article-box { padding: 28px; }
  .form-card { padding: 28px; }
  .side-card { padding: 20px; }
  .empty { padding: 60px 20px; }
}

/* ==========================================================
   ≥1024px：桌面
   ========================================================== */
@media (min-width: 1024px) {
  :root { --nav-h: 70px; }
  .logo { font-size: 20px; gap: 10px; }
  .logo small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: 1px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }

  /* 导航恢复横向 */
  .nav { gap: 30px; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important; gap: 4px; flex: 1;
    position: static; background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  .nav-menu a { display: inline-block; padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 400; }
  .nav-menu a + a { margin-top: 0; }
  .nav-menu a.active { font-weight: 600; }
  .nav-user { margin-left: 0; }
  .nav-user .btn { min-height: 34px; padding: 0 14px; font-size: 13px; }

  .hero { padding: 88px 0 110px; }
  .hero::after {
    content: ""; position: absolute; left: -80px; bottom: -180px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(77, 123, 255, .35), transparent 62%);
  }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero h1 { font-size: 46px; letter-spacing: -.5px; }
  .hero .lead { margin-top: 20px; font-size: 16px; line-height: 1.95; max-width: 560px; }
  .hero-tag { font-size: 13px; margin-bottom: 22px; }
  .hero-actions { margin-top: 34px; gap: 14px; }
  .hero-note { margin-top: 26px; gap: 24px; font-size: 13px; }
  .hero-panel { padding: 20px; }

  .stats { margin-top: -56px; padding: 26px 10px; }
  .stat b { font-size: 32px; }
  .stat span { font-size: 13px; }

  .section { padding: 72px 0; }
  .section-head { max-width: 720px; margin: 0 auto 44px; }
  .section-head h2 { font-size: 32px; letter-spacing: -.4px; }
  .section-head p { margin-top: 12px; font-size: 15px; }
  .grid-3 { gap: 22px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .feature { padding: 28px; }
  .feature-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 18px; }
  .feature h3 { font-size: 17px; }
  .comp-cover { height: 158px; }
  .comp-body { padding: 18px 20px 20px; }
  .two-col { grid-template-columns: 1.45fr 1fr; gap: 26px; }
  .detail-grid { grid-template-columns: 1fr 340px; gap: 26px; }
  .center-grid { grid-template-columns: 240px 1fr; gap: 24px; }
  .article-box { padding: 34px; }
  .article-box h1 { font-size: 26px; }
  .form-card { padding: 34px; }

  .auth-wrap { grid-template-columns: 1fr 1fr; }
  .auth-side {
    display: flex;
    background: linear-gradient(150deg, #0c1730, #1b3b7a 60%, #2456e6);
    color: #fff; padding: 70px 60px; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
  }
  .auth-side::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255, 122, 47, .35), transparent 62%); }
  .auth-side h2 { font-size: 34px; font-weight: 800; line-height: 1.4; position: relative; z-index: 1; }
  .auth-side p { margin-top: 18px; color: #c3d2ee; line-height: 2; position: relative; z-index: 1; }
  .auth-side ul { margin-top: 30px; position: relative; z-index: 1; }
  .auth-side li { display: flex; gap: 10px; align-items: center; color: #d6e2ff; font-size: 14px; padding: 7px 0; }
  .auth-main { padding: 50px 24px; }

  .table { font-size: 14px; }
  .table th { padding: 14px 18px; font-size: 13px; }
  .table td { padding: 15px 18px; }
  .page-hero { padding: 56px 0 52px; }
  .page-hero h1 { font-size: 32px; }
  .site-footer { padding: 56px 0 26px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
  .footer-bottom { margin-top: 40px; padding-top: 22px; }
  .f-tabs a { padding: 11px 18px; font-size: 15px; }
  .f-tabs { flex-wrap: wrap; overflow: visible; }
  .btn { min-height: 42px; padding: 0 22px; }
  .btn-sm { min-height: 34px; padding: 0 14px; }
  .input, .textarea, .select { font-size: 14px; }
}

/* 详情页大标题（页面顶部） */
.detail-title { font-size: 21px; font-weight: 800; line-height: 1.5; margin: 0; }
@media (min-width: 1024px) {
  .detail-title { font-size: 28px; }
}

/* ==================== 赛制规则条 ==================== */
.rule-line { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.rule-line span { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.rule-line b { display: inline-block; min-width: 56px; margin-right: 8px; color: var(--primary); font-weight: 700; }
@media (min-width: 640px) {
  .rule-line { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; }
}

/* ==================== 裁判中心 ==================== */
.text-danger { color: #d93636; }
.text-warn { color: #b45309; }

.qc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow);
}
.qc-head { display: flex; align-items: center; gap: 12px; }
.qc-avatar {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(36, 86, 230, .26);
}
.qc-id { flex: 1; min-width: 0; }
.qc-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; font-weight: 800; }
.qc-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.qc-state { flex: none; }

.qc-cert { margin-top: 16px; padding: 12px 14px; background: #f8fafd; border-radius: 12px; }
.qc-cert-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.qc-cert-top b { font-size: 15px; color: var(--ink); }
.qc-bar { height: 8px; border-radius: 999px; background: #e9edf5; margin: 10px 0 8px; overflow: hidden; }
.qc-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34c38f, #12805c); }
.qc-bar-fill.soon { background: linear-gradient(90deg, #ffb020, #f79009); }
.qc-bar-fill.expired, .qc-bar-fill.none { background: #f04438; }
.qc-cert-tip { font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.qc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.qc-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qc-grid span { font-size: 11.5px; color: var(--ink-3); }
.qc-grid b { font-size: 13px; font-weight: 600; word-break: break-all; }

.ref-layout { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.ref-layout > * { min-width: 0; }
.table-wrap .ref-cert-table { min-width: 620px; }

.pending-tip {
  background: #fff7e8; color: #a35c00; font-size: 12.5px; line-height: 1.7;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 8px;
}
.renew-tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin-bottom: 14px; }

/* 上传框 */
.upload-box {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px dashed #cfd8ea; border-radius: 12px; background: #fbfcff;
  padding: 14px 16px; transition: .2s;
}
.upload-box:hover { border-color: var(--primary); background: #f4f8ff; }
.upload-box .up-ico {
  width: 30px; height: 30px; flex: none; border-radius: 9px; background: #eaf0ff;
  color: var(--primary); display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.upload-box .up-text { font-size: 13px; color: var(--ink-2); }
.upload-preview img {
  width: 100%; max-width: 220px; margin-top: 10px;
  border-radius: 10px; border: 1px solid var(--line);
}
.upload-preview em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* 性别选择 */
.gender-radios { display: flex; gap: 10px; }
.g-radio {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 46px; border: 1px solid #dfe4ee; border-radius: 10px; background: #fff;
  font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.g-radio input { accent-color: var(--primary); }
.g-radio.active { border-color: var(--primary); background: #eef3ff; color: var(--primary); font-weight: 600; }

.form-section-title {
  margin: 6px 0 14px; padding-left: 10px; border-left: 3px solid var(--primary);
  font-size: 14px; font-weight: 700; color: var(--ink);
}

.ref-steps { display: flex; gap: 6px; }
.ref-step { flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.ref-step b {
  display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 6px;
  border-radius: 50%; background: #eef1f7; color: #667085; font-size: 12px;
}
.ref-step.active b { background: var(--primary); color: #fff; }
.ref-step span { display: block; }

@media (min-width: 640px) {
  .qc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .ref-layout { grid-template-columns: 1.35fr 1fr; }
  .qc-card { padding: 24px; }
}

/* ---------- 比赛项目（组别 · 单项） ---------- */
.evt-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 4px 0 8px; }
.evt-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.evt-card:hover { border-color: rgba(36, 86, 230, .35); box-shadow: 0 8px 20px rgba(17, 24, 39, .06); }
.evt-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.evt-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.evt-op { margin-left: auto; }

.evt-switch {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.evt-switch-label { font-size: 12px; color: var(--ink-3); }
.evt-switch-item {
  padding: 5px 12px; border-radius: 999px; font-size: 13px;
  background: #f4f6fb; color: var(--ink-2); border: 1px solid transparent;
}
.evt-switch-item:hover { color: var(--primary); border-color: rgba(36, 86, 230, .3); }
.evt-switch-item.active { background: var(--primary); color: #fff; }

@media (min-width: 768px) {
  .evt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .evt-grid { grid-template-columns: repeat(3, 1fr); }
}
