:root {
  --bg: #000000;
  --card: #141414;
  --gold: #B8A574;
  --gold-dim: rgba(184, 165, 116, 0.35);
  --text: #e8e8e8;
  --muted: #999999;
  --border: rgba(184, 165, 116, 0.28);
  --radius: 8px;
  --transition: 0.3s ease;
  --header-h: 72px;
  --max-w: 1280px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: #dfc99a; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 40px, var(--max-w)); margin: 0 auto; }
.hidden { display: none !important; }

/* Header search (integrated into sticky nav) */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
}
.header-right .main-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
}
.header-search {
  position: relative;
  width: 148px;
  flex: 0 0 148px;
  min-width: 120px;
}
.header-search input {
  width: 100%;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 12px;
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.header-search input::placeholder { color: #6b6b6b; }
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 200;
  overflow: hidden;
}
.search-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background var(--transition);
}
.search-suggest button:hover { background: rgba(200,169,110,0.08); }
.topbar-meta { display: flex; align-items: center; gap: 16px; white-space: nowrap; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  flex: 0 0 auto;
  max-width: min(280px, 42vw);
  min-width: 0;
}
.brand-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.nav-item {
  position: relative;
  flex: 0 0 auto;
}
.nav-link {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.is-active { color: var(--gold); background: rgba(200,169,110,0.06); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
}
.nav-dropdown a:hover { background: rgba(200,169,110,0.08); color: var(--gold); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200, 169, 110, 0.12);
  border-color: rgba(200, 169, 110, 0.45);
}
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}
.section-more { font-size: 14px; color: var(--muted); }

/* Banner carousel — 居中容器内 16:9 */
.hero-section {
  padding: 28px 0 36px;
  background: var(--bg);
}
.hero-section .hero-carousel {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0a0a0a;
}
.hero-carousel {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: none;
  opacity: 1;
}
.hero-img-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}
/* 无渐变蒙层：仅用于可选标题文案定位，背景完全透明 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-overlay .btn { pointer-events: auto; }
.hero-copy {
  padding: 0 8%;
  max-width: 640px;
}
.hero-copy h2 { font-size: clamp(24px, 4vw, 40px); margin: 0 0 12px; color: #fff; }
.hero-copy p { font-size: clamp(14px, 2vw, 18px); color: #f0f0f0; margin: 0 0 20px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-dot.is-active { background: var(--gold); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background var(--transition);
}
.hero-arrow:hover { background: rgba(200,169,110,0.2); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

/* News tabs */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.news-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.news-tab {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}
.news-tab.is-active, .news-tab:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(200,169,110,0.08);
}
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px;
}
.news-item img {
  width: 140px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #222;
}
.news-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
}
.news-item h3.pinned { color: #ff8a8a; }
.news-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.news-summary { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sidebar-card { padding: 20px; margin-bottom: 20px; }
.sidebar-card h4 { margin: 0 0 16px; color: var(--gold); font-size: 16px; }
.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-link {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  transition: all var(--transition);
}
.quick-link:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,169,110,0.06); }
.results-ticker { max-height: 220px; overflow: hidden; position: relative; }
.results-track { animation: ticker 18s linear infinite; }
.results-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.result-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.result-score { color: var(--gold); font-weight: 700; }

/* Events */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.event-card { overflow: hidden; }
.event-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #222; }
.event-card-body { padding: 16px; }
.event-card h3 { margin: 0 0 8px; font-size: 17px; }
.event-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid var(--border);
}
.event-tag.upcoming { color: #7ec8ff; border-color: rgba(126,200,255,0.4); }
.event-tag.ongoing { color: #8fd48f; border-color: rgba(143,212,143,0.4); }
.event-tag.finished { color: var(--muted); }

/* Gallery scroll */
.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
.gallery-thumb {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
  aspect-ratio: 4/3;
}
.gallery-thumb:hover { transform: scale(1.04); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Partners */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.partner-logo {
  height: 48px;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}
.partner-logo:hover { filter: none; opacity: 1; transform: scale(1.05); }

/* Footer */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.footer-grid h4 { color: var(--gold); margin: 0 0 12px; }
.footer-grid p, .footer-grid li { color: var(--muted); font-size: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); margin: 0 8px; }
.footer-bottom a.footer-icp-link {
  margin: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a.footer-icp-link:hover { color: var(--gold); }
.footer-bottom a.footer-gongan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a.footer-gongan:hover { color: var(--gold); }
.footer-gongan-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/* Inner pages */
.page-hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-hero h1 { margin: 0; font-size: 32px; color: var(--gold); }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .bc-sep { color: #555; margin: 0 2px; }
.empty-block { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-block-title { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.empty-block-tip { margin: 0; font-size: 13px; color: var(--muted); }

.date-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.date-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.date-picker-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  position: relative;
}
.date-picker-btn input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.date-picker-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--gold);
  pointer-events: none;
}
.date-picker-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.date-chip {
  flex: 0 0 auto;
  width: 64px;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0 8px;
  box-sizing: border-box;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.date-chip span.date-chip-week { font-size: 12px; color: var(--muted); transition: color 0.25s ease; line-height: 1.2; }
.date-chip strong { font-size: 18px; line-height: 1.15; font-weight: 700; }
.date-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #555555;
  flex-shrink: 0;
  margin-top: 2px;
}
.date-dot.has-match {
  background: var(--gold);
}
.date-chip.is-active { background: var(--gold); border-color: var(--gold); color: #111; }
.date-chip.is-active span.date-chip-week { color: #222; }
.date-chip.is-active .date-dot {
  background: rgba(17, 17, 17, 0.35);
}
.date-chip.is-active .date-dot.has-match {
  background: #1a1a1a;
}
.gallery-waterfall {
  columns: 3 280px;
  column-gap: 16px;
  padding-bottom: 48px;
}
.gallery-waterfall .waterfall-card {
  break-inside: avoid;
  margin-bottom: 16px;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform var(--transition), border-color var(--transition);
}
.gallery-waterfall .waterfall-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dim);
}
.gallery-waterfall .waterfall-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #1a1a1a;
}
.gallery-waterfall .waterfall-body { padding: 14px 16px; }
.gallery-waterfall h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.side-nav a {
  display: block;
  padding: 12px 16px;
  border-left: 3px solid transparent;
  color: var(--muted);
  transition: all var(--transition);
}
.side-nav a.is-active, .side-nav a:hover {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(200,169,110,0.06);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card { overflow: hidden; display: flex; flex-direction: column; }
.article-card img,
.article-card-cover,
.article-card .news-cover-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #1a1a1a;
  display: block;
}
.article-card-body { padding: 16px; flex: 1; }
.article-card-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
  line-height: 1.4;
}

.article-detail { max-width: 840px; margin: 0 auto 48px; }
.article-detail h1 { font-size: 30px; margin: 0 0 16px; }
.article-detail-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-detail-cover {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #141414;
  border: 1px solid var(--border);
}
.article-detail-cover-img,
.article-detail-cover .news-cover-img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #141414;
  vertical-align: top;
}
.article-detail-cover-img.is-placeholder,
.article-detail-cover .news-cover-img.is-placeholder {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-body { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.article-body img,
.article-body-img {
  max-width: 100% !important;
  width: auto;
  height: auto !important;
  display: block;
  margin: 20px auto;
  border-radius: var(--radius);
  background: #1a1a1a;
  object-fit: contain;
}
.article-body img.is-placeholder,
.article-body-img.is-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-nav a { flex: 1; color: var(--muted); font-size: 14px; }
.related-title { font-size: 20px; margin: 40px 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.related-list { margin-top: 0; }

/* Tabs (event detail) */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  font-size: 15px;
}
.tab-btn.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; }
.data-table th { color: var(--gold); font-weight: 600; }
.data-table tr:hover td { background: rgba(200,169,110,0.04); }

/* Masonry gallery */
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.masonry-item img { width: 100%; transition: transform var(--transition); }
.masonry-item:hover img { transform: scale(1.03); }

/* Contact form */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: rgba(200,169,110,0.12);
  color: var(--gold);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn:hover { background: var(--gold); color: #121212; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.pagination button.is-active, .pagination button:hover { border-color: var(--gold); color: var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.lightbox-toolbar button {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

.about-block { margin-bottom: 40px; }
.about-block h2 { color: var(--gold); font-size: 22px; margin: 0 0 16px; }
.about-block p { color: var(--text); line-height: 1.85; }

/* Responsive */
@media (max-width: 1100px) {
  .header-search { width: 120px; flex-basis: 120px; }
  .nav-link { padding: 8px 7px; font-size: 12px; }
  .brand { max-width: 180px; }
  .brand-logo-img { height: 40px; }
}
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .side-nav a { border-left: none; border-bottom: 2px solid transparent; }
  .side-nav a.is-active { border-bottom-color: var(--gold); }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .hero-section { padding: 16px 0 24px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 18px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .menu-toggle { display: block; }
  .header-right { gap: 8px; }
  .header-search { width: 120px; flex-basis: 120px; }
  .brand { max-width: min(200px, 48vw); }
  .brand-logo-img { height: 36px; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #0f0f0f;
    flex-direction: column;
    flex-wrap: nowrap;
    white-space: normal;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 99;
  }
  .main-nav .nav-link {
    padding: 12px 16px;
    font-size: 15px;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .gallery-waterfall { columns: 2 140px; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding-left: 16px;
  }
  .news-item { grid-template-columns: 1fr; }
  .news-item img { width: 100%; height: 160px; }
  .footer-grid, .footer-grid-4 { grid-template-columns: 1fr; }
  .masonry { columns: 2 160px; }
  .hero-copy { padding: 0 5%; }
  .home-news-layout, .standings-layout { grid-template-columns: 1fr; }
  .today-schedule-scroll { grid-auto-columns: minmax(240px, 80%); }
  .topbar-left .topbar-icp { display: none; }
  .topbar-search { width: 160px; }
}

/* ── Homepage & new portal modules ── */
.section-alt { background: #0a0a0a; }
.page-banner {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #111 0%, #000 100%);
}
.page-banner h1 { margin: 0 0 8px; color: var(--gold); font-size: 32px; }
.page-banner p { margin: 0; color: var(--muted); }

.home-news-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.home-headline { overflow: hidden; display: block; color: inherit; }
.home-headline img,
.home-headline-cover,
.home-headline-placeholder,
.home-headline .news-cover-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #141414;
  display: block;
}
.home-headline-body { padding: 20px; }
.home-headline-body h3 { margin: 10px 0 8px; font-size: 22px; color: #fff; }
.home-news-side,
.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-side-item,
.home-news-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}
.news-side-item:hover,
.home-news-row:hover { border-color: var(--gold); transform: translateY(-2px); }
.news-side-item.is-pinned,
.home-news-row.is-pinned {
  border-color: rgba(184,165,116,0.55);
  background: rgba(184,165,116,0.06);
}
.news-side-thumb {
  width: 96px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.04);
}
.news-side-thumb img,
.news-side-thumb .news-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #141414;
}
.news-side-main,
.home-news-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.news-side-item h4,
.home-news-row h4 {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.news-side-item .news-meta,
.home-news-row .news-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.news-cover-img.is-placeholder { object-fit: cover; }
.news-tag {
  display: inline-block;
  flex-shrink: 0;
  height: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--gold);
}
.tag-official { color: #111; background: var(--gold); border-color: var(--gold); }
.tag-news { color: var(--gold); }

@media (max-width: 900px) {
  .home-news-layout { grid-template-columns: 1fr; }
}

.today-schedule-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.today-match-card { padding: 18px; color: inherit; min-width: 240px; }
.today-match-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.today-time { color: var(--gold); font-weight: 700; font-size: 18px; }
.today-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}
.today-teams strong { color: var(--gold); }
.today-meta { font-size: 12px; color: var(--muted); }

/* 比赛状态胶囊标签（赛程页 / 首页当日速览） */
.match-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  box-sizing: border-box;
}
.match-status.pending {
  background: #1f1f1f;
  color: #b0b0b0;
}
.match-status.ongoing {
  background: #0f2418;
  color: #5ee09a;
}
.match-status.ongoing::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ee09a;
  box-shadow: 0 0 0 0 rgba(94, 224, 154, 0.55);
  animation: match-status-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.match-status.finished {
  background: rgba(184, 165, 116, 0.16);
  color: var(--gold);
}
.match-status.cancelled {
  background: rgba(201, 112, 112, 0.14);
  color: #c97070;
}
@keyframes match-status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(94, 224, 154, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 4px rgba(94, 224, 154, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .match-status.ongoing::before { animation: none; }
}

.table-card { padding: 8px 0; overflow-x: auto; }
.gold-num { color: var(--gold); font-weight: 700; }
.rank { color: var(--gold); font-weight: 600; }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.album-card {
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.album-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.album-card img,
.album-card .album-cover-img,
.album-cover-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #141414;
  display: block;
}
.album-card-body { padding: 14px; }
.album-card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.album-masonry { padding-bottom: 48px; }
.masonry-item { cursor: pointer; }
.masonry-item img {
  width: 100%;
  display: block;
  background: #141414;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.notice-card {
  position: relative;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}
.notice-card.is-electric-active {
  border-radius: 16px;
  background: #141414;
}
.notice-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.notice-badge.is-closed {
  color: var(--gold);
  border: 1px solid var(--gold);
  background: rgba(184, 165, 116, 0.08);
}
.notice-badge.is-open {
  color: #6fbf8a;
  border: 1px solid rgba(111, 191, 138, 0.65);
  background: rgba(111, 191, 138, 0.08);
}
.notice-badge.is-upcoming {
  color: #9a9a9a;
  border: 1px solid rgba(154, 154, 154, 0.55);
  background: rgba(154, 154, 154, 0.08);
}
.notice-card-title {
  margin: 0;
  padding-right: 78px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.4;
}
.notice-card-title em {
  font-style: normal;
  color: #dfc99a;
  margin-right: 2px;
}
.notice-card-event {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.notice-card-summary {
  margin: 0;
  font-size: 13px;
  color: #9a9a9a;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-card-time {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.notice-card-countdown {
  margin: 0;
  font-size: 13px;
  color: #6fbf8a;
}
.notice-card-countdown.is-upcoming { color: #9a9a9a; }
.notice-card-countdown.is-open { color: #6fbf8a; }
.notice-card-countdown.is-closed { color: #8a8a8a; }
.notice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}
.btn-primary {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #111;
  font-weight: 600;
}
.btn-primary:hover {
  background: #dfc99a;
  border-color: #dfc99a;
  color: #111;
}
.btn.is-disabled,
.btn-primary.is-disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
  box-shadow: none;
}
.btn.is-disabled:hover,
.btn-primary.is-disabled:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,165,116,0.08); }

.event-register-actions,
.event-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.event-card-actions .btn,
.event-register-actions .btn {
  min-width: 108px;
}
.event-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.event-card-media {
  display: block;
}
.notice-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.notice-detail-actions .btn {
  min-width: 140px;
}
.portal-gate-toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%) translateY(12px);
  z-index: 1200;
  max-width: min(88vw, 360px);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold-border, rgba(184, 165, 116, 0.45));
  background: #141414;
  color: var(--gold, #B8A574);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.portal-gate-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.notice-back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}
.notice-back-link:hover { color: var(--gold); }
.notice-detail-section { padding-top: 8px; padding-bottom: 56px; }
.notice-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: #1a1a1a;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.notice-status-icon {
  font-size: 10px;
  line-height: 1;
}
.notice-status-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.notice-status-hint {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
  white-space: nowrap;
}
.notice-status-bar.is-closed {
  border-color: rgba(184, 165, 116, 0.35);
}
.notice-status-bar.is-closed .notice-status-icon,
.notice-status-bar.is-closed .notice-status-label {
  color: #c9a27a;
}
.notice-status-bar.is-open {
  border-color: rgba(111, 191, 138, 0.35);
}
.notice-status-bar.is-open .notice-status-icon,
.notice-status-bar.is-open .notice-status-label {
  color: #6fbf8a;
}
.notice-status-bar.is-upcoming {
  border-color: rgba(154, 154, 154, 0.4);
  background: #1a1a1a;
}
.notice-status-bar.is-upcoming .notice-status-icon,
.notice-status-bar.is-upcoming .notice-status-label {
  color: #9a9a9a;
}
.notice-status-bar.is-upcoming .notice-status-hint {
  color: #8a8a8a;
}

.notice-module-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.notice-teams-module {
  margin-bottom: 28px;
}
.notice-teams-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.notice-team-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.notice-team-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.notice-team-filters select {
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  height: auto;
}
.notice-team-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-team-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.notice-team-card:hover,
.notice-team-card:focus-visible {
  border-color: var(--gold-border, rgba(184, 165, 116, 0.45));
  background: rgba(184, 165, 116, 0.06);
  outline: none;
}
.notice-team-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.notice-team-org,
.notice-team-contact,
.notice-team-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.notice-team-contact { margin-top: 4px; }
.notice-team-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gold);
}

/* 队伍报名详情弹窗（只读，不含手机号） */
body.notice-team-modal-open { overflow: hidden; }
.notice-team-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.notice-team-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.notice-team-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  padding: 22px 22px 18px;
  box-sizing: border-box;
}
.notice-team-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.notice-team-modal-close:hover { color: var(--gold); }
.notice-team-modal-title {
  margin: 0 36px 6px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.35;
}
.notice-team-modal-sub {
  margin: 0 36px 16px 0;
  font-size: 12px;
  color: var(--muted);
}
.notice-team-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  min-height: 0;
}
.notice-team-detail-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.notice-team-detail-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.notice-team-detail-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.notice-team-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notice-team-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.notice-team-detail-row span {
  flex-shrink: 0;
  color: var(--muted);
}
.notice-team-detail-row strong {
  text-align: right;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.notice-team-detail-block { margin-top: 12px; }
.notice-team-detail-block:first-of-type { margin-top: 0; }
.notice-team-detail-subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.notice-team-detail-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.notice-team-detail-players {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notice-team-detail-players li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
}
.notice-team-detail-idx {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(184, 165, 116, 0.12);
  border: 1px solid rgba(184, 165, 116, 0.35);
}
.notice-team-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.notice-team-status.is-pending {
  background: #1f1f1f;
  color: #dfc99a;
}
.notice-team-status.is-approved {
  background: #0f2418;
  color: #5ee09a;
}
.notice-team-status.is-rejected {
  background: rgba(201, 112, 112, 0.14);
  color: #c97070;
}
.notice-team-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.notice-attachments {
  margin-top: 8px;
  margin-bottom: 8px;
}
.notice-attachments .notice-module-title {
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .notice-team-card {
    flex-direction: column;
    align-items: stretch;
  }
  .notice-team-filters { width: 100%; }
  .notice-team-filters select {
    min-width: 0;
    width: 100%;
  }
}

.notice-detail-body {
  max-width: none;
  margin: 0 0 28px;
}
.notice-detail-body .rich-content {
  margin-bottom: 28px;
}

/* 顶栏登录 */
.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 0;
  position: relative;
}
.header-auth-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.header-auth-btn.is-ghost {
  border-color: var(--border);
  color: var(--muted);
}
.header-auth-btn:hover { background: rgba(184,165,116,0.12); }
.header-auth-menu { position: relative; }
.header-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 140px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.header-auth-user:hover { color: #dfc99a; }
.header-auth-caret { font-size: 10px; opacity: 0.8; }
.header-auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  z-index: 80;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.header-auth-dropdown a,
.header-auth-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}
.header-auth-dropdown a:hover,
.header-auth-dropdown button:hover {
  background: rgba(184,165,116,0.1);
  color: var(--gold);
}
.header-auth-name { font-size: 13px; color: var(--muted); max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-auth-link { font-size: 13px; color: var(--gold); white-space: nowrap; }

.portal-login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.72);
  padding: 20px;
}
.portal-login-modal.is-open { display: flex; }
.portal-login-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #141414;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.portal-login-dialog-split {
  width: min(640px, 96vw);
}

.portal-login-split-container {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-top: 10px;
}

.portal-login-pane-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-login-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
}

.portal-login-pane-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.portal-login-wx-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  text-align: center;
}

/* 响应式：屏幕窄时改上下布局 */
@media (max-width: 620px) {
  .portal-login-dialog-split {
    width: 96vw;
    max-height: 92vh;
    overflow-y: auto;
  }
  .portal-login-split-container {
    flex-direction: column;
    gap: 18px;
  }
  .portal-login-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }
}

.portal-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.portal-login-dialog h2 { margin: 0 0 8px; color: var(--gold); font-size: 18px; line-height: 1.4; }
.portal-login-tip { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.portal-login-form .portal-login-field {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}
.portal-login-form input[type="text"],
.portal-login-form input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--text);
  font-size: 15px;
}
.portal-password-wrap {
  position: relative;
  display: block;
  margin-top: 6px;
}
.portal-password-wrap input {
  margin-top: 0;
  padding-right: 56px;
}
.portal-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
}
.portal-login-form input:focus { outline: none; border-color: var(--gold); }
.portal-login-agree {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.portal-login-agree input { margin-top: 0; accent-color: var(--gold); flex-shrink: 0; }
.portal-login-agree a { color: var(--gold); text-decoration: underline; }
.portal-login-error { color: #c97070; font-size: 13px; margin: 0 0 10px; }
.portal-login-submit { width: 100%; margin-top: 6px; }
.portal-login-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

/* ================= 顶栏「登录」折叠下拉（Tab1 用户登录 / Tab2 数字化管理平台） ================= */
.header-login-panel-wrap { position: relative; display: inline-flex; align-items: center; }
.header-login-caret { margin-left: 6px; font-size: 10px; opacity: 0.85; }
.header-auth-btn.is-open .header-login-caret { transform: rotate(180deg); display: inline-block; }

.header-login-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  background: #111;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  overflow: hidden;
  z-index: 90;
}
.header-login-panel-head {
  display: flex;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
}
.header-login-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.header-login-tab:hover { color: #e9d6ad; }
.header-login-tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(184,165,116,0.06);
}
.header-login-panel-body { padding: 16px 16px 18px; }
.header-login-panel-pane { display: none; }
.header-login-panel-pane.is-active { display: block; }

.hlp-card {
  display: grid;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 12px;
  background: #161616;
  border: 1px solid #1f1f1f;
}
.hlp-card-user { border-color: rgba(184,165,116,0.18); }
.hlp-card-admin { border-color: rgba(120,170,255,0.18); background: #141820; }
.hlp-card-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}
.hlp-card-icon {
  font-size: 26px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(184,165,116,0.08);
  border: 1px solid rgba(184,165,116,0.18);
  border-radius: 10px;
  color: #c7b68e;
}
.hlp-card-icon svg { display: block; }
.hlp-card-admin .hlp-card-icon {
  background: rgba(120,170,255,0.08);
  border-color: rgba(120,170,255,0.18);
  color: #9fb8e5;
}
.hlp-card-name { font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.hlp-card-admin .hlp-card-name { color: #b3ccff; }
.hlp-card-desc { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.hlp-card-go { width: 100%; text-align: center; text-decoration: none; padding: 10px 14px !important; display: inline-flex; justify-content: center; font-weight: 600;}
.hlp-card-tip {
  background: rgba(184,165,116,0.05);
  border-left: 2px solid rgba(184,165,116,0.4);
  color: #c7b68e;
  font-size: 12px;
  line-height: 1.55;
  padding: 8px 10px;
  border-radius: 6px;
}
.hlp-card-tip.warn {
  background: rgba(201,112,112,0.08);
  border-left-color: rgba(201,112,112,0.55);
  color: #e2b6b8;
}

/* ================= 登录弹窗 Tab 样式 ================= */
.portal-login-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
}
.portal-login-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 8px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.portal-login-tab:hover { color: #e9d6ad; }
.portal-login-tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.portal-login-panes { min-height: 300px; }

/* 旧 tab 布局的 pane 隐藏规则已弃用，保留类名但不强制隐藏 */
.portal-login-pane { display: block; }
.portal-login-pane.is-active { display: block; }

/* 分栏布局覆盖 */
.portal-login-pane-left,
.portal-login-pane-right {
  display: flex;
}

/* 微信扫码登录区块 — 1:1 正方形 */
.portal-login-wx {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}
.pl-wx-loading { color: var(--muted); font-size: 13px; text-align: center; }
.pl-wx-qr {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  overflow: hidden;
}
.pl-wx-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.pl-wx-foot {
  text-align: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.pl-wx-error, .pl-wx-disabled {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  background: #0f0f0f;
  border: 1px dashed #333;
  border-radius: 10px;
  box-sizing: border-box;
}
.pl-wx-error { color: #e2b6b8; border-color: rgba(201,112,112,0.3); }
.pl-wx-disabled-simple h3 {
  margin: 0;
  font-size: 12px;
  color: #c7b68e;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-line;
}
.pl-wx-disabled-icon { display: none; }
.pl-wx-disabled h3 { margin: 4px 0 10px; color: var(--gold); font-size: 15px; font-weight: 600; }
.pl-wx-disabled ol { text-align: left; margin: 0 auto 8px; max-width: 320px; padding-left: 20px; color: #c7b68e; }
.pl-wx-disabled li { margin: 4px 0; }
.pl-wx-dev-tip { margin-top: 8px; color: #8fa9d6; font-size: 12.5px; }

.portal-login-wx-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: #8a7f69;
  line-height: 1.7;
  background: rgba(184,165,116,0.04);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(184,165,116,0.18);
}
.portal-login-wx-note a { color: var(--gold); text-decoration: underline; }
.pl-wx-safe { color: #6fbf8a; margin-right: 4px; }

.notice-detail-layout { max-width: 840px; }

.notice-reg-status {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #1a1a1a;
  border: 1px solid var(--border);
}
.notice-reg-status-label { font-size: 14px; font-weight: 600; }
.status-pending .notice-reg-status-label,
.notice-reg-status-label.status-pending,
.status-pending { color: #dfc99a; }
.status-approved .notice-reg-status-label,
.notice-reg-status-label.status-approved,
.status-approved { color: #6fbf8a; }
.status-rejected .notice-reg-status-label,
.notice-reg-status-label.status-rejected,
.status-rejected { color: #c97070; }
.notice-reg-reject { margin: 8px 0 0; color: #e0a0a0; font-size: 13px; }
.notice-reg-meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.my-reg-list { display: flex; flex-direction: column; gap: 12px; }
.my-reg-item { display: block; padding: 18px 20px; transition: border-color var(--transition); }
.my-reg-item:hover { border-color: var(--gold); }
.my-reg-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
.my-reg-item-top h3 { margin: 0; font-size: 17px; color: var(--gold); }
.my-reg-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.my-reg-detail { padding: 24px; }
.my-reg-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.my-reg-head h2 { margin: 0; font-size: 20px; color: var(--gold); }
.my-reg-dl { display: grid; gap: 12px; margin: 0 0 20px; }
.my-reg-dl div { display: grid; gap: 4px; }
.my-reg-dl dt { color: var(--muted); font-size: 12px; }
.my-reg-dl dd { margin: 0; color: var(--text); font-size: 14px; }
.my-reg-players h3 { margin: 0 0 10px; font-size: 15px; color: var(--text); }
.my-reg-players ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.rules-list { display: flex; flex-direction: column; gap: 12px; }
.rules-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}
.rules-row h3 { margin: 0 0 6px; font-size: 17px; }

.filter-bar { margin-bottom: 20px; }
.filter-bar label { color: var(--muted); font-size: 14px; }
.filter-bar select {
  margin-left: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.schedule-day-list { display: flex; flex-direction: column; gap: 14px; }
.schedule-day-list.is-enter {
  animation: schedule-content-enter 0.3s ease both;
}
@keyframes schedule-content-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .date-bar { scroll-behavior: auto; }
  .date-chip,
  .date-chip span.date-chip-week { transition: none; }
  .schedule-day-list.is-enter { animation: none; }
}
a.schedule-row-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.schedule-row-link:hover { color: inherit; }
.schedule-row { padding: 20px; }
.schedule-row-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.schedule-time { color: var(--text); font-size: 15px; }
.schedule-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.schedule-teams strong { color: var(--gold); }
.set-scores { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* 比赛详情页 */
.match-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
}
.match-detail-card,
.match-detail-section {
  padding: 24px;
}
.match-detail-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.match-detail-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.match-detail-team-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}
.match-detail-team-dept {
  font-size: 13px;
  color: var(--muted);
}
.match-detail-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}
.match-detail-score {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.match-detail-vs {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.match-detail-meta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.match-detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.match-detail-meta-label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}
.match-detail-meta-value {
  font-size: 14px;
  color: var(--text);
  text-align: right;
}
.match-detail-meta-value.is-gold { color: var(--gold); }
.match-detail-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.match-detail-section-title.is-gold { color: var(--gold); }
.match-set-list {
  display: flex;
  flex-direction: column;
}
.match-set-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.match-set-item:last-child { border-bottom: none; }
.match-set-title { font-size: 14px; color: var(--muted); }
.match-set-score { font-size: 16px; font-weight: 600; color: var(--text); }
.match-tech-table { width: 100%; }
.match-tech-head,
.match-tech-row {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 8px;
}
.match-tech-head {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.match-tech-head-team {
  text-align: center;
  font-size: 13px;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-tech-head-mid {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.match-tech-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.match-tech-row:last-child { border-bottom: none; }
.match-tech-val {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.match-tech-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.match-detail-actions {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 24px;
}
.match-detail-empty {
  padding: 28px 12px;
  text-align: center;
}
.match-detail-empty .empty-block-title {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}
.match-detail-empty .empty-block-tip {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .match-detail-teams { gap: 10px; }
  .match-detail-team-name { font-size: 18px; }
  .match-detail-score { font-size: 26px; }
  .match-tech-head,
  .match-tech-row { grid-template-columns: 1fr 96px 1fr; }
}

.standings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}
.standings-nav { padding: 12px 0; }
.standings-nav-block { padding: 8px 0 16px; }
.standings-nav-block h4 {
  margin: 0 0 8px;
  padding: 0 16px;
  color: var(--gold);
  font-size: 13px;
}
.standings-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: var(--muted);
  padding: 12px 16px;
  cursor: pointer;
}
.standings-nav-item.is-active, .standings-nav-item:hover {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(184,165,116,0.06);
}

.rich-content { line-height: 1.85; }
.rich-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
