@charset "UTF-8";

/* ===== 茶杯狐 · 检索仪器主题 ===== */
:root {
  --olive: #7C2A0F;
  --olive-deep: #541D0A;
  --olive-soft: #FCD2CB;
  --paper: #FEE8EE;
  --ink: #2A100B;
  --muted: #6B4E4B;
  --line: #E4C5C4;
  --radius: 3px;
  --shell: 1180px;
  --header-height: 66px;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, 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: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

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

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

/* ---- 页头 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.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.04em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  object-fit: contain;
}

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

.primary-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

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

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

.nav-download {
  min-height: 40px;
  min-width: 126px;
  padding: 0 15px;
  color: #FFFFFF;
  background: var(--olive);
}

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

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

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

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

/* ---- 英雄区 ---- */
.hero {
  padding: 58px 0 66px;
  background:
    linear-gradient(180deg, #F8DADE 0%, var(--paper) 64%),
    repeating-linear-gradient(0deg, rgba(124, 42, 15, 0.06) 0 1px, transparent 1px 34px);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "// ";
  color: #B3736F;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 14px 0 16px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.38;
}

.hero-summary {
  max-width: 440px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14.6px;
  line-height: 1.86;
}

.button {
  min-height: 46px;
  min-width: 168px;
  padding: 0 24px;
}

.button-primary {
  color: #FFFFFF;
  background: var(--olive);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-primary:hover {
  background: var(--olive-deep);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---- 英雄组件：搜索框 + 即时结果下拉 ---- */
.searchPanel {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  padding: 16px 16px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 8px 8px 0 rgba(42, 16, 11, 0.9);
}

.spTabs {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  gap: 6px;
}

.spTabs span {
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #7A5A55;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.spTabs .is-on {
  border-color: var(--olive);
  color: var(--olive-deep);
  background: var(--olive-soft);
  font-weight: 600;
}

.spBox {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 6px 0 12px;
  border: 1.5px solid var(--olive);
  border-radius: var(--radius);
  background: #FDFDF3;
  gap: 9px;
}

.spGlass {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--olive);
  border-radius: 50%;
}

.spGlass::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  content: "";
  background: var(--olive);
  transform: rotate(45deg);
}

.spText {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.spCaret {
  display: inline-block;
  width: 1.5px;
  height: 17px;
  margin-left: 2px;
  background: var(--olive);
  animation: caretBlink 1.1s steps(1) infinite;
}

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

.spBtn {
  flex: none;
  padding: 7px 15px;
  border-radius: 2px;
  color: #FFFFFF;
  background: var(--olive);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.spList {
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.spList li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px dashed #EAD3D3;
  column-gap: 7px;
}

.spList li.is-first {
  background: #FADFE0;
  border-bottom-style: solid;
}

.spList b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.spList small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: #927573;
  font-family: var(--mono);
  font-size: 10.5px;
}

.spTag {
  padding: 1px 6px;
  border: 1px solid #D6ABA8;
  border-radius: 2px;
  color: #6A423C;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.tag-4k {
  border-color: var(--olive);
  color: #FFFFFF;
  background: var(--olive);
}

.tag-1080 {
  border-color: #A8544C;
  color: var(--olive-deep);
  background: #F6D6D4;
}

.tag-web {
  color: #927573;
}

.spFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: #927573;
  font-family: var(--mono);
  font-size: 10.5px;
}

/* ---- 核心特色 ---- */
.routes {
  padding: 66px 0 68px;
  color: #F7FBEA;
  background: #32110A;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.routes .section-heading > p:last-child {
  color: #C7A09A;
}

.routes .eyebrow {
  color: #E06E6A;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.26;
}

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

.fours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #5C261C;
  border-radius: var(--radius);
  background: #3B160E;
}

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

.four + .four {
  border-left: 1px solid #5C261C;
}

.four .n {
  display: block;
  margin-bottom: 12px;
  color: #C45D55;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.four h3 {
  margin: 0 0 7px;
  color: #F8FCEE;
  font-size: 17px;
  font-weight: 600;
}

.four p {
  margin: 0;
  color: #C29C96;
  font-size: 13.2px;
  line-height: 1.78;
}

/* ---- 界面展示 ---- */
.screens {
  padding: 70px 0 74px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

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

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

.covers b {
  display: block;
  padding: 10px 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

/* ---- FAQ ---- */
.faq {
  padding: 66px 0 24px;
  background: #F7E0E1;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

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

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

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

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

.faq-item summary .icon {
  flex: none;
  transition: transform 160ms ease;
  filter: invert(42%) sepia(32%) saturate(1180%) hue-rotate(45deg) brightness(92%) contrast(94%);
}

.faq-item[open] {
  border-color: var(--olive);
  box-shadow: 2px 2px 0 rgba(124, 42, 15, 0.16);
}

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

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

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

/* ---- 官方入口 ---- */
.official {
  padding: 26px 0 66px;
  background: #F7E0E1;
}

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

.official-fold {
  border: 1px solid var(--olive);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: #FFFFFF;
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  color: var(--olive-deep);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
}

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

.official-fold summary::after {
  margin-left: auto;
  content: "[ + ]";
  color: #A36760;
}

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

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

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

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

/* ---- 用户评价 ---- */
.reviews {
  padding: 68px 0 72px;
  background: #FEE8EE;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.review-card {
  display: flex;
  min-width: 0;
  min-height: 180px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid #B3736F;
  border-radius: var(--radius);
  background: #FFFFFF;
}

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

.review-card header b {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-card time {
  flex: none;
  color: #A07A77;
  font-family: var(--mono);
  font-size: 10px;
}

.review-card > p {
  margin: 11px 0 0;
  color: #54332F;
  font-size: 13.4px;
  line-height: 1.84;
}

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 10.5px;
  word-break: break-all;
}

/* ---- 下载 ---- */
.download-cta {
  padding: 62px 0 66px;
  color: #F9E5E4;
  background: #32110A;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.download-cta h2 {
  color: #FFFFFF;
}

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

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

.download-cta .button-primary {
  color: var(--olive-deep);
  background: #F2807C;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.download-cta .button-primary .icon {
  filter: invert(26%) sepia(38%) saturate(1400%) hue-rotate(52deg) brightness(92%) contrast(96%);
}

.download-cta .button-primary:hover {
  background: #FFAAA6;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.disclaimer {
  margin: 18px 0 0;
  color: #B9938B;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* ---- 页脚 ---- */
.site-footer {
  padding: 26px 0 20px;
  color: #AC8B85;
  background: #210A06;
  font-size: 11.5px;
}

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

.site-footer p {
  margin: 0;
}

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

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

/* ---- 返回顶部 ---- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--olive-soft);
  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;
  border-top: 2px solid var(--olive-deep);
  border-left: 2px solid var(--olive-deep);
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

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

.to-top:hover {
  background: #FFFFFF;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .fours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .four:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #5C261C;
  }

  .four:nth-child(4) {
    border-top: 1px solid #5C261C;
  }

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

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

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

  .searchPanel {
    max-width: 100%;
    margin: 0;
  }

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

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

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

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

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

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

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

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 12px;
    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: 8px;
    padding-top: 10px;
  }

  .primary-nav a {
    display: block;
    padding: 9px 11px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 34px;
    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;
  }

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

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

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

  .searchPanel {
    padding: 13px 12px 12px;
    box-shadow: 5px 5px 0 rgba(42, 16, 11, 0.9);
  }

  .spList li {
    padding: 8px 8px;
  }

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

  .faq {
    padding: 44px 0 16px;
  }

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

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

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

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

  .four,
  .four + .four,
  .four:nth-child(3),
  .four:nth-child(4) {
    border-top: 1px solid #5C261C;
    border-left: 0;
  }

  .four:first-child {
    border-top: 0;
  }

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

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

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

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

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

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

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

  .nav-download span {
    display: none;
  }

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

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

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

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