/* ============ 绿师傅·智能开票 官网 ============ */
:root {
  --blue: #1256d8;
  --blue-deep: #0b3d91;
  --blue-navy: #081f4b;
  --blue-light: #3e8bfa;
  --blue-soft: #eaf1fd;
  --ink: #0c1b33;
  --ink-2: #44536b;
  --ink-3: #8a94a8;
  --bg: #f6f9ff;
  --card: #ffffff;
  --line: #e3eaf6;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 31, 75, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  transition: color 0.3s;
}
.nav.scrolled .nav-brand { color: var(--ink); }
.nav-brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 1px;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { color: rgba(255, 255, 255, 0.85); transition: color 0.3s; }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--blue-light); }
.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue) !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.nav.scrolled .nav-cta {
  background: var(--blue);
  color: #fff !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #081f4b 0%, #0b3d91 55%, #1256d8 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: glowFloat 12s ease-in-out infinite alternate;
}
.glow-a {
  width: 520px; height: 520px;
  background: #3e8bfa;
  top: -180px; right: -120px;
}
.glow-b {
  width: 420px; height: 420px;
  background: #0a2a66;
  bottom: -160px; left: -100px;
  animation-delay: -6s;
}
@keyframes glowFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #8fc0ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 18px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 44px;
  display: flex;
  gap: 36px;
}
.hero-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
}
.hero-stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #ffffff, #dbe9ff);
  color: var(--blue-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-xl { padding: 16px 30px; font-size: 17px; border-radius: 14px; }

/* Hero 视觉 */
.hero-visual { position: relative; }
.hero-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(2, 12, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
}
.hero-card img { width: 100%; }
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
.chip-a { top: 8%; left: -32px; }
.chip-b { bottom: 10%; right: -24px; }
.chip-icon { width: 10px; height: 10px; border-radius: 50%; }
.chip-icon.ok { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
.chip-icon.sync { background: var(--blue); box-shadow: 0 0 0 4px rgba(18, 86, 216, 0.18); }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 5.5s ease-in-out infinite reverse; }
.float-c { animation: floaty 6.5s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- 通用 Section ---------- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 110px 24px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.eyebrow.light { background: rgba(255, 255, 255, 0.12); color: #9fc4ff; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-head p { margin-top: 10px; color: var(--ink-2); }

/* 功能卡 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(18, 86, 216, 0.35);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 30% 30%, #4d94ff, var(--blue) 70%),
    var(--blue);
  position: relative;
}
.feature-icon::after {
  content: "";
  position: absolute; inset: 12px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top-color: transparent;
  transform: rotate(45deg);
}
.i2::after { border-radius: 50%; }
.i3::after { transform: rotate(0); border-radius: 3px; }
.i4::after { transform: rotate(90deg); }
.i5::after { border-radius: 2px; transform: rotate(-45deg); }
.i6::after { border-style: dashed; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-2); }

/* 流程（深色） */
.section-dark {
  max-width: none;
  background: linear-gradient(160deg, #081f4b, #0b3d91);
  color: #fff;
  padding: 110px 24px;
}
.section-dark .section-head p { color: rgba(255, 255, 255, 0.7); }
.flow-line { max-width: 1160px; margin: 0 auto; position: relative; }
.flow-track {
  position: absolute;
  top: 26px; left: 4%; right: 4%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.flow-progress {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #6fa8ff, transparent);
  animation: flowMove 3.2s linear infinite;
}
@keyframes flowMove {
  from { transform: translateX(-100%); }
  to { transform: translateX(350%); }
}
.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
}
.flow-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s, background 0.25s;
}
.flow-step:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
.flow-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #8fc0ff;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: rgba(255, 255, 255, 0.68); }

/* 产品实拍 */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.screen-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.screen-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.screen-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.screen-card figcaption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

/* 下载区 */
.section-download { padding-bottom: 130px; }
.download-card {
  background: linear-gradient(150deg, #0b3d91, #1256d8);
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(11, 61, 145, 0.35);
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -200px; right: -120px;
}
.download-logo {
  height: 54px;
  width: auto;
  margin: 0 auto 22px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 8px 16px;
}
.download-card h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.download-card > p { margin-top: 10px; color: rgba(255, 255, 255, 0.75); }
.download-actions { margin-top: 30px; }
.download-actions .btn-primary {
  background: #fff;
  color: var(--blue-deep);
}
.download-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.download-points {
  margin: 34px auto 0;
  max-width: 460px;
  text-align: left;
  list-style: none;
  display: grid;
  gap: 10px;
}
.download-points li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.download-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7dd3a8, #22c55e);
}

/* 页脚 */
.footer {
  background: var(--blue-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 56px;
  text-align: center;
}
.footer-logo { height: 40px; width: auto; margin: 0 auto 12px; }
.footer-links { margin-top: 10px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.4); }

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-visual { max-width: 560px; }
  .feature-grid, .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-track { display: none; }
}
@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .feature-grid, .screen-grid, .flow-steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .download-card { padding: 44px 24px; }
  .section { padding: 72px 20px; }
}
