@charset "UTF-8";

/* ===== 喵盒社区 · 薄荷盒子主题 ===== */
:root {
  --green: #785B04;
  --green-deep: #5F4906;
  --green-soft: #F3D3A7;
  --mint: #FFFBEB;
  --paper: #FFFDF5;
  --ink: #312B12;
  --muted: #7A735F;
  --line: #EBDECB;
  --radius: 22px;
  --radius-sm: 14px;
  --shell: 1160px;
  --header-height: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

button { color: inherit; font: inherit; }

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

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

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

.icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; 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-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(236, 253, 245, 0.9);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(120, 91, 4, 0.09);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.brand img { width: 34px; height: 34px; border-radius: 999px; object-fit: contain; }

.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0; margin: 0; list-style: none; }

.primary-nav a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 170ms ease, color 170ms ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { background: #FAE6D1; color: var(--green-deep); }

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

.nav-download { min-width: 128px; padding: 0 18px; color: #FFFFFF; background: var(--green); box-shadow: 0 6px 16px rgba(120, 91, 4, 0.25); }
.nav-download .icon,
.button-primary .icon { filter: brightness(0) invert(1); }
.nav-download:hover { background: var(--green-deep); transform: translateY(-1px); }

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

/* ===== 英雄区：盒子墙 + 胶囊 ===== */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 88% 8%, #FAE6D1 0%, rgba(250, 230, 209, 0) 70%),
    radial-gradient(460px 300px at 4% 82%, #FBF3CC 0%, rgba(251, 243, 204, 0) 68%),
    var(--mint);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr); align-items: center; gap: 44px; }

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

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-deep);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 15px 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--green);
  line-height: 1.34;
}

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

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

.button-primary { color: #FFFFFF; background: var(--green); box-shadow: 0 10px 22px rgba(120, 91, 4, 0.26); }
.button-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 14px 26px rgba(120, 91, 4, 0.3); }

/* 盒子墙 */
.boxWall {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  padding: 18px;
  border: 1px solid #F3E7D8;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 48px rgba(120, 91, 4, 0.13);
}

.bwHead { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 14px; }
.bwHead b { font-size: 16px; letter-spacing: 0.2px; }
.bwHead span { margin-left: auto; color: var(--muted); font-size: 11px; }

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

.bwBox {
  display: flex;
  min-width: 0;
  min-height: 94px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 6px 10px;
  border: 1px solid #F7EDE0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #FFFFFF 0%, #F2FDF8 100%);
  box-shadow: inset 0 -3px 0 #F5E8D7;
  transition: transform 170ms ease, box-shadow 170ms ease;
}
.bwBox:hover { transform: translateY(-3px); box-shadow: inset 0 -3px 0 #F3D3A7, 0 10px 18px rgba(120, 91, 4, 0.11); }

.bwIco {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 11px;
  color: #FFFFFF;
  background: #B98710;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.bwIco.g { background: #966E05; }
.bwIco.y { background: #D39E34; color: #4E3D06; }

.bwBox b { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.bwBox small { color: #9A927C; font-size: 9.5px; }

.bwPills { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 15px; margin-top: 14px; border-top: 1px dashed #F3E7D8; }

.pill {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-deep);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}
.pill.on { border-color: var(--green); color: #FFFFFF; background: var(--green); }

/* ===== 核心特色：圆角卡 ===== */
.routes { padding: 64px 0 68px; background: #FFFFFF; border-radius: 40px 40px 0 0; scroll-margin-top: calc(var(--header-height) + 12px); }

.section-heading { max-width: 620px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 900; letter-spacing: -0.6px; line-height: 1.24; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

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

.four {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #E4F6EE;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F8FFFC 0%, #EFFDF7 100%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.four:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(120, 91, 4, 0.1); }

.four .n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 13px;
  border-radius: 11px;
  color: #FFFFFF;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.four h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: 0; }
.four p { margin: 0; color: var(--muted); font-size: 13.6px; }

/* ===== 界面展示 ===== */
.screens { padding: 62px 0 70px; background: #FFFFFF; scroll-margin-top: calc(var(--header-height) + 12px); }

.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.covers figure { min-width: 0; margin: 0; }
.covers img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top center; border-radius: 20px; background: var(--mint); box-shadow: 0 12px 24px rgba(120, 91, 4, 0.1); }
.covers b { display: block; margin-top: 11px; font-size: 13px; }
.covers small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }

/* ===== FAQ ===== */
.faq { padding: 64px 0 18px; background: var(--mint); border-radius: 40px 40px 0 0; scroll-margin-top: calc(var(--header-height) + 12px); }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }

.faq-item { border: 1px solid #F2E8D9; border-radius: 18px; background: #FFFFFF; }
.faq-item[open] { border-color: #F3D3A7; box-shadow: 0 8px 18px rgba(120, 91, 4, 0.07); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 18px;
  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; }
.faq-item summary .icon { width: 14px; height: 14px; transition: transform 180ms ease; filter: invert(31%) sepia(55%) saturate(1043%) hue-rotate(118deg) brightness(89%) contrast(95%); }
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 18px 16px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 13.6px; }

/* ===== 官方入口 ===== */
.official { padding: 22px 0 62px; background: var(--mint); }

.official-fold { border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; }
.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::after { content: "+"; margin-left: auto; font-size: 19px; }
.official-fold[open] summary::after { content: "−"; }
.official-link { padding: 10px 20px 16px; border-top: 1px dashed var(--line); }
.official-link p { margin: 0; font-size: 14px; }
.official-link a { color: var(--green); font-weight: 700; word-break: break-all; }

/* ===== 用户评价 ===== */
.reviews { padding: 64px 0 70px; background: #5F4906; color: #ECFDF5; scroll-margin-top: calc(var(--header-height) + 12px); }
.reviews .section-heading h2 { color: #FFFFFF; }
.reviews .section-heading > p:last-child { color: #F3D3A7; }
.reviews .eyebrow { border-color: #76720F; color: #F3D3A7; background: transparent; }

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

.rv {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #816712;
  border-radius: 22px;
  background: #6B530B;
}
.rv header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who b { font-size: 12.5px; font-weight: 700; color: #FAE6D1; }
.who b::before { content: "◍ "; color: #E7BB6E; }
.rv time { color: #E7BB6E; font-size: 10px; }
.rv > p { margin: 13px 0 12px; color: #FCF2DF; font-size: 13.4px; line-height: 1.86; }
.rv-site { margin-top: auto; padding-top: 9px; border-top: 1px solid #816712; color: #F3D3A7; font-size: 10px; }

/* ===== 下载 CTA ===== */
.download-cta { padding: 62px 0 66px; background: linear-gradient(160deg, #FAE6D1 0%, #F3D3A7 55%, #E7BB6E 100%); text-align: center; scroll-margin-top: calc(var(--header-height) + 12px); }
.download-cta .section-heading { max-width: 640px; margin-right: auto; margin-left: auto; text-align: center; }
.download-cta .section-heading h2 { color: #3B2E05; }
.download-cta .section-heading > p:last-child { color: #6B530B; }
.download-cta .eyebrow { color: #5F4906; border-color: #E7BB6E; background: rgba(255, 255, 255, 0.55); }
.download-cta .button-primary { background: #3B2E05; box-shadow: 0 12px 24px rgba(59, 46, 5, 0.28); }
.download-cta .button-primary:hover { background: #2C2302; }
.disclaimer { margin: 18px 0 0; color: #6B530B; font-size: 12px; }

/* ===== 页脚 ===== */
.site-footer { padding: 32px 0 20px; color: #D8C79F; background: #2E2505; text-align: center; }
.site-footer p { margin: 0 0 7px; font-size: 12px; }
.site-footer a { color: #FAE6D1; }
.site-footer a:hover { color: #E7BB6E; }
.site-footer .icp { margin: 0; color: #9C8F6E; }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.to-top::before { content: ""; width: 9px; height: 9px; border-top: 2px solid #FFFFFF; border-left: 2px solid #FFFFFF; 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: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { max-width: 640px; }
  .boxWall { max-width: 520px; margin: 0 auto; }
  .fours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@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(--mint); }

  .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: 7px; }

  .brand { grid-row: 1; grid-column: 1; padding: 4px 10px 4px 4px; font-size: 15px; }
  .brand img { width: 28px; height: 28px; }

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

  .nav-download { grid-row: 1; grid-column: 3; min-width: auto; min-height: 36px; margin-left: auto; padding: 0 10px; font-size: 11.5px; }
  .nav-download .icon { width: 14px; height: 14px; }
  .menu-toggle { display: inline-flex; grid-row: 1; grid-column: 4; width: 36px; height: 36px; }

  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 40px; }
  .hero-title { font-size: 22px; }
  .hero-summary { font-size: 13.6px; }

  .boxWall { padding: 13px; border-radius: 22px; }
  .bwGrid { gap: 7px; }
  .bwBox { min-height: 82px; padding: 9px 4px; }
  .bwIco { width: 30px; height: 30px; font-size: 8px; }
  .bwBox b { font-size: 11.5px; }

  .routes { padding: 46px 0 48px; border-radius: 26px 26px 0 0; }
  .screens { padding: 44px 0 50px; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: 27px; }

  .fours { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .four { padding: 20px; }

  .covers { gap: 11px; }
  .covers img { border-radius: 14px; }

  .faq { padding: 46px 0 16px; border-radius: 26px 26px 0 0; }
  .official { padding: 18px 0 46px; }
  .reviews { padding: 46px 0 48px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .rv { min-height: auto; }
  .download-cta { padding: 46px 0 50px; }
  .download-cta .button-primary { width: 100%; }
  .to-top { right: 16px; bottom: 136px; width: 40px; height: 40px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 13.5px; }
  .nav-download span { display: none; }
  .nav-download { width: 36px; padding: 0; }
  .hero h1 { font-size: 34px; }
  .bwGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav ul { grid-template-columns: 1fr; }
}
