@charset "UTF-8";

/* =========================================================
   极客软件库 · 深蓝终端版式（整站独立骨架）
   ========================================================= */

:root {
  --navy: #0B3A66;
  --navy-deep: #072a4b;
  --navy-dark: #041a2e;
  --cyan: #2FA8D8;
  --cyan-soft: #8FD4EC;
  --mint: #5FE0C8;
  --ink: #10202e;
  --muted: #5c6b7a;
  --paper: #f4f7fa;
  --line: #d5e0ea;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shell: 1180px;
  --header-h: 72px;
  --radius: 3px;
}

* {
  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: var(--sans);
  font-size: 16px;
  line-height: 1.62;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  width: min(calc(100% - 56px), 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-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--cyan);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 11px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(143, 212, 236, 0.5);
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.brand span {
  font-family: var(--sans);
}

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

.primary-nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  gap: 30px;
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 6px 0;
  color: #bcd4e6;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.4px;
  border-bottom: 1px dashed transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.primary-nav a:hover {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.nav-download {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease;
}

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

.nav-download:hover {
  background: var(--cyan);
  color: var(--navy-dark);
}

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

.menu-toggle .icon {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}

/* ---------- 英雄区 ---------- */
.hero {
  padding: 74px 0 82px;
  color: #fff;
  background:
    linear-gradient(rgba(47, 168, 216, 0.09) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(47, 168, 216, 0.09) 1px, transparent 1px) 0 0 / 34px 100%,
    radial-gradient(circle at 18% 12%, #14507f 0%, #0B3A66 46%, #062746 100%);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

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

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.4vw, 74px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 1px;
}

.hero-title {
  margin: 16px 0 14px;
  color: #eaf6ff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: 2px;
}

.hero-summary {
  max-width: 440px;
  margin: 0 0 26px;
  color: #b7cee0;
  font-size: 15px;
  line-height: 1.85;
}

.button {
  min-width: 168px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  color: var(--navy-dark);
  background: var(--cyan);
  box-shadow: 4px 4px 0 rgba(4, 26, 46, 0.55);
}

.button-primary .icon,
.button-primary .icon::before {
  filter: brightness(0);
}

.button-primary:hover {
  background: var(--mint);
  transform: translate(-1px, -2px);
}

.hero-note {
  margin: 18px 0 0;
  color: #7fa3bd;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.6px;
}

/* ---------- 英雄组件：终端窗口 ---------- */
.hero-terminal {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  margin-left: auto;
  border: 1px solid #37678f;
  border-radius: 6px;
  background: #061d31;
  box-shadow: 0 26px 46px rgba(0, 9, 20, 0.55);
  overflow: hidden;
}

.tm-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid #1d4a6d;
  background: #0a2942;
}

.tm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.tm-dot.d1 { background: #ff6b5e; }
.tm-dot.d2 { background: #ffc357; }
.tm-dot.d3 { background: #4ad08a; }

.tm-addr {
  margin-left: 8px;
  color: #7ea6c2;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.3px;
}

.tm-screen {
  padding: 20px 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.95;
}

.tm-line {
  margin: 0;
  color: #cbe3f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-prompt {
  margin-right: 8px;
  color: var(--mint);
  font-weight: 700;
}

.tm-ok {
  color: #6fe3b4;
}

.tm-dim {
  color: #7396ad;
  font-size: 12.4px;
}

.tm-cursor {
  color: #e8f6ff;
}

.tm-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 6px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.tm-foot {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid #1d4a6d;
  background: #0a2942;
  color: #6d92ad;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.8px;
}

/* ---------- 通用标题 ---------- */
.section-heading {
  max-width: 610px;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
  color: var(--cyan);
}

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

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

/* ---------- 核心特色 ---------- */
.routes {
  padding: 76px 0 80px;
  background: #fff;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.fours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.four {
  padding: 28px 30px 30px;
  background: #fff;
  border-top: 3px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.four:hover {
  border-top-color: var(--cyan);
  background: #f8fbfd;
}

.four .n {
  display: inline-block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
}

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

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

/* ---------- 界面展示 ---------- */
.screens {
  padding: 74px 0 86px;
  background: #eaf1f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.shot {
  min-width: 0;
  margin: 0;
}

.shot:nth-child(even) {
  padding-top: 26px;
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 15;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #b9cddc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(11, 58, 102, 0.08);
}

.shot figcaption {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #c6d7e4;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.shot figcaption b {
  margin-right: 7px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
}

.shot figcaption small {
  display: block;
  margin-top: 2px;
  color: #63788a;
  font-size: 11.5px;
  font-weight: 400;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 78px 0 70px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.faq-wrap {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.faq-wrap .section-heading {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 2px;
  background: #fff;
  transition: border-left-color 180ms ease, box-shadow 180ms ease;
}

.faq-item[open] {
  border-left-color: var(--cyan);
  box-shadow: 0 8px 18px rgba(11, 58, 102, 0.07);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  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 {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.55;
  transition: transform 180ms ease;
}

.faq-item summary .icon::before {
  filter: invert(20%) sepia(41%) saturate(1888%) hue-rotate(173deg) brightness(93%) contrast(92%);
}

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

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

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- 官方入口 ---------- */
.official {
  padding: 8px 0 76px;
  background: var(--paper);
}

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

.official-fold {
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  overflow: hidden;
}

.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  color: #e6f4fb;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  list-style: none;
}

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

.official-fold summary::after {
  content: "+";
  margin-left: auto;
  color: var(--cyan-soft);
  font-size: 17px;
}

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

.official-link {
  padding: 14px 20px 18px;
  border-top: 1px dashed rgba(143, 212, 236, 0.35);
}

.official-link p {
  margin: 0;
  color: #a9c6da;
  font-size: 13.5px;
}

.official-link a {
  color: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 13.5px;
  word-break: break-all;
  border-bottom: 1px solid rgba(143, 212, 236, 0.45);
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 78px 0 84px;
  background: #fff;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

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

.review-card {
  min-width: 0;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fbfdfe;
}

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

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.who b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.who small {
  display: block;
  color: #8397a6;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
}

.review-card time {
  flex: none;
  color: #869aab;
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.review-card > p {
  margin: 13px 0 0;
  color: #3d4f5d;
  font-size: 13.5px;
  line-height: 1.85;
}

.rv-site {
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* ---------- 下载 CTA ---------- */
.download-cta {
  padding: 58px 0 56px;
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 8px, transparent 8px 16px),
    var(--navy-deep);
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
  row-gap: 16px;
}

.cta-inner .eyebrow {
  margin-bottom: 6px;
}

.download-cta h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.download-cta .cta-inner > div > p:last-child {
  margin: 8px 0 0;
  color: #a8c3d7;
  font-size: 13.5px;
}

.cta-inner .button-primary {
  color: var(--navy-dark);
  background: #fff;
  box-shadow: none;
}

.cta-inner .button-primary:hover {
  background: var(--cyan-soft);
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(143, 212, 236, 0.28);
  color: #7e9db3;
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 30px 0 22px;
  color: #93aebf;
  background: var(--navy-dark);
  text-align: center;
  font-size: 12.5px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: #a9c6da;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.site-footer .icp {
  margin: 0;
  color: #6d8a9d;
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 154px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  cursor: pointer;
  background: var(--navy);
  box-shadow: 0 10px 22px rgba(4, 26, 46, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

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

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

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

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

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

  .hero-terminal {
    max-width: 620px;
    margin: 0 auto;
  }

  .faq-wrap {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .primary-nav ul {
    gap: 20px;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-wrap .section-heading {
    margin-bottom: 4px;
  }

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

  .shot:nth-child(even) {
    padding-top: 0;
  }

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

@media (max-width: 820px) {
  :root {
    --header-h: 62px;
  }

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

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

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

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

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

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

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

  .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 11px;
    border: 1px solid #2c5474;
    border-radius: 2px;
    color: #cfe4f1;
    font-size: 12.5px;
  }

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

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

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

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

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

  .hero-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

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

  .tm-screen {
    padding: 16px 14px 18px;
    font-size: 11.6px;
    line-height: 1.9;
  }

  .tm-addr {
    font-size: 10.5px;
  }

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

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

  .four {
    padding: 22px 20px;
  }

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

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

  .official {
    padding-bottom: 52px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner .button-primary {
    width: 100%;
  }

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

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

  .primary-nav ul {
    grid-template-columns: 1fr;
  }

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