/* 九游会体育 官网样式 */
: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 { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }

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 16px; }
.main-content { padding-top: 80px; padding-bottom: 80px; min-height: 60vh; }

h1 { font-size: 36px; color: var(--gold); margin: 0 0 20px; line-height: 1.3; }
h2 { font-size: 26px; color: var(--gold); margin: 32px 0 16px; }
h3 { font-size: 20px; color: var(--gold); margin: 24px 0 12px; }
p { margin: 0 0 16px; color: var(--text); }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 8px; }

/* 顶栏 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #252D40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}
.logo {
  height: 36px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: var(--gold);
  white-space: nowrap;
}
.nav-desktop {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-desktop a {
  color: var(--text);
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  min-height: auto;
}
.nav-desktop a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.btn-register {
  background: var(--gold);
  color: #151A23 !important;
  padding: 0 20px;
  height: 40px;
  border-radius: 999px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  flex-shrink: 0;
  text-decoration: none;
}
.btn-register:hover { background: var(--gold-hover); }

/* 手机菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  min-height: 40px;
}

/* 抽屉 */
.mobile-drawer,
.drawer-mask { display: none; }
.mobile-drawer {
  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;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-mask {
  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: 16px; padding: 0 16px; }
.drawer-group h4 { color: var(--gold); font-size: 14px; margin-bottom: 8px; padding-left: 8px; }
.drawer-group a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  border-radius: 8px;
  min-height: 44px;
}
.drawer-group a:hover, .drawer-group a.active { background: var(--hover); color: var(--gold); }

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

/* 卡片与媒体 */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.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-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  background: #1B2130;
}

/* 首页布局 */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}
.hero-text h1 { margin-bottom: 16px; }
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.entry-card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: background .2s;
}
.entry-card:hover { background: var(--hover); }
.entry-card h3 { margin-top: 0; }
.brand-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.brand-item {
  background: var(--secondary);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.brand-item img { max-height: 48px; margin-bottom: 8px; object-fit: contain; }

/* 页脚 */
.site-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: 32px;
  margin-bottom: 24px;
}
.footer-cols h4 { color: var(--gold); margin-bottom: 12px; font-size: 16px; }
.footer-cols a { color: var(--footer-text); display: block; padding: 4px 0; min-height: auto; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #252D40;
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* 响应式 */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .logo img, .logo { height: 28px; }
  .btn-register { height: 36px; min-width: 76px; padding: 0 12px; font-size: 14px; }
  .bottom-nav { display: flex; }
  .main-content { padding-bottom: 90px; }
  h1 { font-size: 28px; }
  .hero-split { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .media-16x9 { max-height: 180px; }
  .media-3x4 { max-height: 240px; }
}

@media (min-width: 981px) {
  .media-16x9 { height: 260px; }
  .media-3x4 { height: 280px; }
}

/* 强制手机遮罩规则 */
@media (max-width: 980px) {
  .mobile-drawer { display: block; }
  .drawer-mask { display: none; }
  .drawer-mask.is-visible { display: block; opacity: 1; pointer-events: auto; }
}
