@charset "UTF-8";

/* 冷狐宝盒 · 暖木纸盒版式 */

:root {
  --tan: #C08552;
  --tan-deep: #8B5C31;
  --kraft: #F4EBDF;
  --paper: #FCF8F2;
  --ink: #2A211A;
  --ink-mid: #5C4A3A;
  --muted: #7A6653;
  --line: #E3D2BE;
  --dark: #2E241B;
  --radius: 3px;
  --shell: 1180px;
  --header-height: 74px;
  --shadow: 0 12px 26px rgba(90, 62, 34, 0.13);
}

* {
  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: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

h1,
h2,
h3 {
  font-family: Georgia, "Songti SC", "SimSun", serif;
}

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(--tan);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 44px), 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-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;
  border-bottom: 2px solid var(--tan);
  background: rgba(252, 248, 242, 0.97);
  backdrop-filter: saturate(120%) blur(4px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
  border-right: 1px dashed var(--line);
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--tan);
  border-radius: 4px;
  object-fit: contain;
}

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

.primary-nav ul,
.site-footer ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav ul {
  gap: clamp(16px, 2.2vw, 32px);
}

.primary-nav a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--ink-mid);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-bottom: 1px dotted transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

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

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

.nav-download {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--tan);
  color: var(--tan-deep);
  background: #FFFDF9;
}

.nav-download .icon,
.faq-item summary .icon {
  filter: invert(48%) sepia(30%) saturate(900%) hue-rotate(345deg) brightness(92%) contrast(90%);
}

.nav-download:hover {
  color: #FFFDF9;
  background: var(--tan-deep);
}

.nav-download:hover .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(--tan);
  border-radius: var(--radius);
  background: #FFFDF9;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 19px;
  height: 19px;
}

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  padding: 56px 0 60px;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 14px);
  background:
    repeating-linear-gradient(90deg, rgba(192, 133, 82, 0.06) 0 1px, transparent 1px 74px),
    radial-gradient(circle at 8% 20%, #F7E9D8 0%, var(--paper) 62%);
}

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

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--tan-deep);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 16px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--tan);
  font-size: clamp(23px, 2.7vw, 32px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.35;
}

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

.button {
  min-height: 48px;
  padding: 0 24px;
}

.button-primary {
  border: 1px solid var(--tan-deep);
  background: var(--tan);
  color: #FFFDF9;
  box-shadow: 0 0 0 4px rgba(192, 133, 82, 0.16);
}

.button-primary .icon {
  filter: brightness(0) invert(1);
}

.button-primary:hover {
  background: var(--tan-deep);
  transform: translateY(-2px);
}

/* 英雄组件：三层堆叠宝盒卡 */
.hero-box {
  position: relative;
  width: 100%;
  max-width: 468px;
  margin-left: auto;
  padding-top: 6px;
}

.hb-layer {
  position: relative;
  padding: 13px 15px;
  border: 2px solid var(--tan);
  border-radius: 5px;
  background: #FFFDF9;
  box-shadow: var(--shadow);
}

.hb-l1 {
  z-index: 3;
  width: 84%;
  margin-left: 16%;
}

.hb-l2 {
  z-index: 2;
  width: 92%;
  margin: -10px 0 0 4%;
  background: #FBF1E4;
}

.hb-l3 {
  z-index: 1;
  width: 100%;
  margin-top: -10px;
  background: #F6E7D4;
}

.hb-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.hb-tag {
  padding: 1px 6px;
  border-radius: 2px;
  color: #FFFDF9;
  background: var(--tan-deep);
  font-size: 10px;
  letter-spacing: 0.6px;
}

.hb-head b {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.4px;
}

.hb-head em {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.hb-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.hb-row img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 3px;
  object-fit: cover;
}

.hb-meta strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.hb-meta small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.hb-size {
  color: var(--tan-deep);
  font-size: 11px;
  font-weight: 700;
}

.hb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 2px;
}

.hb-chips span {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-mid);
  background: #FFFDF9;
  font-size: 11px;
}

.hb-bar {
  height: 6px;
  margin-top: 9px;
  border-radius: 999px;
  background: #EADBC8;
  overflow: hidden;
}

.hb-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tan), #D9A778);
}

.hb-foot {
  display: block;
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 核心特色 ---------- */
.routes {
  padding: 68px 0 74px;
  background: var(--kraft);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 34px;
}

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

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

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

.four {
  position: relative;
  padding: 24px 24px 22px 68px;
  border: 1px solid #E8D8C3;
  border-radius: var(--radius);
  background: #FFFDF9;
}

.four::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--tan);
}

.four .n {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--tan);
  color: var(--tan-deep);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.four h3 {
  margin: 0 0 7px;
  font-size: 19px;
  letter-spacing: 0.8px;
}

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

/* ---------- 界面展示 ---------- */
.screens {
  padding: 74px 0 78px;
  color: #F3E9DC;
  background: var(--dark);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.screens .eyebrow {
  color: #DBA87A;
}

.screens .section-heading > p:last-child {
  color: #BBA694;
}

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

.covers figure {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid #574436;
  border-radius: 4px;
  background: #3A2D22;
}

.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  background: #2A211A;
}

.covers b {
  display: block;
  margin-top: 10px;
  color: #F6ECDF;
  font-size: 13px;
  letter-spacing: 0.6px;
}

.covers small {
  display: block;
  color: #B29C86;
  font-size: 11px;
  line-height: 1.6;
}

/* ---------- 常见问题 ---------- */
.faq {
  padding: 76px 0 24px;
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
  align-items: start;
}

.faq-layout .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

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

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: left;
}

.faq-item summary .icon {
  flex: none;
  transition: transform 200ms ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 4px 16px;
}

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

/* ---------- 官方入口 ---------- */
.official {
  padding: 30px 0 76px;
}

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

.official-fold {
  border: 2px dashed var(--tan);
  border-radius: 5px;
  background: #FFFDF7;
}

.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
  color: var(--tan-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.official-fold summary::-webkit-details-marker {
  display: none;
}

.official-fold summary::after {
  margin-left: auto;
  content: "+";
  font-size: 19px;
  font-weight: 700;
}

.official-fold[open] summary::after {
  content: "−";
}

.official-link {
  padding: 0 20px 18px 50px;
  border-top: 1px dashed var(--line);
  margin-top: 0;
}

.official-link p {
  margin: 14px 0 0;
  color: var(--ink-mid);
  font-size: 14px;
}

.official-link a {
  color: var(--tan-deep);
  font-weight: 700;
  word-break: break-all;
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 72px 0 78px;
  background: linear-gradient(180deg, #F7EDE1 0%, #FBF5EC 100%);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

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

.review-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 22px 24px 20px 26px;
  border: 1px solid #E7D6C0;
  border-left: 3px solid var(--tan);
  border-radius: 2px;
  background: #FFFDF9;
}

.review-card::after {
  position: absolute;
  top: 8px;
  right: 18px;
  content: "”";
  color: #EBDCC9;
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1;
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-card .who b {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.review-card time {
  color: #A08C76;
  font-size: 11px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.review-card > p {
  margin: 14px 0 16px;
  color: #4C3E31;
  font-size: 14px;
}

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dotted #E2D0BA;
  color: var(--tan-deep);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ---------- 下载 CTA ---------- */
.download-cta {
  padding: 60px 0 64px;
  background: var(--tan);
  color: #FFF9F0;
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.download-inner {
  position: relative;
  padding: 34px 38px 30px;
  border: 2px dashed rgba(255, 250, 240, 0.55);
  border-radius: 6px;
  text-align: center;
}

.download-cta .section-heading {
  max-width: 640px;
  margin: 0 auto 22px;
}

.download-cta .eyebrow {
  color: #FFF0DC;
}

.download-cta h2 {
  color: #FFFDF8;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: 1.2px;
}

.download-cta .section-heading > p:last-child {
  color: #FBEFDF;
}

.download-cta .button-primary {
  border-color: #6B4323;
  background: #6B4323;
  box-shadow: 0 0 0 4px rgba(255, 250, 240, 0.2);
}

.download-cta .button-primary:hover {
  background: #4E2F18;
}

.disclaimer {
  max-width: 520px;
  margin: 18px auto 0;
  color: #FBEFDF;
  font-size: 12px;
  line-height: 1.8;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 30px 0 22px;
  color: #CDB8A4;
  background: #241C15;
  font-size: 12px;
}

.site-footer .page-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #E4CFB9;
}

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

.icp {
  letter-spacing: 0.4px;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #FFF6EA;
  border-radius: 50%;
  background: var(--tan);
  box-shadow: 0 10px 22px rgba(70, 44, 20, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.to-top::before {
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2px solid #FFF9F0;
  border-left: 2px solid #FFF9F0;
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--tan-deep);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-box {
    max-width: 520px;
    margin: 0 auto;
  }

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

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .faq-layout .section-heading {
    position: static;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 62px;
  }

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

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
  }

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

  .brand {
    grid-row: 1;
    grid-column: 1;
    padding-right: 0;
    border-right: 0;
    font-size: 17px;
    letter-spacing: 0.4px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -15px;
    padding: 0 15px 14px;
    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);
    background: #FFFDF9;
    font-size: 13px;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

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

  .hero {
    padding: 40px 0 44px;
  }

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

  .hero-title {
    font-size: 23px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .hb-l1 {
    width: 90%;
    margin-left: 10%;
  }

  .routes,
  .screens,
  .reviews {
    padding: 50px 0 54px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

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

  .four {
    padding: 20px 18px 18px 58px;
  }

  .four .n {
    top: 20px;
    left: 18px;
  }

  .covers {
    gap: 10px;
  }

  .faq {
    padding: 50px 0 18px;
  }

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

  .official-link {
    padding-left: 20px;
  }

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

  .review-card {
    min-height: 0;
  }

  .download-cta {
    padding: 40px 0 44px;
  }

  .download-inner {
    padding: 26px 18px 24px;
  }

  .site-footer .page-shell {
    display: block;
    text-align: center;
  }

  .site-footer p + p {
    margin-top: 6px;
  }

  .to-top {
    right: 14px;
    bottom: 132px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 15px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 34px;
    padding: 0;
  }

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

  .hero-title {
    font-size: 20px;
  }
}
