/* ===== Cheat Engine 站 CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --primary: #1e6a8a;
  --primary-dark: #155870;
  --primary-light: #2a8ab0;
  --accent: #e67e22;
  --accent-dark: #cf6d17;
  --bg: #f0f4f8;
  --bg-dark: #1a2535;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e2e8f0;
  --success: #16a34a;
  --header-bg: #0f2235;
  --header-height: 68px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

/* ===== HEADER ===== */
.site-header {
  background: var(--header-bg);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid rgba(42,138,176,0.35);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  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: 46px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: rgba(255,255,255,0.80);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(42,138,176,0.25);
  color: #fff;
}

.main-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
}
.main-nav a.nav-cta:hover { background: var(--accent-dark); }

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f2235 0%, #1e4a6a 50%, #16384f 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/2dfd.png') right center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content { color: #fff; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,138,176,0.25);
  border: 1px solid rgba(42,138,176,0.5);
  color: #7cc8e8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #4cd96e;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: #7cc8e8; }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230,126,34,0.4);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(230,126,34,0.5); color: #fff; }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* 百度网盘按钮（蓝色，适合白底卡片） */
.btn-baidu {
  background: #2563eb;
  color: #fff;
  border: none;
}
.btn-baidu:hover { background: #1d4ed8; box-shadow: 0 6px 20px rgba(37,99,235,0.4); color: #fff; }

.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* HERO STATS */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px 22px;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
}

.stat-card:hover { transform: translateX(-4px); background: rgba(255,255,255,0.12); }

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-alt { background: #fff; }

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

.section-tag {
  display: inline-block;
  background: rgba(30,106,138,0.10);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== DOWNLOAD BANNER ===== */
.download-banner {
  background: linear-gradient(135deg, #0f2235 0%, #1e4a6a 100%);
  padding: 56px 0;
}

.download-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.download-banner h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.download-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.version-info {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.version-badge {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===== SCREENSHOT ===== */
.screenshot-section {
  background: linear-gradient(180deg, #f0f4f8 0%, #fff 100%);
}

.screenshot-wrap {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

.screenshot-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: #e8eaed;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.screenshot-wrap img {
  width: 100%;
  position: relative;
  z-index: 0;
}

/* ===== VERSION LIST ===== */
.version-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.version-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.version-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,106,138,0.08);
}

.version-item.latest { border-left: 4px solid var(--accent); }

.version-meta {}

.version-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.version-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.version-size {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== STEPS ===== */
.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 32px;
}

.step-item:last-child { padding-bottom: 0; }

.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
}

.step-num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30,106,138,0.3);
  z-index: 1;
}

.step-content { padding-top: 12px; }

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--primary); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.faq-q-text {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  color: var(--primary);
  font-size: 1rem;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 22px 20px;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-inner span { color: var(--text); font-weight: 500; }
.breadcrumb-sep { color: #ccc; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0f2235 0%, #1a3a52 100%);
  padding: 52px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== INFO BOX ===== */
.info-box {
  background: rgba(30,106,138,0.07);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.info-box p { font-size: 0.92rem; color: var(--text); margin: 0; }

.warn-box {
  background: rgba(230,126,34,0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.warn-box p { font-size: 0.92rem; color: var(--text); margin: 0; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.highlight-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.highlight-card .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.highlight-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  z-index: 99;
}

#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s, transform 0.55s; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 160px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .main-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a { padding: 10px 14px; width: 100%; }

  .hero { min-height: auto; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

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

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

  .version-list { grid-template-columns: 1fr; }

  .highlight-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .section { padding: 48px 0; }

  .step-item { grid-template-columns: 52px 1fr; }
}

/* ===== TUTORIAL PAGE ===== */
.tutorial-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  align-items: start;
}

.tutorial-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.sidebar-nav {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-nav h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 16px 18px 10px;
}

.sidebar-nav ul { list-style: none; padding-bottom: 12px; }

.sidebar-nav ul li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav ul li a:hover { background: var(--bg); color: var(--primary); border-left-color: var(--primary-light); }
.sidebar-nav ul li a.active { background: rgba(30,106,138,0.06); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.tutorial-content {}

.tutorial-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
}

.tutorial-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--bg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutorial-section h2 .icon { font-size: 1.2rem; }

.tutorial-section p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.85; margin-bottom: 14px; }

.tutorial-section ul, .tutorial-section ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.9;
  margin-bottom: 14px;
}

.code-block {
  background: #1a2535;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  color: #7cc8e8;
  overflow-x: auto;
  margin: 14px 0;
  line-height: 1.7;
}

.img-demo {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .tutorial-layout { grid-template-columns: 1fr; }
  .tutorial-sidebar { position: static; }
  .tutorial-section { padding: 22px 18px; }
}

/* ===== DOWNLOAD MODAL ===== */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(2px);
}
.download-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.download-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px 30px 26px;
  max-width: 400px;
  width: 92vw;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 56px rgba(0,0,0,0.28);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
.download-modal-overlay.open .download-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.modal-close:hover { background: #f3f4f6; color: #333; }

.download-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 18px;
}

/* QR Code wrapper with animated glow */
.qrcode-wrapper {
  display: inline-block;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
  animation: qrcode-glow 2.4s ease-in-out infinite;
}

.qrcode-wrapper .qrcode-img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 8px;
}

@keyframes qrcode-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(230,126,34,0.22), 0 0 14px rgba(230,126,34,0.06); }
  50% { box-shadow: 0 0 14px rgba(230,126,34,0.40), 0 0 26px rgba(230,126,34,0.12); }
}

.download-modal-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 14px;
  margin-bottom: 2px;
  line-height: 1.6;
}
.download-modal-text strong { color: #1f2937; }

.download-modal-sub {
  font-size: 0.84rem;
  color: #16a34a;
  margin-bottom: 10px;
  font-weight: 500;
}

.download-modal-warn {
  font-size: 0.78rem;
  color: #e67e22;
  background: rgba(230,126,34,0.05);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  line-height: 1.6;
  border: 1px solid rgba(230,126,34,0.12);
}

.download-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.download-modal-actions .btn {
  width: 100%;
  justify-content: center;
}
