:root {
  --bg: #f7f5f2;
  --card: #ffffff;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --border: #e8e4df;
  --accent: #5b7c99;
  --accent-dark: #4a6578;
  --income: #2e9b6a;
  --expense: #d45c5c;
  --shadow: 0 8px 30px rgba(44, 44, 44, 0.08);
  --radius: 16px;
  --max: 960px;
}

* {
  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;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 245, 242, 0.85);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(91, 124, 153, 0.22);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 124, 153, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: var(--card);
  color: var(--accent);
  border: 1.5px solid var(--border);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 28em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.phone-mock {
  background: var(--card);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 320px;
  margin: 0 auto;
}

.phone-screen {
  background: var(--bg);
  border-radius: 18px;
  padding: 16px;
  min-height: 380px;
}

.mock-tabs {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-tabs span.active {
  color: var(--accent);
  font-weight: 600;
}

.mock-card {
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.mock-card .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Sections */
section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-card .emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-card ul {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-card li {
  margin-bottom: 4px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.highlight-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.highlight-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Download */
.download-section {
  background: linear-gradient(180deg, transparent, rgba(91, 124, 153, 0.08));
}

.download-box {
  background: var(--card);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

.download-box h2 {
  margin-bottom: 8px;
}

.download-box > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.download-note {
  margin-top: 20px;
  padding: 14px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}

.download-note code {
  background: #ebe7e2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.version-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-hint {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-note-section {
  padding: 28px 0 44px;
  background: linear-gradient(180deg, rgba(91, 124, 153, 0.08), transparent);
}

.footer-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.footer-note a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid rgba(91, 124, 153, 0.35);
}

/* Support */
.support-section {
  padding-top: 56px;
  background: linear-gradient(180deg, rgba(91, 124, 153, 0.08), transparent);
}

.support-page {
  padding: 56px 0;
  min-height: calc(100vh - 142px);
  background: linear-gradient(180deg, rgba(91, 124, 153, 0.08), transparent);
}

.support-page .section-title h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.support-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3df;
  color: #b66a24;
  font-size: 0.85rem;
  font-weight: 700;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.qr-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.qr-card h3 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
}

.qr-card p {
  min-height: 44px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.qr-card img {
  width: 100%;
  max-width: 210px;
  margin-top: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.qr-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accentLight, #e8eef3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.qr-tag.alipay {
  background: #e8f2ff;
  color: #1777ff;
}

.qr-tag.wechat {
  background: #e8f7ef;
  color: #0abf5b;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding-top: 32px;
    text-align: center;
  }

  .hero .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-box {
    padding: 28px 20px;
  }

  .support-card {
    padding: 28px 18px;
  }

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

  .qr-card p {
    min-height: auto;
  }
}
