/* =========================================================
   DNF私服辅助下载网 - dmtkz.com 全站样式
   主题：暗黑哥特 + 红金烈焰，适配百度SEO与移动端
   ========================================================= */

:root {
  --bg: #0c0c14;
  --bg-2: #12121f;
  --bg-3: #181828;
  --card: #16162a;
  --border: #262640;
  --text: #d7d7e3;
  --text-dim: #9a9ab0;
  --gold: #f5c14b;
  --gold-deep: #d99a1f;
  --red: #ff2d3f;
  --red-deep: #c41f2e;
  --orange: #ff7a18;
  --grad-main: linear-gradient(135deg, #ff7a18 0%, #ff2d3f 55%, #c41f2e 100%);
  --grad-gold: linear-gradient(135deg, #ffe9a8 0%, #f5c14b 45%, #d99a1f 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 8px 26px rgba(255, 45, 63, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: linear-gradient(90deg, #1a0b0e, #241012);
  border-bottom: 1px solid rgba(255, 45, 63, 0.18);
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--gold); font-weight: 600; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 12, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
  box-shadow: var(--shadow-red);
}
.logo-text { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.logo-text em { font-style: normal; color: var(--gold); }
.logo-sub { font-size: 11px; color: var(--text-dim); display: block; letter-spacing: 2px; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 16px; border-radius: 8px;
  color: var(--text); font-size: 15px; font-weight: 500;
  transition: all 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255, 45, 63, 0.14); }
.main-nav a.active { color: var(--gold); font-weight: 700; }

.nav-cta {
  padding: 9px 20px; border-radius: 999px;
  background: var(--grad-main); color: #fff !important;
  font-weight: 700; box-shadow: var(--shadow-red);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  background: var(--bg-2); border-radius: 8px; color: #fff; font-size: 20px;
  cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.25s;
}
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255, 45, 63, 0.5); }
.btn-gold { background: var(--grad-gold); color: #2a1c00; box-shadow: 0 8px 24px rgba(245, 193, 75, 0.35); }
.btn-gold:hover { transform: translateY(-3px); }
.btn-outline { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 16px 44px; font-size: 18px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 75% 20%, rgba(255, 45, 63, 0.22), transparent 55%),
              radial-gradient(ellipse at 15% 80%, rgba(245, 193, 75, 0.12), transparent 50%),
              var(--bg);
  padding: 90px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 193, 75, 0.12); border: 1px solid rgba(245, 193, 75, 0.35);
  color: var(--gold); font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.25;
  color: #fff; font-weight: 900; margin-bottom: 18px;
}
.hero h1 span { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--text-dim); max-width: 620px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .num { font-size: 26px; font-weight: 900; color: var(--gold); }
.hero-stats .lbl { font-size: 13px; color: var(--text-dim); }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #2a1430, #160b16);
}
.hero-float {
  position: absolute; left: -18px; bottom: -16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 18px;
  box-shadow: var(--shadow); font-size: 13px; color: var(--text-dim);
}
.hero-float b { display: block; color: var(--gold); font-size: 16px; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--red); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 36px); color: #fff; font-weight: 900; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 15px; }

/* ---------- 特性卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.f-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.f-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-main); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.f-card:hover { transform: translateY(-6px); border-color: rgba(255, 45, 63, 0.5); box-shadow: var(--shadow); }
.f-card:hover::before { transform: scaleX(1); }
.f-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: rgba(255, 45, 63, 0.1); border: 1px solid rgba(255, 45, 63, 0.3);
}
.f-card h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.f-card p { color: var(--text-dim); font-size: 14px; }

/* ---------- 下载区块 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card {
  background: linear-gradient(170deg, var(--card), var(--bg-3));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; position: relative;
  transition: all 0.3s;
}
.dl-card:hover { transform: translateY(-6px); border-color: rgba(245, 193, 75, 0.5); box-shadow: var(--shadow); }
.dl-card .hot-tag {
  position: absolute; top: -12px; right: 18px;
  background: var(--grad-main); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; box-shadow: var(--shadow-red);
}
.dl-icon {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 20px;
  background: var(--grad-main); display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff; box-shadow: var(--shadow-red);
}
.dl-card h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.dl-card .ver { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.dl-card p { color: var(--text-dim); font-size: 13.5px; margin-bottom: 18px; min-height: 62px; }
.dl-meta { display: flex; justify-content: center; gap: 18px; font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }

/* ---------- 图文介绍 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split .img-box img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-3); }
.split h2 { color: #fff; font-size: 28px; font-weight: 900; margin-bottom: 16px; }
.split p { color: var(--text-dim); margin-bottom: 14px; }
.check-list li { position: relative; padding: 8px 0 8px 30px; color: var(--text); font-size: 15px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 45, 63, 0.15); color: var(--red);
  font-size: 12px; font-weight: 900; text-align: center; line-height: 20px;
}

/* ---------- 私服推荐 ---------- */
.server-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.server-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; transition: all 0.3s;
}
.server-item:hover { border-color: rgba(245, 193, 75, 0.5); transform: translateX(6px); }
.server-rank {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  background: rgba(245, 193, 75, 0.1); border: 1px solid rgba(245, 193, 75, 0.3);
  color: var(--gold); font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.server-info { flex: 1; }
.server-info h3 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.server-info p { color: var(--text-dim); font-size: 13px; }
.server-tag { font-size: 12px; color: var(--red); font-weight: 700; border: 1px solid rgba(255, 45, 63, 0.4); border-radius: 999px; padding: 3px 12px; }

/* ---------- 教程步骤 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px; position: relative;
  counter-increment: step; transition: all 0.3s;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(255, 45, 63, 0.5); }
.step-card::after {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 16px; right: 20px;
  font-size: 44px; font-weight: 900; color: rgba(255, 255, 255, 0.05);
}
.step-card h3 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.step-card p { color: var(--text-dim); font-size: 14px; }
.step-card a { color: var(--gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer; font-size: 16px; font-weight: 700; color: #fff;
  list-style: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 45, 63, 0.15); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; transition: transform 0.3s;
}
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 16px 22px; color: var(--text-dim); font-size: 14.5px; }
.faq-item .faq-body a { color: var(--gold); font-weight: 700; }

/* ---------- 新闻资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(255, 45, 63, 0.5); box-shadow: var(--shadow); }
.news-card img { height: 170px; width: 100%; object-fit: cover; background: var(--bg-3); }
.news-body { padding: 20px 22px; }
.news-date { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.news-date b { color: var(--gold); }
.news-body h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.news-body p { color: var(--text-dim); font-size: 13.5px; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(196, 31, 46, 0.9), rgba(255, 122, 24, 0.9));
  border-radius: 20px; padding: 52px 40px; text-align: center;
  box-shadow: var(--shadow-red); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.25), transparent 50%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 34px); font-weight: 900; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: #c41f2e; }
.cta-band .btn:hover { transform: translateY(-3px); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a0a12; border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p, .footer-col li { color: var(--text-dim); font-size: 14px; margin-bottom: 8px; }
.footer-col li a:hover { color: var(--gold); }
.footer-qq {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 45, 63, 0.1); border: 1px solid rgba(255, 45, 63, 0.4);
  color: #fff; font-weight: 700; padding: 10px 20px; border-radius: 10px;
  margin-top: 8px; transition: all 0.25s;
}
.footer-qq:hover { background: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0;
  text-align: center; font-size: 13px; color: var(--text-dim);
}
.footer-bottom a { color: var(--gold); }

/* ---------- 页头横幅 ---------- */
.page-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 63, 0.18), transparent 60%), var(--bg);
  padding: 60px 0 48px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); max-width: 640px; margin: 0 auto; font-size: 15px; }
.crumb { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.crumb a { color: var(--gold); }

/* ---------- 文章内容 ---------- */
.prose { max-width: 880px; margin: 0 auto; color: var(--text-dim); font-size: 15px; }
.prose h2 { color: #fff; font-size: 24px; margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--red); }
.prose h3 { color: #fff; font-size: 19px; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin-bottom: 14px; padding-left: 22px; }
.prose ul li { list-style: disc; margin-bottom: 6px; }
.prose ol li { list-style: decimal; margin-bottom: 6px; }
.prose a { color: var(--gold); font-weight: 700; }
.prose .tip {
  background: rgba(245, 193, 75, 0.08); border: 1px solid rgba(245, 193, 75, 0.3);
  border-radius: 10px; padding: 14px 18px; margin: 16px 0; color: var(--gold); font-size: 14px;
}
.prose .warn {
  background: rgba(255, 45, 63, 0.08); border: 1px solid rgba(255, 45, 63, 0.35);
  border-radius: 10px; padding: 14px 18px; margin: 16px 0; color: var(--red); font-size: 14px;
}
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-size: 14px; }
.prose th { background: var(--bg-3); color: var(--gold); }

/* ---------- 联系卡片 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center; transition: all 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(255, 45, 63, 0.5); }
.contact-card .c-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--grad-main); display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; box-shadow: var(--shadow-red);
}
.contact-card h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.contact-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }
.contact-card .big { color: var(--gold); font-size: 20px; font-weight: 900; letter-spacing: 1px; }

/* ---------- 悬浮QQ ---------- */
.float-qq {
  position: fixed; right: 20px; bottom: 90px; z-index: 99;
  display: flex; flex-direction: column; gap: 10px;
}
.float-qq a {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; box-shadow: var(--shadow);
  transition: all 0.25s;
}
.float-qq .fq-qq { background: var(--grad-main); }
.float-qq .fq-top { background: var(--bg-3); border: 1px solid var(--border); }
.float-qq a:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .server-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 10px 4%; box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { text-align: center; }
  .hero { padding: 56px 0 60px; }
  .feature-grid, .dl-grid, .news-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-band { padding: 36px 22px; }
  .topbar .tb-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .dl-card p { min-height: 0; }
}
