/* ============================================================
   图腾辅助网 TWWLM.COM - DNF私服辅助下载站 全局样式
   ============================================================ */
:root {
  --bg: #0b0e1a;
  --bg-2: #10142a;
  --bg-3: #161b33;
  --card: #161c36;
  --card-2: #1b2242;
  --border: #252e52;
  --accent: #ff8a00;
  --accent-2: #ff4d00;
  --gold: #ffd24a;
  --text: #e9ecf5;
  --muted: #9aa3bd;
  --green: #22d37e;
  --red: #ff4d5e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部工具栏 ---------- */
.topbar { background: #070912; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: var(--muted); margin-left: 18px; transition: color .2s; }
.topbar a:hover { color: var(--accent); }

/* ---------- 头部导航 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(11,14,26,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .logo-icon {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(255,138,0,.4);
}
.logo .logo-icon svg { width: 26px; height: 26px; fill: #fff; }
.logo .logo-text { line-height: 1.15; }
.logo .logo-text strong { font-size: 20px; letter-spacing: 1px; background: linear-gradient(90deg, var(--gold), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo .logo-text span { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 16px; border-radius: 8px; font-size: 15px; color: var(--text); transition: all .2s; }
.nav a:hover { color: var(--accent); background: rgba(255,138,0,.08); }
.nav a.active { color: var(--accent); background: rgba(255,138,0,.12); font-weight: 600; }
.nav .btn-dl { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff !important; font-weight: 600; box-shadow: 0 4px 16px rgba(255,138,0,.35); }
.nav .btn-dl:hover { filter: brightness(1.08); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- 通用按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: 0; transition: all .25s; }
.btn-orange { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 20px rgba(255,138,0,.35); }
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,138,0,.45); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- Hero 区域 ---------- */
.hero {
  position: relative; overflow: hidden; padding: 90px 0 80px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,138,0,.16), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(63,81,181,.25), transparent 55%),
    linear-gradient(180deg, #0d1120 0%, var(--bg) 100%);
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0; opacity: .28; object-fit: cover; width: 100%; height: 100%;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 40px;
  background: rgba(255,138,0,.12); border: 1px solid rgba(255,138,0,.35); color: var(--gold); font-size: 13px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: var(--muted); font-size: 16px; margin-bottom: 30px; max-width: 560px; }
.hero .btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .hero-meta { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero .hero-meta b { display: block; font-size: 26px; color: var(--gold); }
.hero .hero-meta span { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .vs-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-visual .vs-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.hero-visual .vs-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.hero-visual .vs-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.hero-visual .vs-row:last-child { border-bottom: 0; }
.hero-visual .vs-row span { color: var(--muted); }
.hero-visual .vs-row b { color: var(--green); }
.hero-visual .vs-float {
  position: absolute; top: -18px; right: -10px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px; padding: 8px 16px; font-size: 13px; font-weight: 700; color: #fff; box-shadow: 0 8px 20px rgba(255,77,0,.4);
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- 区块通用 ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .tag { color: var(--accent); font-size: 14px; letter-spacing: 3px; font-weight: 600; }
.section-head h2 { font-size: 34px; margin: 10px 0 14px; }
.section-head p { color: var(--muted); }

/* ---------- 数据统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -40px; position: relative; z-index: 3; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.stat-card b { font-size: 34px; background: linear-gradient(90deg, var(--gold), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: all .3s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255,138,0,.5); box-shadow: var(--shadow); }
.feature-card .icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(255,138,0,.12); border: 1px solid rgba(255,138,0,.3);
  display: flex; align-items: center; justify-content: center;
}
.feature-card .icon svg { width: 28px; height: 28px; fill: var(--accent); }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ---------- 为什么选择我们 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { text-align: center; padding: 30px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: all .3s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card .why-num {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(255,138,0,.35);
}
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 14px; }

/* ---------- 下载版本卡片 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; position: relative; transition: all .3s; overflow: hidden;
}
.dl-card:hover { transform: translateY(-6px); border-color: rgba(255,138,0,.5); box-shadow: var(--shadow); }
.dl-card.hot { border-color: rgba(255,138,0,.55); background: linear-gradient(180deg, rgba(255,138,0,.08), var(--card) 60%); }
.dl-card .hot-tag { position: absolute; top: 14px; right: -36px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px; padding: 4px 40px; transform: rotate(45deg); }
.dl-card .dl-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 14px; background: rgba(255,138,0,.12); border: 1px solid rgba(255,138,0,.3); display: flex; align-items: center; justify-content: center; }
.dl-card .dl-icon svg { width: 34px; height: 34px; fill: var(--accent); }
.dl-card h3 { font-size: 19px; margin-bottom: 4px; }
.dl-card .ver { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 16px; display: block; }
.dl-card ul { text-align: left; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.dl-card ul li { padding: 5px 0 5px 20px; position: relative; }
.dl-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.dl-card .btn { width: 100%; justify-content: center; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 22px; }
.step-card .step-num { font-size: 40px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .9; }
.step-card h3 { font-size: 16px; margin: 8px 0; }
.step-card p { color: var(--muted); font-size: 13px; }

/* ---------- 评价 ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testi-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 16px; }
.testi-card blockquote { color: var(--text); font-size: 14px; margin-bottom: 18px; font-style: normal; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testi-card .who b { display: block; font-size: 14px; }
.testi-card .who span { font-size: 12px; color: var(--muted); }

/* ---------- 新闻卡片 ---------- */
.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 .3s; }
.news-card:hover { transform: translateY(-6px); border-color: rgba(255,138,0,.5); box-shadow: var(--shadow); }
.news-card .thumb { position: relative; height: 180px; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .thumb .cate { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.6); color: var(--gold); font-size: 12px; padding: 3px 12px; border-radius: 20px; }
.news-card .body { padding: 18px 20px 22px; }
.news-card .body h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.news-card .body h3 a:hover { color: var(--accent); }
.news-card .body p { color: var(--muted); font-size: 13px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .body .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary { padding: 18px 24px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform .25s; }
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); font-size: 14px; }

/* ---------- 更新日志 ---------- */
.log-list { max-width: 860px; margin: 0 auto; position: relative; }
.log-list::before { content: ""; position: absolute; left: 24px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); }
.log-item { position: relative; padding: 0 0 30px 70px; }
.log-item::before { content: ""; position: absolute; left: 17px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,138,0,.2); }
.log-item .ver { color: var(--accent); font-weight: 700; }
.log-item .date { color: var(--muted); font-size: 13px; margin-left: 10px; }
.log-item p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 页内副页 Hero ---------- */
.page-hero { padding: 70px 0 60px; text-align: center; background: radial-gradient(ellipse at 50% -20%, rgba(255,138,0,.14), transparent 60%), var(--bg); border-bottom: 1px solid var(--border); }
.page-hero .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: 38px; margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- 内容排版 ---------- */
.content { max-width: 860px; margin: 0 auto; }
.content h2 { font-size: 26px; margin: 44px 0 18px; padding-left: 14px; border-left: 4px solid var(--accent); }
.content h3 { font-size: 19px; margin: 30px 0 12px; }
.content p { color: #c7cde0; margin-bottom: 14px; }
.content ul li { color: #c7cde0; padding: 5px 0 5px 22px; position: relative; }
.content ul li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ---------- 对比表 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); margin: 20px 0; }
table.cmp { width: 100%; border-collapse: collapse; background: var(--card); min-width: 600px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--border); }
table.cmp th { background: var(--bg-3); color: var(--gold); font-weight: 600; }
table.cmp td:first-child { text-align: left; color: var(--muted); }
table.cmp .yes { color: var(--green); font-weight: 700; }
table.cmp .no { color: #5a6276; }

/* ---------- 侧边栏 ---------- */
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.side-card h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.side-card ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.side-card ul li:last-child { border-bottom: 0; }
.side-card ul li a:hover { color: var(--accent); }
.side-card ul li .date { float: right; color: var(--muted); font-size: 12px; }
.side-card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.side-card .tag-list a { font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
.side-card .tag-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.pagination a:hover, .pagination a.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* ---------- CTA ---------- */
.cta { padding: 70px 0; background: radial-gradient(ellipse at 50% 120%, rgba(255,138,0,.2), transparent 60%), var(--bg-2); text-align: center; border-top: 1px solid var(--border); }
.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 26px; }

/* ---------- 页脚 ---------- */
.footer { background: #070912; border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { font-size: 16px; margin-bottom: 18px; color: var(--text); }
.footer ul li { padding: 5px 0; }
.footer ul li a { color: var(--muted); font-size: 14px; }
.footer ul li a:hover { color: var(--accent); }
.footer .f-desc { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer .f-logo strong { font-size: 20px; background: linear-gradient(90deg, var(--gold), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; text-align: center; color: #6a7288; font-size: 13px; }
.footer-bottom a { color: #6a7288; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 回到顶部 ---------- */
#toTop { position: fixed; right: 24px; bottom: 30px; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; cursor: pointer; font-size: 18px; box-shadow: 0 6px 18px rgba(255,138,0,.4); display: none; align-items: center; justify-content: center; z-index: 99; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid, .why-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .dl-grid, .news-grid, .testi-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar .right { display: none; }
}
