@charset "UTF-8";

/* ===== 蓝河工具箱 · 蓝色面板表格式版式 ===== */
:root {
  --blue: #3049A0;
  --blue-ink: #1C2C63;
  --blue-mid: #4C63BE;
  --blue-pale: #EDF0FA;
  --steel: #5A6478;
  --ink: #101728;
  --paper: #F7F8FC;
  --white: #ffffff;
  --line: #DDE2F0;
  --r: 10px;
  --shell: 1200px;
  --header-height: 70px;
  --mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
}

* {
  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", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.66;
}

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(--blue);
  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");
}

/* ===== 头部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 2px solid var(--blue);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--line);
  object-fit: contain;
}

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

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

.primary-nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 6px;
  color: var(--steel);
  font-size: 14px;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-nav a:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

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

.nav-download {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
}

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

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

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

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

/* ===== 英雄区 ===== */
.hero {
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(48, 73, 160, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(48, 73, 160, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #F2F5FD 0%, #FDFDFF 100%);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  content: "";
  background: var(--blue);
}

.hero h1 {
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 15px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #C3CBE6;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 700;
}

.hero-summary {
  margin: 0 0 28px;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.9;
}

.button {
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 4px 4px 0 #C9D2EE;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

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

.button-primary:hover {
  background: var(--blue-ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #C9D2EE;
}

/* 工具九宫格矩阵 */
.hero-toolgrid {
  min-width: 0;
  padding: 18px;
  border: 1px solid #C9D2EE;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(48, 73, 160, .07);
}

.tgHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.tgHead b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
}

.tgHead span {
  color: var(--steel);
  font-family: var(--mono);
  font-size: 11px;
}

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

.tgCell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FBFCFE;
}

.tgCell.on {
  border-color: #B9C6EC;
  background: var(--blue-pale);
}

.tgIcon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 5px;
  border-radius: 7px;
  color: #fff;
  background: #AEB8D6;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.tgCell.on .tgIcon {
  background: var(--blue);
}

.tgCell b {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tgCell small {
  color: #7B8399;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tgFoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  margin-top: 13px;
  border-top: 1px dashed #D5DBEB;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 10.5px;
}

.tgDot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--blue);
  font-weight: 700;
}

.tgDot::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #34B27B;
}

/* ===== 特色 ===== */
.routes {
  padding: 74px 0 78px;
  background: var(--white);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.3;
}

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

.fours {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.four {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.four:hover {
  background: #FAFBFE;
}

.four .n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.four > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  min-width: 0;
}

.four h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

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

/* ===== 界面展示 ===== */
.screens {
  padding: 74px 0 78px;
  background: #F1F3FB;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #D2D9EC;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.covers figure {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  padding: 14px 14px 0;
}

.covers figure + figure {
  border-left: 1px solid #E4E9F5;
}

.covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  background: var(--blue-pale);
}

.covers figcaption {
  display: flex;
  gap: 9px;
  padding: 12px 0 15px;
  margin-top: 12px;
  border-top: 1px dashed #E4E9F5;
}

.covers figcaption b {
  flex: none;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

.covers figcaption span {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.covers figcaption small {
  display: block;
  margin-top: 2px;
  color: var(--steel);
  font-size: 11.5px;
  font-weight: 400;
}

/* ===== FAQ ===== */
.faq {
  padding: 74px 0 18px;
  background: var(--white);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

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

.faq-item[open] {
  background: #FBFCFE;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 4px;
  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: 800;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary h3::before {
  margin-right: 8px;
  color: #98A3C4;
  content: "?";
  font-family: var(--mono);
  font-weight: 700;
}

.faq-item summary .icon {
  width: 13px;
  height: 13px;
  flex: none;
  filter: invert(24%) sepia(38%) saturate(1988%) hue-rotate(207deg) brightness(88%) contrast(92%);
  transition: transform 180ms ease;
}

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

.faq-answer {
  padding: 0 4px 16px 20px;
  border-left: 2px solid #DCE2F2;
  margin-left: 2px;
}

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

/* ===== 官方入口 ===== */
.official {
  padding: 26px 0 74px;
  background: var(--white);
}

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

.official-fold {
  border: 1px solid #C4CFEA;
  border-left: 5px solid var(--blue);
  border-radius: 4px;
  background: #FBFCFE;
}

.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 700;
}

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

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

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

.official-link {
  padding: 2px 18px 16px;
  border-top: 1px dashed #D2DAEF;
}

.official-link p {
  margin: 11px 0 0;
  font-size: 13.5px;
}

.official-link a {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

/* ===== 评论 ===== */
.reviews {
  padding: 74px 0 78px;
  background: #101728;
  color: #E7EBF6;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.reviews .eyebrow {
  color: #8FA3E0;
}

.reviews .eyebrow::before {
  background: #8FA3E0;
}

.reviews .section-heading h2 {
  color: #fff;
}

.reviews .section-heading > p:last-child {
  color: #9AA6C2;
}

.rgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid #26314B;
}

.review-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 4px;
  border-bottom: 1px solid #26314B;
}

.review-card header {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  align-items: flex-start;
}

.review-card header b {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.review-card time {
  color: #7C89A8;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: -.2px;
}

.review-card > p {
  margin: 0;
  color: #C2CCE2;
  font-size: 13.5px;
  line-height: 1.9;
}

.rv-site {
  grid-column: 2;
  margin-top: -8px;
  color: #8FA3E0;
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}

/* ===== 下载 CTA ===== */
.download-cta {
  padding: 64px 0 70px;
  background: var(--blue);
  color: #fff;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

.download-cta .eyebrow::before {
  background: #B9C6F2;
}

.download-cta .section-heading h2 {
  color: #fff;
}

.download-cta .section-heading > p:last-child {
  color: #C9D2F1;
  margin-bottom: 26px;
}

.download-cta .button-primary {
  color: var(--blue-ink);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(16, 23, 40, .35);
}

.download-cta .button-primary .icon {
  filter: invert(24%) sepia(38%) saturate(1988%) hue-rotate(207deg) brightness(88%) contrast(92%);
}

.disclaimer {
  max-width: 680px;
  margin: 26px 0 0;
  padding: 12px 16px;
  border-left: 3px solid #B9C6F2;
  background: rgba(255, 255, 255, .08);
  color: #DCE3F6;
  font-size: 12.5px;
  line-height: 1.8;
}

/* ===== 页脚 ===== */
.site-footer {
  padding: 30px 0 20px;
  color: #7B859B;
  background: #F1F3FB;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

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

.site-footer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .icp a {
  color: #8A93A8;
  text-decoration: none;
}

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 146px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #C9D2EE;
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(48, 73, 160, .12);
  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: 10px;
  height: 10px;
  content: "";
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  transform: rotate(45deg) translate(2px, 2px);
}

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

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

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

  .hero-toolgrid {
    max-width: 640px;
  }

  .four > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

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

  .covers figure:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #E4E9F5;
  }

  .covers figure:nth-child(4) {
    border-top: 1px solid #E4E9F5;
  }
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
    margin: 0;
  }

  .nav-shell {
    position: relative;
    gap: 12px;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 12px 24px 16px;
    border-bottom: 2px solid var(--blue);
    background: #fff;
  }

  .primary-nav.is-open ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .primary-nav.is-open a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FBFCFE;
  }

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

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

  body {
    font-size: 15px;
  }

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

  .brand {
    font-size: 16px;
  }

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

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

  .hero-toolgrid {
    padding: 13px;
    box-shadow: 6px 6px 0 rgba(48, 73, 160, .07);
  }

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

  .tgCell {
    padding: 9px 7px;
  }

  .tgCell small {
    display: none;
  }

  .routes,
  .screens,
  .reviews,
  .download-cta {
    padding: 50px 0;
  }

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

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

  .four {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 2px;
  }

  .four .n {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

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

  .covers figure + figure,
  .covers figure:nth-child(3),
  .covers figure:nth-child(4) {
    border-top: 1px solid #E4E9F5;
    border-left: 0;
  }

  .review-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .review-card header {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .rv-site {
    grid-column: 1;
    margin-top: 0;
  }

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

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