@charset "UTF-8";

/* =====================================================
   小虎社软件库 · 商店清单风
   蓝色主调 / 紧凑列表 / 细线分隔 / 方块序号
   ===================================================== */

:root {
  --blue: #2D6CDF;
  --blue-deep: #173F8C;
  --blue-pale: #EAF1FD;
  --blue-line: #D3E0F6;
  --navy: #101B2E;
  --ink: #14202F;
  --text: #3B4A5E;
  --muted: #7B8BA1;
  --paper: #FFFFFF;
  --radius: 8px;
  --shell: 1200px;
  --header-height: 70px;
}

* {
  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: "MiSans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  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-plus::before { background-image: url("../icons/plus.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--blue-line);
  background: #fff;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 9px;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  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 {
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.primary-nav a {
  display: inline-block;
  padding: 5px 0;
  color: var(--text);
  font-size: 13.5px;
}

.primary-nav a:hover {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

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

.nav-download {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
}

.nav-download .icon {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
}

.nav-download:hover {
  background: var(--blue-deep);
}

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

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

/* ---------- 英雄区 ---------- */
.hero {
  padding: 52px 0 56px;
  scroll-margin-top: calc(var(--header-height) + 14px);
  background:
    linear-gradient(90deg, rgba(45, 108, 223, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #F6F9FF 0%, #FFFFFF 78%);
}

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

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

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--blue);
  background: var(--blue-pale);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 12px 0;
  color: var(--blue-deep);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-summary {
  max-width: 470px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 14.8px;
}

.button {
  min-width: 158px;
  min-height: 46px;
  padding: 0 22px;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(45, 108, 223, 0.22);
}

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

.button-primary:hover {
  background: var(--blue-deep);
  box-shadow: 0 10px 22px rgba(23, 63, 140, 0.26);
}

/* ---------- 英雄区：应用列表 ---------- */
.hero-applist {
  width: 100%;
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 27, 46, 0.08);
  overflow: hidden;
}

.alHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--blue-line);
  background: #F8FAFF;
}

.alHead b {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 700;
}

.alHead span {
  color: var(--muted);
  font-size: 11px;
}

.alSearch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 14px 4px;
  padding: 9px 12px;
  border: 1px solid var(--blue-line);
  border-radius: 6px;
  color: var(--muted);
  background: #FBFCFE;
  font-size: 12px;
}

.alSearch i {
  padding: 1px 6px;
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  color: #9AAAC0;
  font-family: "Courier New", monospace;
  font-size: 9.5px;
  font-style: normal;
}

.alRows {
  padding: 4px 0 2px;
}

.alRow {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  transition: background-color 150ms ease;
}

.alRow + .alRow {
  border-top: 1px dashed #E7EEF9;
}

.alRow:hover {
  background: #F7FAFF;
}

.alIco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.alIcoA { background: linear-gradient(140deg, #4C8BF0, #2D6CDF); }
.alIcoB { background: linear-gradient(140deg, #6FA7F5, #3B7BE8); }
.alIcoC { background: linear-gradient(140deg, #8FB9F7, #5B91E6); }

.alMeta {
  min-width: 0;
}

.alMeta b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.alMeta small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.alBadge {
  padding: 2px 7px;
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  color: #6E8098;
  background: #F5F8FD;
  font-size: 9.5px;
  font-style: normal;
  white-space: nowrap;
}

.alBadgeUp {
  border-color: #BBD3FA;
  color: var(--blue);
  background: #E9F1FF;
}

.alBadgeNew {
  border-color: #F3D9A8;
  color: #9A6A12;
  background: #FFF6E4;
}

.alFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--blue-line);
  background: #F8FAFF;
  color: var(--muted);
  font-size: 10.5px;
}

.alFoot b {
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 600;
}

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

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  display: block;
  width: fit-content;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--blue);
  color: var(--navy);
  font-size: clamp(24px, 2.9vw, 33px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

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

.four {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid #E4EBF5;
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.four:hover {
  border-color: #BBD3FA;
  box-shadow: 0 10px 24px rgba(16, 27, 46, 0.07);
}

.four .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}

.four h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--text);
  font-size: 13.2px;
  line-height: 1.72;
}

/* ---------- 界面展示 ---------- */
.screens {
  padding: 56px 0 60px;
  border-top: 1px solid var(--blue-line);
  background: #F7FAFF;
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.screens .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  align-items: end;
  column-gap: 32px;
}

.screens .section-heading .eyebrow {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.screens .section-heading h2 {
  grid-column: 1;
  grid-row: 2;
}

.screens .section-heading > p:last-child {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0 0 8px;
  text-align: right;
}

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

.covers figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  background: #fff;
}

.covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-bottom: 1px solid var(--blue-line);
  object-fit: cover;
  object-position: top center;
}

.covers b {
  display: block;
  padding: 9px 12px 0;
  color: var(--ink);
  font-size: 13px;
}

.covers small {
  display: block;
  padding: 2px 12px 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

/* ---------- FAQ：双栏卡片 ---------- */
.faq {
  padding: 60px 0 34px;
  scroll-margin-top: calc(var(--header-height) + 14px);
}

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

.faq-item {
  border: 1px solid #E4EBF5;
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 160ms ease;
}

.faq-item[open] {
  border-color: #BBD3FA;
  background: #FCFDFF;
}

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

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

.faq-item summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-item summary .icon {
  width: 13px;
  height: 13px;
  flex: none;
  transition: transform 180ms ease;
  filter: invert(37%) sepia(78%) saturate(2600%) hue-rotate(212deg) brightness(94%);
}

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

.faq-item[open] summary h3 {
  color: var(--blue-deep);
}

.faq-answer {
  padding: 0 16px 15px;
  border-top: 1px dashed #E7EEF9;
  margin: 0 0;
}

.faq-answer p {
  margin: 11px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}

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

.official .section-heading {
  margin-bottom: 14px;
}

.official .section-heading h2 {
  padding-bottom: 4px;
  border-bottom-width: 2px;
  font-size: clamp(20px, 2.1vw, 24px);
}

.official-fold {
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  background: #F6F9FF;
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
}

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

.official-fold summary::after {
  margin-left: auto;
  content: "展开";
  color: var(--blue);
  font-size: 11px;
}

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

.official-fold .official-link {
  padding: 10px 16px 14px;
  border-top: 1px dashed var(--blue-line);
}

.official-link p {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
}

.official-link a {
  color: var(--blue);
  font-weight: 600;
  word-break: break-all;
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 58px 0 62px;
  border-top: 1px solid var(--blue-line);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

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

.review-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #E4EBF5;
  border-radius: var(--radius);
  background: #fff;
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid #EEF3FA;
}

.review-card .who b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.review-card .who b::before {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  content: "评";
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
}

.review-card time {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 9.5px;
  white-space: nowrap;
}

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

.rv-site {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 11px;
  color: var(--blue);
  font-size: 10px;
}

/* ---------- 下载区 ---------- */
.download-cta {
  padding: 52px 0 56px;
  background: var(--navy);
  color: #fff;
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.download-cta .page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 36px;
}

.download-cta .eyebrow {
  color: #8FB6F5;
  background: rgba(45, 108, 223, 0.22);
}

.download-cta .section-heading {
  margin-bottom: 0;
}

.download-cta .section-heading h2 {
  border-bottom-color: #4C8BF0;
  color: #fff;
  font-size: clamp(23px, 2.8vw, 30px);
}

.download-cta .section-heading > p:last-child {
  color: #A9BCD6;
  margin-top: 9px;
}

.download-cta .button-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: none;
}

.download-cta .button-primary .icon {
  filter: none;
}

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

.download-cta .disclaimer {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #93A9C4;
  font-size: 11.5px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 22px 0;
  border-top: 1px solid #E4EBF5;
  background: #F7FAFF;
  color: var(--muted);
  font-size: 11.5px;
}

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

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue-deep);
}

.icp {
  font-family: "Courier New", monospace;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(23, 63, 140, 0.28);
  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: 8px;
  height: 8px;
  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;
}

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

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

  .hero-applist {
    max-width: 560px;
  }

  .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));
  }

  .download-cta .page-shell {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }
}

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

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

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: #fff;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }

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

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

  .brand {
    grid-row: 1;
    grid-column: 1;
    gap: 7px;
    font-size: 15px;
  }

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

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -14px;
    padding: 0 14px 12px;
    border-top: 1px solid var(--blue-line);
    background: #fff;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 33px;
    margin-left: auto;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .nav-download .icon {
    width: 13px;
    height: 13px;
  }

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

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 10px;
  }

  .primary-nav a {
    padding: 8px 6px;
    border: 1px solid var(--blue-line);
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
  }

  .hero {
    padding: 32px 0 38px;
    background-size: 44px 44px, auto;
  }

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

  .hero-title {
    font-size: 19px;
    margin: 9px 0;
  }

  .hero-summary {
    font-size: 13.8px;
    margin-bottom: 20px;
  }

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

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

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

  .four {
    padding: 18px;
  }

  .screens .section-heading {
    display: block;
  }

  .screens .section-heading > p:last-child {
    margin-top: 9px;
    text-align: left;
  }

  .covers {
    display: flex;
    width: calc(100% + 14px);
    margin-right: -14px;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .covers figure {
    flex: 0 0 min(70vw, 252px);
    scroll-snap-align: start;
  }

  .faq {
    padding: 42px 0 26px;
  }

  .faq-item summary h3 {
    font-size: 13.5px;
  }

  .official {
    padding: 2px 0 42px;
  }

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

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

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

  .download-cta .button-primary {
    width: 100%;
    min-width: 0;
  }

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

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

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

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

  .nav-download span {
    display: none;
  }

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

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

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