/* =========================================================
   无名辅助 · DNF私服辅助官网样式
   纯手写 CSS，无任何第三方依赖，轻量、现代、加载快
   ========================================================= */

/* ---------- 主题变量 ---------- */
:root {
  --bg: #0a0e17;
  --bg-2: #10151f;
  --bg-3: #151c2b;
  --panel: #131a28;
  --panel-2: #182234;
  --line: rgba(224, 177, 90, .18);
  --line-soft: rgba(255, 255, 255, .06);
  --text: #eef2f8;
  --text-dim: #9aa5b7;
  --text-faint: #6b7686;
  --gold: #e8bd66;
  --gold-2: #f3d48a;
  --orange: #ff6a45;
  --teal: #3ee0c4;
  --green: #5ee0a0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-gold: 0 20px 50px -20px rgba(232, 189, 102, .45);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 85% -8%, rgba(255, 106, 69, .10), transparent 60%),
    radial-gradient(800px 500px at 5% 0%, rgba(62, 224, 196, .08), transparent 55%);
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: .3px; }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 76px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 16px;
  background: rgba(232, 189, 102, .06);
}
.section-title { font-size: clamp(26px, 4vw, 38px); }
.section-title em { color: var(--gold-2); font-style: normal; }
.section-sub { color: var(--text-dim); margin-top: 14px; font-size: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #d99b3f);
  color: #201503;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 55px -18px rgba(232, 189, 102, .6); }
.btn-accent {
  background: linear-gradient(135deg, var(--orange), #e0452a);
  color: #fff;
  box-shadow: 0 18px 45px -18px rgba(255, 106, 69, .6);
}
.btn-accent:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-color: var(--line-soft);
}
.btn-ghost:hover { border-color: var(--line); background: rgba(232, 189, 102, .08); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(150%) blur(14px);
  background: rgba(10, 14, 23, .72);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 20px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a1204; font-weight: 900; font-size: 18px;
  box-shadow: var(--shadow-gold);
}
.brand b { color: var(--gold-2); }
.brand small { color: var(--text-faint); font-size: 12px; font-weight: 500; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--teal);
  background: rgba(62, 224, 196, .08);
  border: 1px solid rgba(62, 224, 196, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { font-size: clamp(32px, 5.2vw, 52px); letter-spacing: .5px; }
.hero h1 .hl { background: linear-gradient(135deg, var(--gold-2), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-dim); font-size: 17px; margin: 22px 0 12px; max-width: 560px; }

.hero-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.hero-keywords span {
  font-size: 13px; color: var(--gold);
  background: rgba(232, 189, 102, .07);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 8px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 26px; color: var(--gold-2); }
.hero-stats .stat span { font-size: 13px; color: var(--text-faint); }

/* ---------- 轮播 ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-2);
}
.carousel-track { display: flex; transition: transform .6s var(--ease); }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; aspect-ratio: 716 / 508; object-fit: cover; background: #0d1420; display: block; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(6, 9, 15, .9));
  font-size: 15px; color: var(--text);
  font-weight: 600;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 23, .55);
  color: #fff; font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: rgba(232, 189, 102, .35); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: .25s;
}
.carousel-dots button.active { background: var(--gold); width: 24px; border-radius: 999px; }

/* ---------- 功能网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange)); opacity: 0; transition: .25s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
  background: rgba(232, 189, 102, .10);
  border: 1px solid var(--line);
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 14.5px; }
.feature-card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-card .tags span { font-size: 12px; color: var(--teal); background: rgba(62, 224, 196, .08); padding: 3px 9px; border-radius: 6px; }

/* ---------- 定价 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  position: relative;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232, 189, 102, .12), var(--bg-2));
  box-shadow: var(--shadow-gold);
}
.price-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #201503; font-size: 12px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 18px; margin-bottom: 6px; color: var(--gold-2); }
.price-card .price { font-size: 34px; font-weight: 900; margin: 10px 0 2px; }
.price-card .price small { font-size: 15px; color: var(--text-faint); font-weight: 600; }
.price-card .price .cur { font-size: 18px; vertical-align: super; color: var(--gold); }
.price-card .per { color: var(--text-faint); font-size: 13px; margin-bottom: 18px; }
.price-card ul { text-align: left; margin-bottom: 22px; display: grid; gap: 9px; flex: 1; }
.price-card ul li { font-size: 13.5px; color: var(--text-dim); padding-left: 24px; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* ---------- 文章列表 ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.article-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.article-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.article-card:hover .article-thumb img { transform: scale(1.06); }
.article-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.article-body .meta { font-size: 12px; color: var(--gold); margin-bottom: 10px; letter-spacing: .5px; }
.article-body h3 { font-size: 17.5px; margin-bottom: 10px; }
.article-body p { color: var(--text-dim); font-size: 14px; flex: 1; }
.article-body .read { margin-top: 14px; color: var(--gold-2); font-weight: 700; font-size: 14px; }

/* ---------- QQ 群 ---------- */
.qq-panel {
  background: linear-gradient(135deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow);
}
.qq-panel h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.qq-panel p { color: var(--text-dim); margin-bottom: 20px; max-width: 560px; }
.qq-num {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(62, 224, 196, .08);
  border: 1px dashed rgba(62, 224, 196, .4);
  border-radius: 12px; padding: 14px 22px; margin-bottom: 22px;
}
.qq-num b { font-size: 26px; color: var(--teal); letter-spacing: 2px; }
.qq-num span { font-size: 13px; color: var(--text-faint); }
.qq-badge {
  width: 150px; height: 150px; border-radius: 24px;
  background: linear-gradient(135deg, var(--teal), #1f9c86);
  display: grid; place-items: center; color: #04201b;
  font-weight: 900; text-align: center; line-height: 1.3;
  box-shadow: 0 20px 45px -18px rgba(62, 224, 196, .6);
}
.qq-badge .big { font-size: 46px; }

/* ---------- 下载 CTA 区 ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(232, 189, 102, .14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 620px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 54px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 16px; color: var(--gold-2); }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-keywords { margin-top: 14px; font-size: 12px; color: var(--text-faint); line-height: 2; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13px;
}
.footer-disclaimer { color: var(--text-faint); font-size: 12px; margin-top: 12px; line-height: 1.8; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #201503; border: 0; cursor: pointer; font-size: 20px; font-weight: 900;
  box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 文章详情页 ---------- */
.article-hero { padding: 46px 0 20px; }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.article-hero h1 { font-size: clamp(26px, 4vw, 40px); max-width: 860px; }
.article-hero .meta { color: var(--gold); font-size: 13px; margin: 16px 0 4px; letter-spacing: .5px; }
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-bottom: 70px; }
.prose { font-size: 16px; color: #d7dded; }
.prose h2 { font-size: 24px; margin: 34px 0 14px; color: var(--gold-2); scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose p { margin: 12px 0; color: #cdd4e2; }
.prose ul, .prose ol { margin: 12px 0 12px 6px; display: grid; gap: 8px; }
.prose ul li { padding-left: 26px; position: relative; color: #cdd4e2; }
.prose ul li::before { content: "▸"; position: absolute; left: 4px; color: var(--gold); }
.prose ol { list-style: decimal; padding-left: 24px; }
.prose ol li { color: #cdd4e2; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 22px 0; }
.prose strong { color: var(--gold-2); }
.prose blockquote {
  border-left: 3px solid var(--gold); background: rgba(232, 189, 102, .06);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; color: var(--text-dim);
}
.callout {
  background: linear-gradient(135deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 26px 0;
}
.callout h4 { color: var(--gold-2); margin-bottom: 8px; }
.aside-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 88px; margin-bottom: 20px;
}
.aside-card h4 { font-size: 15px; margin-bottom: 14px; color: var(--gold-2); }
.aside-card .price-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); color: var(--text-dim); }
.aside-card .price-row b { color: var(--gold-2); }
.aside-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.aside-list a { color: var(--text-dim); font-size: 14px; }
.aside-list a:hover { color: var(--gold); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- 动画：进入视口渐显 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .carousel { order: -1; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10, 14, 23, .97); border-bottom: 1px solid var(--line-soft);
    padding: 12px 20px 18px;
  }
  .site-header.open .nav-links a { padding: 13px 12px; }
  .qq-panel { grid-template-columns: 1fr; text-align: center; }
  .qq-panel .qq-badge { margin: 0 auto; }
  .qq-num { justify-content: center; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .qq-panel { padding: 28px 20px; }
  .hero-stats { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
