/* ==========================================================================
   无名辅助 - DNF私服辅助官网
   纯手写 CSS，无任何第三方依赖，轻量 & 快速
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg: #08080f;
  --bg-2: #0d0d1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaeaf2;
  --text-muted: #9aa0b5;
  --primary: #8b5cf6;
  --primary-2: #a855f7;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --danger: #f43f5e;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(139, 92, 246, 0.45);
  --maxw: 1200px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(50% 45% at 90% 10%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(168, 85, 247, 0.12), transparent 60%),
    var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.section {
  padding: 84px 0;
  position: relative;
}

.section--tight {
  padding: 56px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 18px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  background: var(--grad);
  color: #0b0b14;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -18px rgba(34, 211, 238, 0.55);
}

.btn--gold {
  background: var(--grad-gold);
  color: #241a00;
  box-shadow: 0 18px 40px -18px rgba(251, 191, 36, 0.55);
}

.btn--gold:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--primary-2);
  background: var(--surface-2);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(8, 8, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--surface);
}

.nav a.nav-cta {
  color: #0b0b14;
  background: var(--grad);
  font-weight: 700;
}

.nav a.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero__stats div {
  display: flex;
  flex-direction: column;
}

.hero__stats b {
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__stats span {
  font-size: 13px;
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tags span {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

/* ---------- 轮播 ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(8, 8, 15, 0.9), transparent);
  font-weight: 700;
  font-size: 15px;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(8, 8, 15, 0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}

.carousel__btn:hover {
  background: rgba(139, 92, 246, 0.7);
}

.carousel__btn--prev {
  left: 12px;
}

.carousel__btn--next {
  right: 12px;
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s, background 0.25s;
}

.carousel__dots button.is-active {
  width: 26px;
  background: var(--cyan);
}

/* ---------- 功能卡片 ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.feature-card .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.2));
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}

.feature-card .ic svg {
  width: 26px;
  height: 26px;
  stroke: var(--cyan);
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* 功能明细清单 */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin-top: 8px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
}

.feature-list li .num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #0b0b14;
  background: var(--grad);
}

/* ---------- 定价 ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.price-card.is-featured {
  border-color: rgba(251, 191, 36, 0.6);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), var(--surface));
  box-shadow: 0 24px 55px -25px rgba(251, 191, 36, 0.5);
}

.price-card .badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #241a00;
  margin-bottom: 14px;
}

.price-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.price-card .price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin: 10px 0 4px;
}

.price-card .price small {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.price-card .price em {
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.price-card ul {
  margin: 16px 0 22px;
  display: grid;
  gap: 9px;
}

.price-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.price-card ul li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 800;
}

.price-card .btn {
  margin-top: auto;
}

/* ---------- 文章列表 ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.article-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--grad);
  position: relative;
  display: grid;
  place-items: center;
}

.article-card__thumb span {
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 18px;
  text-align: center;
}

.article-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__cat {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px;
  flex: 1;
}

.article-card .more {
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- QQ群 ---------- */
.qq {
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 52px 24px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(34, 211, 238, 0.14), transparent),
    var(--surface);
}

.qq h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.qq__num {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 6px 0 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qq__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  border-radius: 24px;
  padding: 44px;
  background: var(--grad);
  color: #0b0b14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(22px, 3.5vw, 32px);
}

.cta-banner p {
  margin: 6px 0 0;
  opacity: 0.85;
  font-weight: 600;
}

.cta-banner .btn--ghost {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
  color: #0b0b14;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 30px;
  margin-top: 40px;
  background: rgba(8, 8, 15, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 36px;
}

.site-footer h4 {
  font-size: 15px;
  margin-bottom: 16px;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s;
}

.site-footer ul a:hover {
  color: var(--text);
}

.footer-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.footer-keywords a {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-note {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 14px;
  opacity: 0.75;
}

/* ---------- 文章详情页 ---------- */
.article-page {
  padding-top: 40px;
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.article-hero {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.article-hero .cat {
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.article-hero h1 {
  font-size: clamp(26px, 4.5vw, 40px);
  margin: 12px 0;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16.5px;
}

.prose h2 {
  font-size: 25px;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.prose h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.prose p {
  color: #cfd2e0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 22px;
  color: #cfd2e0;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad);
}

.prose ol {
  padding-left: 22px;
}

.prose ol li {
  margin-bottom: 10px;
}

.prose strong {
  color: #fff;
}

.callout {
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--cyan);
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15.5px;
}

.callout strong {
  color: var(--cyan);
}

.article-cta {
  margin: 40px 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.related {
  max-width: 820px;
  margin: 50px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.related h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.related-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s, transform 0.2s;
}

.related-list a:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: var(--cyan);
}

/* ---------- 滚动进入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .pricing {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .grid--3,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 20px 24px;
    background: rgba(8, 8, 15, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    transform: translateY(-120%);
    transition: transform 0.28s ease;
  }
  .nav.is-open {
    transform: translateY(0);
  }
  .nav a {
    padding: 12px 16px;
    font-size: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 620px) {
  .section {
    padding: 60px 0;
  }
  .grid--3,
  .grid--4,
  .article-grid,
  .pricing,
  .feature-list,
  .related-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cta-banner {
    padding: 30px;
  }
  .hero__stats {
    gap: 20px;
  }
}
