:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --paper: #ffffff;
  --paper-soft: #f1f4f7;
  --ink: #15181d;
  --muted: #6b737c;
  --line: #e6e9ed;
  --line-strong: #d6dce2;
  --blue: #2d7ff9;
  --green: #18a66a;
  --amber: #d99022;
  --shadow: rgba(18, 24, 32, 0.11);
  --shadow-soft: rgba(18, 24, 32, 0.07);
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 233, 237, 0.74);
  background: rgba(246, 247, 249, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 48px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 760;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(18, 24, 32, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4f5862;
  font-size: 0.94rem;
}

.nav-links a {
  transition: color 180ms ease;
}

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

.mail-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 18px rgba(18, 24, 32, 0.06);
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(45, 127, 249, 0.1), transparent 26rem),
    linear-gradient(180deg, #f9fafb 0%, #f3f5f7 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(78vh - 68px);
  margin: 0 auto;
  padding: 58px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: 72px;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.96;
  font-weight: 820;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: #434b55;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  padding: 10px 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 720;
  box-shadow: 0 10px 22px var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: #aeb8c4;
  box-shadow: 0 16px 34px var(--shadow);
}

.button.primary {
  border-color: #11151b;
  background: #11151b;
  color: #fff;
}

.product-stage {
  position: relative;
  min-width: 0;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.phone {
  width: min(100%, 358px);
  border: 1px solid #d8dee5;
  border-radius: 36px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 36px 70px rgba(18, 24, 32, 0.16);
  transform: rotateX(calc((50% - var(--my)) * 0.035)) rotateY(calc((var(--mx) - 50%) * 0.035));
  transition: transform 260ms ease;
}

.phone-screen {
  position: relative;
  min-height: 492px;
  overflow: hidden;
  border-radius: 27px;
  background: #f7f8fa;
  border: 1px solid #edf0f3;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 78px;
  height: 23px;
  border-radius: 999px;
  background: #11151b;
  transform: translateX(-50%);
  z-index: 2;
}

.app-demo {
  position: relative;
  min-height: 492px;
}

.app-slide {
  position: absolute;
  inset: 0;
  padding: 52px 18px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.98);
  transition: opacity 420ms ease, transform 420ms ease;
}

.app-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.app-title {
  font-size: 1.18rem;
  font-weight: 780;
}

.app-date {
  color: var(--muted);
  font-size: 0.86rem;
}

.balance {
  padding: 22px;
  border-radius: 8px;
  background: #11151b;
  color: #fff;
  box-shadow: 0 18px 40px rgba(17, 21, 27, 0.18);
}

.balance span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.balance strong {
  display: block;
  margin-top: 4px;
  font-size: 2.25rem;
  line-height: 1.1;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mini-stat {
  border: 1px solid #e5e9ed;
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mini-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--shadow-soft);
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.mini-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.entry-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e6eaee;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.entry-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #20252b;
  font-weight: 650;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.entry:nth-child(2) .dot {
  background: var(--amber);
}

.entry:nth-child(3) .dot {
  background: var(--blue);
}

.entry-value {
  color: #4b5560;
  font-weight: 720;
}

.form-card,
.chart-card {
  margin-top: 14px;
  border: 1px solid #e5e9ed;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.segmented,
.category-row,
.week-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 11px;
  background: #eef2f6;
  color: #4c5661;
  font-size: 0.8rem;
  font-weight: 680;
}

.pill.active {
  background: #11151b;
  color: #fff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #edf0f3;
  padding: 12px 0;
}

.form-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.form-row strong {
  color: #20252b;
  font-size: 1rem;
}

.expense-amount {
  margin: 18px 0 4px;
  color: #d05b44;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 820;
}

.bar-chart {
  height: 152px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  align-items: end;
  padding-top: 14px;
}

.bar {
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #18a66a, #8ed9b7);
  min-height: 28px;
}

.bar:nth-child(2),
.bar:nth-child(5) {
  background: linear-gradient(180deg, #2d7ff9, #9dc4ff);
}

.bar:nth-child(3),
.bar:nth-child(7) {
  background: linear-gradient(180deg, #d99022, #f0c27a);
}

.phone-carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.phone-carousel-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #cbd3dc;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.phone-carousel-dot.active {
  width: 30px;
  background: #11151b;
}

.floating-chip {
  position: absolute;
  right: 4px;
  bottom: 84px;
  border: 1px solid #dbe1e7;
  border-radius: 8px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 38px rgba(18, 24, 32, 0.13);
  backdrop-filter: blur(10px);
  animation: floatChip 4.5s ease-in-out infinite;
}

.mini-program-entry {
  position: absolute;
  left: -150px;
  top: 72px;
  z-index: 3;
  width: 174px;
  border: 1px solid #dbe1e7;
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(18, 24, 32, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mini-program-entry:hover {
  transform: translateY(-3px);
  border-color: #c3ccd6;
  box-shadow: 0 22px 44px rgba(18, 24, 32, 0.14);
}

.mini-program-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 11px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 14px rgba(18, 166, 106, 0.22));
}

.mini-program-entry strong,
.floating-chip span {
  display: block;
}

.mini-program-entry strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.28;
}

.mini-program-entry span,
.floating-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.floating-chip strong {
  display: block;
  color: var(--green);
  font-size: 1.04rem;
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section.soft {
  background: #f6f7f9;
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.tool-card,
.fit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 12px 26px rgba(18, 24, 32, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.tool-card:hover,
.fit-card:hover {
  transform: translateY(-4px);
  border-color: #cbd3dc;
  box-shadow: 0 22px 42px var(--shadow-soft);
}

.icon {
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #11151b;
  color: #fff;
  font-weight: 820;
}

.feature-card:nth-child(2) .icon,
.fit-card:nth-child(2) .icon {
  background: var(--green);
}

.feature-card:nth-child(3) .icon,
.fit-card:nth-child(3) .icon {
  background: var(--amber);
}

.feature-card:nth-child(4) .icon,
.fit-card:nth-child(4) .icon {
  background: var(--blue);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 780;
  letter-spacing: 0;
}

.feature-card p,
.tool-card p,
.fit-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.fit-list {
  display: grid;
  gap: 14px;
}

.fit-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  align-items: start;
}

.fit-card .icon {
  margin: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-height: 166px;
}

.tool-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--paper-soft);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    #fff;
  box-shadow: 0 22px 48px var(--shadow-soft);
}

.contact-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.contact-band p {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.beian-link {
  color: inherit;
  text-decoration: none;
}

.beian-link:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
  }

  .product-stage {
    min-height: 420px;
  }

  .feature-grid,
  .split,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    max-width: 360px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .nav,
  .hero,
  .section-inner,
  .footer-inner {
    width: 320px;
    max-width: calc(100% - 28px);
  }

  .nav {
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding: 54px 0 46px;
    gap: 34px;
  }

  .product-stage {
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    align-items: start;
  }

  .product-stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(246, 247, 249, 0), #f3f5f7);
    pointer-events: none;
  }

  .hero-lead {
    max-width: 100%;
    word-break: break-all;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    padding: 60px 0;
  }

  .phone {
    width: min(100%, 270px);
    margin-top: 2px;
    transform: none;
  }

  .phone-screen {
    min-height: 430px;
  }

  .app-demo {
    min-height: 430px;
  }

  .app-slide {
    padding: 50px 14px 18px;
  }

  .balance {
    padding: 19px;
  }

  .balance strong {
    font-size: 2rem;
  }

  .floating-chip {
    display: none;
  }

  .mini-program-entry {
    position: static;
    width: 100%;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 11px;
    align-items: center;
  }

  .mini-program-icon {
    margin-bottom: 0;
  }

  .contact-band,
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-inner {
    padding: 20px 0;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .floating-chip {
    animation: none;
  }

  .button,
  .feature-card,
  .tool-card,
  .fit-card,
  .app-slide,
  .mini-stat {
    transition: none;
  }
}
