/* ========================================
   Cheat Engine Website - Global Styles
   Blue & White Light Theme
   ======================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f0f5ff;
  --bg-card: #ffffff;
  --bg-hover: #f0f5ff;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-bg: rgba(37, 99, 235, 0.04);
  --accent-bg2: rgba(37, 99, 235, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-accent: rgba(37, 99, 235, 0.3);
  --success: #16a34a;
  --warning: #ca8a04;
  --danger: #dc2626;
  --font-base: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 24px rgba(37, 99, 235, 0.15);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,255,255,0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.06), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  width: 100px;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-actions .btn-primary:hover {
  background: #f0f5ff;
  color: var(--accent-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.hero-actions .btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.hero-meta span:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}

.hero-windows {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-windows a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-windows a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ========================================
   Section Headers
   ======================================== */

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Feature Cards
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.resources-grid .feature-card {
  text-align: center;
  padding: 44px 36px;
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.resources-grid .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
  border-color: rgba(37, 99, 235, 0.2);
}

.resources-grid .feature-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0efff 100%);
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  line-height: 1;
}

.resources-grid .feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.resources-grid .feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.resources-grid .feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  transition: all 0.25s ease;
}

.resources-grid .feature-card a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateX(3px);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   Screenshot Section
   ======================================== */

.screenshot-section {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.screenshot-wrapper {
  text-align: center;
}

.screenshot-wrapper img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

/* ========================================
   Steps / Workflow Section
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
  opacity: 0.25;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-card .step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ========================================
   Advantages / Highlights Section
   ======================================== */

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

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.advantage-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-hover);
  box-shadow: var(--shadow-accent);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.advantage-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.advantage-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   Download CTA
   ======================================== */

.download-cta {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #3b82f6 100%);
}

.download-cta h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.download-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.download-version {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-bottom: 24px;
}

.download-cta .btn-primary {
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.download-cta .btn-primary:hover {
  background: #f0f5ff;
  color: var(--accent-dark);
}

.download-cta .hero-meta {
  color: rgba(255,255,255,0.5);
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question .toggle {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .toggle {
  transform: rotate(45deg);
}

.faq-item.active {
  border-color: var(--border-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #f1f5f9;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */

.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

/* ========================================
   Download Page Styles
   ======================================== */

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

/* Download Card */
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.dl-card.featured {
  border-color: var(--accent);
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.dl-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dl-icon {
  font-size: 2rem;
}

.dl-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dl-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dl-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.dl-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.dl-btn span {
  font-size: 0.75rem;
}

.dl-btn.quark {
  background: #e8f0fe;
  color: #2563eb;
  border: 1px solid #c4d9f7;
}

.dl-btn.quark:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.dl-btn.baidu {
  background: #f0f5ff;
  color: #1d4ed8;
  border: 1px solid #dbe4f8;
}

.dl-btn.baidu:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Collection Card */
.dl-collection-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f5ff 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-accent);
}

.dl-collection-inner {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.dl-collection-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dl-collection-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.dl-collection-inner .dl-links {
  flex-direction: row;
}

.dl-collection-inner .dl-btn {
  white-space: nowrap;
}

/* Legacy download-card (kept for compat) */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.download-card.featured {
  border-color: var(--accent);
  position: relative;
}

.download-card.featured::before {
  content: '推荐';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 var(--radius-lg) 0 var(--radius);
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.download-card .version {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.download-card .date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.download-card .size {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.download-card .btn {
  width: 100%;
}

.sys-requirements {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.sys-requirements h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.sys-requirements ul {
  list-style: none;
}

.sys-requirements li {
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.sys-requirements li:last-child {
  border-bottom: none;
}

/* ========================================
   Tutorial Page Styles
   ======================================== */

.tutorial-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tutorial-nav button {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tutorial-nav button:hover,
.tutorial-nav button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tutorial-content {
  display: none;
}

.tutorial-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-list {
  counter-reset: step;
  list-style: none;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-body p {
  color: var(--text-secondary);
}

.step-body code {
  background: var(--accent-bg2);
  color: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ========================================
   About Page Styles
   ======================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.info-card .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.info-card .label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    max-width: 320px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-grid::before {
    display: none;
  }

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

  .advantage-card {
    flex-direction: column;
    text-align: center;
  }

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

  .dl-collection-inner {
    flex-direction: column;
    text-align: center;
  }

  .dl-collection-inner .dl-links {
    flex-direction: column;
  }

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

/* ========================================
   Download Card QR Area
   ======================================== */

.dl-qr-area {
  text-align: center;
  margin: 12px 0 16px;
}

.dl-qr-static {
  width: 110px;
  height: 110px;
  border: 2px solid rgba(37, 99, 235, 0.45);
  border-radius: 10px;
  background: #f8fafc;
  display: inline-block;
  animation: qrPulse 2.4s ease-in-out infinite;
}

.dl-qr-tip {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* Save Tip Bar */
.dl-save-tip {
  margin-top: 36px;
  margin-bottom: 36px;
}

@keyframes qrPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
}

.dl-save-tip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  font-size: 0.92rem;
  color: #92400e;
  line-height: 1.6;
}

.dl-save-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ========================================
   Download Modal (New Layout)
   ======================================== */

.dl-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dl-modal.active {
  opacity: 1;
  visibility: visible;
}

.dl-modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  max-width: 620px;
  width: 92%;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.dl-modal.active .dl-modal-box {
  transform: translateY(0) scale(1);
}

.dl-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.dl-modal-close:hover {
  background: rgba(0,0,0,0.1);
  color: #0f172a;
}

.dl-modal-head {
  text-align: center;
  padding: 28px 32px 0;
}

.dl-modal-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.dl-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.dl-modal-sub {
  font-size: 0.88rem;
  color: #64748b;
}

.dl-modal-sub strong {
  color: var(--accent);
}

.dl-modal-body {
  display: flex;
  gap: 0;
  padding: 24px 32px 32px;
}

.dl-modal-qr {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 24px;
  border-right: 1px solid #e2e8f0;
}

.dl-qr-wrap {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(37, 99, 235, 0.45);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  animation: qrPulse 2.4s ease-in-out infinite;
}

.dl-qr-wrap img {
  width: 170px;
  height: 170px;
  display: block;
}

.dl-qr-channel {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

.dl-modal-info {
  flex: 1;
  padding-left: 24px;
}

.dl-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.dl-modal-warn {
  background: #fefce8;
  color: #92400e;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.dl-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.dl-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: #475569;
  padding: 5px 0;
  line-height: 1.5;
}

.dl-modal-features .check-icon {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.dl-modal-mobile-tip {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Modal Responsive */
@media (max-width: 600px) {
  .dl-modal-body {
    flex-direction: column;
    padding: 20px 24px 28px;
  }

  .dl-modal-qr {
    width: 100%;
    padding-right: 0;
    padding-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
  }

  .dl-modal-info {
    padding-left: 0;
  }

  .dl-modal-head,
  .dl-modal-sub {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dl-modal-features li {
    font-size: 0.85rem;
  }
}
