:root {
  --primary: #FF6B00;
  --primary-light: #FFF3EB;
  --primary-dark: #E05500;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-light: #86868B;
  --bg: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-card: #FAFAFA;
  --border: #E8E8ED;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 52px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
.article-body a, .faq-a a { color: var(--primary); }
#TableOfContents a, .sidebar-related a, .related a { color: var(--text-secondary); }
#TableOfContents a:hover, .sidebar-related a:hover, .related a:hover { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { font-size: 18px; font-weight: 700; color: var(--text); }
.nav-logo span { color: var(--primary); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: scale(1.04); }

.hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 4px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary { background: var(--primary) !important; color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text); background: var(--bg-secondary); }

/* ===== SECTION ===== */
.section { padding: 80px 24px; max-width: var(--max-width); margin: 0 auto; }
.section-title { font-size: 40px; font-weight: 700; letter-spacing: -0.8px; text-align: center; margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--text-secondary); text-align: center; margin-bottom: 48px; }

@media (max-width: 768px) {
  .section { padding: 48px 16px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; }
}

/* ===== FOOTER ===== */
.footer {
  background: #1D1D1F;
  color: #A1A1A6;
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer p { font-size: 13px; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #A1A1A6; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-width); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid #333; text-align: center; font-size: 12px; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== ARTICLE BODY ===== */
.article-body { max-width: 680px; }
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.article-body p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 12px 0 16px 20px; font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.article-body li { margin-bottom: 4px; }
.article-body strong { color: var(--text); font-weight: 600; }

.article-body img { width: 100%; border-radius: var(--radius); margin: 20px 0; }

.step-list { counter-reset: step; list-style: none; margin: 16px 0; padding-left: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 48px;
  border-bottom: 1px solid var(--border);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 12px;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.step-list li:last-child { border-bottom: none; }

/* ===== INLINE CTA ===== */
.inline-cta {
  background: var(--primary-light);
  border: 1px solid #FFD9B3;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inline-cta-text { font-size: 15px; font-weight: 500; color: var(--text); }
.inline-cta-text span { color: var(--primary); }
.inline-cta-btn { color: #fff !important; 
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.inline-cta-btn:hover { background: var(--primary-dark); transform: scale(1.04); }

/* ===== FAQ ===== */
.faq-section { margin-top: 48px; }
.faq-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-item:hover { border-color: #ccc; }
.faq-item.active { border-color: var(--primary); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  user-select: none;
}
.faq-q:hover { background: var(--bg-secondary); }
.faq-q .icon { font-size: 20px; color: var(--primary); transition: transform 0.3s; width: 24px; text-align: center; flex-shrink: 0; margin-left: 12px; }
.faq-item.active .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 20px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== END CTA (核心变现位) ===== */
.end-cta {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}
.end-cta h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.end-cta p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.end-cta-info { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; font-size: 13px; color: var(--text-secondary); }
.end-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Card Grid (home, list pages) */
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:all 0.3s; }
.card:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); border-color:transparent; }
.card-body { padding:20px; }
.card-tag { display:inline-block; font-size:11px; font-weight:600; color:var(--primary); background:var(--primary-light); padding:3px 10px; border-radius:980px; margin-bottom:10px; }
.card-title { font-size:17px; font-weight:600; margin-bottom:6px; line-height:1.4; color: var(--text); }
.card-desc { font-size:13px; color:var(--text-light); line-height:1.5; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-meta { display:flex; font-size:12px; color:var(--text-light); }

/* Feature Grid */
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:28px 24px; text-align:center; transition:all 0.3s; }
.feature:hover { border-color:var(--primary); background:var(--primary-light); transform:translateY(-2px); }
.feature-icon { font-size:36px; margin-bottom:12px; }
.feature-name { font-size:16px; font-weight:600; margin-bottom:6px; }
.feature-desc { font-size:13px; color:var(--text-light); }

/* Download Grid */
.download-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:800px; margin:0 auto; }
.download-card { background:var(--bg-card); border:2px solid var(--border); border-radius:var(--radius-lg); padding:36px; text-align:center; transition:all 0.3s; }
.download-card:hover { border-color:var(--primary); box-shadow:0 8px 40px rgba(255,107,0,0.12); transform:translateY(-2px); }
.download-info { display:flex; justify-content:center; gap:24px; margin-bottom:24px; font-size:13px; color:var(--text-secondary); }
.download-btn { color: #fff !important;  display:block; width:100%; padding:14px; background:var(--primary); color:#fff; border:none; border-radius:980px; font-size:16px; font-weight:600; cursor:pointer; transition:all 0.2s; text-align:center; }
.download-btn:hover { background:var(--primary-dark); transform:scale(1.02); color:#fff; }

/* Sidebar */
.article-tag { display:inline-block; font-size:11px; font-weight:600; color:var(--primary); background:var(--primary-light); padding:3px 10px; border-radius:980px; margin-bottom:12px; }
.sidebar-download { background:var(--bg-card); border:2px solid var(--primary); border-radius:var(--radius-lg); padding:24px; text-align:center; margin-bottom:24px; }
.sidebar-download h4 { font-size:16px; font-weight:700; margin-bottom:8px; }
.sidebar-download-btn { color: #fff !important;  display:block; width:100%; padding:12px; background:var(--primary); color:#fff; border:none; border-radius:980px; font-size:14px; font-weight:600; cursor:pointer; transition:all 0.2s; margin-bottom:8px; text-align:center; }
.sidebar-download-btn:hover { background:var(--primary-dark); }

@media (max-width:900px) {
  .content-wrap, div[style*="grid-template-columns:1fr 300px"] { grid-template-columns:1fr !important; }
  div[style*="position:sticky"] { position:relative !important; top:0 !important; }
}
@media (max-width:768px) {
  .card-grid { grid-template-columns:1fr; }
  .feature-grid { grid-template-columns:1fr 1fr; }
  .download-grid { grid-template-columns:1fr; }
}
