:root {
  --blue: #0B4DA2;
  --blue-600: #0d5cbf;
  --blue-700: #093f86;
  --orange: #FF6A1A;
  --orange-600: #e85d10;
  --ink: #1A2233;
  --muted: #5B6678;
  --line: #E6EBF2;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --green: #1F7A4D;
  --purple: #6A3FB0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(11, 77, 162, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 77, 162, 0.14);
  --maxw: 1200px;
  --font: "Sarasa Gothic SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* 锚点跳转时避开 sticky header 高度（桌面 72 + 8 缓冲 ≈ 80） */
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* 所有 section 也加 scroll-margin 作为兜底，移动端 header 高度不同 */
section, [id] { scroll-margin-top: 80px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,106,26,.32); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(11,77,162,.25); }
.btn-blue:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost:hover { background: rgba(11,77,162,.06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--blue); }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--blue), #2f7fd6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--orange); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, rgba(47,127,214,.18), transparent 60%),
              radial-gradient(900px 400px at 10% 10%, rgba(255,106,26,.10), transparent 55%),
              linear-gradient(180deg, #fff, var(--bg));
  text-align: center; padding: 96px 0 88px;
}
.hero .badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--blue); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.hero h1 { font-size: 46px; line-height: 1.25; margin: 22px auto 18px; max-width: 880px; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--orange); }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 auto; }
.hero .tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 34px; }
.hero .tag { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); box-shadow: var(--shadow); }
.hero .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.eyebrow { text-align: center; color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 14px; }
.section-title { text-align: center; font-size: 34px; margin: 10px 0 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 46px; font-size: 16px; }

/* ---------- Core value cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--card); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--blue), #2f7fd6); color:#fff; display:flex; align-items:center; justify-content:center; font-size: 30px; margin-bottom: 22px; }
.value-card h3 { font-size: 22px; margin-bottom: 12px; }
.value-card p { color: var(--muted); }

/* ---------- Services ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.svc-card { background: var(--card); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--orange), #ff8c4d); color:#fff; display:flex; align-items:center; justify-content:center; font-size: 30px; margin-bottom: 18px; }
.svc-card h3 { font-size: 22px; margin-bottom: 10px; }
.svc-card .desc { color: var(--muted); flex: 1; }
.svc-card .price { color: var(--blue); font-weight: 700; font-size: 18px; margin: 16px 0 18px; }
.svc-features { list-style: none; margin: 0 0 18px; }
.svc-features li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); font-size: 14px; }
.svc-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Works grid ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-cover { height: 200px; display: flex; align-items: flex-end; padding: 18px; color: #fff; }
.case-cover .industry-pill { background: rgba(255,255,255,.2); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); }
.case-body { padding: 20px; }
.case-body h3 { font-size: 18px; margin-bottom: 8px; }
.case-body .result { color: var(--green); font-weight: 600; font-size: 14px; }
.center-btn { text-align: center; margin-top: 42px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 440px 1fr; gap: 60px; align-items: center; }
.founder-photo { height: 480px; border-radius: var(--radius); background: linear-gradient(160deg, var(--blue), #2f7fd6 70%, var(--orange)); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; }
.founder-photo .initial { font-size: 120px; font-weight: 700; opacity: .9; }
.founder-photo .photo-tag { position: absolute; bottom: 20px; left: 20px; background: rgba(255,255,255,.18); padding: 8px 14px; border-radius: 10px; font-size: 14px; backdrop-filter: blur(4px); }
.founder-text h4 { color: var(--orange); font-weight: 700; font-size: 16px; }
.founder-text h2 { font-size: 32px; line-height: 1.35; margin: 12px 0 18px; }
.founder-text p { color: var(--muted); margin-bottom: 16px; }
.founder-text .philosophy { border-left: 4px solid var(--orange); padding-left: 16px; color: var(--ink); font-weight: 600; }
.founder-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.founder-tags span { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 14px; }
.faq-item .q { font-weight: 700; font-size: 18px; display: flex; gap: 12px; }
.faq-item .q .num { color: var(--orange); }
.faq-item .a { color: var(--muted); margin-top: 10px; padding-left: 34px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue), #1a64c4); color: #fff; text-align: center; border-radius: 24px; padding: 64px 24px; margin: 0 auto; max-width: var(--maxw); }
.cta-band .eyebrow { color: #ffd2b0; }
.cta-band h2 { font-size: 36px; margin: 12px 0 10px; }
.cta-band p { color: #d8e6fb; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1830; color: #c7d2e4; margin-top: 84px; }
.site-footer .top { display: flex; justify-content: space-between; padding: 48px 0 28px; gap: 30px; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; font-size: 20px; font-weight: 700; }
.site-footer .slogan { margin-top: 10px; max-width: 280px; font-size: 14px; }
.site-footer .fnav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .fnav a { color: #c7d2e4; font-size: 14px; }
.site-footer .fnav a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; font-size: 13px; color: #8a99b5; flex-wrap: wrap; gap: 10px; }

/* ---------- Floating WeChat ---------- */
.float-wechat { position: fixed; right: 28px; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--blue); }
.float-wechat .dot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #1aad19, #0c8a12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ---------- 悬浮"领资料"按钮（仅当后台配置 lead_magnet_url 时由 common.js 动态创建） ---------- */
.float-lead {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange), #ff8c4d);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 24px rgba(255,106,26,.36);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  max-width: calc(100vw - 56px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.float-lead:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,106,26,.5); color: #fff !important; }

/* ---------- Generic page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--blue), #1a64c4); color: #fff; padding: 70px 0 60px; text-align: center; }
.page-hero h1 { font-size: 40px; margin-bottom: 10px; }
.page-hero p { color: #d8e6fb; font-size: 17px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-info .row { margin-bottom: 18px; }
.contact-info .label { color: var(--muted); font-size: 13px; }
.contact-info .value { font-weight: 600; font-size: 16px; }
.qr-box { background: var(--bg); border: 1px dashed var(--blue); border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 18px; }
.qr-box .qr { width: 150px; height: 150px; margin: 0 auto 12px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-family: var(--font); transition: border .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #e8f6ee; color: var(--green); border: 1px solid #b7e3c8; }
.alert-err { background: #fdecec; color: #c0392b; border: 1px solid #f3c2c2; }

/* ---------- Detail ---------- */
.detail-wrap { max-width: 860px; margin: 0 auto; }
.detail-cover { height: 260px; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 22px; color: #fff; margin: 32px 0; }
.detail-cover .pill { background: rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.detail-body h2 { font-size: 24px; margin: 28px 0 12px; }
.detail-body p { color: var(--muted); margin-bottom: 14px; }
.detail-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 14px 0 4px; }
.detail-meta .tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--blue); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-3, .svc-cards, .works-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav { gap: 18px; }
  .page-hero h1 { font-size: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .site-header .bar { height: 64px; }
  .logo { font-size: 18px; }
  .logo .mark { width: 30px; height: 30px; font-size: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--orange); }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    gap: 5px;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-header .bar .btn { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 28px; line-height: 1.3; letter-spacing: 0; }
  .hero .sub { font-size: 15px; }
  .hero .badge { font-size: 12px; padding: 6px 14px; }
  .hero .tags { gap: 8px; margin: 18px 0 24px; }
  .hero .tag { font-size: 12px; padding: 6px 12px; }
  .hero .cta { flex-direction: column; align-items: center; gap: 12px; }
  .btn { height: 48px; padding: 0 24px; font-size: 15px; width: 100%; max-width: 320px; }

  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 14px; margin-bottom: 32px; }
  .eyebrow { font-size: 12px; }

  .value-card, .svc-card { padding: 24px 20px; }
  .value-card h3, .svc-card h3 { font-size: 19px; }
  .value-icon, .svc-icon { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
  .svc-card .price { font-size: 16px; }
  .case-cover { height: 160px; }
  .case-body { padding: 16px; }
  .case-body h3 { font-size: 16px; }

  .founder { gap: 32px; }
  .founder-photo { height: 260px; }
  .founder-photo .initial { font-size: 80px; }
  .founder-text h2 { font-size: 24px; }
  .founder-text p { font-size: 14px; }
  .founder-tags span { font-size: 13px; padding: 6px 12px; }

  .faq-item { padding: 18px 20px; }
  .faq-item .q { font-size: 15px; }
  .faq-item .a { font-size: 14px; padding-left: 0; margin-top: 8px; }

  .cta-band { padding: 44px 20px; border-radius: 18px; }
  .cta-band h2 { font-size: 24px; }
  .cta-band p { font-size: 14px; }

  .site-footer { margin-top: 56px; }
  .site-footer .top { flex-direction: column; gap: 20px; padding: 36px 0 24px; }
  .site-footer .fnav { gap: 14px; }
  .site-footer .bottom { flex-direction: column; gap: 6px; text-align: center; justify-content: center; }

  .float-wechat { right: 14px; bottom: 14px; padding: 10px 14px; font-size: 13px; }
  .float-wechat .dot { width: 18px; height: 18px; font-size: 11px; }
  .float-lead { left: 14px; bottom: 14px; padding: 10px 14px; font-size: 13px; max-width: calc(100vw - 120px); }

  .page-hero { padding: 52px 0 44px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 14px; }

  .contact-info, .form-card { padding: 22px 18px; }
  .contact-info .value { font-size: 15px; }
  .qr-box { padding: 18px; }
  .qr-box .qr { width: 130px; height: 130px; }
  .field input, .field textarea, .field select { padding: 11px 12px; font-size: 15px; }

  .detail-wrap { padding: 0 4px; }
  .detail-cover { height: 180px; padding: 16px; margin: 20px 0; }
  .detail-cover .pill { font-size: 12px; }
  .detail-body h2 { font-size: 20px; }
  .detail-body p { font-size: 14px; }
  .detail-meta { gap: 10px; }
  .detail-meta .tag { font-size: 12px; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .section-title { font-size: 22px; }
  .founder-photo { height: 220px; }
  .founder-photo .initial { font-size: 64px; }
  .cta-band h2 { font-size: 20px; }
  .value-card h3, .svc-card h3 { font-size: 17px; }
  .case-cover { height: 140px; }
}
