/* =====================================================
   QQ Zone Restore Archive — 官网样式
   配色基调：QQ 空间金黄暖色系
   ===================================================== */

:root {
  --primary: #ffb300;
  --primary-deep: #ff8f00;
  --primary-soft: #ffd54f;
  --primary-pale: #fff3d6;
  --ink: #241b0c;
  --ink-2: #5c503a;
  --muted: #8d7f63;
  --bg: #fffdf6;
  --card: #ffffff;
  --line: rgba(255, 179, 0, 0.22);
  --shadow-sm: 0 2px 10px rgba(120, 84, 10, 0.08);
  --shadow-md: 0 12px 34px rgba(120, 84, 10, 0.13);
  --shadow-lg: 0 24px 60px rgba(120, 84, 10, 0.18);
  --radius: 16px;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===================== 通用组件 ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 8px 22px rgba(255, 143, 0, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 143, 0, 0.45); }

.btn-ghost {
  color: var(--primary-deep);
  background: rgba(255, 179, 0, 0.1);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 179, 0, 0.18); transform: translateY(-2px); }

.btn-small { padding: 8px 22px; font-size: 14px; }
.btn-lg { padding: 15px 38px; font-size: 17px; }

.section { padding: 96px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-deep);
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.section-title { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; }

.section-sub { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ===================== 顶部导航 ===================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 253, 246, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(120, 84, 10, 0.08);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-deep));
  box-shadow: 0 3px 10px rgba(255, 143, 0, 0.3);
}

.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.2px; }
.brand-name em { font-style: normal; color: var(--primary-deep); }

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--primary-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 179, 0, 0.12);
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== 首屏 Hero ===================== */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.orb-1 {
  width: 480px; height: 480px;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.75), transparent 65%);
}
.orb-2 {
  width: 380px; height: 380px;
  left: -140px; top: 30%;
  background: radial-gradient(circle, rgba(255, 143, 0, 0.4), transparent 65%);
}
.orb-3 {
  width: 300px; height: 300px;
  left: 40%; bottom: -160px;
  background: radial-gradient(circle, rgba(255, 236, 179, 0.9), transparent 65%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 56px;
  align-items: center;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.badge-solid {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border: none;
  box-shadow: 0 6px 16px rgba(255, 143, 0, 0.35);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.22;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.grad-text {
  background: linear-gradient(120deg, var(--primary) 10%, var(--primary-deep) 60%, #e65100 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/12px no-repeat;
}

/* —— 右侧截图 —— */

.hero-shot { position: relative; }

.shot-glow {
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(255, 179, 0, 0.35), transparent);
  filter: blur(46px);
  z-index: 0;
}

.screenshot-frame {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform 0.4s ease;
}
.screenshot-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px); }

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff8e8, #ffefc7);
  border-bottom: 1px solid var(--line);
}
.frame-bar i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #ffcf7a;
}
.frame-bar i:nth-child(2) { background: var(--primary); }
.frame-bar i:nth-child(3) { background: var(--primary-deep); }

.frame-title {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.frame-body {
  position: relative;
  aspect-ratio: 16 / 10.4;
  background: linear-gradient(150deg, #fffaf0 0%, #ffedbe 55%, #ffd77e 100%);
}

.frame-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(140, 96, 6, 0.75);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.screenshot-frame.has-img .screenshot-hint { opacity: 0; }

/* ===================== 数据概览 ===================== */

.stats { padding: 10px 0 40px; }

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

.stat-item {
  text-align: center;
  padding: 26px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-item strong {
  display: block;
  font-size: clamp(20px, 2.4vw, 27px);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-item span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ===================== 功能特性 ===================== */

.features { background: linear-gradient(180deg, transparent 0%, rgba(255, 243, 214, 0.5) 100%); }

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 179, 0, 0.5);
}

.feature-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--primary-pale), rgba(255, 179, 0, 0.25));
  border: 1px solid var(--line);
}

.feature-card h3 { font-size: 18px; margin-bottom: 9px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ===================== 用户评价 ===================== */

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

.review-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.review-text {
  font-size: 15px;
  color: var(--ink-2);
  flex: 1;
}
.review-text::before { content: "“"; color: var(--primary); font-size: 26px; font-weight: 800; margin-right: 2px; }

.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.a1 { background: linear-gradient(135deg, #ffb300, #ff8f00); }
.a2 { background: linear-gradient(135deg, #ff7043, #e64a19); }
.a3 { background: linear-gradient(135deg, #66bb6a, #2e7d32); }
.a4 { background: linear-gradient(135deg, #42a5f5, #1565c0); }
.a5 { background: linear-gradient(135deg, #ab47bc, #6a1b9a); }
.a6 { background: linear-gradient(135deg, #26c6da, #00838f); }

.review-user { flex: 1; min-width: 0; }
.review-user strong { display: block; font-size: 15px; }
.review-user span { display: block; font-size: 12.5px; color: var(--muted); }

.review-stars { color: var(--primary); font-size: 14px; letter-spacing: 1.5px; }

/* ===================== 常见问题 ===================== */

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open { border-color: rgba(255, 179, 0, 0.55); box-shadow: var(--shadow-md); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 19px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.faq-icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 179, 0, 0.15);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 2px;
  border-radius: 1px;
  background: var(--primary-deep);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ===================== 下载区 ===================== */

.download { padding-bottom: 110px; }

.download-card {
  position: relative;
  text-align: center;
  padding: 64px 8% 58px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 80% -10%, rgba(255, 213, 79, 0.35), transparent),
    linear-gradient(135deg, #3d2c0a 0%, #241a05 55%, #171004 100%);
  border: 1px solid rgba(255, 179, 0, 0.35);
  box-shadow: 0 30px 80px rgba(90, 60, 0, 0.35);
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.25), transparent 70%);
  pointer-events: none;
}

.section-tag-light {
  color: var(--primary-soft);
  background: rgba(255, 213, 79, 0.12);
  border-color: rgba(255, 213, 79, 0.35);
}

.download-title {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 18px;
  color: #fff;
}

.download-info {
  font-size: 16px;
  color: rgba(255, 243, 214, 0.85);
  margin-bottom: 22px;
}
.download-info strong { color: var(--primary-soft); font-size: 18px; }
.download-info .divider { margin: 0 14px; opacity: 0.4; }

.download-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 36px;
}
.download-platforms li {
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 243, 214, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 213, 79, 0.28);
  border-radius: 999px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 54px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #3d2c0a;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd54f 0%, var(--primary) 45%, var(--primary-deep) 100%);
  box-shadow: 0 0 0 6px rgba(255, 179, 0, 0.18), 0 16px 40px rgba(255, 143, 0, 0.5);
  animation: glow 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-download:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 0 8px rgba(255, 179, 0, 0.24), 0 22px 52px rgba(255, 143, 0, 0.6);
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 179, 0, 0.18), 0 16px 40px rgba(255, 143, 0, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 179, 0, 0.1), 0 16px 46px rgba(255, 143, 0, 0.65); }
}

.download-note {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 243, 214, 0.55);
}

/* ===================== 页脚 ===================== */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 243, 214, 0.45), rgba(255, 236, 179, 0.55));
  padding: 44px 0 36px;
  text-align: center;
}

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

.footer-text {
  max-width: 620px;
  margin: 0 auto 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-copy { font-size: 13px; color: var(--muted); }

/* ===================== 入场动画 ===================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-download { animation: none; }
}

/* ===================== 响应式 ===================== */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1.05fr; gap: 40px; }
  .features-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }

  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-points { justify-content: center; }
  .hero-badges { justify-content: center; }

  .screenshot-frame { transform: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 253, 246, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 15px 6%; border-top: 1px solid rgba(255, 179, 0, 0.1); }
  .nav-links a::after { display: none; }

  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 640px) {
  .features-grid, .reviews-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-title { font-size: clamp(30px, 8.4vw, 38px); }
  .hero-actions .btn { width: 100%; }
  .btn-download { width: 100%; font-size: 17px; padding: 17px 20px; }

  .download-card { padding: 46px 7% 44px; }
  .frame-body { aspect-ratio: 4 / 3.2; }
}

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