:root {
  --brand-dark: #5844d8;
  --brand: #6e5be8;
  --brand-light: #9a7dff;
  --gold: #ffd666;
  --ink: #1e1b3a;
  --muted: #6b6a85;
  --bg: #f7f6fd;
  --income: #e5484d;
  --expense: #2f9e6b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* 顶部导航 */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  color: #fff;
}

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

.brand img {
  border-radius: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-primary {
  padding: 14px 34px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(30, 20, 120, 0.25);
}

/* 首屏 */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 96px;
  min-height: 100vh;
  padding: 120px 24px 80px;
  color: #fff;
  background: linear-gradient(165deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%);
  overflow: hidden;
}

.hero-text h1 {
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.15;
  letter-spacing: 2px;
}

.hero-text p {
  margin: 20px 0 40px;
  font-size: 20px;
  opacity: 0.85;
}

/* 手机示意 */
.phones {
  position: relative;
  flex: none;
  width: 540px;
  height: 660px;
}

.phones .phone {
  position: absolute;
}

.phone-a {
  left: 0;
  top: 56px;
  z-index: 1;
  transform: rotate(-4deg);
}

.phone-b {
  right: 0;
  top: 0;
  z-index: 2;
}

.phones.pair {
  width: 580px;
  height: 676px;
}

.pair .phone-a {
  left: 0;
  top: 0;
}

.pair .phone-b {
  left: 280px;
  right: auto;
  top: 56px;
}

.phone {
  flex: none;
  width: 300px;
  padding: 10px;
  border-radius: 46px;
  background: #1e1b3a;
  box-shadow: 0 40px 80px rgba(20, 10, 90, 0.45);
  text-align: left;
  transform: rotate(4deg);
}

.phone-screen {
  position: relative;
  height: 600px;
  padding: 26px 14px 0;
  border-radius: 38px;
  background: #f4f4f8;
  color: var(--ink);
  overflow: hidden;
}

.app-title {
  position: relative;
  margin-bottom: 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.app-pill {
  position: absolute;
  right: 0;
  top: -2px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: #e9e5fb;
}

/* 仿 App 组件（手机与功能面板共用） */
.app-card {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  overflow: hidden;
}

.app-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.app-card-row {
  display: flex;
  gap: 48px;
}

.app-card-row b {
  display: block;
  font-size: 22px;
}

.app-card-row span,
.app-card-label {
  font-size: 11px;
  opacity: 0.8;
}

.app-card-big {
  display: block;
  margin: 4px 0 12px;
  font-size: 32px;
}

.app-net {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.app-card-label + .app-card-big + .app-net {
  margin-top: 0;
}

.app-group {
  margin-top: 12px;
  padding: 0 14px 4px;
  border-radius: 18px;
  background: #fff;
}

.app-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0 10px;
  font-size: 13px;
  border-bottom: 1px solid #f0eff6;
}

.app-group-head span {
  font-size: 11px;
  color: var(--muted);
}

.app-group-head em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.app-group-head em.in {
  color: var(--income);
}

.app-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f6f5fa;
}

.app-rows li:last-child {
  border-bottom: 0;
}

.app-rows li > div {
  flex: 1;
  min-width: 0;
}

.app-rows b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.app-rows small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: #9b9ab0;
}

.app-rows li > em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}

.app-rows li > em.in {
  color: var(--income);
}

.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-style: normal;
  font-size: 18px;
  background: #f3f3f6;
}

.tile-in {
  background: #fdeaea;
}

.tile-blue {
  background: #e4f1fa;
}

.tile-orange {
  background: #fcf0de;
}

.app-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 62px;
  font-size: 11px;
  color: #9b9ab0;
  background: #fff;
}

.app-tabs .on {
  font-weight: 700;
  color: var(--brand);
}

.app-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-style: normal;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  box-shadow: 0 6px 14px rgba(88, 68, 216, 0.4);
}

.app-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 10px rgba(88, 68, 216, 0.1);
}

.app-chip-soft {
  background: #e9e5fb;
  color: var(--ink);
  box-shadow: none;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f1f0f6;
}

.seg u {
  padding: 3px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 11px;
}

.seg u.on {
  color: var(--brand);
  font-weight: 700;
  background: #fff;
}

.bar-item p {
  height: 5px;
  margin-top: 6px;
  border-radius: 3px;
  background: #f1f0f6;
}

.bar-item s {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
}

.app-rows li > em small {
  text-align: right;
}

.donut-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}

.donut {
  flex: none;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.donut span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 10px;
  color: var(--muted);
  background: #fff;
}

.donut b {
  font-size: 15px;
  color: var(--ink);
}

.legend {
  flex: 1;
}

.legend li {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.trend {
  display: block;
  width: 100%;
  padding: 12px 0 8px;
}

/* 功能介绍 */
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  opacity: 0.9;
}

.showcase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px 24px;
}

.showcase.reverse {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: 34px;
  line-height: 1.3;
}

.showcase-text > p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.points {
  margin-top: 32px;
}

.points li {
  position: relative;
  padding: 0 0 18px 22px;
  line-height: 1.7;
  color: var(--muted);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.points b {
  display: block;
  color: var(--ink);
}

.phone.flat {
  transform: none;
  box-shadow: 0 20px 60px rgba(88, 68, 216, 0.22);
}

.phone.flat .phone-screen {
  height: 560px;
}

.phone.flat .phone-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(244, 244, 248, 0), #f4f4f8);
}

.pair .phone.flat .phone-screen {
  height: 620px;
}

.pair .app-group {
  margin-top: 8px;
}

.pair .app-group-head {
  padding: 10px 0 8px;
}

.pair .report-total {
  padding: 12px 14px;
}

.pair .report-total strong {
  margin: 2px 0;
  font-size: 26px;
}

.pair .donut-row {
  padding: 10px 0;
}

.pair .legend li {
  padding: 2px 0;
}

.pair .trend {
  padding: 6px 0 4px;
}

.donut-num b {
  font-size: 12px;
}

.app-nav {
  position: relative;
  margin-bottom: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.app-nav i {
  position: absolute;
  left: 2px;
  font-style: normal;
  font-size: 22px;
  line-height: 20px;
  font-weight: 400;
}

.app-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}

.app-filter span {
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}

.app-filter .on {
  color: #fff;
  font-weight: 600;
  background: var(--brand);
}

.app-filter b {
  margin-left: auto;
  font-size: 14px;
}

.app-month {
  margin-bottom: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.app-month b {
  margin: 0 8px;
  color: var(--ink);
}

.app-seg {
  display: flex;
  margin-bottom: 12px;
  padding: 3px;
  border-radius: 12px;
  background: #e9e9f0;
}

.app-seg span {
  flex: 1;
  padding: 7px 0;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.app-seg .on {
  font-weight: 700;
  color: var(--brand);
  background: #fff;
}

.report-total {
  padding: 18px 14px;
  text-align: center;
}

.report-total span,
.report-total small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.report-total strong {
  display: block;
  margin: 6px 0;
  font-size: 30px;
}

.legend-full li b {
  margin-left: auto;
  font-size: 12px;
}

.legend-full li em {
  width: 30px;
  margin-left: 6px;
  text-align: right;
}

.legend-full li {
  font-size: 12px;
}

/* 下载 */
.download {
  padding: 80px 24px 96px;
  text-align: center;
}

.download h2 {
  font-size: 32px;
}

.qr-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(88, 68, 216, 0.08);
  transition: transform 0.2s;
}

.qr-card:hover {
  transform: translateY(-4px);
}

.qr {
  width: 164px;
  height: 164px;
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-card strong {
  margin-top: 20px;
  font-size: 18px;
}

.qr-card span {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    gap: 56px;
    padding-top: 112px;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .showcase,
  .showcase.reverse {
    flex-direction: column;
    gap: 40px;
    padding: 56px 24px;
  }

  .showcase-text h2 {
    font-size: 28px;
  }

  .phones {
    zoom: 0.62;
  }

  .phones.pair {
    zoom: 0.57;
  }

  .qr-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

.chev {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px 3px 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
