/* ========== 蓝椒GEO 官网公共样式 ========== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #7c3aed;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-w: 1200px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========== 导航栏 ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}

.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { width: 36px; height: 36px; object-fit: contain; }
.logo-text { font-size: 1.35rem; font-weight: 800; color: var(--text-dark); letter-spacing: -.02em; }

.nav-menu { display: flex; align-items: center; gap: 36px; list-style: none; flex: 1; justify-content: center; }
.nav-menu a {
  font-size: 1rem; font-weight: 500; color: var(--text-dark);
  transition: color var(--transition); position: relative; padding: 4px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}

.btn-trial {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important; text-decoration: none !important;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(99,102,241,.3);
}
.btn-trial:hover { opacity: .9; transform: translateY(-1px); }

/* 移动端菜单 */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; color: var(--text-dark); }

/* ========== Hero 区块 ========== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #f0f0ff 0%, var(--bg-white) 100%);
  text-align: center; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 900;
  color: var(--text-dark); line-height: 1.25; margin-bottom: 24px;
  position: relative; letter-spacing: -.02em;
}
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  padding: 14px 36px; border-radius: 10px; font-size: 1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,.3);
  transition: all var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(99,102,241,.4); color: #fff; }
.btn-hero-secondary {
  padding: 14px 36px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  background: var(--bg-white); color: var(--primary); border: 2px solid var(--primary);
  transition: all var(--transition);
}
.btn-hero-secondary:hover { background: #f0f0ff; color: var(--primary); }

/* ========== 通用区块 ========== */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-dark); color: #f1f5f9; }
.section-light { background: var(--bg-section); }
.section-title {
  text-align: center; margin-bottom: 56px;
}
.section-title .label {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  color: var(--primary); background: rgba(99,102,241,.08);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; letter-spacing: .08em;
}
.section-dark .section-title .label { background: rgba(99,102,241,.2); }
.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
  color: var(--text-dark); line-height: 1.3; margin-bottom: 12px;
}
.section-dark .section-title h2 { color: #f1f5f9; }
.section-title p { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.section-dark .section-title p { color: #94a3b8; }

/* ========== 卡片网格 ========== */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 32px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-dark {
  background: var(--bg-dark-card); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.card-dark:hover { border-color: rgba(99,102,241,.3); box-shadow: 0 4px 20px rgba(99,102,241,.1); }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(124,58,237,.1));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--primary); font-size: 1.3rem;
}
.section-dark .card-icon { background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(124,58,237,.2)); }

.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.section-dark .card-dark h3 { color: #f1f5f9; }
.card p, .card-dark p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.section-dark .card-dark p { color: #94a3b8; }

.card-checks { list-style: none; margin-top: 16px; text-align: left; }
.card-checks li {
  font-size: .88rem; color: var(--text-muted); padding: 4px 0; padding-left: 18px;
  position: relative;
}
.card-checks li::before {
  content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.section-dark .card-checks li { color: #94a3b8; }
.section-dark .card-checks li::before { color: var(--primary-light); }

/* ========== 数据统计区 ========== */
.stats-row { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; padding: 48px 0; }
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }

/* ========== CTA 区域 ========== */
.cta-section {
  padding: 64px 0; text-align: center;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
}
.cta-section h2 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.cta-section p { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-dark); color: #94a3b8; padding: 48px 0 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px;
}
.footer-brand .logo-link { margin-bottom: 12px; }
.footer-brand .logo-text { color: #f1f5f9; }
.footer-brand p { font-size: .85rem; color: #64748b; max-width: 280px; line-height: 1.6; }
.footer-links h4 { font-size: .85rem; font-weight: 700; color: #f1f5f9; margin-bottom: 12px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .85rem; color: #64748b; }
.footer-links a:hover { color: var(--primary-light); }
.footer-contact { text-align: center; }
.footer-contact h4 { font-size: .85rem; font-weight: 700; color: #f1f5f9; margin-bottom: 16px; }
.footer-contact .qrcode-img { width: 120px; height: 120px; border-radius: 8px; }
.footer-contact .qrcode-tip { font-size: .8rem; color: #64748b; margin-top: 10px; line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); margin-top: 36px; padding-top: 20px;
  text-align: center; font-size: .8rem; color: #475569;
}

/* ========== Tab 交互（核心优势页） ========== */
.tabs-container { display: flex; gap: 40px; align-items: flex-start; }
.tabs-nav { flex: 0 0 360px; display: flex; flex-direction: column; gap: 8px; }
.tab-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  cursor: pointer; transition: all var(--transition); text-align: left;
}
.tab-btn:hover { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.2); }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(124,58,237,.1));
  border-color: var(--primary);
}
.tab-btn .tab-icon { font-size: 1.3rem; flex-shrink: 0; }
.tab-btn .tab-text { font-size: .95rem; font-weight: 600; color: #cbd5e1; }
.tab-btn.active .tab-text { color: #f1f5f9; }
.tab-btn .tab-arrow { margin-left: auto; color: #475569; transition: color var(--transition); }
.tab-btn.active .tab-arrow { color: var(--primary-light); }
.tabs-content { flex: 1; min-height: 400px; }
.tab-panel { display: none; animation: fadeIn .4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.tab-panel-card {
  background: var(--bg-dark-card); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl); padding: 40px; min-height: 380px;
}
.tab-panel-card h3 { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; margin-bottom: 16px; }
.tab-panel-card p { font-size: .95rem; color: #94a3b8; line-height: 1.8; margin-bottom: 20px; }
.tab-panel-card .highlights { display: flex; flex-wrap: wrap; gap: 12px; }
.tab-panel-card .highlight-tag {
  font-size: .85rem; padding: 6px 16px; border-radius: 20px;
  background: rgba(99,102,241,.12); color: var(--primary-light); font-weight: 500;
}

/* ========== 文章卡片（观点洞察页） ========== */
.article-card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--transition); display: block; text-decoration: none !important; color: inherit;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.article-card-img { width: 100%; height: 180px; object-fit: cover; background: var(--bg-section); }
.article-card-body { padding: 20px; }
.article-card-category {
  display: inline-block; font-size: .75rem; font-weight: 600;
  color: var(--primary); background: rgba(99,102,241,.08);
  padding: 2px 10px; border-radius: 12px; margin-bottom: 10px;
}
.article-card-title {
  font-size: 1rem; font-weight: 700; color: var(--text-dark); line-height: 1.5;
  margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-summary {
  font-size: .85rem; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 12px;
}
.article-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-light);
}

/* 分类标签筛选 */
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-tag {
  padding: 8px 20px; border-radius: 20px; font-size: .88rem; font-weight: 500;
  background: var(--bg-white); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.filter-tag:hover { border-color: var(--primary); color: var(--primary); }
.filter-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination button {
  padding: 8px 16px; border-radius: 8px; font-size: .88rem; font-weight: 500;
  background: var(--bg-white); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ========== 页面Banner ========== */
.page-banner {
  padding: 140px 0 60px; text-align: center;
  background: linear-gradient(180deg, #f0f0ff 0%, var(--bg-white) 100%);
  position: relative;
}
.page-banner h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900;
  color: var(--text-dark); margin-bottom: 16px; letter-spacing: -.02em;
}
.page-banner p { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ========== 流程步骤 ========== */
.steps-row { display: flex; align-items: flex-start; gap: 0; position: relative; justify-content: center; }
.step-item { text-align: center; flex: 0 0 200px; position: relative; }
.step-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; font-weight: 800; position: relative; z-index: 1;
}
.step-item:not(:last-child)::after {
  content: ''; position: absolute; top: 32px; left: calc(50% + 32px);
  width: calc(100% - 64px); height: 2px; background: var(--border);
}
.step-item h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.step-item p { font-size: .85rem; color: var(--text-muted); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .tabs-container { flex-direction: column; }
  .tabs-nav { flex: none; width: 100%; flex-direction: row; overflow-x: auto; gap: 8px; }
  .tab-btn { flex-shrink: 0; white-space: nowrap; padding: 12px 18px; }
}

@media (max-width: 768px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .stats-row { gap: 32px; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--bg-white);
    padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .mobile-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .page-banner { padding: 120px 0 40px; }
  .section { padding: 48px 0; }
  .footer-inner { flex-direction: column; }
  .steps-row { flex-direction: column; align-items: center; gap: 24px; }
  .step-item:not(:last-child)::after { display: none; }
  .hero-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
}
