*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  background: #0c0a0a;
  color: #c0b8b0;
  line-height: 1.7;
}

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

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

/* 血色主题 */
:root {
  --red: #c62828;
  --red-bright: #e84040;
  --red-dark: #8e1a1a;
  --bg-deep: #0c0a0a;
  --bg-card: #141010;
  --bg-card2: #1a1414;
  --border: #2a1a1a;
  --text: #c0b8b0;
  --text-dim: #7a7068;
  --text-bright: #e8ddd0;
  --gold: #d4a040;
}

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

/* 顶部 */
.header {
  background: linear-gradient(180deg, #0f0c0c 0%, #0c0a0a 100%);
  border-bottom: 2px solid #1a1010;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-symbol {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #c62828, #8e1a1a);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  transform: rotate(3deg);
}
.logo-text { font-size: 20px; font-weight: 800; color: #e8ddd0; letter-spacing: 2px; }
.logo-sub { font-size: 11px; color: #5a5048; letter-spacing: 3px; margin-top: -2px; }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 16px; border-radius: 6px;
  color: #7a7068; font-size: 14px; transition: all .2s;
}
.nav a:hover, .nav a.active { color: #e84040; background: rgba(200,40,40,0.08); }
.nav a.active { color: #e84040; font-weight: 600; }

.menu-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: #7a7068; border-radius: 2px; }

/* 英雄区 */
.hero {
  background: linear-gradient(135deg, #0c0a0a 0%, #141010 50%, #0c0a0a 100%);
  padding: 64px 0 50px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; top: -40%; left: -30%;
  width: 160%; height: 160%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200,40,40,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(212,160,64,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 { font-size: 34px; font-weight: 900; color: #e8ddd0; margin-bottom: 12px; letter-spacing: 2px; }
.hero h1 span { color: #e84040; }
.hero p { font-size: 15px; color: #7a7068; max-width: 600px; margin: 0 auto 20px; }
.hero-stats { display: flex; justify-content: center; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats .num { font-size: 28px; font-weight: 900; color: #e84040; }
.hero-stats .label { font-size: 12px; color: #5a5048; }
.hero-stats .item { text-align: center; }

/* 通用 */
.section { padding: 50px 0; }
.section-alt { background: #0e0c0c; }
.section-title { font-size: 24px; font-weight: 800; color: #e8ddd0; margin-bottom: 8px; }
.section-subtitle { font-size: 13px; color: #5a5048; margin-bottom: 28px; }
.section-bar { width: 36px; height: 3px; background: linear-gradient(90deg, #c62828, #e84040); border-radius: 2px; margin-bottom: 18px; }

/* 卡片网格 */
.card-grid { display: grid; gap: 16px; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: linear-gradient(135deg, #141010 0%, #1a1414 100%);
  border: 1px solid #1e1616;
  border-radius: 10px;
  padding: 20px;
  transition: all .25s;
}
.card:hover { border-color: #2a1a1a; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.card-tag { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.tag-fire { background: rgba(200,40,40,0.12); color: #e84040; }
.tag-blood { background: rgba(150,20,20,0.12); color: #c62828; }
.tag-gold { background: rgba(212,160,64,0.12); color: #d4a040; }
.tag-iron { background: rgba(100,100,120,0.12); color: #8a8a9a; }

.card h3 { font-size: 17px; color: #e8ddd0; margin-bottom: 6px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #5a5048; margin: 8px 0 12px; }
.card .desc { font-size: 13px; color: #8a8078; line-height: 1.7; }
.card .btn {
  display: inline-block; margin-top: 12px; padding: 6px 20px;
  background: linear-gradient(135deg, #c62828, #a02020); color: #fff;
  border-radius: 5px; font-size: 13px; font-weight: 700; transition: all .2s;
}
.card .btn:hover { background: linear-gradient(135deg, #e84040, #c62828); }

/* 双栏 */
.cols-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.cols-2-rev { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
@media (max-width:780px) { .cols-2, .cols-2-rev { grid-template-columns: 1fr; } }

/* 排行榜 */
.rank-list { list-style: none; }
.rank-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #1e1616;
}
.rank-list li:last-child { border-bottom: none; }
.rank-num { width: 24px; font-size: 14px; font-weight: 800; color: #5a5048; text-align: center; }
.rank-list li:nth-child(1) .rank-num { color: #d4a040; }
.rank-list li:nth-child(2) .rank-num { color: #b0b0b8; }
.rank-list li:nth-child(3) .rank-num { color: #8a7040; }
.rank-info { flex: 1; }
.rank-info strong { color: #e8ddd0; font-size: 14px; }
.rank-info .v { font-size: 12px; color: #5a5048; }
.rank-hot { font-size: 12px; color: #e84040; font-weight: 600; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 14px; text-align: left; font-size: 13px; color: #d4a040; font-weight: 600;
  background: #1a1414; border-bottom: 2px solid #2a1a1a; white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid #1a1414; font-size: 13px; }
tr:hover td { background: rgba(200,40,40,0.02); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.badge-hot { background: rgba(200,40,40,0.12); color: #e84040; }
.badge-new { background: rgba(40,180,80,0.12); color: #28b450; }
.badge-full { background: rgba(100,100,120,0.12); color: #7a7a8a; }
.badge-wait { background: rgba(212,160,64,0.12); color: #d4a040; }

/* 页脚 */
.footer { background: #080606; border-top: 1px solid #141010; padding: 36px 0 24px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #5a5048; }
.footer-links a:hover { color: #e84040; }
.footer p { font-size: 12px; color: #3a3430; margin-bottom: 2px; }

/* 工具类 - 替代内联 */
.text-desc { font-size: 14px; color: #8a8078; line-height: 1.8; }
.text-desc + .text-desc { margin-top: 14px; }
.mt-16 { margin-top: 16px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter-bar select {
  padding: 8px 14px; background: #141010; border: 1px solid #2a1a1a;
  border-radius: 5px; color: #c0b8b0; font-size: 13px; cursor: pointer;
}
.filter-bar select:focus { outline: none; border-color: #c62828; }

.version-block {
  background: #141010; border: 1px solid #1e1616;
  border-radius: 8px; padding: 14px 16px;
}
.version-block + .version-block { margin-top: 12px; }
.version-block strong { font-size: 15px; font-weight: 700; color: #e8ddd0; display: block; }
.version-block span { font-size: 13px; color: #7a7068; display: block; margin-top: 2px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  background: #141010; border: 1px solid #2a1a1a; color: #7a7068; font-size: 13px;
  transition: all .15s;
}
.page-btn:hover { border-color: #c62828; color: #e84040; }
.page-btn.active { background: rgba(200,40,40,0.1); border-color: #c62828; color: #e84040; }

/* FAQ区块 */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #141010; border: 1px solid #1e1616; border-radius: 8px; padding: 16px 20px; }
.faq-item h3 { font-size: 15px; color: #e84040; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: #8a8078; line-height: 1.7; }

/* Info页卡片深色背景 */
.card-inner { background: linear-gradient(135deg, #141010, #1a1414); }

/* hero小间距 */
.hero-sm { padding: 44px 0 36px; }

/* 表内小按钮 */
.btn-tbl { padding: 4px 14px !important; font-size: 12px !important; }

/* 回到顶部 */
.back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(200,40,40,0.1); border: 1px solid rgba(200,40,40,0.2);
  color: #e84040; font-size: 18px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: all .2s; z-index: 50;
}
.back-top:hover { background: rgba(200,40,40,0.2); }
.back-top.show { display: flex; }

/* 响应式 */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0f0c0c; border-bottom: 2px solid #1a1010; flex-direction: column; padding: 10px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .hero h1 { font-size: 24px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 20px; }
  .hero-stats .num { font-size: 22px; }
  .container { padding: 0 14px; }
}
