/* 冒险岛怀旧服辅助下载站 - 公共样式 */
:root {
  --main: #ff7a00;
  --main-dark: #e06600;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #2b2f38;
  --muted: #6b7280;
  --line: #e6e8ef;
  --header-bg: #1d2433;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}
a { color: var(--main); text-decoration: none; }
a:hover { color: var(--main-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 顶部 */
.site-header { background: var(--header-bg); position: sticky; top: 0; z-index: 99; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 20px; font-weight: 700; }
.logo:hover { color: #fff; }
.logo .logo-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--main); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.logo small { display: block; font-size: 11px; color: #9aa3b5; font-weight: 400; letter-spacing: 1px; }
.nav { display: flex; gap: 4px; }
.nav a { color: #cfd6e4; padding: 8px 14px; border-radius: 6px; font-size: 15px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: var(--main); }
.nav-toggle { display: none; background: none; border: 1px solid #3a4358; color: #cfd6e4; padding: 6px 10px; border-radius: 6px; font-size: 18px; cursor: pointer; }

/* 横幅 */
.hero { background: linear-gradient(135deg, #232c40 0%, #3a2b1c 100%); color: #fff; padding: 48px 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 32px; line-height: 1.4; margin-bottom: 14px; }
.hero h1 em { color: var(--main); font-style: normal; }
.hero p { color: #d6dbe8; margin-bottom: 22px; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; border: none; }
.btn-primary { background: var(--main); color: #fff; }
.btn-primary:hover { background: var(--main-dark); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; margin-left: 12px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #e8e2d8; padding: 4px 12px; border-radius: 20px; font-size: 13px; }

/* 区块 */
.section { padding: 44px 0; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { font-size: 26px; }
.section-title p { color: var(--muted); margin-top: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card .icon { font-size: 30px; margin-bottom: 10px; }

/* 工具卡片 */
.tool-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.tool-card .thumb { height: 150px; overflow: hidden; }
.tool-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tool-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.tool-card h3 { font-size: 17px; }
.tool-card .meta { color: var(--muted); font-size: 13px; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.tool-card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.tool-card .actions { margin-top: 14px; display: flex; gap: 10px; }
.tool-card .actions .btn { padding: 8px 18px; font-size: 14px; }
.badge { display: inline-block; background: #e8f7e8; color: #1a7f37; border-radius: 4px; font-size: 12px; padding: 2px 8px; }
.badge.hot { background: #fdecec; color: #d03050; }

/* 面包屑 / 子页头 */
.page-head { background: linear-gradient(135deg, #232c40, #2f3a52); color: #fff; padding: 30px 0; }
.page-head h1 { font-size: 26px; }
.breadcrumb { font-size: 13px; color: #aeb6c6; margin-bottom: 8px; }
.breadcrumb a { color: #d6dbe8; }
.breadcrumb span { margin: 0 6px; }

/* 列表 */
.article-list { list-style: none; }
.article-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.article-list li a { color: var(--text); font-size: 15px; }
.article-list li a:hover { color: var(--main); }
.article-list .date { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* 详情 */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.prose h2 { font-size: 20px; margin: 26px 0 12px; padding-left: 10px; border-left: 4px solid var(--main); }
.prose h3 { font-size: 17px; margin: 18px 0 8px; }
.prose p, .prose li { color: #3c4250; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 22px; }
table.spec { width: 100%; border-collapse: collapse; margin: 14px 0; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; text-align: left; }
table.spec th { background: #f2f4f9; width: 120px; font-weight: 600; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.side-box h3 { font-size: 16px; margin-bottom: 12px; }
.side-box .dl-btn { display: block; text-align: center; margin-bottom: 10px; }
.side-box .info { font-size: 13px; color: var(--muted); }
.side-box .info div { padding: 5px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q { padding: 16px 20px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; color: var(--main); font-size: 22px; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 16px; color: #3c4250; border-top: 1px dashed var(--line); padding-top: 12px; }
.faq-item.open .faq-a { display: block; }

/* 步骤 */
.steps { counter-reset: step; }
.steps .step { position: relative; padding: 0 0 22px 52px; }
.steps .step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps .step h3 { font-size: 16px; margin-bottom: 6px; }
.steps .step p { color: var(--muted); font-size: 14px; }

/* 内链区 */
.link-zone { background: #fff; border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; }
.link-zone b { margin-right: 12px; }
.link-zone a { color: var(--muted); margin: 0 10px 6px 0; display: inline-block; }
.link-zone a:hover { color: var(--main); }

/* 页脚 */
.site-footer { background: var(--header-bg); color: #9aa3b5; padding: 36px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-grid a { color: #9aa3b5; display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--main); }
.copyright { border-top: 1px solid #2c3549; padding-top: 16px; text-align: center; font-size: 13px; }
.copyright p { margin: 3px 0; }

/* 返回顶部 */
#backTop { position: fixed; right: 18px; bottom: 24px; width: 42px; height: 42px; border-radius: 8px; background: var(--main); color: #fff; border: none; font-size: 20px; cursor: pointer; display: none; box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* 响应式 */
@media (max-width: 900px) {
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 10px 16px 16px; }
  .nav.show { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
