/* 九游会体育 style.css */
: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, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); text-decoration: none; touch-action: manipulation; min-height: 40px; display: inline-flex; align-items: center; }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
/* Topbar */
.topbar {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #252D40;
  height: 64px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.logo img { height: 36px; width: auto; object-fit: contain; display: block; }
.logo-text { font-size: 18px; font-weight: bold; color: var(--gold); }
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  min-height: auto;
}
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.btn-register {
  background: var(--gold);
  color: #151A23 !important;
  border-radius: 999px;
  padding: 0 20px;
  height: 40px;
  font-weight: 600;
  font-size: 14px;
  min-width: 96px;
  justify-content: center;
}
.btn-register:hover { background: var(--gold-hover); color: #151A23 !important; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  min-height: 40px;
  min-width: 40px;
}
/* Mobile drawer */
.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;
  }
  .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;
  }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .topbar-inner { justify-content: space-between; }
  .logo { margin: 0 auto; position: absolute; left: 50%; transform: translateX(-50%); }
  .logo img { height: 28px; }
  .btn-register { height: 36px; min-width: 76px; padding: 0 12px; font-size: 13px; }
  body.drawer-open { overflow: hidden; }
}
.drawer-group { margin-bottom: 24px; }
.drawer-group h3 { color: var(--gold); font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.drawer-group a {
  display: block;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid #252D40;
  min-height: 40px;
}
.drawer-logo { margin-bottom: 20px; text-align: center; }
.drawer-logo img { height: 32px; object-fit: contain; }
/* Main */
main { flex: 1; padding: 24px 0 80px; }
h1 { font-size: 36px; color: var(--gold); margin-bottom: 20px; line-height: 1.3; }
h2 { font-size: 24px; color: var(--gold); margin: 28px 0 16px; }
h3 { font-size: 18px; color: var(--gold); margin: 20px 0 12px; }
p { margin-bottom: 16px; color: var(--text); }
ul, ol { margin: 16px 0 16px 24px; color: var(--text); }
li { margin-bottom: 8px; }
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
/* Media */
.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; }
.media-poster { aspect-ratio: 16/9; max-height: 360px; }
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  .media-16x9 { max-height: 180px; }
  .media-poster { max-height: 200px; }
  .media-3x4 { max-height: 240px; }
  main { padding-bottom: 90px; }
}
/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 40px 0 20px;
  margin-top: auto;
}
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer-cols h4 { color: var(--gold); margin-bottom: 12px; font-size: 16px; }
.footer-cols a { display: block; color: var(--footer-text); padding: 6px 0; min-height: auto; }
.footer-bottom { text-align: center; font-size: 14px; color: var(--text-muted); border-top: 1px solid #252D40; padding-top: 16px; }
/* Mobile bottom bar */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #151A23;
  border-top: 1px solid #252D40;
  z-index: 1000;
  height: 60px;
}
@media (max-width: 980px) {
  .bottom-bar { display: flex; justify-content: space-around; align-items: center; }
  .bottom-bar a {
    flex: 1;
    text-align: center;
    color: var(--text);
    font-size: 13px;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 40px;
  }
  .bottom-bar a.active { color: var(--gold); }
}
/* Placeholder */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  background: #1B2130;
}
/* Channel list */
.channel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.channel-item { background: var(--secondary); border-radius: 12px; padding: 16px; }
.channel-item h3 { margin-top: 0; }
/* FAQ */
.faq-item { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.faq-item h3 { margin-top: 0; cursor: pointer; }
/* Buttons only specific */
.btn { background: var(--gold); color: #151A23; border-radius: 999px; padding: 10px 24px; display: inline-block; font-weight: 600; min-height: 40px; }
.btn:hover { background: var(--gold-hover); color: #151A23; }
/* No overflow */
section, div, p, h1, h2, h3 { max-width: 100%; }
@media (max-width: 430px) {
  .container { padding: 0 12px; }
}
