@charset "UTF-8";

/* ==========================================================
   小草助手 —— 清新绿植版式（整份独立重写）
   ========================================================== */

:root {
  --green: #18A830;
  --green-deep: #0E7A24;
  --green-mist: #E9F7EA;
  --leaf: #C9EBCB;
  --paper: #FBFEFB;
  --ink: #15241A;
  --text: #38473C;
  --muted: #77857A;
  --line: #D9EBD9;
  --shell: 1170px;
  --header-height: 76px;
  --r-lg: 20px;
  --r-md: 13px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

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

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

button { color: inherit; font: inherit; }

a,
button { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 4px;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

/* ---------- 图标 ---------- */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}
.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 254, 251, 0.97);
}

.nav-shell {
  display: flex;
  align-items: center;
  width: min(calc(100% - 48px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 9px;
  color: var(--green-deep);
  font-size: 19.5px;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: clamp(15px, 2.1vw, 30px);
}

.primary-nav a {
  display: inline-block;
  padding: 6px 3px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-download {
  min-width: 126px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
}
.nav-download:hover { background: var(--green-deep); }
.nav-download .icon,
.button-primary .icon { filter: brightness(0) invert(1); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle .icon { width: 19px; height: 19px; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  padding: 66px 0 70px;
  background:
    radial-gradient(circle at 92% 82%, #EAF8E9 0%, rgba(234, 248, 233, 0) 40%),
    linear-gradient(150deg, #F3FBF2 0%, #FBFEFB 58%);
  scroll-margin-top: calc(var(--header-height) + 16px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: -160px;
  left: -120px;
  width: 360px;
  height: 360px;
  border: 36px solid rgba(201, 235, 203, 0.35);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 456px);
  align-items: center;
  gap: 46px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 14px 0 16px;
  color: var(--ink);
  font-size: clamp(23px, 2.6vw, 33px);
  font-weight: 700;
  line-height: 1.3;
}

.hero-summary {
  max-width: 490px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.button { min-width: 158px; padding: 0 24px; }

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(24, 168, 48, 0.25);
}
.button-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
}

/* 英雄组件：悬浮球 + 四宫格 */
.hero-floatball {
  display: grid;
  width: 100%;
  max-width: 452px;
  margin-left: auto;
  gap: 0;
}

.fb-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
}

.fb-ball {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(150deg, #34C24D 0%, #0E7A24 100%);
  box-shadow: 0 14px 28px rgba(14, 122, 36, 0.32);
  text-align: center;
}
.fb-ball b {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.fb-ball small {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  opacity: 0.9;
}

.fb-ring {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 1px solid var(--leaf);
  border-radius: 50%;
}
.fb-ring-2 {
  width: 168px;
  height: 168px;
  border-style: dashed;
  opacity: 0.7;
}

.fb-panel {
  position: relative;
  z-index: 2;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 22px 40px rgba(21, 36, 26, 0.13);
}

.fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.fb-head b { font-size: 13px; font-weight: 800; }
.fb-head span { color: var(--muted); font-size: 10.5px; }

.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 11px 0 9px;
}

.fb-cell {
  display: grid;
  place-items: center;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F7FCF7;
  text-align: center;
}
.fb-cell i {
  color: var(--ink);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
}
.fb-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.fb-cell.is-on {
  border-color: var(--leaf);
  background: var(--green-mist);
}
.fb-cell.is-on small { color: var(--green-deep); font-weight: 600; }

.fb-foot {
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* ---------- 特色 ---------- */
.routes {
  padding: 72px 0 80px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-heading {
  max-width: 600px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.1vw, 39px);
  font-weight: 900;
  letter-spacing: 0.6px;
  line-height: 1.26;
}

.section-heading > p:last-child {
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 14.5px;
}

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

.four {
  padding: 24px 20px 22px;
  border-radius: var(--r-lg);
  background: #F5FBF4;
  text-align: center;
}
.four:nth-child(even) { background: #EEF8EE; }

.four .n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.four h3 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 800;
}

.four p {
  margin: 0;
  color: var(--text);
  font-size: 13.2px;
  text-align: center;
}

/* ---------- 界面 ---------- */
.screens {
  padding: 0 0 80px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

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

.covers figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 6px solid #fff;
  border-radius: 26px 26px 16px 16px;
  object-fit: cover;
  object-position: top center;
  background: var(--green-mist);
  box-shadow: 0 12px 24px rgba(21, 36, 26, 0.11);
  outline: 1px solid var(--line);
}

.covers b {
  display: block;
  margin-top: 12px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
}
.covers small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 70px 0 24px;
  background: #F7FCF6;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.faq-list {
  display: grid;
  max-width: 850px;
  margin: 0 auto;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.faq-item { border-top: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 0 8px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  margin: 0;
  font-size: 14.8px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  order: -1;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-mist);
  transition: transform 180ms ease;
  filter: invert(44%) sepia(72%) saturate(1442%) hue-rotate(86deg) brightness(92%) contrast(92%);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 8px 18px 35px; }
.faq-answer p {
  margin: 0;
  color: var(--text);
  font-size: 13.8px;
}

/* ---------- 官网 ---------- */
.official {
  padding: 24px 0 78px;
  background: #F7FCF6;
}

.official .section-heading { text-align: left; margin-left: 0; }

.official-fold {
  max-width: 850px;
  border: 1px solid var(--leaf);
  border-radius: var(--r-md);
  background: var(--green-mist);
}
.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::after {
  margin-left: auto;
  content: "＋";
  font-size: 16px;
}
.official-fold[open] summary::after { content: "－"; }

.official-link {
  padding: 10px 18px 16px;
  border-top: 1px dashed var(--leaf);
}
.official-link p { margin: 0; color: var(--text); font-size: 14px; }
.official-link a {
  color: var(--green-deep);
  font-weight: 700;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 评论 ---------- */
.reviews {
  padding: 76px 0 82px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

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

.review-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.review-card:nth-child(odd) { background: #F6FCF5; border-color: var(--leaf); }

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-card .who b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-deep);
  font-size: 13.5px;
  font-weight: 800;
}
.review-card .who b::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--green);
}
.review-card time {
  color: #95A398;
  font-size: 11px;
  white-space: nowrap;
}

.review-card > p {
  margin: 11px 0 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.86;
}

.rv-site {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--green-deep);
  font-size: 10.8px;
  word-break: break-all;
}

/* ---------- 下载 ---------- */
.download-cta {
  position: relative;
  padding: 68px 0 74px;
  color: #F2FBF1;
  background:
    radial-gradient(circle at 88% 30%, #2FB947 0%, rgba(47, 185, 71, 0) 46%),
    linear-gradient(135deg, #0B5E1C 0%, #12872A 100%);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.download-cta .section-heading {
  max-width: 620px;
  margin-left: 0;
  text-align: left;
}
.download-cta .eyebrow { color: #A8E7B0; }
.download-cta h2 { color: #fff; }
.download-cta .section-heading > p:last-child { color: #C4EBC8; margin-left: 0; }

.download-cta .button-primary {
  color: var(--green-deep);
  background: #F3FCF2;
  box-shadow: 0 12px 26px rgba(6, 48, 14, 0.3);
}
.download-cta .button-primary .icon {
  filter: invert(36%) sepia(51%) saturate(1234%) hue-rotate(86deg) brightness(90%) contrast(94%);
}
.download-cta .button-primary:hover { background: #fff; }

.disclaimer {
  max-width: 620px;
  margin: 20px 0 0;
  color: #C4EBC8;
  font-size: 12px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 28px 0 24px;
  color: #B9D3BB;
  background: #0B1E0F;
  text-align: center;
  font-size: 12px;
}
.site-footer p { margin: 5px 0; }
.site-footer a { color: #B9D3BB; }
.site-footer a:hover { color: #fff; }
.site-footer .icp a { color: #8CAE90; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(11, 30, 15, 0.26);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}
.to-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--green-deep); }

/* ---------- 中屏 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 32px; }
  .fours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy { max-width: 620px; }
  .hero-floatball { margin: 0 auto; max-width: 470px; }
  .hero::before { display: none; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 700px) {
  :root { --header-height: 62px; }

  body { padding-top: var(--header-height); }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: var(--paper);
  }

  .page-shell,
  .nav-shell { width: min(calc(100% - 30px), var(--shell)); }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-height);
    min-height: var(--header-height);
    column-gap: 7px;
  }

  .brand { grid-column: 1; grid-row: 1; gap: 6px; font-size: 15.5px; }
  .brand img { width: 30px; height: 30px; }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -15px;
    padding: 0 15px 13px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 12px;
  }
  .primary-nav a {
    display: block;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 12.5px;
  }

  .nav-download {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: auto;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11.5px;
  }
  .nav-download .icon { width: 13px; height: 13px; }

  .menu-toggle { display: inline-flex; grid-column: 4; grid-row: 1; width: 34px; height: 34px; }

  .hero { padding: 38px 0 44px; }
  .hero h1 { font-size: 38px; letter-spacing: 1px; }
  .hero-title { font-size: 23px; }
  .hero-summary { font-size: 13.5px; margin-bottom: 22px; }
  .button { width: 100%; }

  .fb-stage { height: 142px; }
  .fb-ball { width: 82px; height: 82px; }
  .fb-ring { width: 116px; height: 116px; }
  .fb-ring-2 { width: 148px; height: 148px; }

  .routes { padding: 52px 0 56px; }
  .fours { grid-template-columns: 1fr; gap: 10px; }
  .four { padding: 20px 18px 18px; }

  .screens { padding-bottom: 56px; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .covers img { border-width: 4px; border-radius: 20px 20px 12px 12px; }

  .faq { padding: 50px 0 20px; }
  .faq-item summary { padding: 0 4px; gap: 10px; }
  .faq-item summary h3 { font-size: 13.5px; }
  .faq-answer { padding: 0 4px 16px 35px; }

  .official { padding: 20px 0 54px; }
  .official .section-heading { text-align: left; }

  .reviews { padding: 52px 0 56px; }
  .rgrid { grid-template-columns: 1fr; }
  .review-card { padding: 20px 18px 16px; }

  .download-cta { padding: 48px 0 52px; }
  .download-cta .section-heading { text-align: left; }
  .download-cta .button-primary { width: 100%; }

  .to-top { right: 16px; bottom: 130px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 14px; }
  .nav-download span { display: none; }
  .nav-download { width: 34px; padding: 0; }
  .hero h1 { font-size: 33px; }
  .hero-title { font-size: 20px; }
  .primary-nav ul { grid-template-columns: 1fr; }
}
