/* ==========================================================================
   搜狗输入法官网 — 输入法文字工具
   主色：绿 #16a34a（分屏英雄架构，差异化于 faa 橙色站）
   ========================================================================== */

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-darker: #166534;
  --primary-light: #dcfce7;
  --primary-border: #bbf7d0;
  --accent: #22c55e;
  --accent-light: #f0fdf4;
  --gold: #16a34a;
  --gold-dark: #15803d;
  --warm-bg: #f8fafc;
  --warm-card: #ffffff;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-light: #6b7280;
  --title: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 30px rgba(22,163,74,.14);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--body); font-size: 16px; line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-darker); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: #166534; color: #bbf7d0; padding: 8px 0; text-align: center;
  font-size: 13px; letter-spacing: .3px;
}
.topbar a { color: #fff; font-weight: 600; }

/* ---------- 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 26px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--title); }
.logo img, .f-logo img { flex: none; }
.logo em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 7px 14px; border-radius: 8px; color: var(--body); font-size: 15px; font-weight: 500; }
.nav-links a:hover { background: var(--primary-light); color: var(--primary-darker); }
.nav-links a.active { color: var(--primary-dark); background: var(--primary-light); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--body); font-size: 15px; font-weight: 500; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 50px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 25px rgba(22,163,74,.35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-darker); }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 分屏 Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px 5%; max-width: var(--maxw); margin: 0 auto; align-items: center; }
.hero-text h1 { font-size: 44px; font-weight: 800; line-height: 1.25; margin-bottom: 20px; color: var(--title); letter-spacing: -.5px; }
.hero-text h1 .hl { background: linear-gradient(135deg, #16a34a, #22c55e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text .desc { font-size: 17px; color: var(--text-light); margin-bottom: 28px; line-height: 1.8; }
.hero-stats { display: flex; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--primary-dark); }
.hero-stats .lbl { font-size: 13px; color: var(--text-light); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-radius: 24px;
  padding: 50px 40px; text-align: center; position: relative; overflow: hidden;
}
.hero-visual .big-icon { font-size: 110px; line-height: 1; }
.hero-visual .big-icon svg { width: 110px; height: 110px; }
.float-tag {
  position: absolute; background: #fff; padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,.08);
  animation: float 3s ease-in-out infinite;
}
.float-tag.t1 { top: 15%; right: 8%; }
.float-tag.t2 { bottom: 22%; left: 6%; animation-delay: 1s; }
.float-tag.t3 { bottom: 30%; right: 12%; animation-delay: 2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ---------- 信任条 ---------- */
.trust-bar {
  display: flex; justify-content: center; gap: 48px; padding: 32px 5%;
  background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-item .icon { font-size: 28px; margin-bottom: 4px; }
.trust-item .val { font-size: 14px; font-weight: 600; color: var(--text); }

/* ---------- 通用 section ---------- */
.section { padding: 60px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: 30px; font-weight: 800; color: var(--title); }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.sec-head.left { text-align: left; margin-left: 0; }

/* ---------- 功能卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-border); }
.feature-card .ic { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; color: var(--title); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- 下载矩阵 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; transition: all .25s;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-border); }
.dl-card .ic { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.dl-card h3 { font-size: 17px; color: var(--title); }
.dl-card p { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.dl-card .badge { display: inline-block; font-size: 12px; color: var(--primary-dark); background: var(--primary-light); padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; }

/* ---------- 步骤时间轴 ---------- */
.path-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.path-item {
  display: flex; align-items: center; gap: 20px; background: #fff; padding: 20px 24px;
  border-radius: 12px; border-left: 4px solid var(--primary); box-shadow: var(--shadow); transition: transform .2s;
}
.path-item:hover { transform: translateX(8px); }
.path-item .step {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.path-item .step-info h4 { font-size: 16px; color: var(--title); margin-bottom: 4px; }
.path-item .step-info p { font-size: 13px; color: var(--text-light); }

/* ---------- 场景卡 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.scene-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; align-items: flex-start; }
.scene-card .ic { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.scene-card h3 { font-size: 17px; color: var(--title); }
.scene-card p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 订阅套餐 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px;
  display: flex; flex-direction: column; position: relative; transition: all .25s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.hot { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(22,163,74,.14); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 99px; }
.plan h3 { font-size: 18px; color: var(--title); }
.plan .price { margin: 16px 0 4px; font-size: 40px; font-weight: 800; color: var(--title); line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .price-unit { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.plan ul li { padding: 8px 0; font-size: 14px; color: var(--body); display: flex; gap: 9px; align-items: flex-start; }
.plan ul li::before { content: "✓"; color: var(--primary); font-weight: 700; flex: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.faq-item details summary { padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--title); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; }
.faq-item details[open] summary::after { content: "−"; }
.faq-item details .faq-a { padding: 0 22px 20px; font-size: 15px; color: var(--body); }

/* ---------- 正文 SEO 段 ---------- */
.seo-content { font-size: 15px; color: var(--body); text-align: justify; }
.seo-content p { margin-bottom: 14px; text-indent: 2em; }
.seo-content h2, .seo-content h3 { text-indent: 0; color: var(--title); margin: 22px 0 12px; }
.seo-content strong { color: var(--title); }

/* ---------- 文章页 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article-meta { color: var(--muted); font-size: 13px; margin: 14px 0 26px; display: flex; gap: 16px; flex-wrap: wrap; }
.article h2 { font-size: 22px; color: var(--title); margin: 28px 0 12px; }
.article h3 { font-size: 18px; color: var(--title); margin: 22px 0 10px; }
.article p { margin-bottom: 14px; text-align: justify; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--title); }
.article .tip { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 16px 18px; border-radius: 8px; margin: 18px 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { margin: 0 6px; color: var(--border); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg); color: var(--body); padding: 54px 0 0; margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-col .f-logo { display: flex; align-items: center; gap: 8px; color: var(--title); font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.footer-col p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-col h4 { color: var(--title); font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; }
.footer-col a:hover { color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 90px 0 70px; }
.error-404 .code { font-size: 100px; font-weight: 800; color: var(--primary); line-height: 1; }
.error-404 h1 { font-size: 26px; color: var(--title); margin: 18px 0 10px; }
.error-404 p { color: var(--muted); margin-bottom: 28px; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .nav { gap: 14px; flex-wrap: wrap; height: auto; padding: 12px 0; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 2px; }
  .nav-links a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 5%; }
  .hero-text h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .hero-visual { padding: 30px 20px; }
  .hero-visual .big-icon svg { width: 80px; height: 80px; }
  .trust-bar { gap: 24px; }
  .feature-grid, .dl-grid, .plan-grid { grid-template-columns: 1fr 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec-head h2 { font-size: 25px; }
}
@media (max-width: 480px) {
  .feature-grid, .dl-grid, .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 24px; }
  .btn-lg { padding: 13px 22px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  body { font-size: 15px; }
}
