/* ============================================
   AI副业指南 - 主样式表
   Modern Premium Design | SEO Optimized
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #6366f1;
  --primary-light: #a5b4fc;
  --primary-dark: #4338ca;
  --primary-glow: #818cf8;
  --secondary: #06b6d4;
  --secondary-light: #67e8f9;
  --accent: #f59e0b;
  --accent-light: #fcd34d;
  --success: #10b981;
  --danger: #ef4444;

  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;

  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 60px rgba(99,102,241,0.15);
  --shadow-glow-cyan: 0 0 40px rgba(6,182,212,0.12);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --max-width: 1200px;
  --header-height: 72px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 16px auto 0;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
  color: #fff;
}
.btn-primary:hover::after { opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.2);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-ghost {
  background: rgba(99,102,241,0.06);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-ghost:hover {
  background: rgba(99,102,241,0.12);
  color: var(--primary-dark);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  height: var(--header-height);
  transition: box-shadow var(--transition-smooth);
}
.header.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.logo:hover { color: var(--primary); }

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}

.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
}
.nav a:hover {
  color: var(--primary);
  background: rgba(99,102,241,0.06);
}
.nav a.active {
  color: var(--primary);
  background: rgba(99,102,241,0.1);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f3ff 0%, #f0f9ff 30%, #ffffff 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, rgba(99,102,241,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrb1 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, rgba(6,182,212,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroOrb2 10s ease-in-out infinite;
}
@keyframes heroOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}
@keyframes heroOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 25px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.18rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.85;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 360px;
  height: 400px;
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(229,231,235,0.6);
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero-card:nth-child(1) {
  top: 0;
  left: 0;
  width: 280px;
  height: 220px;
  z-index: 3;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,243,255,0.9));
}
.hero-card:nth-child(2) {
  top: 70px;
  left: 80px;
  width: 250px;
  height: 190px;
  z-index: 2;
  opacity: 0.9;
}
.hero-card:nth-child(3) {
  top: 170px;
  left: 30px;
  width: 290px;
  height: 170px;
  z-index: 1;
  opacity: 0.8;
}

.hero-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.1));
}

.hero-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hero-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.stat-item {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(99,102,241,0.02);
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}
.stat-item:hover {
  border-color: rgba(99,102,241,0.1);
  background: rgba(99,102,241,0.03);
  transform: translateY(-2px);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* --- Sections --- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-secondary);
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: 0 0 4px 4px;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.feature-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.06));
  z-index: -1;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- Article Cards --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.article-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.article-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-tag {
  display: inline-block;
  background: rgba(99,102,241,0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* --- Method Cards --- */
.methods-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.method-item {
  display: flex;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  transition: all var(--transition-smooth);
  align-items: flex-start;
}
.method-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.method-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(99,102,241,0.25);
}

.method-content h3 {
  margin-bottom: 8px;
}

.method-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.method-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.method-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: all var(--transition);
}
.method-tag:hover {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
}

/* --- Tool Cards --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-smooth);
  position: relative;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}
.tool-card:hover::after { opacity: 1; }

.tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.tool-name h4 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.tool-name span {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tool-feature {
  background: var(--bg-tertiary);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
}

.tool-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #3730a3, var(--primary-dark), var(--primary));
  padding: 100px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section * { position: relative; z-index: 1; }

.cta-section h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  font-size: 1.1rem;
  padding: 16px 40px;
}
.cta-section .btn-primary:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--text-tertiary); }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(180deg, #f5f3ff 0%, #ecfeff 30%, #ffffff 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header h1 {
  margin-bottom: 16px;
  position: relative;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
}

/* --- Article Page --- */
.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 56px 0;
}

.article-main {
  max-width: 780px;
}

.article-main h1 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.article-body { line-height: 1.85; }

.article-body h2 {
  margin: 48px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.article-body h2:first-of-type { border-top: none; }

.article-body h3 {
  margin: 32px 0 14px;
}

.article-body p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.9;
}

.article-body ul,
.article-body ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.75;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(99,102,241,0.04), transparent);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-body .highlight-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(6,182,212,0.06));
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}

.article-body .highlight-box h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.article-body img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  align-self: start;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow var(--transition);
}
.sidebar-widget:hover {
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  margin-bottom: 18px;
  font-size: 1.02rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.sidebar-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: all var(--transition);
  display: block;
}
.sidebar-widget ul li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-links ul li {
  margin-bottom: 12px;
}
.footer-links ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-links ul li a:hover {
  color: #fff;
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .article-container {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 88px 28px 28px;
    gap: 6px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-smooth);
    z-index: 1000;
  }
  .nav.open { right: 0; }
  .nav a {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius);
  }

  .hero { padding: 60px 0 80px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .articles-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .method-item { flex-direction: column; gap: 18px; padding: 24px 28px; }
  
  .section-title::after { margin: 12px auto 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 12px 8px; }
  .stat-number { font-size: 2rem; }
  .hero-card-stack { width: 100%; max-width: 300px; }
  .tool-card { padding: 24px; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-in {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }
.animate-in-delay-5 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Table of Contents */
.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0 36px;
}
.toc h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 1.05rem;
}
.toc ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 0;
}
.toc ol li {
  margin-bottom: 8px;
}
.toc ol li a {
  color: var(--primary);
  font-size: 0.92rem;
  transition: all var(--transition);
}
.toc ol li a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Tag Page */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  cursor: pointer;
  font-weight: 500;
}
.tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.25);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-card);
  transition: all var(--transition-smooth);
}
.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 22px 28px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background var(--transition);
  font-size: 1.02rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform var(--transition-smooth);
}
.faq-question:hover { background: var(--bg-secondary); }

.faq-answer {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--primary); }
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  padding: 0 12px;
}
.pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99,102,241,0.25);
}
.pagination .active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99,102,241,0.25);
}
.pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* --- AdSense --- */
.ad-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin: 32px 0;
  text-align: center;
  min-height: 90px;
  overflow: hidden;
}
.ad-container::before {
  content: '广告';
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.ad-container-header {
  margin: 0 0 20px;
}
.ad-in-article {
  max-width: 728px;
  margin: 32px auto;
}
.ad-sidebar {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 24px;
  min-height: 250px;
}
@media (max-width: 768px) {
  .ad-in-article { max-width: 100%; }
}

/* --- Affiliate Badge --- */
.affiliate-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* --- Recommended Tools Widget --- */
.recommended-tools {
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(6,182,212,0.04));
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin: 32px 0;
}
.recommended-tools h4 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.recommended-tools .subtitle {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.recommended-tool-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}
.recommended-tool-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  transform: translateX(6px);
}
.recommended-tool-item .tool-icon-s {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.06);
  border-radius: var(--radius-sm);
}
.recommended-tool-item .tool-info {
  flex: 1;
  min-width: 0;
}
.recommended-tool-item .tool-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.recommended-tool-item .tool-info span {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.recommended-tool-item .cta-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Tool Card CTA --- */
.tool-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-cta .btn-sm {
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
  font-weight: 600;
}
.tool-cta .btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.tool-cta .btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.tool-cta .btn-outline-aff {
  border-color: var(--accent);
  color: #92400e;
  font-weight: 600;
}
.tool-cta .btn-outline-aff:hover {
  background: var(--accent);
  color: #fff;
}
.tool-cta .affiliate-label {
  font-size: 0.7rem;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* --- Baidu Union Ads --- */
.ad-baidu {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 12px;
}
.ad-container.ad-sidebar .ad-baidu {
  margin-top: 0;
}
.ad-adsense[style*="none"] + .ad-baidu,
.ad-adsense:empty + .ad-baidu {
  min-height: 250px;
}

/* --- Selection --- */
::selection {
  background: rgba(99,102,241,0.2);
  color: var(--primary-dark);
}
