/* 游狐云简库 · 官网样式 — 与小程序 design tokens 对齐 */
:root {
  --brand: #ff7f33;
  --brand-dark: #e86a20;
  --brand-weak: #fff4f2;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #323233;
  --text-secondary: #6b7078;
  --text-muted: #9ea3ab;
  --danger: #ff5a38;
  --border: #f0f1f5;
  --cloud-tint: #e8eef5;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 32px rgba(50, 50, 51, 0.08);
  --header-h: 64px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand-dark);
}

.logo__mark {
  height: 36px;
  width: auto;
  max-width: 160px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav__cta {
  padding: 8px 18px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav__cta:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: var(--brand-weak);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }
}

/* —— 主区 —— */
main {
  overflow-x: hidden;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}

.section--tight {
  padding-top: 32px;
  padding-bottom: 32px;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  text-align: center;
}

.section__lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.0625rem;
}

/* —— Hero —— */
.hero {
  padding: 48px 20px 64px;
  background: linear-gradient(
    165deg,
    var(--brand-weak) 0%,
    #fff 45%,
    var(--cloud-tint) 100%
  );
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__bullets {
    justify-content: center;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(255, 127, 51, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero__inner > div:first-child .hero__sub {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 901px) {
  .hero__inner > div:first-child .hero__sub {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero__bullets li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 700;
}

/* Hero 右侧主视觉 */
.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-visual__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— 品牌主张（首屏与能力之间的叙事区） —— */
.brand-prose {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 52px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.brand-prose__inner {
  max-width: 38rem;
  margin: 0 auto;
}

.brand-prose__title {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--brand-dark);
  text-align: center;
}

.brand-prose__body {
  margin: 0;
}

.brand-prose__body p {
  margin: 0 0 1.15em;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  text-align: justify;
  text-justify: inter-ideograph;
}

.brand-prose__body p:last-child {
  margin-bottom: 0;
}

.brand-prose__body strong {
  font-weight: 700;
  color: var(--text);
}

.brand-prose__closing {
  font-size: 1.125rem !important;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center !important;
  border-top: 1px solid var(--border);
  margin-top: 1.25em !important;
  padding-top: 1.25em;
}

@media (max-width: 600px) {
  .brand-prose {
    padding: 36px 20px 40px;
  }

  .brand-prose__body p {
    font-size: 1rem;
  }

  .brand-prose__closing {
    font-size: 1.0625rem !important;
  }
}

/* —— 功能卡片（3×3 九宫格，等高对齐） —— */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}

.features > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.features > .card p {
  flex: 1 1 auto;
}

@media (min-width: 601px) and (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .features > .card:nth-child(9) {
    grid-column: 1 / -1;
    max-width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
  }
}

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

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #ffb380);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255, 127, 51, 0.25);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--brand-weak);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* —— 场景条 —— */
.strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

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

.strip__text h2 {
  margin: 0 0 12px;
  font-size: 1.375rem;
}

.strip__text p {
  margin: 0;
  color: var(--text-secondary);
}

.strip__visual {
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.strip__visual__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— 产品优势 —— */
.value-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .value-points {
    grid-template-columns: 1fr;
  }
}

.value-point {
  margin: 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.value-point h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.value-point p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* —— CTA —— */
.cta {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(180deg, var(--brand-weak), #fff);
}

.cta h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.cta p {
  margin: 0 0 24px;
  color: var(--text-secondary);
}

.miniapp-qr {
  margin: 0 auto 28px;
  max-width: 220px;
}

.miniapp-qr__label {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.miniapp-qr__frame {
  margin: 0 auto;
  width: 168px;
  height: 168px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 8px;
}

.miniapp-qr__frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 168px;
  max-height: 168px;
  object-fit: contain;
  border-radius: 8px;
}

/* —— 页脚 —— */
.site-footer {
  background: #2a2b2e;
  color: #b8bcc4;
  padding: 40px 20px 28px;
  font-size: 0.875rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.site-footer strong {
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

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

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

/* 备案与 slogan（与游狐到家官网页脚风格对齐） */
.site-footer-legal {
  padding: 28px 20px 32px;
  background: #fcf8f4;
  color: #4a4540;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.65;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer-legal__slogan {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3a3633;
  letter-spacing: 0.02em;
}

.site-footer-legal__row {
  margin: 0 0 10px;
}

.site-footer-legal__row--police {
  margin-bottom: 14px;
}

.site-footer-legal__link {
  margin-left: 0.35em;
  color: #4a4540;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 69, 64, 0.35);
}

.site-footer-legal__link:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.site-footer-legal__police {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4540;
  text-decoration: none;
}

.site-footer-legal__police:hover {
  color: var(--brand-dark);
}

.site-footer-legal__police img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.site-footer-legal__note {
  margin: 0;
  font-size: 0.75rem;
  color: #7a736d;
}
