/* 九游会体育 官网样式 - 深色黑金主题 */
:root {
  --bg: #151A23;
  --card: #1B2130;
  --secondary: #202738;
  --hover: #252D40;
  --gold: #F1DCA3;
  --gold-hover: #E3C98F;
  --text: #E8ECF5;
  --text-secondary: #B8C0D3;
  --text-muted: #8F98AD;
  --footer-bg: #0E121A;
  --footer-text: #D5DBEA;
  --max-width: 1200px;
  --radius: 14px;
}

* { 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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-hover); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; width: 100%; }

/* 顶栏 */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #252D40;
  height: 64px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.logo { height: 36px; display: flex; align-items: center; }
.logo img { height: 36px; width: auto; object-fit: contain; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--gold); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}
.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;
  min-width: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-register:hover { background: var(--gold-hover); }

/* 手机顶栏 */
.mobile-header { display: none; }
.menu-toggle {
  background: none; border: none; color: var(--text);
  font-size: 24px; cursor: pointer; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}

/* 抽屉 */
.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 0 40px;
  }
  .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; padding: 0 20px; }
  .drawer-group h3 { color: var(--gold); font-size: 14px; margin-bottom: 12px; letter-spacing: 1px; }
  .drawer-group a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    border-bottom: 1px solid #252D40;
    min-height: 40px;
  }
}

/* 主内容 */
main { flex: 1; padding: 24px 0 80px; }
.hero { margin-bottom: 40px; }
h1 {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.3;
}
h2 { font-size: 24px; color: var(--gold); margin: 32px 0 16px; }
h3 { font-size: 20px; color: var(--gold); margin: 24px 0 12px; }
p { margin-bottom: 16px; color: var(--text); }
.section { margin-bottom: 40px; }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  transition: background .2s;
}
.card:hover { background: var(--hover); }
.card h3 { margin-top: 0; }

/* 媒体盒子 */
.media {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  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 { height: 300px; }
@media (max-width: 768px) {
  .media-poster { height: 180px; }
  h1 { font-size: 28px; }
}

/* 占位 */
.placeholder {
  background: #1B2130;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

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

/* 手机底栏 */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid #252D40;
  z-index: 999;
  height: 56px;
}
.bottom-nav { display: flex; height: 100%; }
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
  min-height: 40px;
}
.bottom-nav a.active { color: var(--gold); }

@media (max-width: 980px) {
  .desktop-only { display: none !important; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .main-nav { display: none; }
  .site-header { height: 56px; }
  .header-inner { height: 56px; }
  .logo img { height: 28px; }
  .btn-register { height: 36px; min-width: 76px; padding: 0 14px; font-size: 13px; }
  .mobile-bottom-bar { display: block; }
  main { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; }
}

body.drawer-open { overflow: hidden; }

/* 链接最小点击 */
a, button { touch-action: manipulation; }
.drawer-group a, .bottom-nav a { min-height: 40px; }

/* 其他工具类 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.brand-item { background: var(--card); border-radius: 10px; padding: 12px; text-align: center; }
.brand-item img { height: 48px; object-fit: contain; margin-bottom: 8px; }
