/* ═══════════ 图鉴洛克 - 宣传官网共用样式 ═══════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6b9bc4;
  --primary-light: #a8c8e0;
  --primary-dark: #4a7a9e;
  --accent: #7eb8a0;
  --bg: #f7fafc;
  --bg-card: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(107, 155, 196, 0.08);
  --shadow-lg: 0 12px 40px rgba(107, 155, 196, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 960px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --reveal-transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-brand {
  font-size: 17px; font-weight: 700; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.nav-brand span { color: var(--primary); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--text-light); text-decoration: none;
  transition: color var(--transition); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }

/* ── Mobile Nav Toggle ── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 1px; transition: var(--transition);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative; padding: 80px 0 60px; text-align: center;
  background: linear-gradient(165deg, #f0f6fa 0%, #e8f0f8 40%, #f5f8fc 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 155, 196, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 184, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block; padding: 6px 18px;
  background: rgba(107, 155, 196, 0.1); color: var(--primary-dark);
  font-size: 13px; font-weight: 600; border-radius: 20px;
  letter-spacing: 0.5px; margin-bottom: 24px;
  border: 1px solid rgba(107, 155, 196, 0.15);
  position: relative;
}
.hero h1 {
  font-size: 42px; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.2;
  position: relative;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--text-light);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.7;
  position: relative;
}

/* ── Hero Launch Button ── */
.hero-actions { position: relative; }
.launch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 40px; background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff; font-size: 17px; font-weight: 600; border: none; border-radius: 30px;
  cursor: pointer; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
}
.launch-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(7, 193, 96, 0.4); }
.launch-btn .btn-icon { font-size: 20px; }
.launch-hint { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ── Section Common ── */
.section { padding: 60px 0 80px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 30px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 480px; margin: 0 auto; }
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px; margin: 0 auto 32px;
}

/* ── QR Card ── */
.qr-section { padding: 60px 0 70px; text-align: center; }
.qr-card {
  display: inline-block; padding: 36px 40px 32px;
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(107, 155, 196, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  max-width: 100%;
}
.qr-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(107, 155, 196, 0.15); }
.qr-code {
  width: 200px; height: 200px; display: block; margin: 0 auto 20px;
  border-radius: var(--radius-sm); background: #f0f4f8; object-fit: contain;
}
.qr-code img { width: 100%; height: 100%; display: block; }
.qr-label { font-size: 15px; color: var(--text-light); font-weight: 500; }
.qr-label strong { color: var(--primary-dark); font-weight: 700; }
.qr-hint { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.qr-alt { font-size: 13px; color: var(--text-light); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.qr-alt strong { color: var(--primary-dark); }

/* ── Stats Bar ── */
.stats-bar { padding: 40px 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; }
.stats-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-item h3 { font-size: 28px; font-weight: 800; line-height: 1.2; }
.stat-item p { font-size: 14px; opacity: 0.75; margin-top: 2px; }

/* ── Features Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-category { grid-column: 1 / -1; margin-top: 8px; margin-bottom: 4px; }
.feature-category h3 { font-size: 18px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.feature-category h3::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.feature-card {
  background: var(--bg-card); padding: 24px 20px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; margin-bottom: 14px; font-size: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.fi-1 { background: rgba(107, 155, 196, 0.12); color: var(--primary); }
.fi-2 { background: rgba(126, 184, 160, 0.12); color: var(--accent); }
.fi-3 { background: rgba(246, 173, 85, 0.12); color: #e88d3a; }
.fi-4 { background: rgba(165, 139, 219, 0.12); color: #8b7bd6; }
.fi-5 { background: rgba(239, 142, 142, 0.12); color: #e06060; }
.fi-6 { background: rgba(96, 192, 200, 0.12); color: #40b0b8; }
.fi-7 { background: rgba(102, 187, 154, 0.12); color: #3ba87a; }
.fi-8 { background: rgba(200, 160, 220, 0.12); color: #9b6db5; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feature-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ── CTA ── */
.cta-section { padding: 60px 0; text-align: center; }
.cta-section h2 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.cta-section p { font-size: 15px; color: var(--text-light); max-width: 480px; margin: 0 auto 28px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 16px; font-weight: 600; border: none; border-radius: 30px;
  cursor: pointer; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(107, 155, 196, 0.3);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(107, 155, 196, 0.4); }

/* ── Footer ── */
footer { padding: 32px 0; text-align: center; border-top: 1px solid var(--border); }
footer p { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
footer .footer-link { color: var(--primary); text-decoration: none; }
footer .footer-link:hover { text-decoration: underline; }

/* ── Page Content (for sub-pages) ── */
.page-content { padding: 48px 0; }
.page-content h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; margin-top: 36px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; margin-top: 28px; color: var(--primary-dark); }
.page-content p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content ul li { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 6px; }
.page-content ul li strong { color: var(--text); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.15) rotate(-6deg); }
  70%      { transform: scale(0.95) rotate(3deg); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 155, 196, 0.3); }
  50%      { box-shadow: 0 0 20px 4px rgba(107, 155, 196, 0.15); }
}
@keyframes countPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ── Reveal on scroll ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--reveal-transition), transform var(--reveal-transition);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero enhancements ── */
.hero-float {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.hero-float-1 {
  width: 80px; height: 80px; top: 15%; left: 8%;
  background: radial-gradient(circle, rgba(107,155,196,0.12), transparent 70%);
  animation: float 6s ease-in-out infinite;
}
.hero-float-2 {
  width: 60px; height: 60px; bottom: 20%; right: 10%;
  background: radial-gradient(circle, rgba(126,184,160,0.12), transparent 70%);
  animation: float 5s ease-in-out infinite 1s;
}
.hero-float-3 {
  width: 40px; height: 40px; top: 30%; right: 18%;
  background: radial-gradient(circle, rgba(165,139,219,0.1), transparent 70%);
  animation: float 7s ease-in-out infinite 2s;
}
.hero h1 span.shimmer {
  background: linear-gradient(
    90deg,
    var(--primary) 0%, var(--accent) 20%, var(--primary) 40%,
    #c4b0e8 50%, var(--primary) 60%, var(--accent) 80%, var(--primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ── Stats count-up ── */
.stat-item[data-count] h3 { display: inline-block; }
.stat-item.count-done h3 { animation: countPulse 0.4s ease; }
.stats-bar { position: relative; overflow: hidden; }
.stats-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Feature card enhancements ── */
.feature-card:hover .feature-icon { animation: iconBounce 0.5s ease; }
.feature-card { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.feature-card:hover { border-color: rgba(107,155,196,0.2); }

/* ── QR card glow ── */
.qr-card-glow {
  position: relative;
}
.qr-card-glow::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
  background-size: 200% 200%; z-index: -1; opacity: 0;
  animation: pulseGlow 3s ease-in-out infinite;
  transition: opacity var(--transition);
}
.qr-card-glow:hover::before { opacity: 1; }

/* ── QR placeholder decoration ── */
.qr-placeholder {
  width: 200px; height: 200px; margin: 0 auto 20px;
  border-radius: var(--radius-sm); background: #eef3f9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed rgba(107,155,196,0.25); gap: 8px;
}
.qr-placeholder-icon { font-size: 36px; opacity: 0.6; }
.qr-placeholder-text { font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.4; }

/* ── Step number (guide page) ── */
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 18px; font-weight: 800; margin-right: 14px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(107,155,196,0.3);
}
.step-header {
  display: flex; align-items: center; margin-bottom: 12px;
}
.step-connector {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0; color: var(--primary-light); font-size: 20px;
}

/* ── FAQ Accordion (guide page) ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; transition: border-color var(--transition); }
.faq-item:hover { border-color: rgba(107,155,196,0.25); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
  color: var(--text); user-select: none; gap: 12px;
}
.faq-arrow {
  font-size: 12px; color: var(--text-muted); transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 18px; font-size: 14px; color: var(--text-light); line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 18px 14px; }

/* ── Button glow hover ── */
.launch-btn, .cta-btn {
  position: relative; overflow: hidden;
}
.launch-btn::after, .cta-btn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.launch-btn:hover::after, .cta-btn:hover::after { width: 300px; height: 300px; }

/* ── Mobile floating launch button ── */
.mobile-fab {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-fab.visible {
  opacity: 1; transform: translateY(0);
}
.mobile-fab-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: none; border-radius: 28px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(7,193,96,0.3);
  font-family: inherit;
}
.mobile-fab-btn:active { opacity: .85; }
.mobile-fab-btn svg { width: 20px; height: 20px; }

/* ═══════════ Responsive ═══════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-fab { display: block; }
  .container { padding: 0 16px; }
  .nav { padding: 0 16px; }

  /* Nav mobile menu */
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(247, 250, 252, 0.98);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 10px 0; }

  /* Hero */
  .hero { padding: 48px 0 36px; }
  .hero::before, .hero::after { display: none; }
  .hero-float { display: none; }
  .hero h1 { font-size: 30px; margin-bottom: 12px; }
  .hero-sub { font-size: 15px; padding: 0 4px; margin-bottom: 28px; }
  .hero-badge { font-size: 12px; margin-bottom: 16px; }
  .launch-btn { padding: 14px 32px; font-size: 16px; }

  /* QR */
  .qr-card { padding: 24px 20px 20px; }
  .qr-code { width: 160px; height: 160px; }
  .qr-placeholder { width: 160px; height: 160px; }

  /* Stats */
  .stats-grid { gap: 20px; }
  .stat-item { min-width: 72px; }
  .stat-item h3 { font-size: 22px; }
  .stat-item p { font-size: 12px; }

  /* Features */
  .section { padding: 36px 0 48px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 22px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-card { padding: 16px 14px; }
  .feature-icon { width: 36px; height: 36px; font-size: 18px; margin-bottom: 10px; }
  .feature-card h3 { font-size: 14px; }
  .feature-card p { font-size: 12px; }
  .feature-category h3 { font-size: 15px; }

  /* CTA */
  .cta-section h2 { font-size: 20px; }
  .cta-btn { padding: 12px 28px; font-size: 15px; }

  /* Guide */
  .step-number { width: 34px; height: 34px; font-size: 16px; margin-right: 10px; }
  .faq-question { font-size: 14px; padding: 12px 14px; }
  .faq-answer { font-size: 13px; }

  /* Sub pages */
  .page-content { padding: 28px 0; }
  .page-content h2 { font-size: 20px; }
  .page-content p, .page-content ul li { font-size: 14px; }

  footer { padding: 24px 0; }
}

@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .stats-grid { gap: 12px; }
}
