@charset "UTF-8";

/* ==========================================================
   倾城软件库 —— 浅绿货架版式（独立重写，非模板换色）
   ========================================================== */

:root {
  --green: #7FB77F;
  --green-dark: #4E7F52;
  --green-soft: #E6F0E2;
  --cream: #F7FAF5;
  --ink: #1F2820;
  --ink-soft: #37423A;
  --muted: #6E7A70;
  --line: #DCE7D8;
  --shell: 1180px;
  --header-height: 78px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-soft: 0 12px 26px rgba(63, 92, 66, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", 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 dashed var(--green-dark);
  outline-offset: 4px;
}

.page-shell {
  width: min(calc(100% - 52px), 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;
  background: rgba(247, 250, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand img {
  width: 42px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.primary-nav { margin-left: auto; }

.primary-nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: clamp(18px, 2.4vw, 34px);
}

.primary-nav a {
  display: inline-block;
  padding: 9px 2px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-download {
  min-width: 128px;
  padding: 0 18px;
  border: 1px solid var(--green);
  color: var(--green-dark);
  background: #fff;
}

.nav-download .icon,
.button-primary .icon {
  filter: invert(48%) sepia(16%) saturate(1051%) hue-rotate(72deg) brightness(94%) contrast(89%);
}

.nav-download:hover {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.nav-download:hover .icon { filter: brightness(0) invert(1); }

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

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  padding: 62px 0 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, #EAF4E4 0%, rgba(234, 244, 228, 0) 46%),
    linear-gradient(180deg, #F4F9F0 0%, var(--cream) 100%);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 540px;
  padding: 8px 0 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 70px);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

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

.hero-summary {
  max-width: 500px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15.5px;
}

.button { min-width: 166px; padding: 0 26px; }

.button-primary {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 10px 22px rgba(78, 127, 82, 0.28);
}
.button-primary .icon { filter: brightness(0) invert(1); }
.button-primary:hover {
  background: #3F6B44;
  transform: translateY(-2px);
}

/* 英雄组件：竖向商店横幅 */
.hero-banner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 16px;
  border: 1px solid #CBDCC6;
  border-radius: 22px;
  background: #FCFEFB;
  box-shadow: 0 22px 44px rgba(75, 110, 78, 0.16);
  gap: 12px;
}

.hb-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.hb-top b { font-size: 13px; font-weight: 800; }
.hb-top em {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.hb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 183, 127, 0.18);
}

.hb-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EFF7EA 0%, #FBFDF9 100%);
}
.hb-main img {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  object-position: top center;
}
.hb-info { display: grid; gap: 3px; min-width: 0; }
.hb-info strong { font-size: 18px; font-weight: 800; }
.hb-info span { color: var(--muted); font-size: 11.5px; }
.hb-info i {
  display: inline-block;
  justify-self: start;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 10.5px;
  font-style: normal;
}

.hb-sub { display: grid; gap: 7px; }
.hb-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.hb-row b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
}
.hb-row span { font-size: 12.5px; font-weight: 600; }
.hb-row em { color: var(--green-dark); font-size: 11px; font-style: normal; }

.hb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

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

.section-heading { max-width: 620px; margin-bottom: 36px; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.24;
}

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

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

.four {
  position: relative;
  padding: 28px 30px 26px 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 6px 16px rgba(63, 92, 66, 0.05);
}

.four::before {
  position: absolute;
  top: 28px;
  bottom: 26px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  content: "";
  background: var(--green);
}

.four .n {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.four h3 {
  margin: 6px 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.screens .section-heading {
  display: flex;
  align-items: flex-end;
  max-width: none;
  gap: 30px;
}
.screens .section-heading > p:last-child {
  max-width: 330px;
  margin: 0 0 6px auto;
  text-align: right;
}

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

.covers figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.covers figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  background: var(--green-soft);
}
.covers b {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}
.covers small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 72px 0 26px;
  border-top: 1px solid var(--line);
  background: #FBFDF9;
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.faq-list {
  display: grid;
  max-width: 880px;
  margin: 0 auto;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

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

.faq-item summary .icon {
  flex: none;
  transition: transform 180ms ease;
  filter: invert(48%) sepia(16%) saturate(1051%) hue-rotate(72deg) brightness(94%) contrast(89%);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 20px 18px; }
.faq-answer p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 官网 ---------- */
.official {
  padding: 26px 0 84px;
  background: #FBFDF9;
}

.official .section-heading { max-width: 520px; }

.official-fold {
  max-width: 880px;
  border: 1px solid #C9DCC3;
  border-radius: 14px;
  background: var(--green-soft);
}
.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--green-dark);
}
.official-fold summary::after {
  margin-left: auto;
  content: "+";
  font-size: 19px;
  font-weight: 800;
}
.official-fold[open] summary::after { content: "−"; }

.official-link { padding: 2px 20px 18px; }
.official-link p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.official-link a {
  color: var(--green-dark);
  font-weight: 700;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.review-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line);
}
.review-card .who b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
}
.review-card .who b::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  content: "";
  background: var(--green);
}
.review-card time {
  color: #8E9B90;
  font-size: 11px;
  white-space: nowrap;
}

.review-card > p {
  margin: 14px 0 12px;
  color: #4A554C;
  font-size: 13.5px;
  line-height: 1.85;
}

.rv-site {
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  word-break: break-all;
}

/* ---------- 下载 ---------- */
.download-cta {
  padding: 66px 0 72px;
  color: #F3F8F1;
  background:
    linear-gradient(120deg, #2F4A33 0%, #3E6142 52%, #34503A 100%);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.download-cta .section-heading { max-width: 620px; }
.download-cta .eyebrow { color: #A9CFA4; }
.download-cta h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.24; }
.download-cta .section-heading > p:last-child { color: #C4D6C1; }

.download-cta .button-primary {
  color: var(--green-dark);
  background: #F2F8EE;
  box-shadow: none;
}
.download-cta .button-primary .icon {
  filter: invert(36%) sepia(18%) saturate(784%) hue-rotate(72deg) brightness(93%) contrast(92%);
}
.download-cta .button-primary:hover { background: #fff; }

.disclaimer {
  max-width: 640px;
  margin: 22px 0 0;
  padding: 12px 15px;
  border-left: 3px solid #A9CFA4;
  border-radius: 0 8px 8px 0;
  color: #C4D6C1;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 30px 0 26px;
  color: #C3D0C1;
  background: #22301F;
  text-align: center;
  font-size: 12px;
}
.site-footer p { margin: 5px 0; }
.site-footer a { color: #C3D0C1; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .icp a { color: #9DB09A; }

/* ---------- 返回顶部 ---------- */
.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: 1px solid #BFD3BA;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(34, 48, 31, 0.18);
  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 var(--green-dark);
  border-left: 2px solid var(--green-dark);
  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-soft); }

/* ---------- 中等屏 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, 400px); gap: 34px; }
  .fours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { 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-banner { margin: 0 auto; max-width: 460px; }
  .hero::after { display: none; }
}

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

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

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

  .page-shell,
  .nav-shell { width: min(calc(100% - 32px), 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: 8px;
  }

  .brand { grid-column: 1; grid-row: 1; gap: 7px; font-size: 16.5px; }
  .brand img { width: 32px; height: 32px; padding: 2px; border-radius: 10px; }

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

  .nav-download {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: auto;
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }
  .nav-download .icon { width: 14px; height: 14px; }

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

  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 42px; }
  .hero-title { font-size: 24px; }
  .hero-summary { font-size: 14px; margin-bottom: 24px; }
  .button { width: 100%; }

  .hero-banner { padding: 12px; gap: 10px; }
  .hb-main { grid-template-columns: 78px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .hb-main img { width: 78px; border-radius: 11px; }

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

  .screens { padding-bottom: 56px; }
  .screens .section-heading { display: block; }
  .screens .section-heading > p:last-child { max-width: none; margin: 12px 0 0; text-align: left; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .covers figure { padding: 8px; border-radius: 14px; }

  .faq { padding: 52px 0 20px; }
  .faq-item summary { padding: 0 15px; min-height: 54px; }
  .faq-item summary h3 { font-size: 13.5px; }
  .faq-answer { padding: 0 15px 16px; }

  .official { padding: 20px 0 56px; }

  .reviews { padding: 54px 0 58px; }
  .rgrid { grid-template-columns: 1fr; }
  .review-card { min-height: auto; }

  .download-cta { padding: 50px 0 54px; }
  .download-cta .button-primary { width: 100%; }

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

@media (max-width: 380px) {
  .brand span { font-size: 15px; }
  .nav-download span { display: none; }
  .nav-download { width: 36px; padding: 0; }
  .hero h1 { font-size: 36px; }
  .hero-title { font-size: 21px; }
  .hb-info strong { font-size: 16px; }
  .primary-nav ul { grid-template-columns: 1fr; }
}
