/* 九游会体育 官网样式 - 深色黑金 */
: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: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.75; max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
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); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 980px) { main { padding-top: 70px; padding-bottom: 90px; } }

/* 顶栏 */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 70px; background: var(--bg); z-index: 1000; border-bottom: 1px solid #252D40; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.logo img { height: 36px; object-fit: contain; }
.logo-text { font-size: 20px; color: var(--gold); font-weight: bold; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); font-size: 16px; position: relative; padding: 8px 0; }
.nav a.active, .nav a:hover { color: var(--gold); }
.nav a.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.btn-register { background: var(--gold); color: #151A23 !important; border-radius: 999px; padding: 0 22px; height: 40px; font-weight: bold; min-width: 100px; justify-content: center; }
.btn-register:hover { background: var(--gold-hover); }
@media (max-width: 980px) {
  .topbar { height: 60px; }
  .nav { display: none; }
  .logo img { height: 28px; }
  .btn-register { height: 36px; min-width: 76px; padding: 0 16px; font-size: 14px; }
  .menu-btn { background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer; }
}

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

/* 手机底栏 */
.bottom-bar { display: none; }
@media (max-width: 980px) {
  .bottom-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: #0E121A; z-index: 1000; justify-content: space-around; align-items: center; border-top: 1px solid #252D40; }
  .bottom-bar a { color: var(--text-secondary); flex-direction: column; font-size: 12px; gap: 4px; min-height: auto; }
  .bottom-bar a.active { color: var(--gold); }
}

/* 媒体 */
.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; }
.poster { height: 320px; }
@media (max-width: 980px) { .poster { height: 180px; } .media-16x9 { height: 160px; } }

/* 卡片与内容 */
.card { background: var(--card); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
h1 { font-size: 38px; color: var(--gold); margin-bottom: 20px; line-height: 1.3; }
h2 { font-size: 26px; color: var(--gold); margin: 28px 0 14px; }
h3 { font-size: 20px; color: var(--gold); margin: 20px 0 10px; }
@media (max-width: 980px) { h1 { font-size: 28px; } h2 { font-size: 22px; } }
p { margin-bottom: 16px; color: var(--text); }
.muted { color: var(--text-muted); font-size: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

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

body.drawer-open { overflow: hidden; }
