/* ========== 主题色 CSS 变量（8 套，按 slug 哈希分配）========== */
:root, [data-theme="blue"]   { --c1:#1e3a8a; --c2:#2563eb; --accent:#f59e0b; --accent2:#d97706; --soft:#eff6ff; --softb:#dbeafe; --title:#1e3a8a; }
[data-theme="green"]  { --c1:#065f46; --c2:#10b981; --accent:#f59e0b; --accent2:#d97706; --soft:#ecfdf5; --softb:#d1fae5; --title:#065f46; }
[data-theme="purple"] { --c1:#4c1d95; --c2:#7c3aed; --accent:#f59e0b; --accent2:#d97706; --soft:#f5f3ff; --softb:#ede9fe; --title:#4c1d95; }
[data-theme="red"]    { --c1:#7f1d1d; --c2:#dc2626; --accent:#fbbf24; --accent2:#d97706; --soft:#fef2f2; --softb:#fee2e2; --title:#7f1d1d; }
[data-theme="teal"]   { --c1:#134e4a; --c2:#0d9488; --accent:#fbbf24; --accent2:#d97706; --soft:#f0fdfa; --softb:#ccfbf1; --title:#134e4a; }
[data-theme="orange"] { --c1:#9a3412; --c2:#ea580c; --accent:#fbbf24; --accent2:#d97706; --soft:#fff7ed; --softb:#ffedd5; --title:#9a3412; }
[data-theme="slate"]  { --c1:#0f172a; --c2:#334155; --accent:#f59e0b; --accent2:#d97706; --soft:#f8fafc; --softb:#e2e8f0; --title:#0f172a; }
[data-theme="pink"]   { --c1:#831843; --c2:#db2777; --accent:#fbbf24; --accent2:#d97706; --soft:#fdf2f8; --softb:#fce7f3; --title:#831843; }

/* ========== 基础 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #222; background: #f5f6f8; line-height: 1.7; }
a { color: var(--c2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; }

/* ========== 头部 ========== */
.site-header { background: #fff; border-bottom: 1px solid #eee; padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-header .logo { font-size: 20px; font-weight: 700; color: var(--title); }
.site-header nav a { margin-left: 22px; color: #444; font-size: 14px; }
.site-header nav a:hover { color: var(--c2); text-decoration: none; }

/* ========== Hero ========== */
.hero { background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%); color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 340px; height: 340px; background: rgba(255,255,255,.06); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -80px; left: 30%; width: 220px; height: 220px; background: rgba(255,255,255,.05); border-radius: 50%; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-tag { display: inline-block; padding: 5px 14px; background: rgba(255,255,255,.14); border-radius: 20px; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-size: 40px; margin-bottom: 18px; line-height: 1.25; }
.hero-sub { font-size: 17px; opacity: .95; margin-bottom: 18px; max-width: 560px; }
.hero-meta { font-size: 13px; opacity: .85; margin-bottom: 24px; }
.hero-meta span { margin-right: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; transition: all .2s; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent2); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; }

.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.stat-box { background: rgba(255,255,255,.12); padding: 22px 18px; border-radius: 10px; text-align: center; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 13px; opacity: .9; }

/* ========== section 通用 ========== */
main section { background: #fff; margin: 24px 0; padding: 40px 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: 26px; padding-left: 14px; border-left: 4px solid var(--c2); color: var(--title); }
.sec-sub { margin-top: 8px; padding-left: 18px; color: #666; font-size: 14px; }

.grid { list-style: none; display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ========== 服务卡 ========== */
.card { padding: 22px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; transition: all .25s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.08); border-color: var(--c2); }
.card h3 { font-size: 17px; margin-bottom: 10px; color: var(--title); }
.card p { font-size: 14px; color: #555; }
.card-service { padding-top: 26px; }
.card-service .card-icon { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.card-service .card-icon svg { width: 24px; height: 24px; display: block; }
.card-service .card-idx { position: absolute; top: 14px; right: 18px; font-size: 22px; font-weight: 800; color: var(--softb); line-height: 1; letter-spacing: .5px; }

/* ========== 优势 ========== */
.card-adv { background: var(--soft); border-color: var(--softb); padding: 24px; }
.card-adv h3 { margin-top: 14px; }
.adv-icon { width: 52px; height: 52px; border-radius: 12px; background: #fff; color: var(--c2); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(37,99,235,.14); border: 1px solid var(--softb); }
.adv-icon svg { width: 26px; height: 26px; display: block; }

/* ========== 流程 ========== */
.process-list { list-style: none; counter-reset: proc; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.proc-step { display: flex; gap: 12px; padding: 18px; background: var(--soft); border-radius: 8px; border-left: 3px solid var(--c2); align-items: flex-start; }
.proc-icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--c2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--softb); box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.proc-icon svg { width: 20px; height: 20px; display: block; }
.proc-num { font-size: 14px; font-weight: 700; color: var(--c2); min-width: 22px; padding-top: 4px; opacity: .7; letter-spacing: .5px; }
.proc-body h4 { font-size: 15px; margin-bottom: 6px; color: var(--title); }
.proc-body p { font-size: 13px; color: #555; }

/* ========== 正文 ========== */
.content p { margin: 12px 0; font-size: 15px; color: #333; }

/* ========== 案例 ========== */
.card-case { background: var(--soft); border-color: var(--softb); }
.card-case h3 { color: var(--title); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--softb); }
.case-scene, .case-result { font-size: 13px; color: #555; margin: 6px 0; }
.case-scene strong, .case-result strong { color: var(--title); margin-right: 4px; }

/* ========== FAQ ========== */
.faq-list dt { font-weight: 600; margin-top: 16px; color: var(--title); font-size: 15px; padding: 10px 14px; background: var(--soft); border-radius: 6px; border-left: 3px solid var(--c2); }
.faq-list dd { margin: 8px 0 0; padding: 0 14px; color: #555; font-size: 14px; }

/* ========== CTA ========== */
.cta { text-align: center; background: linear-gradient(135deg, var(--soft), #fff) !important; border: 1px solid var(--softb); }
.cta .sec-head { display: none; }
.cta h2 { font-size: 22px; color: var(--title); padding: 0; border: none; margin-bottom: 14px; }
.contact-line { font-size: 15px; margin: 12px 0 20px; color: #555; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.contact-line strong { color: var(--accent2); font-size: 17px; }
.contact-item { display: inline-flex; align-items: center; gap: 8px; }
.contact-icon { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--c2); align-items: center; justify-content: center; border: 1px solid var(--softb); }
.contact-icon svg { width: 16px; height: 16px; display: block; }

/* ========== 页脚 ========== */
.site-footer { background: #0f172a; color: #94a3b8; padding: 26px 0; text-align: center; font-size: 13px; margin-top: 40px; }
.site-footer a { color: #cbd5e1; }
.site-footer p { margin: 4px 0; }

/* ========== variant 微调（可选：同主题下再细分两种排版） ========== */
body[data-variant="b"] .hero { padding: 90px 0 84px; }
body[data-variant="b"] .hero h1 { font-size: 44px; }
body[data-variant="b"] main section { padding: 48px 42px; }
body[data-variant="c"] .hero-inner { grid-template-columns: 1fr; text-align: center; }
body[data-variant="c"] .hero-stats { grid-template-columns: repeat(4,1fr); margin-top: 24px; }
body[data-variant="c"] .hero-sub { margin-left: auto; margin-right: auto; }

/* ========== 响应式 ========== */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 50px 0 44px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  main section { padding: 26px 20px; }
  .sec-head h2 { font-size: 20px; }
  .site-header nav a { margin-left: 10px; font-size: 13px; }
}
