/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c8a84b;
  --gold-light: #e8c96a;
  --gold-dark: #8a6f2e;
  --bg-dark: #0d0d14;
  --bg-mid: #111118;
  --bg-card: #16161f;
  --bg-card2: #1c1c28;
  --text: #d4c5a0;
  --text-light: #f0e6cc;
  --text-muted: #7a6e5a;
  --border: rgba(200,168,75,0.18);
  --border-bright: rgba(200,168,75,0.45);
  --navbar-h: 64px;
  --container: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(10,10,18,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(8,8,15,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(1.2) drop-shadow(0 0 6px rgba(200,168,75,0.8));
}
.nav-logo .logo-text { color: var(--text-light); font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.nav-logo .logo-text em { color: var(--gold); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-btn-dl {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000 !important;
  padding: 7px 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(200,168,75,0.3);
}
.nav-btn-dl:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  box-shadow: 0 0 20px rgba(200,168,75,0.5) !important;
}
.nav-btn-dl::after { display: none !important; }
.nav-mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 18px;
  padding: 4px 10px;
  cursor: pointer;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(8,8,15,0.98);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
}
.nav-mobile-menu a {
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  letter-spacing: 1px;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu.open { display: flex; }

/* ===== 主 Banner 轮播 ===== */
.main-banner {
  position: relative;
  height: 580px;
  overflow: hidden;
  margin-top: var(--navbar-h);
  background: #050508;
}
.banner-list { position: relative; width: 100%; height: 100%; }
.banner-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.banner-item.active { opacity: 1; z-index: 1; }
.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
  transition: transform 10s ease;
  background-color: #0a0510;
}
.banner-item.active .banner-bg { transform: scale(1); }
/* 左侧遮文字，右侧大面积露出图片 — 对标台服效果 */
.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(5,3,12,0.92) 0%,
      rgba(5,3,12,0.75) 25%,
      rgba(5,3,12,0.35) 50%,
      rgba(5,3,12,0.05) 75%,
      transparent 100%),
    linear-gradient(0deg, rgba(5,3,12,0.75) 0%, transparent 25%);
}
.banner-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg-dark) 0%, transparent 100%);
}
.banner-info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  left: 50%;
  transform: translateX(-50%);
  padding: 0 60px;
  z-index: 2;
}
.banner-info-cell {
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.3s ease, transform 0.8s 0.3s ease;
}
.banner-item.active .banner-info-cell {
  opacity: 1;
  transform: translateY(0);
}
.banner-category {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.banner-category span {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
}
.tag-event { background: #8a4f2e; color: #ffd4a0; }
.tag-update { background: #2e5a8a; color: #a0d4ff; }
.banner-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.9), 0 0 60px rgba(200,168,75,0.15);
  margin-bottom: 14px;
  letter-spacing: 3px;
}
.banner-desc {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(240,230,204,0.8);
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}
.banner-date {
  display: block;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.banner-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  padding: 12px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  box-shadow: 0 0 20px rgba(200,168,75,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 35px rgba(200,168,75,0.5);
  color: #000;
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  padding: 11px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: all 0.3s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-outline:hover {
  background: rgba(200,168,75,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* Banner 底部控制 */
.banner-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
  z-index: 10;
}
.banner-bottom-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.banner-counter {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 1px;
  position: absolute;
  left: 20px;
}
.banner-counter .banner-current { color: #fff; font-size: 15px; }
.banner-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  width: 28px;
  background: var(--gold);
}
.banner-prev, .banner-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: color 0.2s;
}
.banner-prev { right: 50px; }
.banner-next { right: 16px; }
.banner-prev:hover, .banner-next:hover { color: var(--gold); }

/* ===== 快捷入口栏 ===== */
.quick-nav {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.quick-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 20px;
}
.quick-nav-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.stat-item em {
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
}
.stat-item span { color: var(--text-muted); font-size: 12px; }
.stat-sep { color: var(--border-bright); }
.quick-nav-links {
  display: flex;
  gap: 0;
}
.qlink {
  padding: 0 18px;
  height: 52px;
  line-height: 52px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
  border-left: 1px solid var(--border);
  transition: all 0.2s;
}
.qlink:hover { color: var(--gold); background: rgba(200,168,75,0.05); }
.qlink-dl {
  background: rgba(200,168,75,0.08);
  color: var(--gold);
  font-weight: 700;
}

/* ===== 主内容三栏 ===== */
.index-main {
  display: grid;
  grid-template-columns: 1fr 300px 240px;
  gap: 2px;
  padding-top: 24px;
  padding-bottom: 30px;
  align-items: start;
}

/* 区块标题 */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-bright);
  margin-bottom: 16px;
}
.section-heading h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
}
.section-heading h3 span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
}
.section-heading-center { justify-content: center; }
.section-heading-center h3 { font-size: 20px; letter-spacing: 3px; }
.btn-more {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  border: 1px solid var(--border);
  padding: 2px 10px;
}
.btn-more:hover { color: var(--gold); border-color: var(--gold); }

/* 新闻列表 */
.news-section { padding: 20px 25px; background: var(--bg-card); min-height: 280px; }
.news-list { list-style: none; }
.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.news-list li:last-child { border-bottom: none; }
.news-list .news-loading { color: var(--text-muted); font-size: 13px; padding: 20px 0; }
.news-title {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.news-title:hover { color: var(--gold-light); }
.news-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 2px;
  margin-right: 6px;
  flex-shrink: 0;
}
.tag-pin { background: rgba(200,168,75,0.15); color: var(--gold); border: 1px solid var(--border-bright); }
.news-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  letter-spacing: 1px;
}

/* 热门活动 */
.hot-section { padding: 20px 20px; background: var(--bg-card); min-height: 280px; }
.hot-list { list-style: none; }
.hot-list li { margin-bottom: 14px; }
.hot-list li:last-child { margin-bottom: 0; }
.hot-item {
  display: flex;
  gap: 12px;
  align-items: center;
  transition: background 0.2s;
  padding: 8px;
  margin: -8px;
  border-radius: 2px;
}
.hot-item:hover { background: rgba(200,168,75,0.06); }
.hot-img {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  display: block;
  border: 1px solid var(--border);
}
.hot-info { flex: 1; overflow: hidden; }
.hot-info strong {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-info i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 服务器信息 */
.server-info-section { padding: 20px 18px; background: var(--bg-card); min-height: 280px; }
.server-info-list { list-style: none; }
.server-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.server-info-list li:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { font-weight: 700; letter-spacing: 1px; }
.info-value.gold { color: var(--gold); }
.maintain-notice {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(200,168,75,0.05);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  line-height: 1.6;
}

/* ===== 排行榜 ===== */
.ranking-section {
  background: var(--bg-mid);
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 20px 0 30px;
}
.ranking-tab {
  padding: 10px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 2px;
  transition: all 0.3s;
  font-family: inherit;
}
.ranking-tab.active {
  background: rgba(200,168,75,0.1);
  border-color: var(--gold);
  color: var(--gold);
}
.ranking-tab:hover:not(.active) { color: var(--text-light); background: var(--bg-card2); }
.ranking-table-wrap { max-width: 800px; margin: 0 auto; display: none; }
.ranking-table-wrap.active { display: block; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th {
  padding: 12px 20px;
  background: rgba(200,168,75,0.08);
  border-bottom: 1px solid var(--border-bright);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-align: left;
  font-weight: 600;
}
.ranking-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.ranking-table tr:hover td { background: rgba(200,168,75,0.04); }
.rank-num { font-weight: 700; font-size: 16px; }
.rank-1 { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }
.rank-class {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(200,168,75,0.08);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}
.ranking-empty {
  text-align: center;
  padding: 50px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 2px;
  border: 1px solid var(--border);
}

/* ===== 新手引导区 ===== */
.beginner-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.beginner-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.25;
  filter: blur(2px);
}
.beginner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--bg-dark) 0%,
    rgba(13,13,20,0.5) 30%,
    rgba(13,13,20,0.5) 70%,
    var(--bg-dark) 100%);
  z-index: 1;
}
.beginner-inner {
  position: relative;
  z-index: 2;
}
.beginner-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(200,168,75,0.2);
}
.beginner-desc {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-bottom: 40px;
}
.beginner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-beginner {
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  display: inline-block;
}
.btn-beginner-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  box-shadow: 0 0 25px rgba(200,168,75,0.3);
}
.btn-beginner-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 40px rgba(200,168,75,0.5);
  color: #000;
  transform: translateY(-2px);
}
.btn-beginner-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-bright);
}
.btn-beginner-outline:hover {
  background: rgba(200,168,75,0.1);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ===== 服务器特性 ===== */
.features-section {
  padding: 60px 0;
  background: var(--bg-dark);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 30px;
}
.feature-card {
  background: var(--bg-card);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  border: 1px solid transparent;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  background: var(--bg-card2);
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(200,168,75,0.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
  color: var(--gold);
}
.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner { text-align: center; }
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.footer-desc {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ===== 动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .index-main { grid-template-columns: 1fr; gap: 2px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .main-banner { height: 420px; }
  .banner-info { padding: 0 24px; }
  .quick-nav-stats .stat-sep:nth-child(n+4) { display: none; }
  .quick-nav-stats .stat-item:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .main-banner { height: 340px; }
  .banner-title { font-size: 28px; }
  .quick-nav-inner { flex-direction: column; height: auto; padding: 10px 20px; gap: 8px; }
  .quick-nav-links { width: 100%; justify-content: space-between; }
  .qlink { border-left: none; padding: 0 10px; }
  .beginner-section { padding: 60px 0; }
}
