/* Base tokens - App 风格：浅色清新 */
:root {
  --bg: #F0F5F1;
  --bg-soft: #E8F0E9;
  --card: #FFFFFF;
  --text: #1A1A1F;
  --text-secondary: #666666;
  --muted: #999999;
  --primary: #4CD964;
  --primary-dark: #3DBF55;
  --accent: #2EAA4A;
  --accent-soft: rgba(76, 217, 100, 0.12);
  --primary-soft: rgba(76, 217, 100, 0.15);
  --border: #E5E5EA;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

/* 顶部导航 */
.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 12;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 72px;
  width: min(100%, 1400px);
  margin: 0 auto;
  color: #1A1A1F;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__title {
  font-size: 20px;
  color: #1A1A1F;
  font-weight: 700;
}

.logo__tagline {
  color: #999999;
  font-size: 13px;
  font-weight: 500;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 24px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: #1A1A1F;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  background: #333333;
}

.btn.ghost {
  border-color: #1A1A1F;
  color: #1A1A1F;
  background: transparent;
}

.btn.ghost:hover {
  background: #1A1A1F;
  color: #FFFFFF;
}

/* Hero 区域 */
.hero-shell {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F0F5F1 0%, #E8F0E9 60%, #F0F5F1 100%);
  overflow: hidden;
}

.hero-shell::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(76, 217, 100, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-shell::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(76, 217, 100, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 72px;
  width: min(100%, 1400px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__copy h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 12px 0 20px;
  color: #1A1A1F;
  line-height: 1.2;
}

.accent {
  color: #4CD964;
}

.eyebrow {
  letter-spacing: 2px;
  color: #4CD964;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.lede {
  color: var(--text-secondary);
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
}

.cta {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  justify-content: flex-start;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero__chips span {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
}

/* 手机展示 */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone {
  width: 300px;
  border-radius: 36px;
  padding: 18px;
  background: linear-gradient(180deg, #FFFFFF, #F5F5F0);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.phone__status {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E5E5EA;
}

.phone__screen {
  background: linear-gradient(180deg, #FAFAFA, #F0F0F0);
  border-radius: 28px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance h3 {
  margin-top: 6px;
  font-size: 28px;
  color: #1A1A1F;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(76, 217, 100, 0.18);
  color: #2E7D32;
  font-weight: 600;
  font-size: 12px;
}

.pill.success {
  background: rgba(76, 217, 100, 0.15);
  color: #2D9C3E;
}

.chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0 12px;
}

.chart__bar {
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(180deg, #4CD964, #2EAA4A);
  opacity: 0.9;
}

.chart__bar.bar1 { height: 45px; opacity: 0.6; }
.chart__bar.bar2 { height: 60px; }
.chart__bar.bar3 { height: 35px; opacity: 0.5; }
.chart__bar.bar4 { height: 50px; opacity: 0.8; }

.list {
  display: grid;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 13px;
  color: var(--text);
}

.floating-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  min-width: 140px;
}

.floating-card.card1 {
  top: 10%;
  right: 2%;
}

.floating-card.card2 {
  bottom: 14%;
  left: 4%;
}

/* 通用区块 */
.section {
  padding: 0;
  background: transparent;
  width: 100%;
}

.section__inner {
  padding: 70px 72px;
  width: min(100%, 1400px);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section__header h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 10px 0 12px;
  color: #1A1A1F;
}

.section__header .muted {
  color: var(--text-secondary);
  font-size: 15px;
}

/* 功能卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature h3 {
  margin: 16px 0 10px;
  font-size: 17px;
  color: #1A1A1F;
}

.feature p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4CD964, #2EAA4A);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(76, 217, 100, 0.25);
}

/* 安全区块 */
.security .card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  color: #1A1A1F;
}

.security .card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 数据洞察 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.panel {
  background: var(--card);
  color: var(--text);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel__title {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 16px;
  color: #1A1A1F;
}

.progress {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.progress span {
  font-size: 13px;
  color: var(--text-secondary);
}

.progress__bar {
  width: 100%;
  height: 8px;
  background: #F0F0F0;
  border-radius: 999px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4CD964, #2EAA4A);
}

.chart-line {
  position: relative;
  margin: 24px 0 16px;
  height: 120px;
  background: linear-gradient(180deg, rgba(76, 217, 100, 0.08), rgba(46, 170, 74, 0.04));
  border-radius: 16px;
  overflow: hidden;
}

.chart-line .line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 200, 66, 0.15), rgba(76, 217, 100, 0.05));
}

.chart-line .dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CD964, #2EAA4A);
  box-shadow: 0 2px 8px rgba(76, 217, 100, 0.4);
}

.chart-line .d1 { left: 8%; top: 65%; }
.chart-line .d2 { left: 32%; top: 42%; }
.chart-line .d3 { left: 58%; top: 28%; }
.chart-line .d4 { left: 85%; top: 48%; }

.legend {
  display: flex;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

.dot-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot--primary {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CD964, #2EAA4A);
}

.dot--muted {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C7C7CC;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 40px 72px;
  width: min(100%, 1400px);
  margin: 0 auto;
  background: #E8F0E9;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 14px;
}

.footer .muted {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 900px) {
  .topbar {
    padding: 12px 20px;
  }

  .hero {
    padding: 60px 20px 40px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__copy {
    order: 1;
  }

  .hero__visual {
    order: 0;
    margin: 0 auto;
  }

  .cta {
    justify-content: center;
  }

  .hero__chips {
    justify-content: center;
  }

  .phone {
    width: 260px;
  }

  .section__inner {
    padding: 48px 20px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 540px) {
  .cta {
    flex-wrap: wrap;
  }

  .hero {
    padding: 40px 16px 32px;
  }

  .hero__copy h1 {
    font-size: 28px;
  }

  .section__inner {
    padding: 36px 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    display: none;
  }
}
