:root {
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-soft: #f0f7f2;
  --text: #1f2923;
  --muted: #647067;
  --line: #dfe8df;
  --green: #00c250;
  --green-dark: #16834f;
  --orange: #ff8a00;
  --blue: #3566a8;
  --shadow: 0 18px 45px rgba(28, 57, 42, 0.1);
  --font-sans: "WeChat Sans Std", "WeChat Sans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --font-number: DINPro, "DIN Alternate", "WeChat Sans Std", "PingFang SC",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(223, 232, 223, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

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

.brand strong,
.brand em {
  display: block;
  font-style: normal;
  line-height: 1.25;
}

.brand strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  opacity: 0;
  transform: scaleX(0.2);
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    url("./assets/case-kaochi.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -18vw;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: rgba(0, 194, 80, 0.12);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  min-height: 650px;
  gap: 56px;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero h1,
.section-title h2,
.intro h2,
.about-grid h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.18;
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.22;
}

.hero-lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
}

.btn-primary {
  color: #fff;
  background: var(--green);
}

.btn-primary:hover {
  background: #20d96d;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
}

.hero-stats div {
  border: 1px solid rgba(223, 232, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
}

.hero-stats dt {
  color: var(--green-dark);
  font-family: var(--font-number);
  font-size: 28px;
  font-weight: 700;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.phone-preview,
.dashboard-preview {
  border: 1px solid rgba(223, 232, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.phone-preview {
  width: min(330px, 100%);
  margin-left: auto;
  padding: 18px;
}

.phone-bar {
  width: 86px;
  height: 7px;
  margin: 0 auto 18px;
  border-radius: 5px;
  background: #1f2923;
}

.member-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 12px;
  border-radius: 8px;
  background: #fff5ef;
  padding: 14px;
}

.member-card img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.member-card span {
  align-self: end;
  font-size: 18px;
  font-weight: 700;
}

.member-card b {
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.entry-grid span {
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.dish-row {
  display: grid;
  grid-template-columns: 70px 1fr 32px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.dish-row i {
  height: 62px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fdb57c, #fff0d3);
}

.dish-row p {
  margin: 0;
}

.dish-row strong,
.dish-row em {
  display: block;
}

.dish-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.dish-row b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: #e60023;
  font-size: 22px;
}

.checkout-bar {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 28px;
  background: #262b27;
  color: #fff;
  font-weight: 700;
}

.checkout-bar span {
  padding-left: 22px;
}

.checkout-bar strong {
  padding: 15px 0;
  text-align: center;
  background: #e60023;
}

.dashboard-preview {
  position: absolute;
  right: 210px;
  bottom: 10px;
  width: 250px;
  padding: 18px;
}

.dashboard-preview > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
}

.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.metric-line b {
  color: var(--text);
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 700;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 76px;
  margin-top: 10px;
}

.chart-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--green);
}

.chart-bars i:nth-child(1) { height: 36%; }
.chart-bars i:nth-child(2) { height: 62%; background: var(--orange); }
.chart-bars i:nth-child(3) { height: 48%; }
.chart-bars i:nth-child(4) { height: 80%; background: var(--blue); }
.chart-bars i:nth-child(5) { height: 68%; }

.section {
  padding: 88px 0;
  background: var(--surface);
}

.section-band,
.muted-section {
  background: var(--bg);
}

.intro-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  align-items: start;
  gap: 54px;
}

.intro {
  padding: 58px 0;
}

.intro p,
.about-grid p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.section-title {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
  transform: translateX(-50%);
}

.section-title p:last-child {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.product-grid,
.feature-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.feature-grid article,
.rule-card,
.boundary-grid > div,
.case-card,
.news-card,
.wechat-card,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-card {
  padding: 28px;
}

.product-card.featured {
  border-color: rgba(0, 194, 80, 0.46);
  box-shadow: var(--shadow);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.product-card:nth-child(1) .product-icon {
  background: var(--orange);
}

.product-card:nth-child(3) .product-icon {
  background: var(--blue);
}

.product-card h3,
.feature-grid h3,
.rule-card h3,
.boundary-grid h3,
.case-card h3,
.news-card h3,
.timeline strong {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.product-card p,
.feature-grid p,
.rule-card p,
.case-card p,
.news-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.product-card ul,
.boundary-grid ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li,
.boundary-grid li {
  position: relative;
  margin-top: 9px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
}

.product-card li::before,
.boundary-grid li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

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

.feature-grid article {
  padding: 22px;
}

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

.advantage-card {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  padding: 26px;
}

.advantage-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(0, 194, 80, 0.08);
}

.advantage-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--surface-soft);
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 700;
}

.advantage-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.advantage-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.76;
}

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

.rule-card {
  padding: 24px;
}

.rule-card h3 {
  margin-top: 0;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.boundary-grid > div {
  padding: 24px;
}

.boundary-grid h3 {
  margin-top: 0;
}

.case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-card {
  grid-column: span 2;
  overflow: hidden;
}

.case-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.case-card div,
.news-card {
  padding: 22px;
}

.case-card span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.case-card h3 {
  margin-top: 8px;
}

.news-card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green-dark);
  font-weight: 600;
}

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

.timeline article {
  padding: 22px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  margin: 0;
}

.timeline span {
  margin-top: 8px;
  color: var(--muted);
}

.contact-section {
  background: var(--surface-soft);
}

.contact-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.contact-list span {
  color: var(--muted);
  font-weight: 500;
}

.contact-list strong {
  font-weight: 600;
}

.wechat-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 390px;
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.wechat-qr {
  width: min(260px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.wechat-qr img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 457;
  object-fit: contain;
  border-radius: 6px;
}

.wechat-card h3 {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.wechat-card p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .wechat-card p {
    white-space: normal;
  }
}

.site-footer {
  padding: 54px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #111a15;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 40px;
}

.footer-brand strong,
.footer-brand em {
  color: #fff;
}

.site-footer p {
  max-width: 460px;
  margin: 18px 0 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

.agreement-page {
  min-height: calc(100vh - 72px);
  background: var(--bg);
  padding: 54px 0 80px;
}

.agreement-doc {
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 42px;
  box-shadow: var(--shadow);
}

.agreement-doc h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 700;
}

.agreement-doc h2 {
  margin: 34px 0 14px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 24px;
  font-weight: 700;
}

.agreement-doc h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.agreement-doc p,
.agreement-doc li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.agreement-doc p {
  margin: 10px 0;
}

.agreement-doc ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.agreement-doc strong {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 22px;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 10px 20px 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .agreement-nav {
    position: static;
    display: flex;
    flex-direction: row;
    border-bottom: 0;
    background: transparent;
    padding: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .intro-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 32px;
    padding: 54px 0;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-preview {
    margin: 0;
  }

  .dashboard-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(330px, 100%);
    margin-top: 16px;
  }

  .product-grid,
  .feature-grid,
  .advantage-grid,
  .rule-layout,
  .boundary-grid,
  .case-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .brand em {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

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

  .contact-list li,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .agreement-doc {
    padding: 28px 20px;
  }
}
