/* ============================================================================
 * 一个系yigexi（saas）· 静态官网样式
 * ========================================================================== */
:root {
  --brand: #2563eb;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #f59e0b;
  --warning-50: #fffbeb;
  --warning-200: #fde68a;
  --warning-600: #d97706;
  --violet: #7c3aed;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .18s ease; border: none; white-space: nowrap;
}
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { background: #1d4ed8; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: var(--brand-50); color: var(--brand-600); }
.btn-ghost:hover { background: var(--brand-100); text-decoration: none; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%); }
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%); border-radius: 50%;
}
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
  background: var(--brand-50); color: var(--brand-600); border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-600), #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--text-secondary); margin: 20px 0 36px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-points { display: flex; justify-content: center; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-point { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 14px; }
.hero-point svg { color: var(--success); }
.hero-shot {
  margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.hero-shot img { width: 100%; height: auto; }

/* ---------- 区块通用 ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h1,
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.section-head p { color: var(--text-secondary); margin-top: 12px; font-size: 17px; }
.section-alt { background: var(--bg-soft); }

/* ---------- 功能 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; }

/* ---------- 行业 ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 12px; text-align: center; transition: transform .18s ease;
}
.industry-item:hover { transform: translateY(-3px); }
.industry-item svg { width: 32px; height: 32px; color: var(--brand-600); margin-bottom: 10px; }
.industry-item span { display: block; font-size: 15px; color: var(--text-secondary); font-weight: 500; }

/* ---------- 定价 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
}
.plan-pro { border: 2px solid var(--brand-600); position: relative; }
.plan-pro::before {
  content: '推荐'; position: absolute; top: -12px; right: 24px;
  background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px;
}
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { font-size: 44px; font-weight: 800; margin: 12px 0 4px; color: var(--brand-600); }
.plan-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.plan-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 15px; color: var(--text); }
.plan-item svg { color: var(--success); flex-shrink: 0; }
.plan .btn { width: 100%; margin-top: 20px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-600), #7c3aed);
  border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; color: #fff;
}
.cta h2 { font-size: 30px; font-weight: 800; }
.cta p { opacity: .9; margin: 12px 0 28px; font-size: 16px; }
.cta .btn-primary { background: #fff; color: var(--brand-600); box-shadow: none; }
.cta .btn-primary:hover { background: #f1f5f9; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-weight: 700; font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-copy { color: var(--text-tertiary); font-size: 13px; }

/* ---------- 隐私政策页 ---------- */
.legal-page { padding: 48px 0 80px; }
.legal-page .container { max-width: 780px; }
.legal-title { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.legal-updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 24px; }
.legal-intro { color: var(--text-secondary); margin-bottom: 32px; }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.legal-section p { color: var(--text-secondary); white-space: pre-line; }

/* ---------- 面包屑（与 BreadcrumbList 结构化数据一一对应） ---------- */
.crumbs {
  max-width: 780px; margin: 0 auto; padding: 24px 24px 0;
  font-size: 13px; color: var(--text-tertiary);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.crumbs a { color: var(--text-tertiary); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); text-decoration: underline; }
.crumbs .sep { opacity: .55; }
.crumbs [aria-current] { color: var(--text-secondary); }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head h1,
  .section-head h2 { font-size: 26px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-points { gap: 16px; }
}

/* ---------- 博客 / 帮助中心 ---------- */
.blog-page { padding: 48px 0 80px; }
.blog-page .container { max-width: 780px; }
.blog-head { margin-bottom: 32px; }
.blog-head h1 { font-size: 34px; font-weight: 800; }
.blog-head p { color: var(--text-secondary); margin-top: 8px; }
.blog-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.blog-card h2, .blog-card h3 { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.blog-card p { color: var(--text-secondary); font-size: 14px; }
.blog-card .blog-meta { color: var(--text-tertiary); font-size: 13px; margin-top: 12px; }
.blog-group { margin-top: 36px; }
.blog-group h2 { font-size: 22px; font-weight: 700; }
.blog-group-note { color: var(--text-tertiary); font-size: 14px; margin: 6px 0 18px; }

.article { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.article h1 { font-size: 32px; font-weight: 800; line-height: 1.3; }
.article .article-meta { color: var(--text-tertiary); font-size: 14px; margin: 12px 0 28px; }
.article h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.article h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.article p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.article ul { color: var(--text-secondary); line-height: 1.8; padding-left: 20px; margin-bottom: 16px; }
.article a { font-weight: 500; }
.article .article-cta {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius); padding: 20px; margin-top: 32px; text-align: center;
}

/* ---------- 404 ---------- */
.err { max-width: 620px; margin: 0 auto; padding: 72px 24px 96px; text-align: center; }
.err-code { font-size: 72px; font-weight: 800; line-height: 1; color: var(--brand-600); letter-spacing: -2px; }
.err h1 { font-size: 26px; margin: 16px 0 10px; }
.err p { color: var(--text-secondary); }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 下载页 ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.dl-icon {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 20px;
  background: var(--brand-50); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center;
}
.dl-icon svg { width: 32px; height: 32px; }
.dl-card h2,
.dl-card h3 { font-size: 20px; margin-bottom: 8px; }
.dl-card > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.dl-meta { list-style: none; color: var(--text-tertiary); font-size: 13px; margin-bottom: 20px; }
.dl-meta li { padding: 3px 0; }
.dl-card .btn { width: 100%; }
.dl-card .btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.dl-soon { display: inline-block; font-size: 12px; color: var(--warning-600); background: var(--warning-50, #fffbeb); border: 1px solid var(--warning-200, #fde68a); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.dl-note { max-width: 820px; margin: 40px auto 0; color: var(--text-tertiary); font-size: 13px; text-align: center; line-height: 1.7; }

@media (max-width: 768px) {
  .download-grid { grid-template-columns: 1fr; }
  .err-code { font-size: 56px; }
}
