/* 九游会体育 官网样式 */
:root {
  --bg: #151A23;
  --card: #1B2130;
  --secondary: #202738;
  --hover: #252D40;
  --gold: #F1DCA3;
  --gold-hover: #E3C98F;
  --text: #E8ECF5;
  --text-secondary: #B8C0D3;
  --text-muted: #8F98AD;
  --footer: #0E121A;
  --footer-text: #D5DBEA;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  max-width: 100%;
}
a { color: var(--gold); text-decoration: none; touch-action: manipulation; }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 36px; color: var(--gold); margin: 24px 0 16px; line-height: 1.3; }
h2 { font-size: 24px; color: var(--gold); margin: 28px 0 12px; }
h3 { font-size: 20px; color: var(--gold); margin: 20px 0 10px; }
p { margin: 0 0 16px; }
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}

/* 顶栏 */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #252D40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.logo {
  height: 36px;
  display: flex;
  align-items: center;
}
.logo img { height: 36px; width: auto; object-fit: contain; }
.logo-text { color: var(--gold); font-weight: bold; font-size: 18px; }
.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a {
  color: var(--text);
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-desktop a.active, .nav-desktop a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.btn-register {
  background: var(--gold);
  color: #151A23;
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  height: 40px;
  min-width: 88px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.btn-register:hover { background: var(--gold-hover); color: #151A23; }

/* 手机顶栏 */
.header-mobile { display: none; }
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    width: 100%;
  }
  .menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .logo img { height: 28px; }
  .btn-register { height: 36px; min-width: 76px; padding: 0 12px; font-size: 13px; }
}

/* 抽屉与遮罩 - 强制规则 */
.mobile-drawer,
.drawer-mask { display: none; }
@media (max-width: 980px) {
  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    background: #151A23;
    color: #E8ECF5;
    z-index: 12000;
    transform: translateX(-105%);
    transition: transform .2s ease;
    overflow-y: auto;
    padding: 20px 16px 80px;
  }
  .mobile-drawer.is-open { transform: translateX(0); }
  .drawer-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 11000;
    opacity: 0;
    pointer-events: none;
  }
  .drawer-mask.is-visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}
.drawer-group { margin-bottom: 24px; }
.drawer-group h4 { color: var(--gold); font-size: 14px; margin-bottom: 10px; letter-spacing: 1px; }
.drawer-group a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  border-bottom: 1px solid #252D40;
  min-height: 40px;
  line-height: 1.4;
}
.drawer-group a:last-child { border-bottom: none; }

/* 手机底栏 */
.mobile-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid #252D40;
  z-index: 999;
  height: 60px;
}
@media (max-width: 980px) {
  .mobile-bottom { display: flex; }
  body { padding-bottom: 70px; }
}
.mobile-bottom a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
  min-height: 60px;
}
.mobile-bottom a.active, .mobile-bottom a:hover { color: var(--gold); }

/* 主内容 */
main { min-height: 60vh; padding: 20px 0 40px; }
.page-hero { margin-bottom: 32px; }
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* 图片媒体 */
.media {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #1B2130;
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.media-16x9 { aspect-ratio: 16/9; }
.media-3x4 { aspect-ratio: 3/4; }
.placeholder {
  width: 100%;
  height: 100%;
  background: #1B2130;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* 页脚 */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; }
}
.footer-cols h4 { color: var(--gold); margin-bottom: 12px; font-size: 16px; }
.footer-cols a { display: block; color: var(--footer-text); padding: 6px 0; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid #252D40;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom p { margin: 6px 0; }

/* 频道条 */
.channel-bar {
  background: var(--secondary);
  padding: 12px 0;
  overflow-x: auto;
  white-space: nowrap;
}
.channel-bar a {
  display: inline-block;
  padding: 6px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}
.channel-bar a:hover { color: var(--gold); }

/* 其他 */
.news-list article { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #252D40; }
.faq-item { margin-bottom: 20px; }
.faq-item h3 { font-size: 18px; }
body.drawer-open { overflow: hidden; }
