/* ShaneFlow 整站样式 — 参考设计稿：现代简洁、白灰背景、卡片大图、粉色 CTA */

/* ---------------- Web Font: Inter (本地托管，可变字重 100–900) ---------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FAF9F6;
  --surface: #ffffff;
  --surface-2: #F3F4F6;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --pink: #FC5185;
  --pink-soft: #FFF0F4;
  --blue: #1E2A3A;
  --shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.05);
  --r: 14px;
  --r-lg: 20px;
  --max: 1200px;
  --contact-bg: #F6F4F1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------- 导航 ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
/* 导航栏宽度全站统一（以首页为准）：logo / 链接 / 按钮的水平位置在每一页都一致 */
.site-nav .container { max-width: 1340px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 20px; color: var(--ink); }

.logo-text { font: inherit; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.logo-img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 44px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
/* 从导航/页脚锚点直达首页 services / cases 区块时，避开吸顶导航 */
section[id] { scroll-margin-top: 96px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-btn {
  background: transparent; border: none; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px;
}
.lang-btn:hover { color: var(--ink); background: var(--surface-2); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .2s; border: none; cursor: pointer; text-align: center;
}
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 6px 18px rgba(252,81,133,0.25); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(252,81,133,0.35); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-white:hover { background: var(--surface-2); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: calc(100vh - 72px); display: flex; align-items: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(250,249,246,0.96) 0%, rgba(250,249,246,0.82) 42%, rgba(250,249,246,0.2) 100%);
}
/* 顶部留白 = 80px + 2cm，让 hero 内容整体下移约 2cm */
.hero .container { position: relative; z-index: 2; padding-top: calc(80px + 2cm); padding-bottom: 80px; margin-left: 60px; margin-right: auto; }
.hero-kicker {
  text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .15em;
  color: #7c818a; margin-bottom: 0;
}
.hero h1 {
  font-size: clamp(55px, 7vw, 90px); line-height: .96; letter-spacing: -.065em;
  font-weight: 700; max-width: 680px; margin: 18px 0;
}
.hero-line { display: block; }
.hero-line.line1 { color: var(--ink); }
.hero-line.line2 { color: var(--pink); }
.hero-desc { font-size: 15px; color: var(--muted); max-width: 600px; margin-bottom: 34px; }
.hero-form {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; max-width: 520px; box-shadow: var(--shadow);
}
.hero-form .icon { color: var(--muted); padding-left: 10px; font-size: 18px; }
.hero-form input {
  flex: 1; border: none; background: transparent; padding: 12px 8px; font-size: 15px; outline: none;
}
.hero-form button { border-radius: 12px; padding: 12px 22px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------------- Section ---------------- */
.section { padding: 90px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-title { margin: 0 auto; }
.section-label {
  text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--muted); margin-bottom: 12px;
}
.section-title { font-size: 34px; font-weight: 800; color: var(--ink); }
.section-title span { color: var(--muted); font-weight: 500; }
.section-desc { color: var(--muted); margin-top: 12px; max-width: 560px; }

/* ---------------- Service Card ---------------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img {
  height: 170px; background-size: cover; background-position: center; position: relative;
}
.service-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 60%);
}
.service-tag {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,0.95); border-radius: 8px; padding: 6px 10px;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.service-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-body p { font-size: 13.5px; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
/* ---------------- Case Card ---------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-img {
  height: 220px; background-size: cover; background-position: center; position: relative;
}
.case-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 55%);
}
.case-img .tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,0.95); color: var(--ink); padding: 6px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.case-body { padding: 22px; }
.case-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.case-meta {
  display: grid; grid-template-columns: max-content max-content; gap: 12px;
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.case-meta .item { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 0 8px; }
.case-meta .item:nth-child(even) { padding-left: 48px; }
.case-meta .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2px; white-space: nowrap; }
.case-meta .value { font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* ---------------- CTA Dark ---------------- */
.cta-dark {
  background: var(--blue); color: #fff; padding: 34px 0; position: relative; overflow: hidden;
}
.cta-dark .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-dark .cta-copy {
  display: block; margin-top: 16px; padding-top: 12px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12.5px; letter-spacing: 0.3px; color: rgba(255,255,255,0.55);
}
.cta-dark h2 { font-size: 34px; font-weight: 800; }
.cta-dark p { color: rgba(255,255,255,0.72); margin-top: 10px; max-width: 460px; }
.cta-dark .cta-lines { line-height: 1.5; }
.cta-socials { display: flex; gap: 12px; margin-top: 15px; }
.cta-social {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12);
  color: #fff; display: grid; place-items: center; font-size: 18px; transition: background .2s;
}
.cta-social:hover { background: rgba(255,255,255,0.24); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 50px 0 24px; }
.site-footer-compact { padding-top: 16px; background: transparent; border-top: none; }
.site-footer-compact .footer-bottom { padding-top: 0; border-top: none; color: var(--ink-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { font-size: 20px; font-weight: 400; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer-about { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 320px; }
.footer-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--pink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------------- Hero v2 (首页) ---------------- */
/* 首页：顶部导航透明，hero 背景图向上延伸铺到页面最顶端；滚动后吸顶变不透明 */
body[data-page="home"] .site-nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
body[data-page="home"] .site-nav.is-stuck {
  background: var(--bg);
  border-bottom-color: rgba(0, 0, 0, 0.04);
}
body[data-page="home"] .hero.hero-v2 {
  min-height: 62vh;
  /* 让背景图和蒙版走到透明导航栏背后 */
  margin-top: -73px;  /* 72px 导航 + 1px 底边框 */
  /* 放开裁剪，背景层才能越过 hero 底边继续往下铺 */
  overflow: visible;
  /* 从背景图底部那条线往下，后续所有内容整体下移 1cm
     （用 margin 而不是 padding，padding 会把 hero 盒子本身撑高、背景线跟着一起下移，等于没移） */
  margin-bottom: 1cm;
}
body[data-page="home"] .hero.hero-v2 .container {
  width: 100%; max-width: 1340px; margin-left: auto; margin-right: auto;
  padding-top: calc(80px + 2cm + 73px);
  padding-bottom: 40px;
}
/* 背景图与蒙版越过 hero 底边再往下延伸 10mm（只压到下一屏的顶部留白，页面流不受影响） */
body[data-page="home"] .hero.hero-v2 .hero-bg,
body[data-page="home"] .hero.hero-v2 .hero-overlay {
  bottom: -10mm;
}
/* 首页 hero 背景图完整显示、不裁剪（contain：整张图都在，四周留白为 white） */
body[data-page="home"] .hero.hero-v2 .hero-bg {
  /* 顶部对齐铺到透明导航栏背后；背景层本身已向下延伸 2cm，cover 让图铺满整个（含延伸段）区域，
     所以图的下边缘正好落在 hero 底边往下 2cm 处，多出来的部分裁掉 */
  background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.hero-route { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: -6px; margin-bottom: 14px; }
.hero-overlay-v2 { background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.55) 43%, rgba(255,255,255,.04) 76%); }
/* 标题（Our Core Services）整体上移 6mm */
#services.section { padding-top: calc(71px - 6mm); padding-bottom: 70px; }
#services .container { max-width: 1340px; }
/* 案例区标题行/卡片宽度与五张服务卡片对齐 */
#cases .container { max-width: 1340px; }
#services .section-head { margin-bottom: 26px; }
#services .section-label { font-size: 15px; letter-spacing: 2px; color: var(--ink-2); margin-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
/* 五张卡片相对当前位置下移 3mm（整块已随标题上移 6mm，故补 9mm） */
#services .service-grid-v2 { padding-top: 9mm; }
.hero-track-row { display: flex; align-items: stretch; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.track-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow); max-width: 560px; flex: 1 1 420px;
}
.track-card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.track-card-title svg { color: var(--pink); }
.track-form { display: flex; align-items: center; gap: 8px; }
.track-form input {
  flex: 1; border: none; background: var(--bg); border-radius: 12px;
  padding: 13px 14px; font-size: 14.5px; outline: none; color: var(--ink);
}
.track-form input::placeholder { color: #9CA3AF; }
.track-form button { border-radius: 12px; padding: 13px 22px; }
.hero-quick-btns { display: flex; flex-direction: row; gap: 10px; justify-content: flex-start; width: 100%; max-width: 560px; margin-top: 16px; }
.hero-quick-btns .btn-outline {
  background: rgba(255,255,255,0.85); border: 1px solid var(--line);
  color: var(--ink-2); backdrop-filter: blur(4px); padding: 12px 18px;
  flex: 1; justify-content: center;
}
.hero-quick-btns .btn-outline svg { color: var(--pink); }

/* ---------------- Services v2 (首页) ---------------- */
.service-grid-v2 { grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.service-card-v2 {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 18px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  text-align: left; display: flex; flex-direction: column;
  min-height: 220px;
}
.service-card-v2:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card-v2 .service-icon { width: 52px; height: 52px; margin-bottom: 14px; }
.service-card-v2 .service-icon svg { width: 100%; height: 100%; display: block; }
.service-card-v2 h3 { font-size: 17.5px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.service-card-v2 p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 0; min-height: 82px; flex: 1; }

/* ---------------- Cases v2 (首页) ---------------- */
#cases .section-head { margin-bottom: 56px; }
#cases .section-label { font-size: 15px; letter-spacing: 2px; color: var(--ink-2); margin-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
.case-card-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
/* 案例轮播：轨道无限左移，悬停暂停 */
.case-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
}
.case-track { display: flex; align-items: stretch; width: max-content; will-change: transform; }
.case-track .case-card-v2 { flex: 0 0 var(--case-w, 432px); max-width: var(--case-w, 432px); margin-right: 22px; }
.case-track.is-playing { animation: caseScroll 45s linear infinite; }
.case-marquee:hover .case-track.is-playing { animation-play-state: paused; }
@keyframes caseScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 980px) { .case-track .case-card-v2 { --case-w: 360px; } }
@media (max-width: 640px) { .case-track .case-card-v2 { --case-w: 300px; } }
@media (prefers-reduced-motion: reduce) { .case-track.is-playing { animation: none; } }
.case-card-v2 {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.case-card-v2:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card-v2 .case-img { height: 200px; position: relative; }
.case-card-v2 .case-body { padding: 22px; position: relative; flex: 1; display: flex; flex-direction: column; }
.case-card-v2 .case-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.case-card-v2 .case-body p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.case-card-v2 .case-meta { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
/* ---------------- Footer v2 (首页) ---------------- */
.footer-inner-v2 {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; padding: 50px 0 30px; flex-wrap: wrap;
}
.footer-brand-col { max-width: 280px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; font-weight: 500; color: var(--muted); }
.footer-nav a:hover { color: var(--pink); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2);
  color: var(--ink-2); display: grid; place-items: center; transition: .2s;
}
.footer-socials a:hover { background: var(--pink); color: #fff; }
.footer-bottom-v2 {
  display: flex; justify-content: center; padding: 20px 0;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}

/* ---------------- Page Hero ---------------- */
.page-hero {
  position: relative; min-height: 320px; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250,249,246,0.96) 0%, rgba(250,249,246,0.78) 55%, rgba(250,249,246,0.35) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 42px; font-weight: 800; max-width: 600px; }
.page-hero p { color: var(--muted); max-width: 520px; margin-top: 12px; }

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-name { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.about-role { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.about-body p { color: var(--ink-2); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.focus-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.focus-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.focus-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.focus-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.channels-stack { display: flex; flex-direction: column; gap: 14px; }
.channel-card {
  display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); transition: transform .2s;
}
.channel-card:hover { transform: translateY(-3px); }
.channel-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; }
.wa { background: #25d366; } .mail { background: var(--pink); } .li { background: #0a66c2; } .wx { background: #07c160; }
.channel-info h4 { font-size: 15px; font-weight: 700; }
.channel-info p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.channel-info a { font-size: 13px; color: var(--ink-2); font-weight: 600; word-break: break-all; }
.channel-info a:hover { color: var(--pink); }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.form-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); outline: none; font-family: inherit;
  background: var(--bg); color: var(--ink); font-size: 14.5px;
  padding: 12px 15px; border-radius: 12px; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }
.form-ok { display: none; margin-top: 16px; background: #e9fbef; border: 1px solid #a8e6bd; color: #1f8a4c; font-size: 13.5px; border-radius: 12px; padding: 12px 16px; }
.form-ok.show { display: block; }

/* ---------------- Contact v2 (参考图版式) ---------------- */
.contact-page { background: var(--contact-bg); }
/* contact 页内容宽度对齐首页五张服务卡片（1340 居中） */
body[data-page="contact"] .container { max-width: 1340px; }

/* 联系页：页面底色统一为 contact 品牌底色，导航与 hero 蒙版同色不留色差 */
body[data-page="contact"] { background: var(--contact-bg); }
/* 停在页面顶部时：导航透明，与底部底色和 hero 蒙版融为一体 */
body[data-page="contact"] .site-nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
/* 向下滚动后：吸顶转为不透明底色，压住下面滚过的内容（纯色，不用毛玻璃模糊） */
body[data-page="contact"] .site-nav.is-stuck {
  background: var(--contact-bg);
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

body[data-page="contact"] .contact-hero-v2 {
  position: relative;
  /* 让背景图向上延伸到透明导航栏背后：上移动 72px 导航 + 1px 底边框 */
  margin-top: -73px;
  padding: 145px 0 calc(56px + 2cm);
  overflow: hidden;
}
.contact-hero-v2 .container { position: relative; z-index: 2; }
.contact-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.contact-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(246,244,241,0.9) 0%, rgba(246,244,241,0.6) 45%, rgba(246,244,241,0.15) 100%);
}
.contact-hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  position: relative;
}
.contact-hero-title {
  font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.045em;
  font-weight: 700; max-width: 680px; margin-bottom: 18px;
}
.contact-hero-title > span { display: block; }
.contact-hero-title .accent { color: var(--pink); }
.contact-hero-sub { font-size: 16px; color: var(--muted); max-width: 440px; margin-bottom: 34px; position: relative; top: 8mm; }

.contact-channels-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 680px; position: relative; top: 19mm; }
.channel-mini {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "icon arrow" "info info";
  gap: 14px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 18px 20px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.channel-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.channel-mini-icon {
  grid-area: icon; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none;
}
.channel-mini-icon.wa { background: #25d366; }
.channel-mini-icon.mail { background: var(--pink); }
.channel-mini-icon.wx { background: #07c160; }
.channel-mini-info { grid-area: info; }
.channel-mini-info h4 { font-size: 15px; font-weight: 700; }
.channel-mini-info p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.channel-mini-arrow { grid-area: arrow; font-size: 18px; color: var(--pink); }

.contact-inquiry { padding: 56px 0 90px; }
.inquiry-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start; }
.inquiry-form-col h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.inquiry-sub { font-size: 14.5px; color: var(--muted); margin: 10px 0 26px; max-width: 460px; }
.inquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-field { margin-bottom: 16px; }
.inquiry-field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.inquiry-field input, .inquiry-field textarea, .inquiry-field select {
  width: 100%; border: 1px solid var(--line); outline: none; font-family: inherit; background: var(--surface);
  color: var(--ink); font-size: 14px; padding: 13px 15px; border-radius: 12px; transition: border .15s, box-shadow .15s;
}
.inquiry-field input:focus, .inquiry-field textarea:focus, .inquiry-field select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.inquiry-field textarea { resize: vertical; min-height: 110px; }
.inquiry-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* Card-style inputs */
.inquiry-card { margin-bottom: 16px; }
.inquiry-card .card-input {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; transition: border .15s, box-shadow .15s;
}
.inquiry-card .card-input:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }

.inquiry-card .card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--pink-soft); color: var(--pink);
  display: grid; place-items: center;
}
.inquiry-card .card-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.inquiry-card .card-body label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink);
  margin: 0;
}
.inquiry-card .card-body input,
.inquiry-card .card-body textarea {
  width: 100%; border: none; background: transparent; outline: none;
  padding: 0; margin: 0; box-shadow: none;
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.inquiry-card .card-body input::placeholder,
.inquiry-card .card-body textarea::placeholder { color: #9CA3AF; }
.inquiry-card .card-body textarea { resize: vertical; min-height: 72px; }

.inquiry-form-tip { font-size: 12px; color: var(--muted); margin-top: 12px; }

.inquiry-services-col {
  position: relative;
  align-self: stretch;
  padding-top: 0;
}
.inquiry-service-list {
  position: absolute;
  top: 183px;
  bottom: 96px;
  left: 135px;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.inquiry-service-item { display: flex; align-items: center; gap: 14px; }
.inquiry-service-icon {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: var(--pink-soft); color: var(--pink);
  display: grid; place-items: center;
}
.inquiry-service-item h4 { font-size: 15px; font-weight: 700; }
.inquiry-service-item p { font-size: 12.5px; color: var(--muted); }

.contact-bottom { background: transparent; border-top: none; padding: 64px 0 16px; }
.contact-bottom-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }

/* 底部联系区 + 页脚共用背景图，用上浓下淡的渐变蒙版融入上方浅米色 */
.contact-footer-wrap {
  position: relative;
  /* 向上覆盖上方区块的底部留白，让米色底部提前开始与背景图过渡 */
  margin-top: -90px;
  padding-top: 90px;
}
.contact-footer-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/contact-bottom-bg.webp') center top / cover no-repeat;
  pointer-events: none; z-index: 0;
}
.contact-footer-wrap > * { position: relative; z-index: 1; }
/* 顶部再叠一层模糊的同图，做出由虚到实的过渡 */
.contact-footer-blur {
  position: absolute; inset: 0;
  background: url('../images/contact-bottom-bg.webp') center top / cover no-repeat;
  filter: blur(22px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0) 72%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0) 72%);
  pointer-events: none; z-index: 0;
}
.contact-footer-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(246,244,241,1) 0%,
    rgba(246,244,241,0.94) 12%,
    rgba(246,244,241,0.82) 28%,
    rgba(246,244,241,0.68) 48%,
    rgba(246,244,241,0.56) 72%,
    rgba(246,244,241,0.50) 100%);
  pointer-events: none; z-index: 0;
}
.contact-bottom-name { font-size: 26px; font-weight: 800; }
.contact-bottom-role { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.contact-bottom-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.contact-touch-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.contact-touch-item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.contact-touch-item > div { min-width: 0; }
.contact-touch-icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; font-size: 13px;
}
.contact-touch-icon.wa { background: #25d366; }
.contact-touch-icon.mail { background: var(--pink); }
.contact-touch-icon.wx { background: #07c160; }
.contact-touch-icon.li { background: #0a66c2; }
/* 公司官网 logo：图片存在时展示 logo，缺失时显示占位字母 B */
.contact-touch-icon.web { background: #fff; border: 1px solid var(--line); overflow: hidden; position: relative; }
.contact-touch-icon.web::after {
  content: "B"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: var(--pink);
}
.contact-touch-icon.web img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain; display: block; background: #fff;
}
.contact-touch-label { font-size: 13px; font-weight: 700; }
.contact-touch-value { font-size: 13px; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.contact-touch-note { font-size: 11.5px; color: var(--muted); }
.contact-touch-item:hover .contact-touch-value { color: var(--pink); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1020px) {
  .service-grid, .service-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .case-grid-v2, .focus-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-hero-inner, .inquiry-grid, .contact-bottom-grid { grid-template-columns: 1fr; }
  .inquiry-services-col { position: static; align-self: auto; }
  .inquiry-service-list { position: static; top: auto; bottom: auto; flex-direction: column; justify-content: flex-start; gap: 18px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-right { display: none; }
  .nav-inner.open { flex-wrap: wrap; height: auto; padding-bottom: 18px; row-gap: 6px; }
  .nav-inner.open .nav-links { display: flex; flex-direction: column; flex: 1 1 100%; gap: 2px; }
  .nav-inner.open .nav-links a { padding: 11px 8px; }
  .nav-inner.open .nav-right { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 10px; }
  .nav-inner.open .nav-cta { flex: 1; justify-content: center; }
  .hero { min-height: auto; }
  .hero .container { margin-left: 0; padding-top: 40px; }
  body[data-page="home"] .hero.hero-v2 .container { padding-top: 113px; }  /* 40px + 73px 导航条 */
  .hero h1 { font-size: 56px; }
  .hero-overlay-v2 { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.15)); }
  .hero-route { font-size: 18px; }
  .hero-track-row { flex-direction: column; }
  .track-form { flex-direction: column; align-items: stretch; }
  .track-form input { width: 100%; }
  .hero-form { flex-direction: column; align-items: stretch; }
  .hero-form input { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .service-grid, .service-grid-v2, .case-grid, .case-grid-v2, .about-grid, .contact-grid, .focus-list, .form-row, .inquiry-row, .contact-touch-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  body[data-page="contact"] .contact-hero-v2 { padding: 117px 0 36px; }
  .contact-hero-title { font-size: 40px; }
  .contact-channels-mini { grid-template-columns: 1fr; max-width: 100%; }
  .channel-mini { grid-template-columns: auto 1fr auto; grid-template-areas: "icon info arrow"; gap: 14px; }
  .contact-bottom { padding: 48px 0 32px; }
  .contact-bottom-grid { gap: 36px; }
  .footer-inner-v2 { flex-direction: column; gap: 28px; }
  .footer-nav { gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-dark .container { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .page-hero { min-height: 260px; }
  .page-hero h1 { font-size: 30px; }
}

/* ---------------- ICP / 公安备案 ---------------- */
.icp-link { color: inherit; text-decoration: none; margin-left: 14px; }
.icp-link:hover { text-decoration: underline; }
.beian-link { display: inline-flex; align-items: center; white-space: nowrap; }
.beian-icon { width: auto; height: 15px; margin-right: 3px; vertical-align: -3px; flex-shrink: 0; }
@media (max-width: 520px) {
  .hero h1 { font-size: 48px; }
  .hero-kicker { font-size: 11px; letter-spacing: .12em; }
  .contact-hero-title { font-size: 32px; }
}

/* ---------------- WeChat QR modal ---------------- */
.wx-trigger { cursor: pointer; }
button.channel-mini { width: 100%; text-align: left; }

.wx-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.wx-modal[aria-hidden="false"] { opacity: 1; visibility: visible; }

.wx-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  cursor: pointer;
}

.wx-modal-panel {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  width: 100%; max-width: 360px; padding: 30px 28px 26px; text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .25s ease;
}
.wx-modal[aria-hidden="false"] .wx-modal-panel {
  transform: translateY(0) scale(1);
}

.wx-modal-close {
  position: absolute; top: 10px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: transparent; color: var(--muted); font-size: 24px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: color .15s, background .15s;
}
.wx-modal-close:hover { color: var(--ink); background: var(--bg); }

.wx-modal-title { font-size: 18px; font-weight: 800; margin-bottom: 18px; }

.wx-modal-qr {
  width: 100%; max-width: 260px; height: auto;
  border: 1px solid var(--line); border-radius: 12px;
  margin: 0 auto 16px; display: block;
}

.wx-modal-hint { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }

.wx-modal-fallback { font-size: 12px; color: var(--muted); }
.wx-modal-fallback a { color: var(--pink); text-decoration: underline; }
.wx-modal-fallback a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .wx-modal-panel { padding: 24px 20px; }
  .wx-modal-qr { max-width: 220px; }
}
