@charset "UTF-8";

/* ===== 小熊猫辅助器 · 键位面板主题 ===== */
:root {
  --green: #805215;
  --green-deep: #533914;
  --green-bright: #C57E22;
  --wash: #FFF7ED;
  --paper: #FFFFFF;
  --ink: #261E14;
  --muted: #7A6C5F;
  --line: #EBDECD;
  --radius: 18px;
  --shell: 1170px;
  --header-height: 74px;
}

* { 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: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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(--green); 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-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

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

.brand { display: inline-flex; align-items: center; min-width: max-content; gap: 9px; font-size: 18.5px; font-weight: 800; letter-spacing: 0.3px; }
.brand img { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); object-fit: contain; }

.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2.3vw, 32px); padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: inline-block; padding: 6px 0; color: var(--muted); font-size: 13.5px; font-weight: 700; border-bottom: 3px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--green); border-bottom-color: var(--green-bright); }

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-download { min-width: 128px; padding: 0 16px; border: 1px solid var(--green); color: var(--green); background: #FFFFFF; }
.nav-download .icon,
.button-primary .icon { filter: invert(31%) sepia(33%) saturate(1345%) hue-rotate(96deg) brightness(92%) contrast(93%); }
.nav-download:hover { color: #FFFFFF; background: var(--green); }
.nav-download:hover .icon { filter: brightness(0) invert(1); }

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

/* ===== 英雄区：悬浮球 + 键位格 ===== */
.hero {
  padding: 54px 0 62px;
  background:
    radial-gradient(460px 280px at 90% 6%, #FCEDDC 0%, rgba(252, 237, 220, 0) 70%),
    var(--wash);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr); align-items: center; gap: 46px; }

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

.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 2.6px; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 2px; background: var(--green-bright); }

.hero h1 { margin: 0; font-size: clamp(38px, 4.8vw, 60px); font-weight: 900; letter-spacing: -0.8px; line-height: 1.08; overflow-wrap: anywhere; }

.hero-title { margin: 15px 0 14px; font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; color: var(--green-deep); line-height: 1.35; }

.hero-summary { max-width: 470px; margin: 0 0 27px; color: var(--muted); font-size: 14.6px; }

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

.button-primary { color: #FFFFFF; background: var(--green); box-shadow: 0 6px 0 var(--green-deep); }
.button-primary .icon { filter: brightness(0) invert(1); }
.button-primary:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--green-deep); }

/* 悬浮控制面板 */
.floatPanel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 20px 40px rgba(128, 82, 21, 0.12);
}

.fpHud { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; border-bottom: 1px solid #E7F6EE; }
.fpHudTitle { font-size: 12px; font-weight: 800; color: var(--green-deep); }
.fpHudTag { margin-left: auto; padding: 2px 9px; border-radius: 999px; color: #FFFFFF; background: var(--green-bright); font-size: 9.5px; font-weight: 700; }

.fpStage { position: relative; padding: 14px 0 4px; }

.fpBall {
  position: absolute;
  top: 4px;
  right: 2px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF;
  background: radial-gradient(circle at 32% 28%, #DE9D4A 0%, var(--green) 70%);
  box-shadow: 0 8px 18px rgba(128, 82, 21, 0.35);
  font-size: 15px;
  font-weight: 800;
  animation: bob 3.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(4px); } }

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

.fpKey {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid #EFE4D3;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FDF7 100%);
  box-shadow: 0 3px 0 #EFE5D6;
}
.fpKey b { color: var(--green-deep); font-size: 15px; font-weight: 800; line-height: 1.2; }
.fpKey small { color: var(--muted); font-size: 9px; }
.fpKey.active { border-color: var(--green); background: linear-gradient(180deg, #C57E22 0%, #A36616 100%); box-shadow: 0 3px 0 var(--green-deep); }
.fpKey.active b,
.fpKey.active small { color: #FFFFFF; }
.fpKey.wide { grid-column: span 2; }

.fpBar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; padding-top: 13px; margin-top: 12px; border-top: 1px dashed #EFE4D3; }
.fpBar span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.fpMini { height: 6px; border-radius: 3px; background: #E7F6EE; overflow: hidden; }
.fpMini i { display: block; height: 100%; width: var(--w, 50%); border-radius: 3px; background: var(--green-bright); }

/* ===== 核心特色 ===== */
.routes { padding: 64px 0 68px; background: #FFFFFF; scroll-margin-top: calc(var(--header-height) + 12px); }

.section-heading { max-width: 640px; margin-bottom: 33px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.1vw, 37px); font-weight: 900; letter-spacing: -0.5px; line-height: 1.24; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14.2px; }

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

.four { position: relative; min-width: 0; padding: 22px 24px 22px 60px; border: 1px solid #E1F2E8; border-radius: var(--radius); background: #FBFEFC; }
.four:hover { border-color: #EBDBC6; background: var(--wash); }

.four .n {
  position: absolute;
  top: 22px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--green);
  background: #FCEDDC;
  font-size: 11px;
  font-weight: 800;
}

.four h3 { margin: 0 0 6px; font-size: 17px; }
.four p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ===== 界面展示 ===== */
.screens { padding: 62px 0 68px; background: var(--wash); scroll-margin-top: calc(var(--header-height) + 12px); }

.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.covers figure { min-width: 0; margin: 0; padding: 8px 8px 11px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; }
.covers img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top center; border-radius: 10px; background: var(--wash); }
.covers b { display: block; margin-top: 8px; font-size: 12.5px; color: var(--green-deep); }
.covers small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }

/* ===== FAQ ===== */
.faq { padding: 62px 0 16px; background: #FFFFFF; scroll-margin-top: calc(var(--header-height) + 12px); }

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

.faq-item { border: 1px solid #E1F2E8; border-left: 4px solid #F7DCBB; border-radius: 12px; background: #FBFEFC; }
.faq-item[open] { border-left-color: var(--green); background: #FFFFFF; }

.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 11px 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: 800; line-height: 1.5; }
.faq-item summary .icon { width: 13px; height: 13px; transition: transform 180ms ease; filter: invert(31%) sepia(33%) saturate(1345%) hue-rotate(96deg) brightness(92%) contrast(93%); }
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 16px 14px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ===== 官方入口 ===== */
.official { padding: 20px 0 60px; background: #FFFFFF; }

.official-fold { border: 1px solid var(--green); border-radius: 14px; background: var(--wash); }
.official-fold summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 17px; color: var(--green-deep); cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; }
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::after { content: "▾"; margin-left: auto; font-size: 12px; }
.official-fold[open] summary::after { content: "▴"; }
.official-link { padding: 9px 17px 15px; border-top: 1px solid var(--line); }
.official-link p { margin: 0; font-size: 13.5px; }
.official-link a { color: var(--green); font-weight: 800; word-break: break-all; }

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

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

.rv { display: flex; min-height: 226px; flex-direction: column; padding: 20px; border: 1px solid #EDE1CF; border-radius: var(--radius); background: #FFFFFF; }
.rv header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who b { display: inline-flex; align-items: center; gap: 5px; color: var(--green-deep); font-size: 12px; font-weight: 800; }
.who b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.rv time { color: #A89B8A; font-size: 9.5px; }
.rv > p { margin: 12px 0 11px; color: #574C3C; font-size: 13.3px; line-height: 1.84; }
.rv-site { margin-top: auto; padding-top: 9px; border-top: 1px solid #E7F6EE; color: var(--green); font-size: 10px; font-weight: 700; }

/* ===== 下载 CTA ===== */
.download-cta { padding: 62px 0 66px; background: linear-gradient(165deg, #805215 0%, #533914 100%); color: #F0FDF4; text-align: center; scroll-margin-top: calc(var(--header-height) + 12px); }
.download-cta .section-heading { max-width: 650px; margin-right: auto; margin-left: auto; text-align: center; }
.download-cta .section-heading h2 { color: #FFFFFF; }
.download-cta .section-heading > p:last-child { color: #F7DCBB; }
.download-cta .eyebrow { color: #EFC186; }
.download-cta .button-primary { color: var(--green-deep); background: #FFFFFF; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22); }
.download-cta .button-primary .icon { filter: invert(31%) sepia(33%) saturate(1345%) hue-rotate(96deg) brightness(92%) contrast(93%); }
.download-cta .button-primary:hover { background: #F0FDF4; }
.disclaimer { margin: 18px 0 0; color: #F3DFA7; font-size: 11.5px; }

/* ===== 页脚 ===== */
.site-footer { padding: 32px 0 20px; border-top: 1px solid var(--line); color: var(--muted); background: #FFFFFF; text-align: center; }
.site-footer p { margin: 0 0 7px; font-size: 12px; }
.site-footer a { color: var(--green); }
.site-footer .icp { margin: 0; }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 3px 0 var(--green-deep);
  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 { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); transform: rotate(45deg) translate(1px, 1px); }
.to-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy { max-width: 640px; }
  .floatPanel { max-width: 540px; margin: 0 auto; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

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

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

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

  .brand { grid-row: 1; grid-column: 1; gap: 7px; font-size: 15.5px; }
  .brand img { width: 30px; height: 30px; }

  .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: #FFFFFF; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 11px; }
  .primary-nav a { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--wash); font-size: 12.5px; }

  .nav-download { grid-row: 1; grid-column: 3; min-width: auto; min-height: 34px; margin-left: auto; padding: 0 9px; font-size: 11.5px; }
  .nav-download .icon { width: 14px; height: 14px; }
  .menu-toggle { display: inline-flex; grid-row: 1; grid-column: 4; width: 34px; height: 34px; }

  .hero { padding: 34px 0 42px; }
  .hero h1 { font-size: 34px; }
  .hero-title { font-size: 20px; }
  .hero-summary { font-size: 13.5px; }

  .floatPanel { padding: 12px; border-radius: 18px; }
  .fpGrid { gap: 7px; padding-right: 26px; }
  .fpKey { min-height: 54px; border-radius: 9px; }
  .fpKey b { font-size: 13px; }
  .fpBall { width: 44px; height: 44px; font-size: 13px; }
  .fpBar { grid-template-columns: auto minmax(0, 1fr); row-gap: 5px; }
  .fpBar span:nth-of-type(2) { grid-column: 1; }

  .routes { padding: 44px 0 48px; }
  .screens { padding: 44px 0 48px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 25px; }
  .fours { grid-template-columns: minmax(0, 1fr); }
  .four { padding: 19px 18px 19px 54px; }

  .covers { gap: 10px; }

  .faq { padding: 44px 0 14px; }
  .official { padding: 16px 0 44px; }
  .reviews { padding: 44px 0 46px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .rv { min-height: auto; }
  .download-cta { padding: 44px 0 48px; }
  .download-cta .button-primary { width: 100%; }
  .to-top { right: 16px; bottom: 136px; width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 13.5px; }
  .nav-download span { display: none; }
  .nav-download { width: 34px; padding: 0; }
  .hero h1 { font-size: 29px; }
  .primary-nav ul { grid-template-columns: 1fr; }
}
