:root {
  --cw-color-primary: #ff4f83;
  --cw-color-primary-strong: #ef2f6d;
  --cw-color-primary-soft: #fff0f5;
  --cw-color-accent: #6c8cff;
  --cw-text-main: #1f2329;
  --cw-text-secondary: #596273;
  --cw-text-muted: #7e8796;
  --cw-border-light: #f0e5ea;
  --cw-surface: #ffffff;
  --cw-page-bg: #f7f9ff;
  --cw-page-bg-gradient: linear-gradient(90deg, #f2f8ff 0%, #fff6fb 45%, #f7f9ff 100%);
  --cw-shadow-card: 0 22px 58px rgba(255, 79, 131, 0.12);
  --cw-shadow-soft: 0 14px 38px rgba(31, 35, 41, 0.08);
  --cw-shadow-primary: 0 14px 28px rgba(255, 79, 131, 0.24);
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--cw-text-main);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  isolation: isolate;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  height: 72px;
  margin: 0 auto;
  padding: 0 15px;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 独立背景层淡入，滚动时不改变导航内容的尺寸和排布。 */
.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  pointer-events: none;
  border: 1px solid #eee9e6;
  border-radius: 999px;
  background: #fdfcfb;
  box-shadow: 0 4px 18px rgba(31, 35, 41, 0.04);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled {
  transform: translateY(4px);
}

.site-header.is-scrolled::before {
  opacity: 1;
  transform: translateY(0);
}

.brand,
.nav,
.hero__actions,
.hero__stats,
.download-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 79, 131, 0.22);
}

.brand__name {
  white-space: nowrap;
}

.nav {
  gap: 28px;
  color: var(--cw-text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.nav a,
.site-footer a {
  transition: color 0.18s ease;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--cw-color-primary-strong);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.header-action {
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--cw-color-primary), var(--cw-color-primary-strong));
  box-shadow: var(--cw-shadow-primary);
}

.button {
  min-width: 132px;
  padding: 0 22px;
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.header-action:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(108, 140, 255, 0.36);
  outline-offset: 3px;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cw-color-primary), var(--cw-color-primary-strong));
  box-shadow: var(--cw-shadow-primary);
}

.button--secondary {
  color: var(--cw-text-main);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(31, 35, 41, 0.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: var(--container);
  min-height: 88dvh;
  margin: 0 auto;
  padding: 110px 0 56px;
}

.hero__content {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cw-color-primary-strong);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 5.2vw, 68px);
  line-height: 1.2;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--cw-text-secondary);
  font-size: 20px;
}

.hero__actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero__stats {
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats div {
  min-width: 148px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(31, 35, 41, 0.05);
}

.hero__stats dt {
  font-weight: 900;
}

.hero__stats dd {
  margin: 4px 0 0;
  color: var(--cw-text-muted);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  min-height: 590px;
}

.phone {
  position: absolute;
  overflow: hidden;
  border: 10px solid #1f2329;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 35, 41, 0.2);
}

.phone--front {
  right: 4%;
  bottom: 0;
  width: min(310px, 74vw);
  height: 590px;
}

.phone--back {
  top: 56px;
  left: 0;
  width: 238px;
  height: 470px;
  border-width: 8px;
  border-radius: 32px;
  opacity: 0.9;
  transform: rotate(-7deg);
}

.phone__speaker {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 76px;
  height: 7px;
  border-radius: 999px;
  background: #111319;
  transform: translateX(-50%);
}

.phone__screen {
  width: 100%;
  height: 100%;
  padding: 34px 16px 18px;
  background: linear-gradient(180deg, #f2f8ff 0%, #fff6fb 46%, #ffffff 100%);
}

.phone__screen--soft {
  padding-top: 30px;
  background: linear-gradient(180deg, #fff7fb, #f4f7ff);
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--cw-text-secondary);
  font-size: 14px;
  font-weight: 800;
}

.app-topbar strong {
  color: var(--cw-text-main);
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f4f7;
}

.profile-card--main {
  height: 296px;
}

.profile-card__photo {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 32%, rgba(31, 35, 41, 0.72) 100%),
    linear-gradient(135deg, #ffd1df 0%, #f4e5ff 40%, #cfe0ff 100%);
}

.profile-card__photo::before {
  display: block;
  width: 124px;
  height: 124px;
  margin: 54px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #fff4ef 0 22px, transparent 23px),
    radial-gradient(circle at 50% 72%, #ffffff 0 54px, transparent 55px);
  box-shadow: 0 16px 28px rgba(31, 35, 41, 0.08);
  content: "";
}

.profile-card__overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #fff;
}

.profile-card__overlay h2 {
  margin: 8px 0 2px;
  font-size: 28px;
}

.profile-card__overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(53, 199, 111, 0.88);
  font-size: 13px;
  font-weight: 900;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
  padding: 14px 8px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 35, 41, 0.06);
}

.quick-grid span {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--cw-text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.quick-grid img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.feed-preview,
.message-row {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 35, 41, 0.06);
}

.feed-preview {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
}

.feed-preview strong {
  display: block;
  margin-bottom: 4px;
}

.feed-preview p {
  margin: 0;
  color: var(--cw-text-muted);
  font-size: 13px;
}

.feed-preview img {
  width: 52px;
  height: 52px;
}

.mini-nav {
  width: 66px;
  height: 7px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #252933;
}

.message-row {
  gap: 12px;
  min-height: 68px;
  margin-bottom: 14px;
  padding: 0 14px;
  border-radius: 20px;
  color: var(--cw-text-main);
  font-weight: 800;
}

.message-row img {
  width: 42px;
  height: 42px;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0;
}

.section__heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.feature-band {
  border-top: 1px solid rgba(255, 255, 255, 0.72);
}

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

.feature-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(31, 35, 41, 0.06);
}

.feature-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.feature-card p,
.trust-copy p,
.trust-item p,
.download-section p {
  color: var(--cw-text-secondary);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.trust-copy {
  max-width: 520px;
}

.trust-panel {
  display: grid;
  gap: 14px;
}

.trust-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 35, 41, 0.06);
}

.trust-item span {
  grid-row: span 2;
  color: var(--cw-color-primary);
  font-size: 24px;
  font-weight: 900;
}

.trust-item strong {
  font-size: 18px;
}

.trust-item p {
  margin: 0;
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: var(--container);
  margin: 40px auto 0;
  padding: 38px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 79, 131, 0.12), rgba(108, 140, 255, 0.13)),
    #fff;
  box-shadow: var(--cw-shadow-card);
}

.download-section > div:first-child {
  max-width: 660px;
}

.download-section h2 {
  margin-bottom: 12px;
}

.download-section p {
  margin-bottom: 0;
}

.download-actions {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 110px;
  width: var(--container);
  margin: 0 auto;
  color: var(--cw-text-muted);
  font-size: 14px;
}

.legal-page {
  background: #f7f9ff;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(920px, calc(100vw - 32px));
  min-height: 78px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--cw-text-secondary);
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 35, 41, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.legal-main {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto 64px;
}

.legal-document {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--cw-shadow-card);
}

.legal-document h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 56px);
}

.legal-document h2 {
  margin: 36px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.legal-document p,
.legal-document li {
  color: var(--cw-text-secondary);
  font-size: 16px;
}

.legal-document p {
  margin-bottom: 14px;
}

.legal-document ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-meta {
  color: var(--cw-text-muted);
  font-size: 14px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--cw-border-light);
  border-radius: 16px;
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cw-border-light);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--cw-text-main);
  background: #fff6fb;
  font-size: 15px;
}

.legal-table td {
  color: var(--cw-text-secondary);
  font-size: 14px;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 900px) {
  :root {
    --container: min(720px, calc(100vw - 32px));
  }

  .nav {
    display: none;
  }

  .hero,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero__visual {
    min-height: 520px;
  }

  .phone--front {
    right: 8%;
    height: 520px;
  }

  .phone--back {
    left: 4%;
    width: 210px;
    height: 418px;
  }

  .profile-card--main {
    height: 240px;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(430px, calc(100vw - 24px));
  }

  .site-header {
    height: 64px;
  }

  .site-header::before {
    inset: 2px 0;
  }

  .brand__name {
    font-size: 15px;
  }

  .header-action {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__visual {
    min-height: 484px;
  }

  .phone--front {
    right: 0;
    width: 268px;
    height: 488px;
    border-radius: 34px;
  }

  .phone--back {
    top: 42px;
    left: 0;
    width: 178px;
    height: 360px;
    border-radius: 28px;
  }

  .phone__screen {
    padding-right: 12px;
    padding-left: 12px;
  }

  .quick-grid img {
    width: 30px;
    height: 30px;
  }

  .profile-card--main {
    height: 220px;
  }

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

  .section {
    padding: 54px 0;
  }

  .download-section {
    padding: 26px;
    border-radius: 20px;
  }

  .button {
    width: 100%;
  }

  .download-actions {
    width: 100%;
  }

  .legal-header,
  .legal-main {
    width: min(100vw - 24px, 430px);
  }

  .legal-document {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 官网采用清晰的纯色底面，粉色只用于品牌与主要操作。 */
.home-page {
  --cw-color-primary: #cc3466;
  --cw-color-primary-strong: #b72b58;
  --cw-text-muted: #646b77;
  --cw-shadow-primary: none;
  background: #fdfcfb;
}
.home-page .hero__stats div {
  min-width: 0;
  padding: 0 20px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .feature-band { border-top: 1px solid #eee9e6; }
.home-page .feature-card {
  border: 0;
  border-radius: 0;
  padding: 24px 16px 24px 0;
  background: transparent;
  box-shadow: none;
}
.home-page .trust-item {
  border-bottom: 1px solid #eee9e6;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .download-section {
  background: #f7eeef;
  box-shadow: none;
}
.home-page .download-actions {
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
}
.home-page section[id] { scroll-margin-top: 96px; }
.mini-program-name { display: flex; align-items: center; gap: 14px; }
.mini-program-name img { border-radius: 14px; }
.mini-program-name strong { display: block; font-size: 20px; }
.mini-program-name span { color: var(--cw-text-secondary); font-size: 14px; }
.contact-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; }
.contact-link span { font-variant-numeric: tabular-nums; }
.contact-link:hover { color: var(--cw-color-primary-strong); }
a:focus-visible { outline: 2px solid var(--cw-color-primary-strong); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
