/**
 * QuickQ 官网主样式
 * 对照原站信息架构，深色科技风 + 原站紫粉高亮色（#8f1bdc / #6c19f6 / #f9218d）
 * 无外部字体、无 CDN、无 UI 框架
 */

/* ========== 设计 Token ========== */
:root {
  --bg: #080b16;
  --bg-elevated: #101528;
  --bg-card: #161b33;
  --bg-card-hover: #1c2342;
  --bg-header: rgba(8, 11, 22, 0.88);
  --line: rgba(143, 27, 220, 0.28);
  --text: #eef1ff;
  --text-muted: #9aa3c7;
  --heading: #f7f4ff;
  --accent: #8f1bdc;
  --accent-2: #6c19f6;
  --accent-pink: #f9218d;
  --accent-cyan: #5eead4;
  --gradient: linear-gradient(90deg, #6c19f6 0%, #f9218d 100%);
  --gradient-icon: linear-gradient(180deg, #e78ae9 0%, #926ef8 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 18px 50px rgba(108, 25, 246, 0.18);
  --container: 1180px;
  --header-h: 76px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --space: 24px;
  --section-y: 96px;
  --focus: #5eead4;
}

/* ========== 短 Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 16px;
}

p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

/* ========== 布局 ========== */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 40px;
}

.section-head.is-center {
  text-align: center;
}

.section-head.is-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ========== 顶栏 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo span {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 15px;
  border-radius: 8px;
  position: relative;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--text);
}

.site-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

body.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* ========== Hero（原站顶栏 + 主视觉） ========== */
.hero {
  padding: calc(var(--header-h) + 56px) 0 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(108, 25, 246, 0.28), transparent 60%),
    radial-gradient(700px 360px at 10% 80%, rgba(249, 33, 141, 0.16), transparent 55%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__kicker {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__img {
  position: relative;
}

.hero__img img {
  margin-left: auto;
  width: min(100%, 520px);
  filter: drop-shadow(0 24px 40px rgba(108, 25, 246, 0.35));
}

/* ========== 四优势卡（原站「为什么要选择 QuickQ」） ========== */
.features {
  background: var(--bg-elevated);
}

.features__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.features__visual img {
  max-width: 420px;
  margin: 0 auto;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(143, 27, 220, 0.6);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 20px;
}

.feature-card p {
  font-size: 14px;
  margin: 0;
}

/* ========== 三场景（原站「支持多种加速场景」） ========== */
.scenes {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(143, 27, 220, 0.18), transparent 70%),
    var(--bg);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.scene-card:hover,
.scene-card.is-active {
  border-color: #b8a2ff;
  box-shadow: var(--shadow);
}

.scene-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.scene-card h3 {
  font-size: 22px;
}

.scene-card p {
  margin: 0;
  font-size: 15px;
}

/* ========== 软件界面展示 ========== */
.shots {
  background: var(--bg-elevated);
  overflow: hidden;
}

.shots__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

.shots-stage {
  position: relative;
}

.shots-track {
  display: flex;
  gap: 18px;
  overflow: hidden;
}

.shots-track img {
  width: 220px;
  height: auto;
  flex: 0 0 220px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s;
}

.shots-track img.is-active {
  opacity: 1;
  transform: translateY(-8px);
}

.shots-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.shots-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
}

.shots-nav button:hover {
  border-color: var(--accent);
}

.shots-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.shots-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3b3f63;
}

.shots-dots button.is-active {
  background: var(--accent-pink);
  width: 14px;
  height: 14px;
}

/* ========== 用户评价 ========== */
.reviews .review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}

.review-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-card__user img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__name {
  font-weight: 600;
  color: var(--text);
}

.review-card__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.review-card blockquote {
  margin: 0;
  font-size: 15px;
  color: #c9c3ea;
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 14px;
}

/* ========== 下载 CTA + 数据条 ========== */
.cta {
  background: var(--gradient);
  overflow: hidden;
}

.cta .section-title,
.cta p,
.cta .section-lead {
  color: #fff;
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cta__btns img {
  height: 48px;
  width: auto;
}

.cta__img img {
  max-width: 460px;
  margin: 0 auto;
}

.stats {
  padding: 56px 0 80px;
  background: var(--bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 24px 8px;
}

.stat__num {
  display: block;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat__label {
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* ========== 页脚 ========== */
.site-footer {
  background: #070914;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 32px;
}

.site-footer h2,
.site-footer h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

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

.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
  color: #7d84a8;
}

.footer-copy a {
  color: var(--accent-pink);
}

/* ========== 内页头图 ========== */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 48px;
  background:
    radial-gradient(700px 280px at 70% 0%, rgba(108, 25, 246, 0.28), transparent 70%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.prose {
  max-width: 760px;
}

.prose p {
  margin-bottom: 16px;
  font-size: 16px;
}

.prose h2 {
  font-size: 26px;
  margin: 32px 0 12px;
}

.prose h3 {
  font-size: 20px;
  margin: 24px 0 10px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.howto-steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}

.howto-steps li {
  list-style: none;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 20px 20px 72px;
  position: relative;
  border: 1px solid var(--line);
}

.howto-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.method-card span {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ========== 使用方法文章列表 ========== */
.article-list {
  margin-top: 48px;
}

.article-list__title {
  font-size: 24px;
  margin: 0 0 20px;
}

.article-list__empty {
  color: var(--text-muted);
}

.article-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.article-list__item {
  margin: 0;
}

.article-list__link {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-list__link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.article-list__date,
.article-list__meta {
  color: var(--text-muted);
  font-size: 13px;
}

.article-list__name {
  font-size: 18px;
  font-weight: 700;
}

.article-list__summary {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== 下载页五端 ========== */
.platform {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.platform:last-child {
  border-bottom: 0;
}

.platform:nth-child(even) .platform__preview {
  order: 2;
}

.platform__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.platform h2 {
  font-size: 28px;
}

.platform__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.platform__note {
  font-size: 13px;
  color: #f9a8d4;
  margin-top: 10px;
}

.platform__preview img {
  max-width: 420px;
  margin: 0 auto;
}

/* ========== 404 ========== */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 20px 80px;
}

.not-found h1 {
  font-size: 88px;
  margin-bottom: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== 动效（克制淡入） ========== */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero__copy,
.feature-card,
.scene-card,
.review-card {
  animation: rise 0.55s ease both;
}

.feature-card:nth-child(2),
.scene-card:nth-child(2) { animation-delay: 0.08s; }
.feature-card:nth-child(3),
.scene-card:nth-child(3) { animation-delay: 0.16s; }
.feature-card:nth-child(4) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ========== 响应式：平板 768–1199 / 手机 <768 ========== */
@media (max-width: 1199px) {
  .hero__grid,
  .features__grid,
  .shots__grid,
  .cta__grid,
  .platform {
    grid-template-columns: 1fr;
  }

  .platform:nth-child(even) .platform__preview {
    order: 0;
  }

  .hero__img img,
  .features__visual img,
  .cta__img img,
  .platform__preview img {
    margin: 0 auto;
  }

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

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0d1224;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  body.is-nav-open .site-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 12px 8px;
  }

  .feature-list,
  .scene-grid,
  .review-grid,
  .method-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn,
  .platform__btns .btn {
    width: 100%;
  }

  .shots-track img {
    flex-basis: 70%;
    width: 70%;
  }

  .article-nav {
    flex-direction: column;
  }
}
