/* 热血传奇开服表 - fb.game-sdo.com.cn */
:root {
  --bg: #0a0e14;
  --bg-card: #121820;
  --bg-elevated: #182028;
  --border: #263040;
  --accent: #e74c3c;
  --accent-light: #ff7b6b;
  --accent2: #3498db;
  --red: #c0392b;
  --green: #2ecc71;
  --text: #eef2f8;
  --text-muted: #8a9bb0;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.top-bar {
  background: linear-gradient(90deg, #140a0a, #0a1420);
  border-bottom: 1px solid rgba(231, 76, 60, 0.35);
  font-size: 13px;
  color: var(--text-muted);
}
.top-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.top-bar strong { color: var(--accent-light); }

.site-header {
  background: rgba(10, 14, 20, 0.97);
  border-bottom: 2px solid var(--accent);
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; color: inherit; }
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), #922b21);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
}
.logo-text h1 { font-size: 1.35rem; font-weight: 800; color: var(--accent-light); line-height: 1.2; }
.logo-text span { font-size: 0.72rem; color: var(--text-muted); }

.main-nav ul { display: flex; gap: 6px 20px; list-style: none; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-muted); font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent-light); border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 18px;
}

.hero {
  background: linear-gradient(160deg, #180c0c 0%, #0a0e14 50%, #0c1420 100%);
  padding: 48px 0 56px; border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.hero h2 em { color: var(--accent-light); font-style: normal; }
.hero-lead { color: var(--text-muted); margin-bottom: 24px; max-width: 520px; }
.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats div {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 20px; text-align: center;
}
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--accent2); }
.hero-stats span { font-size: 12px; color: var(--text-muted); }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-weight: 700; font-size: 14px; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: #fff; box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
}
.btn-secondary {
  background: transparent; border: 1px solid var(--accent2);
  color: var(--accent2); margin-left: 10px;
}

.hero-visual {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; text-align: center; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.hero-visual .icon-war { font-size: 64px; filter: drop-shadow(0 0 20px rgba(231, 76, 60, 0.5)); }
.hero-visual p { color: var(--text-muted); font-size: 13px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 20px; }
.filter-bar a {
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer;
}
.filter-bar a.active, .filter-bar a:hover {
  border-color: var(--accent); color: var(--accent-light);
  background: rgba(231, 76, 60, 0.12);
}

.section-title {
  font-size: 1.45rem; font-weight: 700; margin: 40px 0 20px;
  padding-left: 14px; border-left: 4px solid var(--accent);
}
.section-desc { color: var(--text-muted); margin: -12px 0 24px; font-size: 14px; }

.server-table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
}
.server-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.server-table th {
  background: var(--bg-elevated); color: var(--accent-light);
  font-weight: 600; text-align: left; padding: 12px 14px; white-space: nowrap;
}
.server-table td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.server-table tr:hover td { background: rgba(231, 76, 60, 0.06); }
.server-table .name { font-weight: 600; color: #fff; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.tag-hot { background: var(--accent); color: #fff; }
.tag-new { background: var(--green); color: #0a0e14; }
.tag-rec { background: rgba(52, 152, 219, 0.3); color: var(--accent2); }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.card-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }

.news-list { list-style: none; }
.news-list li {
  border-bottom: 1px solid var(--border); padding: 14px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.news-list time { color: var(--text-muted); font-size: 13px; white-space: nowrap; }

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary { padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 18px 16px; color: var(--text-muted); font-size: 14px; }

.breadcrumb { font-size: 13px; color: var(--text-muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-light); }

.site-footer {
  background: #060810; border-top: 1px solid var(--border);
  margin-top: 60px; padding: 40px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px; margin-bottom: 28px;
}
.footer-grid h4 { color: var(--accent-light); margin-bottom: 12px; font-size: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); font-size: 13px; }
.footer-bottom {
  text-align: center; font-size: 12px; color: var(--text-muted);
  padding-top: 20px; border-top: 1px solid var(--border);
}

.page-hero {
  padding: 36px 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); }

.content-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.content-block h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--accent-light); }
.content-block p, .content-block li { color: var(--text-muted); font-size: 14px; }
.content-block ul { padding-left: 20px; margin-top: 8px; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; max-width: 480px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .hero-grid { grid-template-columns: 1fr; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
}
