/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #2c2c2c;
  background: #f7f8fc;
  -webkit-font-smoothing: antialiased;
}

a { color: #c0392b; text-decoration: none; transition: color .2s; }
a:hover { color: #e74c3c; }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部公告条 ===== */
.top-bar {
  background: linear-gradient(90deg, #1a1a2e 0%, #2d2d5e 100%);
  color: #e0e0ff;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ffd700; margin: 0 4px; }
.top-bar a:hover { color: #fff; }
.top-bar strong { color: #ff6b6b; }

/* ===== 主导航 ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 30px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: #1a1a2e; }
.logo-icon { font-size: 28px; }
.logo-accent { color: #c0392b; }
.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  color: #444;
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover { background: #f0f0f5; color: #c0392b; }
.nav-active { background: #c0392b !important; color: #fff !important; }
.nav-active:hover { background: #a93226 !important; color: #fff !important; }
.header-search { display: flex; gap: 0; }
.header-search input {
  width: 200px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-size: 14px;
}
.header-search input:focus { border-color: #c0392b; }
.header-search button {
  padding: 8px 16px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.header-search button:hover { background: #a93226; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 40%, #c0392b 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; position: relative; }
.hero h1 { font-size: 42px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 28px; }
.tag-inline {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 2px 10px;
  border-radius: 4px;
  margin: 0 4px;
  font-size: 14px;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 36px; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
}
.btn-primary { background: #ffd700; color: #1a1a2e; }
.btn-primary:hover { background: #ffea00; color: #1a1a2e; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.hero-stats { display: flex; gap: 40px; }
.hero-stats li { list-style: none; text-align: center; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 900; color: #ffd700; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.7); }

/* Hero Card */
.hero-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 24px;
}
.hero-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hero-card-header span { font-weight: 700; font-size: 16px; }
.hero-card-header a { color: #ffd700; font-size: 14px; }
.hero-card-list { list-style: none; }
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.hero-card-list li:last-child { border-bottom: none; }
.hero-card-list strong { color: #ffd700; min-width: 50px; }
.hero-card-list em { color: #aaa; font-style: normal; font-size: 12px; margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff6b6b; }
.dot-orange { background: #ffa502; }
.dot-green { background: #2ed573; }
.dot-blue { background: #70a1ff; }
.dot-purple { background: #a29bfe; }

/* ===== 信任条 ===== */
.trust-bar { background: #fff; padding: 24px 0; border-bottom: 1px solid #eee; }
.trust-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.trust-inner > div { text-align: center; }
.trust-icon { font-size: 28px; display: block; margin-bottom: 4px; }
.trust-inner strong { display: block; font-size: 15px; color: #1a1a2e; }
.trust-inner small { font-size: 12px; color: #888; }

/* ===== 通用区块 ===== */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head h2 { font-size: 26px; font-weight: 800; color: #1a1a2e; }
.section-sub { font-size: 14px; color: #888; font-weight: 400; }
.section-more { color: #c0392b; font-weight: 600; font-size: 15px; }

/* ===== 服务器卡片 ===== */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.server-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  position: relative;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid #f0f0f0;
}
.server-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.sc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.sc-badge-orange { background: #e67e22; }
.sc-badge-green { background: #27ae60; }
.sc-badge-blue { background: #2980b9; }
.sc-badge-purple { background: #8e44ad; }
.server-card h3 { font-size: 18px; font-weight: 800; color: #1a1a2e; margin-bottom: 12px; padding-right: 80px; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sc-meta span { font-size: 12px; background: #f5f5fa; padding: 3px 8px; border-radius: 4px; color: #555; }
.sc-desc { font-size: 14px; color: #666; margin-bottom: 14px; line-height: 1.6; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sc-tags span { font-size: 12px; background: #fff3f0; color: #c0392b; padding: 3px 10px; border-radius: 20px; }
.sc-actions { display: flex; gap: 10px; }
.btn-sm {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}
.btn-sm.btn-primary { background: #c0392b; color: #fff; }
.btn-sm.btn-primary:hover { background: #a93226; color: #fff; }
.btn-sm.btn-outline { background: transparent; color: #c0392b; border-color: #c0392b; }
.btn-sm.btn-outline:hover { background: #c0392b; color: #fff; }

/* ===== 版本卡片 ===== */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.version-card {
  background: #f7f8fc;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: all .25s;
  border: 1px solid #eee;
  color: inherit;
}
.version-card:hover { background: #c0392b; color: #fff; transform: translateY(-3px); }
.version-card:hover h3 { color: #fff; }
.version-card:hover p { color: rgba(255,255,255,.85); }
.version-card:hover .vc-count { background: rgba(255,255,255,.2); color: #fff; }
.vc-icon { font-size: 42px; margin-bottom: 12px; }
.version-card h3 { font-size: 18px; font-weight: 800; color: #1a1a2e; margin-bottom: 10px; }
.version-card p { font-size: 14px; color: #666; margin-bottom: 14px; }
.vc-count { display: inline-block; font-size: 12px; background: #fff; padding: 4px 12px; border-radius: 20px; color: #c0392b; font-weight: 600; }

/* ===== SEO内容区 ===== */
.seo-content { display: flex; flex-direction: column; gap: 24px; }
.seo-block {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  border-left: 4px solid #c0392b;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.seo-block h3 { font-size: 20px; font-weight: 800; color: #1a1a2e; margin-bottom: 14px; }
.seo-block p { font-size: 15px; color: #444; line-height: 1.85; margin-bottom: 12px; }
.seo-block p:last-child { margin-bottom: 0; }
.seo-block strong { color: #c0392b; }

/* ===== 攻略卡片 ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.guide-card {
  background: #f7f8fc;
  border-radius: 12px;
  padding: 24px;
  transition: all .25s;
  border: 1px solid #eee;
  color: inherit;
  display: block;
}
.guide-card:hover { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.gc-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 600;
  background: #e8f4fd;
  color: #2980b9;
}
.gc-tag-hot { background: #fde8e8; color: #c0392b; }
.gc-tag-new { background: #e8fdf0; color: #27ae60; }
.guide-card h3 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.guide-card p { font-size: 13px; color: #666; margin-bottom: 12px; line-height: 1.6; }
.gc-meta { font-size: 12px; color: #999; }

/* ===== 下载卡片 ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.dl-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  border: 1px solid #f0f0f0;
  transition: all .25s;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.dl-icon { font-size: 44px; margin-bottom: 12px; }
.dl-card h3 { font-size: 17px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.dl-card p { font-size: 13px; color: #666; margin-bottom: 12px; }
.dl-size { display: block; font-size: 12px; color: #999; margin-bottom: 16px; }

/* ===== 关于预览 ===== */
.about-preview { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.ap-text p { font-size: 15px; color: #444; line-height: 1.85; margin-bottom: 16px; }
.ap-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ap-stats > div { text-align: center; background: #f7f8fc; padding: 24px; border-radius: 12px; }
.ap-stats strong { display: block; font-size: 32px; font-weight: 900; color: #c0392b; }
.ap-stats span { font-size: 13px; color: #888; }

/* ===== 底部 ===== */
.site-footer { background: #1a1a2e; color: #aaa; padding: 50px 0 20px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #888; font-size: 14px; }
.footer-col a:hover { color: #ffd700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; }
.footer-bottom a { color: #ffd700; }

/* ===== 攻略中心页特有 ===== */
.guide-full-list { display: flex; flex-direction: column; gap: 20px; }
.guide-full-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  border: 1px solid #f0f0f0;
}
.guide-full-card h3 { font-size: 20px; font-weight: 800; color: #1a1a2e; margin-bottom: 12px; }
.guide-full-card .gc-meta { display: block; margin-bottom: 14px; }
.guide-full-card p { font-size: 15px; color: #444; line-height: 1.85; margin-bottom: 12px; }
.guide-full-card .full-content { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.guide-full-card .full-content.expanded { display: block; }
.guide-full-card .full-content h4 { font-size: 16px; font-weight: 700; color: #c0392b; margin: 16px 0 8px; }
.guide-full-card .full-content ul { padding-left: 20px; margin-bottom: 12px; }
.guide-full-card .full-content li { font-size: 14px; color: #555; margin-bottom: 6px; }
.toggle-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.toggle-btn:hover { background: #a93226; }

/* ===== 表格通用 ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #1a1a2e; color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #eee; }
.data-table tr:hover td { background: #f9f9fc; }
.data-table .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-red { background: #fde8e8; color: #c0392b; }
.tag-green { background: #e8fdf0; color: #27ae60; }
.tag-blue { background: #e8f0fd; color: #2980b9; }
.tag-orange { background: #fdf0e8; color: #e67e22; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 20px; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .header-search { margin-left: auto; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; }
  .ap-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .top-bar .container { flex-direction: column; gap: 6px; text-align: center; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 24px; }
  .hero-cta { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .ap-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
  .seo-block { padding: 20px; }
}
