/* ===== Shared Landing Page Styles ===== */
:root {
  --bg: #f8fafc;
  --bg2: rgba(255, 255, 255, 0.8);
  --ink: #0f172a;
  --muted: #64748b;
  --rule: rgba(148, 163, 184, 0.2);
  --accent: #6366f1;
  --accent2: #06b6d4;
  --font: 'Microsoft YaHei', '微软雅黑', 'Outfit', sans-serif;
  --font-en: 'Outfit', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
  --max: 900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(99, 102, 241, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(6, 182, 212, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(139, 92, 246, 0.06), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

article.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ===== Site Navigation (unified) ===== */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
nav.site-nav .nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
nav.site-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
nav.site-nav .brand-mark {
  width: 32px; height: 32px;
  object-fit: contain;
}
nav.site-nav .brand-name { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-weight: 600; font-size: 15px; }
nav.site-nav .nav-links { display: flex; align-items: center; gap: 24px; }
nav.site-nav .nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color 0.2s; position: relative;
}
nav.site-nav .nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1px; transition: width 0.25s;
}
nav.site-nav .nav-links a:hover { color: var(--accent); }
nav.site-nav .nav-links a:hover::after { width: 100%; }
nav.site-nav .nav-cta {
  background: linear-gradient(135deg, #398ae4, #249ddd);
  color: #fff !important; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 10px; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(57, 138, 228, 0.3);
}
nav.site-nav .nav-cta::after { display: none; }
nav.site-nav .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(57, 138, 228, 0.4); }
nav.site-nav .nav-cta-business {
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
  color: #fff !important; font-size: 13px; font-weight: 700;
  padding: 8px 20px; border-radius: 10px; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  position: relative;
}
nav.site-nav .nav-cta-business::after { display: none; }
nav.site-nav .nav-cta-business:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45); }
nav.site-nav .nav-cta-business .pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; margin-right: 6px; vertical-align: middle;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
@media (max-width: 768px) { nav.site-nav .nav-links a:not(.nav-cta) { display: none; } }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--rule); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ===== Landing Hero ===== */
.landing-hero {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.landing-hero .chapter-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.landing-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.landing-hero .lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 650px;
}

/* ===== Content Sections ===== */
.content-section {
  margin: 2.5rem 0;
}
.content-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.content-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--ink);
}
.content-section p {
  margin-bottom: 1rem;
  color: var(--ink);
}
.content-section ul, .content-section ol {
  margin: 0.5rem 0 1rem 1.5rem;
}
.content-section li {
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.content-section strong {
  color: var(--accent);
  font-weight: 600;
}
.content-section code {
  font-family: var(--font-mono);
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
}
.content-section blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}
.content-section blockquote p { margin-bottom: 0; }

/* ===== Tool Cards ===== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.tool-card {
  background: var(--bg2);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}
.tool-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}
.tool-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.tool-card .tool-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.tool-card .tool-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tool-card .tool-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 500;
}

/* ===== Tips Box ===== */
.tips-box {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.tips-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0891b2;
  margin-bottom: 0.5rem;
}
.tips-box ul { margin-left: 1.25rem; }
.tips-box li { font-size: 0.88rem; margin-bottom: 0.3rem; }

/* ===== Comparison Table ===== */
.table-wrap {
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  margin: 1.5rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead {
  position: sticky;
  top: 0;
  background: var(--bg2);
  backdrop-filter: blur(10px);
}
th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}
td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
tbody tr:hover { background: rgba(99, 102, 241, 0.04); }

/* ===== Step List ===== */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list li strong { display: block; margin-bottom: 0.15rem; }

/* ===== Site Footer (ByteDance-inspired) ===== */
.site-footer {
  background: linear-gradient(to top, #eef1f6, #f8fafc);
  border-top: 1px solid var(--rule);
  padding: 3rem 1.5rem 0;
  margin-top: 3rem;
}
.footer-main {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-logo {
  width: 130px; height: auto; border-radius: 16px; object-fit: cover;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-logo:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3); }
.footer-cn { font-size: 0.72rem; font-weight: 500; color: var(--muted); line-height: 1.4; text-align: center; }
.footer-en { font-size: 0.62rem; font-family: var(--font-en); color: var(--muted); line-height: 1.4; text-align: center; opacity: 0.7; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 0.8rem; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--muted); text-decoration: none; padding: 0.25rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-slogan {
  font-size: 1.15rem; font-weight: 700; line-height: 1.4;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-wecom-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff !important; font-size: 0.85rem; font-weight: 600;
  border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.25);
  transition: all 0.25s;
}
.footer-wecom-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(7, 193, 96, 0.35); text-decoration: none; }
.footer-legal {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 0; flex-wrap: wrap; gap: 0.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem; color: var(--muted);
}
.footer-legal a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-legal { flex-direction: column; text-align: center; }
}

/* ===== 中英文混排字体优化 ===== */
.landing-hero h1, .content-section h2, .content-section h3 {
  font-family: 'Microsoft YaHei', '微软雅黑', 'Outfit', sans-serif;
}
.landing-hero h1 em, .content-section h2 em, .content-section h3 em,
.tool-card h4 em, strong em {
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  article.page { padding: 1rem 1rem 3rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 1.5rem; }
  .content-section h2 { font-size: 1.15rem; }
}
