@charset "UTF-8";

:root {
  --slate: #694F47;
  --slate-deep: #3B251E;
  --slate-soft: #F8FAFC;
  --line: #E2E8F0;
  --ink: #2A180F;
  --body: #775C56;
  --paper: #FFFFFF;
  --radius: 4px;
  --shell: 1170px;
  --header-height: 72px;
  --shadow: 0 12px 28px rgba(42, 24, 15, 0.1);
}

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

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

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

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

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--line);
}

.primary-nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
  gap: clamp(16px, 2.6vw, 32px);
}

.primary-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

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

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

.nav-download {
  min-width: 128px;
  padding: 0 16px;
  background: var(--slate-deep);
  color: #FFFFFF;
}

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

.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: var(--radius);
  background: transparent;
  cursor: pointer;
}

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

/* ===== hero ===== */
.hero {
  padding: 58px 0 62px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(105, 79, 71, 0.05) 1px, transparent 1px) 0 0 / 62px 100%,
    var(--slate-soft);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.12;
}

.hero-title {
  margin: 13px 0 16px;
  color: var(--slate-deep);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-summary {
  margin: 0 0 28px;
  color: var(--body);
  font-size: 14.5px;
}

.button {
  min-width: 164px;
  padding: 0 22px;
}

.button-primary {
  background: var(--slate);
  color: #FFFFFF;
}

.button-primary:hover {
  background: var(--slate-deep);
}

/* 英雄区：多源仓库表格 + 健康度 */
.srcPanel {
  min-width: 0;
  border: 1px solid #E1CFCB;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.srcPanelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--slate-deep);
  border-radius: 3px 3px 0 0;
  color: #FFFFFF;
}

.srcPanelHead b {
  font-size: 13.5px;
  letter-spacing: 0.4px;
}

.srcPanelHead span {
  color: #C9AFA9;
  font-size: 11px;
}

.srcTable {
  padding: 4px 0;
}

.srcRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1.5fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 11.5px;
}

.srcRow + .srcRow {
  border-top: 1px solid #F1F5F9;
}

.srcRow b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.srcRow em {
  color: #9C807A;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10.5px;
  font-style: normal;
}

.srcRow small {
  color: var(--slate);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10.5px;
  text-align: right;
}

.srcRowHead {
  color: #B89C94;
  font-size: 10px;
  letter-spacing: 0.8px;
}

.srcRowHead em,
.srcRowHead small,
.srcRowHead span {
  color: #B89C94;
  font-family: inherit;
  font-size: 10px;
}

.srcRowHead small {
  text-align: right;
}

.health {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #EDF1F6;
}

.health i {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.health i.ok {
  background: #22C55E;
}

.health i.warn {
  background: #F59E0B;
}

.health i.bad {
  background: #EF4444;
}

.srcFoot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: #F8FAFC;
  color: #8B6D64;
  font-size: 10.5px;
}

.srcFoot b {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 3px;
  background: #FFEDD5;
  color: #9A3412;
  font-size: 10px;
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: 1px;
}

.dot.ok { background: #22C55E; }
.dot.warn { background: #F59E0B; }
.dot.bad { background: #EF4444; }

/* ===== routes ===== */
.routes {
  padding: 72px 0 76px;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.28;
}

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

.fours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--slate-deep);
}

.four {
  min-width: 0;
  padding: 20px 20px 10px 0;
}

.four + .four {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.four .n {
  color: #B89C94;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

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

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

/* ===== screens ===== */
.screens {
  padding: 72px 0 78px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--slate-soft);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.covers figure {
  min-width: 0;
  margin: 0;
  border: 1px solid #E1CFCB;
  border-radius: var(--radius);
  background: #FFFFFF;
}

.covers figure::before {
  display: block;
  height: 8px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle, #E1CFCB 1.4px, transparent 1.6px) 10px 50% / 8px 8px repeat-x;
  content: "";
}

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

.covers b {
  display: block;
  padding: 9px 12px 0;
  font-size: 12.5px;
  font-weight: 700;
}

.covers small {
  display: block;
  padding: 2px 12px 11px;
  color: #9C807A;
  font-size: 11px;
}

/* ===== faq ===== */
.faq {
  padding: 72px 0 14px;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
}

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

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

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

.faq-item summary .icon {
  flex: none;
  width: 16px;
  height: 16px;
  filter: invert(36%) sepia(9%) saturate(1200%) hue-rotate(175deg) brightness(94%) contrast(89%);
  transition: transform 180ms ease;
}

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

.faq-answer {
  padding: 0 16px 16px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin: 0 16px;
  padding-right: 0;
  padding-left: 0;
}

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

/* ===== official ===== */
.official {
  padding: 26px 0 72px;
}

.official-fold {
  border: 1px solid #E1CFCB;
  border-radius: var(--radius);
  background: #F8FAFC;
}

.official-fold summary {
  color: var(--slate-deep);
  font-size: 13.5px;
  font-weight: 700;
}

.official-fold summary::after {
  margin-left: auto;
  color: var(--slate);
  font-size: 18px;
  font-weight: 800;
  content: "+";
}

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

.official-fold .official-link {
  padding: 10px 16px 16px;
  border-top: 1px dashed #E1CFCB;
}

.official-link a {
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-all;
}

/* ===== reviews ===== */
.reviews {
  padding: 72px 0 76px;
  background: var(--slate-soft);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.review-card {
  display: flex;
  min-height: 204px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--slate);
  border-radius: var(--radius);
  background: #FFFFFF;
}

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

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

.review-card time {
  flex: none;
  color: #B89C94;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
}

.review-card > p {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 12.8px;
  line-height: 1.85;
}

.rv-site {
  margin-top: auto;
  padding-top: 13px;
  color: var(--slate);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

/* ===== download ===== */
.download-cta {
  padding: 66px 0 70px;
  background: var(--slate-deep);
  color: #FFFFFF;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

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

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

.download-cta .button-primary {
  background: #F8FAFC;
  color: var(--slate-deep);
}

.download-cta .button-primary .icon {
  filter: invert(17%) sepia(17%) saturate(1000%) hue-rotate(174deg) brightness(93%) contrast(92%);
}

.download-cta .button-primary:hover {
  background: var(--slate);
  color: #FFFFFF;
}

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

.disclaimer {
  margin: 18px 0 0;
  color: #B89C94;
  font-size: 11.5px;
}

/* ===== footer ===== */
.site-footer {
  padding: 24px 0 20px;
  border-top: 1px solid #553B33;
  background: #2A180F;
  color: #B89C94;
  font-size: 12px;
}

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

.site-footer p {
  margin: 0;
}

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

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

/* ===== to-top ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 152px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--slate);
  box-shadow: 0 8px 20px rgba(42, 24, 15, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  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(--slate-deep);
}

/* ===== responsive ===== */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
    gap: 30px;
  }

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

  .four + .four {
    border-left: 0;
    padding-left: 0;
  }

  .four:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .srcPanel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .srcRow {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.2fr) 26px;
    padding: 9px 14px;
    gap: 8px;
  }
}

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

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

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

  .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: 10px;
    row-gap: 0;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
    font-size: 16px;
  }

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

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

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

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

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

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

  .primary-nav a {
    display: block;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--slate-soft);
    font-size: 13px;
  }

  .hero {
    padding: 42px 0 46px;
  }

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

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

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

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

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

  .fours {
    grid-template-columns: 1fr;
  }

  .four,
  .four:nth-child(even) {
    padding: 16px 0;
    border-left: 0;
  }

  .four + .four {
    border-top: 1px solid var(--line);
  }

  .rgrid {
    grid-template-columns: 1fr;
  }

  .faq {
    padding: 52px 0 12px;
  }

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

  .download-cta {
    padding: 52px 0 54px;
  }

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

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

  .to-top {
    right: 16px;
    bottom: 136px;
    width: 38px;
    height: 38px;
  }
}

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

  .nav-download span {
    display: none;
  }

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

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

  .srcRow {
    grid-template-columns: minmax(0, 1fr) 42px 26px;
  }

  .srcRow .health {
    display: none;
  }
}
