:root {
  --paper: #f7faf8;
  --paper-strong: #ffffff;
  --ink: #151817;
  --muted: #607075;
  --line: rgba(21, 24, 23, 0.12);
  --soft-line: rgba(21, 24, 23, 0.07);
  --jade: #0b6965;
  --jade-dark: #034a47;
  --jade-soft: rgba(11, 105, 101, 0.11);
  --seal: #a92d3d;
  --blue: #253d78;
  --mist: #edf3f2;
  --shadow: 0 22px 55px rgba(13, 37, 36, 0.15);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: max(14px, env(safe-area-inset-top)) clamp(18px, 5vw, 72px) 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(247, 250, 248, 0.88);
  backdrop-filter: blur(18px);
}

#product,
#features,
#company,
#contact {
  scroll-margin-top: 96px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-link img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 20px rgba(11, 105, 101, 0.18);
}

.brand-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(21, 24, 23, 0.78);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--jade);
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: calc(100svh - 118px);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(247, 250, 248, 0.99) 0%, rgba(247, 250, 248, 0.82) 40%, rgba(247, 250, 248, 0.2) 78%),
    url("./assets/hero-bg.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100svh - 150px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4.5vw, 52px);
}

.hero-copy {
  max-width: 670px;
}

.hero-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 42px rgba(11, 105, 101, 0.18);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(58px, 10vw, 112px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: #27403f;
  font-size: clamp(19px, 2.7vw, 30px);
  font-weight: 750;
  line-height: 1.55;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 780;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--jade);
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 105, 101, 0.24);
}

.button.secondary {
  border-color: rgba(11, 105, 101, 0.42);
  background: rgba(255, 255, 255, 0.58);
  color: var(--jade-dark);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: 38px 0 0;
}

.hero-facts div {
  padding: 18px 18px 16px;
  border-top: 1px solid rgba(11, 105, 101, 0.32);
  background: rgba(255, 255, 255, 0.46);
}

.hero-facts dt {
  color: var(--jade-dark);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.hero-facts dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.phone-preview {
  justify-self: end;
  width: min(100%, 390px);
}

.phone-shell {
  position: relative;
  width: min(100%, 356px);
  margin-left: auto;
  padding: 13px;
  border-radius: 42px;
  background:
    linear-gradient(145deg, #0d0f11, #343839 48%, #050607),
    #101214;
  box-shadow:
    0 30px 60px rgba(9, 26, 25, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 19px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #08090a;
}

.phone-screen {
  position: relative;
  height: 650px;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(180deg, #fafafa 0 74px, #edf1f4 74px),
    #edf1f4;
}

.appbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px 0;
  border-bottom: 1px solid rgba(21, 24, 23, 0.08);
  background: rgba(250, 250, 250, 0.95);
}

.app-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.app-actions {
  position: absolute;
  top: 30px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa2a4;
  font-size: 18px;
}

.app-actions span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 45, 61, 0.24);
  border-radius: 50%;
  color: var(--seal);
  background: #fff;
}

.mini-summary,
.mini-board {
  width: calc(100% - 18px);
  margin: 10px auto 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(21, 24, 23, 0.08);
}

.mini-summary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.mini-summary img {
  width: 94px;
  height: 94px;
  border: 2px solid rgba(36, 123, 255, 0.64);
  object-fit: cover;
}

.stroke-side {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.summary-line strong {
  color: #596365;
  font-weight: 800;
  white-space: nowrap;
}

.stroke-steps {
  display: flex;
  gap: 8px;
}

.stroke-steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 24, 23, 0.08);
  background: #f7f7f4;
  color: var(--seal);
  font-family: var(--font-serif);
  font-size: 20px;
}

.mini-board {
  padding: 14px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.board-head strong {
  color: #626c70;
  font-size: 15px;
}

.board-head b {
  color: var(--blue);
}

.assist-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.assist-tabs span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 61, 120, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.assist-tabs .active {
  border-color: rgba(29, 111, 104, 0.28);
  background: rgba(29, 111, 104, 0.13);
  color: var(--jade);
}

.mini-board p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.practice-image {
  width: min(100%, 286px);
  aspect-ratio: 1;
  margin: 0 auto;
  object-fit: cover;
  border: 2px solid rgba(0, 156, 21, 0.58);
  background: #fbfaf5;
}

.font-strip {
  width: calc(100% - 18px);
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.9);
}

.font-strip span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 24, 23, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(21, 24, 23, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.tabbar span {
  display: grid;
  place-items: center;
  color: #121615;
  font-size: 12px;
  font-weight: 760;
}

.tabbar .active {
  color: #09a565;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  background: var(--paper-strong);
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 6vw, 82px);
  padding: clamp(54px, 8vw, 86px) 0;
}

.section-label {
  margin: 0 0 14px;
  color: var(--jade);
  font-size: 14px;
  font-weight: 850;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0;
}

.product-copy {
  display: grid;
  gap: 18px;
  color: #344746;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.85;
}

.product-copy p,
.company-copy p,
.trust-list p,
.feature-card p {
  margin: 0;
}

.feature-section {
  padding: clamp(58px, 8vw, 96px) 0;
  background:
    linear-gradient(180deg, rgba(11, 105, 101, 0.04), transparent 28%),
    var(--paper);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 5vw, 48px);
}

.section-heading.narrow {
  max-width: 700px;
}

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

.feature-card {
  min-height: 242px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(13, 37, 36, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 105, 101, 0.28);
  border-radius: 8px;
  color: var(--jade);
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 900;
}

.feature-card h3,
.trust-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.32;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.company-section {
  padding: clamp(62px, 8vw, 104px) 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    url("./assets/hero-bg.png");
  background-position: center;
  background-size: cover;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}

.company-copy {
  display: grid;
  gap: 20px;
  max-width: 680px;
  color: #344746;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.85;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles div {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-left: 4px solid var(--jade);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(13, 37, 36, 0.08);
}

.principles strong {
  color: var(--jade-dark);
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
}

.principles span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.trust-section {
  padding: clamp(58px, 8vw, 94px) 0;
  background: var(--paper-strong);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--soft-line);
}

.trust-list article {
  min-height: 196px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  background: #fff;
}

.trust-list p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.site-footer {
  background:
    linear-gradient(135deg, var(--jade-dark), #063433 72%),
    var(--jade-dark);
  color: #fff;
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.footer-brand div,
.footer-contact {
  display: grid;
  gap: 7px;
}

.footer-brand strong,
.footer-contact strong {
  font-size: 17px;
}

.footer-brand span,
.footer-contact span,
.copyright {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

.copyright {
  margin: 0;
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.copyright a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 34px;
  }

  .phone-preview {
    justify-self: center;
  }

  .phone-shell {
    margin: 0 auto;
  }

  .product-grid,
  .company-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .copyright {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 8px;
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  }

  #product,
  #features,
  #company,
  #contact {
    scroll-margin-top: 116px;
  }

  .brand-link {
    flex: 1 1 100%;
    font-size: 15px;
  }

  .brand-link img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(247, 250, 248, 0.99) 0%, rgba(247, 250, 248, 0.92) 54%, rgba(247, 250, 248, 0.56) 100%),
      url("./assets/hero-bg.png");
    background-position: center top;
  }

  .hero-inner {
    width: min(100% - 28px, 480px);
    min-height: auto;
    padding: 34px 0 42px;
  }

  .hero-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 18px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    flex: 1 1 150px;
    min-height: 46px;
    padding: 0 16px;
    font-size: 15px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }

  .hero-facts div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
    padding: 13px 14px;
  }

  .hero-facts dd {
    margin: 0;
  }

  .phone-preview {
    width: min(100%, 342px);
  }

  .phone-shell {
    padding: 10px;
    border-radius: 34px;
  }

  .phone-speaker {
    top: 16px;
    width: 70px;
    height: 18px;
  }

  .phone-screen {
    height: 612px;
    border-radius: 27px;
  }

  .mini-summary {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .mini-summary img {
    width: 82px;
    height: 82px;
  }

  .practice-image {
    width: min(100%, 256px);
  }

  .section-inner {
    width: min(100% - 28px, 480px);
  }

  .product-grid,
  .feature-section,
  .company-section,
  .trust-section {
    padding-top: 46px;
    padding-bottom: 50px;
  }

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

  .feature-card,
  .trust-list article {
    min-height: 0;
    padding: 22px;
  }

  .principles div {
    padding: 18px;
  }

  .footer-inner {
    width: min(100% - 28px, 480px);
    padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .hero-inner {
    width: calc(100% - 22px);
  }

  .phone-preview {
    width: 100%;
  }

  .assist-tabs {
    gap: 6px;
  }

  .assist-tabs span,
  .font-strip span {
    font-size: 12px;
  }

  .phone-screen {
    height: 590px;
  }

  .practice-image {
    width: 236px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
