/* 九游会体育 - 深色黑金主题样式 */
/* 基础重置与字体 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #151A23;
  color: #E8ECF5;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: #F1DCA3; text-decoration: none; }
a:hover { color: #E3C98F; }
h1, h2, h3 { color: #F1DCA3; font-weight: 600; }
h1 { font-size: 36px; line-height: 1.3; margin-bottom: 1rem; }
h2 { font-size: 28px; margin: 2rem 0 1rem; }
h3 { font-size: 22px; margin: 1.5rem 0 0.8rem; }
p { margin-bottom: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar {
  background: #151A23;
  border-bottom: 1px solid #252D40;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo { height: 36px; display: flex; align-items: center; }
.logo img { height: 36px; width: auto; object-fit: contain; }
.logo-text { color: #F1DCA3; font-size: 20px; font-weight: bold; }
.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a {
  color: #E8ECF5;
  padding: 8px 0;
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.nav-desktop a.active, .nav-desktop a:hover {
  color: #F1DCA3;
}
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #F1DCA3;
}
.btn-register {
  background: #F1DCA3;
  color: #151A23;
  border-radius: 999px;
  padding: 0 20px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  min-width: 90px;
  border: none;
  cursor: pointer;
}
.btn-register:hover { background: #E3C98F; color: #151A23; }

/* 手机顶栏 */
.mobile-topbar { display: none; }
.menu-toggle {
  background: none;
  border: none;
  color: #E8ECF5;
  font-size: 24px;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
}

/* 抽屉与遮罩 - 强制规则 */
.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;
  }
  .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; padding: 0 20px; }
  .drawer-group h4 { color: #F1DCA3; margin-bottom: 10px; font-size: 16px; }
  .drawer-group a {
    display: block;
    padding: 10px 0;
    color: #E8ECF5;
    min-height: 40px;
    touch-action: manipulation;
  }
  .drawer-group a:hover { color: #F1DCA3; }
}

/* 主内容 */
main { padding: 40px 0 80px; min-height: 60vh; }
@media (max-width: 980px) {
  main { padding-bottom: 100px; } /* 预留底栏 */
}

/* 卡片与媒体 */
.card {
  background: #1B2130;
  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; }
.poster-box { height: 300px; }
@media (max-width: 768px) {
  .poster-box { height: 180px; }
  h1 { font-size: 28px; }
}

/* 页脚 */
.footer {
  background: #0E121A;
  color: #D5DBEA;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer h4 { color: #F1DCA3; margin-bottom: 12px; }
.footer a { color: #D5DBEA; display: block; padding: 4px 0; }
.footer a:hover { color: #F1DCA3; }
.footer-bottom {
  border-top: 1px solid #252D40;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #8F98AD;
}

/* 手机底栏 */
.mobile-bottom {
  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) {
  .mobile-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom a {
    color: #E8ECF5;
    text-align: center;
    font-size: 12px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    touch-action: manipulation;
  }
  .mobile-bottom a.active { color: #F1DCA3; }
}

/* 响应式调整 */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .mobile-topbar { display: flex; width: 100%; justify-content: space-between; align-items: center; }
  .logo { height: 28px; }
  .logo img { height: 28px; }
  .btn-register { height: 36px; min-width: 76px; font-size: 14px; padding: 0 12px; }
  .topbar { height: 56px; }
}
body.drawer-open { overflow: hidden; }

/* 链接最小点击高度 */
a { min-height: 40px; display: inline-flex; align-items: center; touch-action: manipulation; }
.nav-desktop a { display: flex; }
