/* ============ 设计变量 ============ */
:root {
  --orange: #F25C05;
  --orange-2: #FF8438;
  --orange-deep: #F04E00;
  --grad: linear-gradient(135deg, #FF8438 0%, #F04E00 100%);
  --ink: #1f2430;
  --ink-2: #5a6172;
  --line: #ececf1;
  --bg-alt: #faf7f4;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(31, 36, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(240, 78, 0, 0.18);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(240,78,0,.28); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; padding: 14px; }

/* ============ 导航 ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 20px;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(240,78,0,.3);
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .5px; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-size: 11px; font-weight: 600; color: var(--orange); letter-spacing: 2px; }

.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; transition: color .18s; }
.nav-link:hover { color: var(--orange); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .22s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
  padding: 84px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 88% 12%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(520px 360px at 6% 90%, rgba(255,255,255,.14), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 800; letter-spacing: .5px; }
.hero-sub { font-size: 17px; margin: 22px 0 32px; max-width: 520px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  width: 250px; height: 500px; background: #16181f; border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35); position: relative;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #16181f; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(180deg,#fff,#fff7f1); border-radius: 28px; padding: 40px 18px 18px; color: var(--ink); display: flex; flex-direction: column; }
.ps-title { font-weight: 800; font-size: 18px; text-align: center; color: var(--orange-deep); }
.ps-amount { font-size: 44px; font-weight: 800; text-align: center; color: var(--ink); margin: 8px 0 18px; }
.ps-amount .count-num { color: var(--orange); }
.ps-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ps-row span { color: var(--ink-2); }
.ps-row b { font-weight: 700; }
.ps-row .hl { color: var(--orange); }
.ps-pay { margin-top: auto; background: var(--grad); color: #fff; text-align: center; padding: 13px; border-radius: 14px; font-weight: 700; font-size: 15px; }

.float-card {
  position: absolute; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); white-space: nowrap;
}
.fc-1 { top: 18px; right: -6px; color: var(--orange-deep); animation: floaty 3.4s ease-in-out infinite; }
.fc-2 { bottom: 40px; left: -10px; animation: floaty 3.4s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 60%, 0 0);
}

/* ============ 核心数据 ============ */
.stats { background: var(--white); padding: 0; margin-top: -10px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  margin: -50px auto 0; padding: 30px 20px; max-width: var(--maxw);
}
.stat { text-align: center; padding: 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-size: 38px; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ============ 通用区块 ============ */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--orange); }
.section-head h2 { font-size: 32px; font-weight: 800; margin: 10px 0 14px; letter-spacing: .5px; }
.section-head p { color: var(--ink-2); font-size: 16px; }

/* ============ 功能卡片 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.fc-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; background: linear-gradient(135deg,#fff1e8,#ffe3d2); margin-bottom: 18px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--ink-2); font-size: 15px; }

/* ============ 解决方案 Tab ============ */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.tab {
  padding: 11px 26px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: .2s;
}
.tab:hover { border-color: var(--orange-2); color: var(--orange); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(240,78,0,.25); }

.tab-panel { display: none; animation: fade .35s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sol-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; }
.sol-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; }
.sol-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px dashed var(--line); font-size: 16px; color: var(--ink); }
.sol-list li:last-child { border-bottom: none; }
.sol-list li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--orange); font-weight: 800; }
.sol-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.sol-card-title { font-size: 14px; font-weight: 700; letter-spacing: 1px; opacity: .9; }
.sol-card p { font-size: 16px; margin-top: 10px; }

/* ============ 关于 ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: 30px; font-weight: 800; margin: 10px 0 16px; }
.about-text p { color: var(--ink-2); font-size: 16px; }
.about-points { margin-top: 20px; }
.about-points li { padding: 7px 0; color: var(--ink); font-weight: 500; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.about-card .ac-num { font-size: 34px; font-weight: 800; color: var(--orange); }
.about-card .ac-label { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ============ 联系 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 30px; font-weight: 800; margin: 10px 0 14px; }
.contact-info p { color: var(--ink-2); font-size: 16px; }
.contact-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.contact-list span { font-size: 20px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--ink); transition: border-color .18s, box-shadow .18s;
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange-2); box-shadow: 0 0 0 3px rgba(255,132,56,.15); }
.field textarea { resize: vertical; }
.field .err { display: block; color: #e23b3b; font-size: 13px; margin-top: 6px; min-height: 1px; }
.field.invalid input, .field.invalid textarea { border-color: #e23b3b; }
.form-tip { margin-top: 14px; color: #1f9d55; font-weight: 600; font-size: 14px; }

/* ============ 页脚 ============ */
.footer { background: #1f2430; color: #d7dae3; padding: 56px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand .brand-logo { background: var(--grad); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #9aa0b0; max-width: 280px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 15px; color: #c4c9d6; transition: color .18s; }
.footer-links a:hover { color: var(--orange-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #8b91a3; text-align: center; }

/* ============ 返回顶部 ============ */
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; border: none; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-lg); z-index: 90; transition: transform .2s, opacity .2s;
}
.to-top:hover { transform: translateY(-3px); }

/* ============ 响应式 ============ */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 24px 22px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-cta { margin: 12px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 96px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

/* 进入动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
