/* cqsf.game-37.com.cn 传奇私服发布网 · 白色调 · 必应分散SEO */
:root {
  --primary: #1a5fb4;
  --primary-dark: #0d3d7a;
  --accent: #c45c26;
  --gold: #b8860b;
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card2: #f0f3f8;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --border: #dde3ec;
  --shadow: 0 4px 20px rgba(26,35,50,.08);
  --radius: 10px;
  --font-title: "STKaiti", "KaiTi", "楷体", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--primary); font-weight: 600; }

.site-header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.logo { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 12px; }
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), #3d8fd4);
  border-radius: 10px;
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 20px; color: #fff;
  font-weight: bold;
}
.logo-text h1,
.logo-text .site-name { font-family: var(--font-title); font-size: 1.15rem; color: var(--primary-dark); line-height: 1.2; display: block; }
.logo-text span:not(.site-name) { font-size: 0.72rem; color: var(--text-muted); display: block; }
.footer-keywords a { color: var(--text-muted); }
.footer-keywords a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.main-nav ul { display: -webkit-flex; display: flex; list-style: none; gap: 4px; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary);
  color: #fff;
}

.btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

.hero-carousel {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.hero-slide {
  display: none;
  min-height: 320px;
  background: linear-gradient(135deg, #e8f0fa 0%, #f5f7fa 50%, #fff 100%);
}
.hero-slide.active { display: block; }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #f0f4fa, #e8eef8, #fff); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #faf0e8, #f5f0ea, #fff); }
.hero-overlay {
  min-height: 320px;
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
}
.hero-content { max-width: var(--max); margin: 0 auto; padding: 40px 24px; width: 100%; }
.hero-content h2 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.hero-content h2 em { color: var(--accent); font-style: normal; }
.hero-content p { max-width: 520px; color: var(--text-muted); margin-bottom: 18px; }
.hero-actions { display: -webkit-flex; display: flex; gap: 12px; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 14px; left: 50%;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  display: -webkit-flex; display: flex; gap: 8px; z-index: 5;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
}
.hero-dots button.active { background: var(--primary); }

.stats-bar {
  display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.stat-item {
  -webkit-flex: 1 1 18%; flex: 1 1 18%;
  min-width: 100px;
  text-align: center;
  padding: 18px 10px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 1.4rem; color: var(--primary); font-weight: 800; }
.stat-item span { font-size: 0.8rem; color: var(--text-muted); }
@supports (display: grid) {
  .stats-bar { display: grid; grid-template-columns: repeat(5, 1fr); }
  .stat-item { min-width: 0; }
}

.container { max-width: var(--max); margin: 0 auto; padding: 32px 20px; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.section-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  gap: 8px;
}
.section-title .more { font-size: 0.85rem; font-weight: normal; color: var(--text-muted); }

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  -webkit-align-items: start; align-items: start;
}
@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 12px;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { -webkit-flex-direction: column; flex-direction: column; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature-card .icon { font-size: 2.2rem; margin-bottom: 8px; }
.feature-card h3 { color: var(--primary-dark); font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

.filter-tabs {
  display: -webkit-flex; display: flex;
  -webkit-flex-wrap: wrap; flex-wrap: wrap;
  gap: 8px; margin-bottom: 16px;
}
.filter-tabs button {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  -webkit-transition: box-shadow .2s, border-color .2s;
  transition: box-shadow .2s, border-color .2s;
}
.server-card:hover { border-color: var(--primary); box-shadow: 0 6px 24px rgba(26,95,180,.12); }
.server-card h3 { font-size: 1rem; margin: 8px 0; }
.server-card h3 a { color: var(--primary-dark); }
.server-card .meta { font-size: 0.78rem; color: var(--text-muted); }
.server-card .desc { font-size: 0.86rem; margin: 8px 0; color: var(--text-muted); }
.server-card .features { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.server-card .features em {
  font-style: normal;
  font-size: 0.72rem;
  padding: 3px 10px;
  background: #e8f0fa;
  border-radius: 6px;
  color: var(--primary);
}
.card-footer {
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-align-items: center; align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}
.open-time { color: var(--accent); font-weight: 600; }

.tag { display: inline-block; font-size: 0.68rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-right: 4px; }
.tag-hot { background: #fde8e8; color: #c41e1e; }
.tag-new { background: #e8f5e9; color: #2e7d32; }
.tag-long { background: #e3f2fd; color: var(--primary); }

.rank-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.rank-table th, .rank-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rank-table th { background: var(--primary); color: #fff; }
.rank-num {
  display: -webkit-inline-flex; display: inline-flex;
  width: 26px; height: 26px;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; color: #fff; }

.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.widget h3 { font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.widget ul { list-style: none; }
.widget li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  display: -webkit-flex; display: flex;
  -webkit-justify-content: space-between; justify-content: space-between;
  gap: 8px;
}
.widget li:last-child { border-bottom: none; }
.widget .date { color: var(--text-muted); font-size: 0.72rem; }

.article-block, .seo-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.article-block h2, .seo-content h2 { font-family: var(--font-title); color: var(--primary-dark); font-size: 1.1rem; margin: 14px 0 8px; }
.article-block h2:first-child, .seo-content h2:first-child { margin-top: 0; }
.article-block p, .seo-content p { font-size: 0.94rem; color: var(--text-muted); margin-bottom: 8px; }

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.page-content { padding: 28px 20px 48px; max-width: var(--max); margin: 0 auto; flex: 1; width: 100%; }
.page-title { font-family: var(--font-title); color: var(--primary-dark); font-size: 1.55rem; margin-bottom: 10px; }
.page-intro { color: var(--text-muted); margin-bottom: 24px; }

.version-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.version-block h2 { font-family: var(--font-title); color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 10px; }
.version-block ul { margin: 10px 0 0 20px; color: var(--text-muted); font-size: 0.9rem; }

.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.class-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.class-card h2 { color: var(--primary-dark); margin-bottom: 6px; }
.class-card .role-tag { font-size: 0.8rem; color: var(--accent); margin-bottom: 10px; }
.class-card ul { margin: 10px 0 0 18px; font-size: 0.88rem; color: var(--text-muted); }
.class-warrior { border-top: 3px solid #c41e1e; }
.class-mage { border-top: 3px solid var(--primary); }
.class-taoist { border-top: 3px solid #2e7d32; }

.download-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.download-card h2 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 10px; }
.download-card .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font: inherit;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.publish-form { max-width: 520px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

.news-list { list-style: none; }
.news-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-list li:last-child { border-bottom: none; }
.news-list time { display: inline-block; min-width: 96px; color: var(--primary); font-size: 0.82rem; margin-right: 10px; font-weight: 600; }
.news-list li span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; padding-left: 106px; }

.faq-list details.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq-list details.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
}
.faq-list details.faq-item summary::-webkit-details-marker { display: none; }
.faq-list details.faq-item p { padding-bottom: 14px; font-size: 0.9rem; color: var(--text-muted); }

.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 20px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { color: var(--primary-dark); margin-bottom: 10px; font-size: 0.92rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 5px; }
.footer-col a { color: var(--text-muted); font-size: 0.84rem; }
.footer-col a:hover { color: var(--primary); }
.footer-keywords { max-width: var(--max); margin: 0 auto; padding: 0 20px 14px; font-size: 0.72rem; line-height: 1.8; }
.footer-bottom { text-align: center; padding: 14px; border-top: 1px solid var(--border); font-size: 0.8rem; background: var(--bg); }
.footer-bottom a { color: var(--primary); }
