/* FABU Village 官网样式 · 浅色主题，移动端自适应 */
:root {
  --brand: #2f9e6e;        /* 主色：村落绿 */
  --brand-dark: #1f7d57;
  --accent: #f59e0b;       /* 点缀：暖橙 */
  --text: #1a1a2e;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
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.65;
}
a { color: inherit; text-decoration: none; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #eef0ee;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--brand); }

/* 按钮 */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #f0f5f2; }

/* 主视觉 */
.hero {
  background: linear-gradient(180deg, #f0f8f3 0%, #ffffff 100%);
  padding: 90px 20px 70px;
  text-align: center;
}
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #e6f5ec; color: var(--brand-dark);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 18px;
}
.lead { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 通用区块 */
.section { padding: 72px 20px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.5px; margin-bottom: 16px; }
.section-lead { color: var(--muted); max-width: 620px; margin: 0 auto 36px; font-size: 17px; }

/* 数据 */
.stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 34px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14px; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid #eef0ee; border-radius: var(--radius);
  padding: 28px 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,125,87,0.10); }
.card-icon { font-size: 34px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card-link { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 14px; }
.card-link:hover { color: var(--brand-dark); }
.tick { list-style: none; margin-top: 12px; }
.tick li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* 隐私政策长文排版 */
.policy { max-width: 860px; margin: 0 auto; padding: 64px 22px 90px; }
.policy h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.5px; margin-bottom: 6px; }
.policy .updated { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.policy h4 { font-size: 18px; margin: 30px 0 10px; color: var(--brand-dark); }
.policy p { color: #3a4250; margin-bottom: 14px; }
.policy ul { padding-left: 22px; margin: 0 0 18px; }
.policy ul li { color: #3a4250; margin-bottom: 8px; font-size: 15px; }
.policy ul.links { list-style: none; padding: 0; }
.policy ul.links li { padding: 9px 0; border-bottom: 1px solid #eef0ee; }
.policy ul.links a { color: var(--brand); font-weight: 600; }

/* App 预告 */
.app-banner { background: var(--brand); color: #fff; }
.app-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.app-banner h2 { color: #fff; }
.app-banner p { color: #eafaf1; max-width: 560px; }

/* 页脚 */
.footer { border-top: 1px solid #eef0ee; padding: 28px 20px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.copy { color: var(--muted); font-size: 14px; }

/* 客户证言 */
.quote { max-width: 760px; margin: 0 auto; text-align: center; background: var(--bg-alt); border-radius: var(--radius); padding: 40px 32px; }
.quote-text { font-size: clamp(18px, 2.6vw, 24px); font-weight: 600; line-height: 1.5; color: var(--text); }
.quote-author { margin-top: 16px; color: var(--brand-dark); font-weight: 700; }
.quote-role { color: var(--muted); font-size: 14px; }

/* 服务页：计费/模型标签 */
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; justify-content: center; }
.tag { padding: 8px 16px; border-radius: 999px; background: #e6f5ec; color: var(--brand-dark); font-weight: 700; font-size: 14px; }

/* 联系表单 */
.form { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #dfe3df; border-radius: 12px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,158,110,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* 部门邮箱 */
.depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.dept { background: #fff; border: 1px solid #eef0ee; border-radius: var(--radius); padding: 24px; }
.dept h4 { font-size: 16px; margin-bottom: 6px; }
.dept a { color: var(--brand); font-weight: 600; }

/* office 卡片补充 */
.office-role { color: var(--brand-dark); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.office-desc { color: var(--muted); font-size: 14px; }

/* 页脚（多列增强版） */
.footer { border-top: 1px solid #eef0ee; padding: 48px 20px 24px; background: var(--bg-alt); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .logo { font-size: 20px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { max-width: var(--maxw); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #e2e6e2; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* 移动端 */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 56px 18px; }
  .stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 炫酷视觉增强 ===== */
.hero-split { position: relative; overflow: hidden; text-align: left; }
.hero-split .hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; text-align: left; }
.hero-split .badge, .hero-split .lead { margin-left: 0; }
.hero-split .lead { margin: 0 0 30px; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-visual { position: relative; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(31,125,87,0.18); }
.hero-photo img { width: 100%; display: block; animation: kenburns 20s ease-in-out infinite alternate; }
.hero-visual::before { content: ""; position: absolute; top: -30px; right: -24px; width: 180px; height: 180px; background: radial-gradient(circle, var(--accent), transparent 70%); filter: blur(28px); opacity: .5; z-index: -1; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.15); opacity: .7; } }

/* 漂浮装饰 blob */
.blob { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .4; z-index: 0; pointer-events: none; }
.blob.b1 { width: 240px; height: 240px; background: var(--brand); top: 6%; left: -70px; animation: floaty 8s ease-in-out infinite; }
.blob.b2 { width: 180px; height: 180px; background: var(--accent); bottom: 4%; right: -50px; animation: floaty 10s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* 滚动入场 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; } .reveal.d3 { transition-delay: .27s; }

/* 按钮微光 */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4.5s infinite; }
@keyframes shine { 0% { left: -120%; } 55%,100% { left: 140%; } }

/* 卡片图标悬浮增强 */
.card-icon { transition: transform .25s ease; }
.card:hover .card-icon { transform: scale(1.12) rotate(-4deg); }

/* 响应式：hero 单列 */
@media (max-width: 860px) {
  .hero-split .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-split .badge, .hero-split .lead { margin-left: auto; margin-right: auto; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-split .hero-visual { order: -1; max-width: 440px; margin: 0 auto 8px; }
}
@media (max-width: 640px) {
  .blob { display: none; }
}

/* 业务区配图 */
.core-visual { max-width: 760px; margin: 0 auto 44px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px rgba(31,125,87,0.16); }
.core-visual img { width: 100%; display: block; animation: kenburns 22s ease-in-out infinite alternate; }

/* Ken-Burns 缓慢缩放 */
@keyframes kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.6%, -1.6%); }
}

/* 全球地图 SVG 动画（About 区） */
.globe-wrap { margin: 40px auto 8px; max-width: 820px; }
.globe-map { width: 100%; height: auto; display: block; }
.globe-map .grid { stroke: rgba(47,158,110,0.16); stroke-width: 1; fill: none; }
.globe-map .arc { fill: none; stroke: url(#flowGrad); stroke-width: 1.6; stroke-linecap: round; }
.globe-map .city { fill: var(--brand); }
.globe-map .node-glow { fill: var(--brand); opacity: .25; }
.traveller { fill: #ffffff; filter: drop-shadow(0 0 5px rgba(47,158,110,.9)); }
.globe-map .city-label { fill: var(--muted); font-size: 12px; font-weight: 700; font-family: inherit; }

/* 数字统计滚动计数 */
.stat strong { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-photo img, .core-visual img { animation: none; }
  .reveal { transition: none; }
}
