/* ========================================
   易歪歪 — 统一样式表
   响应式设计: 480px / 768px 双断点
   ======================================== */

:root {
  --primary: #4f6ef7;
  --primary-dark: #3b54d4;
  --primary-light: #eef0ff;
  --accent: #ff6b6b;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #8e8ea0;
  --bg: #f8f9fc;
  --white: #ffffff;
  --border: #e2e4f0;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1200px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; text-align: center; cursor: pointer;
  transition: all .25s; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1.1rem; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 500; }
.badge-new { background: #e8f5e9; color: #2e7d32; }
.badge-hot { background: #fce4ec; color: #c62828; }

.site-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100; height: var(--nav-height);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.logo img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

.hero {
  background: linear-gradient(135deg, #eef0ff 0%, #f8f9fc 50%, #fff5f5 100%);
  padding: 80px 0 60px; text-align: center;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; color: var(--text); margin-bottom: 16px; line-height: 1.3; }
.hero .hl { color: var(--primary); }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 32px; }
.hero .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.hero-stat .label { font-size: .9rem; color: var(--text-muted); }

.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 10px; }
.section-title p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card .icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: .93rem; color: var(--text-secondary); line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 14px;
}
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }

.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.download-hero { background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 100%); color: #fff; }
.download-hero h1, .download-hero p { color: #fff; }
.download-hero .hl { color: #8fa0ff; }

.version-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.version-table th, .version-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.version-table th { background: var(--bg); font-weight: 600; font-size: .9rem; color: var(--text-secondary); }
.version-table tr:hover td { background: #fafbff; }
.tag-free { background: #e8f5e9; color: #2e7d32; }
.tag-pro { background: #fff3e0; color: #e65100; }

.article-header { background: linear-gradient(135deg, #eef0ff, #f8f9fc); padding: 60px 0 40px; text-align: center; }
.article-header h1 { font-size: 2rem; max-width: 700px; margin: 0 auto 12px; }
.article-meta { color: var(--text-muted); font-size: .9rem; }
.article-body { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.article-body h2 { font-size: 1.4rem; margin: 36px 0 14px; color: var(--text); }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.85; }
.article-body ul, .article-body ol { margin: 12px 0 20px 24px; }
.article-body li { margin-bottom: 8px; color: var(--text-secondary); list-style: disc; }
.article-body blockquote {
  border-left: 4px solid var(--primary); padding: 12px 20px; margin: 24px 0;
  background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary);
}
.article-nav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  display: block; width: 100%; text-align: left; padding: 18px 24px;
  font-size: 1.02rem; font-weight: 600; background: none; border: none; cursor: pointer;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: .3s; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { padding: 0 24px 18px; display: none; color: var(--text-secondary); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; text-align: center; padding: 64px 0;
}
.cta h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 28px; font-size: 1.05rem; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { background: #eef0ff; }

.site-footer { background: var(--text); color: #b0b0c0; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #b0b0c0; font-size: .9rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .85rem; }

.sitemap-list { max-width: 600px; margin: 0 auto; }
.sitemap-list details { margin-bottom: 10px; }
.sitemap-list summary { font-weight: 600; cursor: pointer; padding: 10px 0; font-size: 1.05rem; }
.sitemap-list ul { margin-left: 20px; }
.sitemap-list li { margin: 6px 0; }

.breadcrumb { padding: 14px 0; font-size: .88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-secondary); }

/* 768px 平板断点 */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 1.5rem; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .version-table { font-size: .9rem; }
  .version-table th, .version-table td { padding: 10px 8px; }
  .article-header h1 { font-size: 1.5rem; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 16px 20px;
    border-bottom: 1px solid var(--border); gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* 480px 手机断点 */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding: 0 14px; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: .93rem; }
  .hero .btn-group { flex-direction: column; align-items: center; }
  .hero .btn { width: 100%; max-width: 280px; }
  .hero-stats { gap: 16px; flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 1.3rem; }
  .article-body { padding: 24px 14px; }
  .article-header { padding: 40px 0 24px; }
  .faq-q { padding: 14px 16px; font-size: .95rem; }
  .cta { padding: 44px 0; }
  .cta h2 { font-size: 1.4rem; }
  .btn-lg { padding: 12px 24px; font-size: 1rem; }
  .site-header .logo { font-size: 1.15rem; }
}
