﻿/* ══════════════════════════════════════
   CSS 变量 & 重置
══════════════════════════════════════ */
:root {
  --ink:        #0a0c14;
  --ink2:       #111422;
  --ink3:       #1a1e30;
  --surface:    #1e2235;
  --surface2:   #252a40;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.13);
  --gold:       #f0c040;
  --gold2:      #d4a520;
  --gold-dim:   rgba(240,192,64,0.12);
  --red:        #e53935;
  --red-dim:    rgba(229,57,53,0.12);
  --blue:       #1976d2;
  --blue-dim:   rgba(25,118,210,0.12);
  --green:      #2e7d32;
  --text:       #e8e8f0;
  --text2:      #9fa3b8;
  --text3:      #6b6f85;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(240,192,64,0.06) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ══════════════════════════════════════
   通用组件
══════════════════════════════════════ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(240,192,64,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--gold); }

.section-sub { font-size: 16px; color: var(--text2); max-width: 560px; line-height: 1.8; }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a1200;
  box-shadow: 0 4px 20px rgba(240,192,64,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240,192,64,0.5);
  filter: brightness(1.08);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: var(--surface); border-color: rgba(255,255,255,0.25); }
.btn-lg { font-size: 17px; padding: 16px 36px; border-radius: var(--radius-lg); }

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* 彩球 */
.ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px;
}
.ball-red   { background: var(--red); color: #fff; }
.ball-blue  { background: var(--blue); color: #fff; }
.ball-gold  { background: var(--gold); color: #1a1200; }

/* ══════════════════════════════════════
   导航
══════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(10,12,20,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 700; color: var(--text);
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text2); transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.nav-drawer {
  display: none; flex-direction: column; gap: 0;
  background: var(--ink2); border-top: 1px solid var(--border); padding: 16px 0 20px;
}
.nav-drawer a { font-size: 15px; color: var(--text2); padding: 12px 24px; display: block; transition: background var(--transition), color var(--transition); }
.nav-drawer a:hover { background: var(--surface); color: var(--text); }
.nav-drawer .btn { margin: 12px 24px 0; justify-content: center; }
.nav-drawer.open { display: flex; }

/* ══════════════════════════════════════
   Hero
══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 80px; position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
#hero::after {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(240,192,64,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 1; padding: 60px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid rgba(240,192,64,0.3); border-radius: 100px;
  padding: 6px 16px 6px 8px; font-size: 13px; color: var(--gold);
  margin-bottom: 28px; animation: fadeUp 0.6s ease both;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 2s ease infinite; }

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

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(40px, 7vw, 80px); font-weight: 900; line-height: 1.1;
  margin-bottom: 24px; animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title-line1 { color: var(--text); display: block; }
.hero-title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--gold) 20%, #fff8e1 60%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: clamp(15px, 2vw, 18px); color: var(--text2); max-width: 560px; margin-bottom: 40px; line-height: 1.9; animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; margin-bottom: 60px; }
.hero-stats { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; animation: fadeUp 0.6s 0.4s ease both; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text3); letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border2); }

.hero-visual { position: relative; animation: fadeUp 0.8s 0.2s ease both; }
.hero-screen {
  background: var(--ink2); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}
.screen-bar { background: var(--ink3); padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.screen-dot { width: 10px; height: 10px; border-radius: 50%; }
.screen-title { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text3); margin-left: 8px; }

.trend-table { width: 100%; border-collapse: collapse; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.trend-table th { background: var(--surface); color: var(--gold); padding: 6px 4px; text-align: center; font-weight: 700; border: 1px solid var(--border); font-size: 10px; }
.trend-table td { padding: 5px 3px; text-align: center; border: 1px solid var(--border); color: var(--text2); position: relative; }
.trend-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.hit { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; }
.hit-r { background: var(--red); color: #fff; }
.hit-b { background: var(--blue); color: #fff; }
.hit-p { background: #7b1fa2; color: #fff; }
.hit-o { background: #e65100; color: #fff; }
.hit-t { background: #00796b; color: #fff; }

.screen-footer { background: var(--ink3); border-top: 1px solid var(--border); padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; }
.countdown-preview { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text2); }
.countdown-num { color: var(--gold); font-weight: 700; }

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

/* ══════════════════════════════════════
   彩种支持
══════════════════════════════════════ */
#lottery-types { background: var(--ink2); }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.type-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: var(--transition); position: relative; overflow: hidden;
}
.type-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.type-card.pl3::before  { background: linear-gradient(90deg, var(--red), #ef5350); }
.type-card.pl5::before  { background: linear-gradient(90deg, #1976d2, #42a5f5); }
.type-card.dlt::before  { background: linear-gradient(90deg, var(--gold), #ffca28); }
.type-card.qxc::before  { background: linear-gradient(90deg, #f57c00, #ffb300); }
.type-card.ssq::before  { background: linear-gradient(90deg, #7b1fa2, #ba68c8); }
.type-card.qlc::before  { background: linear-gradient(90deg, #00796b, #26a69a); }
.type-card.fc3d::before { background: linear-gradient(90deg, #e65100, #ff7043); }
.type-card.kl8::before  { background: linear-gradient(90deg, #0277bd, #29b6f6); }
.type-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: var(--shadow); }

/* ★ 图片图标 */
.type-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  overflow: hidden;
}
.type-icon img {
  width: 32px; height: 32px;
  object-fit: contain;
  display: block;
}
/* 没有图片时的 SVG 内联图标 */
.type-icon svg { width: 30px; height: 30px; }

.type-name { font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.type-sub { font-size: 12px; color: var(--text3); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em; margin-bottom: 12px; }
.type-desc { font-size: 14px; color: var(--text2); line-height: 1.7; }
.type-tag { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 100px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; }
.tag-hot  { background: var(--red-dim); color: var(--red); border: 1px solid rgba(229,57,53,0.2); }
.tag-new  { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(240,192,64,0.2); }
.tag-live { background: rgba(46,125,50,0.15); color: #66bb6a; border: 1px solid rgba(46,125,50,0.25); }

/* ══════════════════════════════════════
   核心功能
══════════════════════════════════════ */
#features .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.feat-card:hover { border-color: rgba(240,192,64,0.2); box-shadow: 0 0 0 1px rgba(240,192,64,0.06), var(--shadow); }
.feat-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.feat-title { font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat-desc { font-size: 14px; color: var(--text2); line-height: 1.8; }

/* ══════════════════════════════════════
   安装步骤
══════════════════════════════════════ */
#install { background: var(--ink2); }
.install-tabs { display: flex; gap: 8px; margin-bottom: 40px; background: var(--surface); padding: 6px; border-radius: var(--radius-lg); width: fit-content; }
.tab-btn { font-family: 'Noto Sans SC', sans-serif; font-size: 14px; font-weight: 500; padding: 10px 24px; border-radius: var(--radius); border: none; cursor: pointer; transition: var(--transition); color: var(--text2); background: transparent; }
.tab-btn.active { background: var(--gold); color: #1a1200; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 24px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border); position: relative; }
.step-item:last-child { border-bottom: none; }
.step-num { flex-shrink: 0; width: 44px; height: 44px; background: var(--gold-dim); border: 1px solid rgba(240,192,64,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700; color: var(--gold); }
.step-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.step-desc { font-size: 14px; color: var(--text2); line-height: 1.8; }
.step-tip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: var(--blue-dim); border: 1px solid rgba(25,118,210,0.2); border-radius: 8px; padding: 8px 14px; font-size: 13px; color: #90caf9; }
.code-inline { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: var(--ink3); border: 1px solid var(--border2); border-radius: 6px; padding: 2px 8px; color: var(--gold); }
.warn-block { background: rgba(229,57,53,0.06); border: 1px solid rgba(229,57,53,0.2); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: #ef9a9a; margin-top: 12px; line-height: 1.7; }

/* ══════════════════════════════════════
   价格
══════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; transition: var(--transition); position: relative; }
.price-card.popular { border-color: rgba(240,192,64,0.4); background: linear-gradient(160deg, var(--surface2) 0%, var(--surface) 100%); box-shadow: 0 0 0 1px rgba(240,192,64,0.1), var(--shadow); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1200; font-size: 12px; font-weight: 700; padding: 4px 20px; border-radius: 100px; white-space: nowrap; font-family: 'Noto Sans SC', sans-serif; }
.price-plan-name { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.15em; color: var(--text3); text-transform: uppercase; margin-bottom: 8px; }
.price-plan-title { font-family: 'Noto Serif SC', serif; font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.price-amount { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 8px; }
.price-currency { font-size: 18px; color: var(--text2); padding-bottom: 6px; }
.price-num { font-family: 'JetBrains Mono', monospace; font-size: 48px; font-weight: 700; line-height: 1; color: var(--text); }
.price-card.popular .price-num { color: var(--gold); }
.price-period { font-size: 14px; color: var(--text3); padding-bottom: 10px; }
.price-desc { font-size: 13px; color: var(--text3); margin-bottom: 28px; line-height: 1.7; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price-feat-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text2); }
.feat-check { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; margin-top: 2px; }
.check-yes { background: rgba(46,125,50,0.2); color: #66bb6a; }
.check-no  { background: rgba(255,255,255,0.05); color: var(--text3); }
.price-note { font-size: 12px; color: var(--text3); text-align: center; margin-top: 12px; }

/* ══════════════════════════════════════
   使用说明
══════════════════════════════════════ */
#howto { background: var(--ink2); }
.howto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.howto-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); }
.howto-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.howto-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.howto-num::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.howto-title { font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.howto-list { display: flex; flex-direction: column; gap: 10px; }
.howto-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text2); line-height: 1.7; }
.howto-bullet { flex-shrink: 0; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-top: 8px; }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.faq-item.open { border-color: rgba(240,192,64,0.2); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text); user-select: none; }
.faq-q:hover { color: var(--gold); }
.faq-icon { flex-shrink: 0; width: 24px; height: 24px; background: var(--gold-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--gold); transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 16px 24px 20px; font-size: 14px; color: var(--text2); line-height: 1.9; border-top: 1px solid var(--border); }
.faq-item.open .faq-a { max-height: 300px; }

/* ══════════════════════════════════════
   ★ 演示区 — 实机截图画廊
══════════════════════════════════════ */
#demo { background: var(--ink); }

/* 分类筛选按钮 */
.demo-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.demo-filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
}
.demo-filter-btn.active,
.demo-filter-btn:hover {
  background: var(--gold);
  color: #1a1200;
  border-color: var(--gold);
}

/* 画廊网格 */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.demo-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 16 / 10;   /* 电视比例 */
}
/* 手机截图用竖向比例 */
.demo-item.phone {
  aspect-ratio: 9 / 16;
}
/* 大图横跨2列 */
.demo-item.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.demo-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(240,192,64,0.15), var(--shadow-lg);
}

/* 截图图片 */
.demo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.demo-item:hover img { transform: scale(1.03); }

/* 占位框（未放图片时显示） */
.demo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  color: var(--text3);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}
.demo-placeholder-icon { font-size: 32px; opacity: 0.4; }
.demo-placeholder-text { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; opacity: 0.5; }

/* hover遮罩 + 放大图标 */
.demo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}
.demo-item:hover .demo-overlay { opacity: 1; }

.demo-overlay-icon {
  width: 48px; height: 48px;
  background: rgba(240,192,64,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #1a1200;
}

.demo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  pointer-events: none;
}
.demo-cap-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--gold);
  margin-bottom: 6px;
}
.demo-cap-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* ══════ Lightbox 灯箱 ══════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  display: block;
}
.lightbox-cap {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }

.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(30,34,53,0.8);
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.lightbox-nav:hover { background: var(--gold); color: #1a1200; border-color: var(--gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text3);
  background: rgba(0,0,0,0.5);
  padding: 4px 14px;
  border-radius: 100px;
}

/* ══════════════════════════════════════
   联系
══════════════════════════════════════ */
#contact { background: var(--ink2); }
.contact-box {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid rgba(240,192,64,0.2);
  border-radius: var(--radius-lg);
  padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.contact-box::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(240,192,64,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.contact-title { font-family: 'Noto Serif SC', serif; font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; margin-bottom: 16px; }
.contact-desc { font-size: 15px; color: var(--text2); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.contact-channels { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.channel-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 14px 24px; font-size: 14px; color: var(--text); transition: var(--transition); cursor: pointer; }
.channel-btn:hover { border-color: rgba(240,192,64,0.3); background: var(--surface2); }
.channel-icon { font-size: 20px; }

/* ══════════════════════════════════════
   页脚
══════════════════════════════════════ */
footer { background: var(--ink); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: var(--text3); line-height: 1.8; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--text3); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: var(--text3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--text3); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 20px; padding: 16px 20px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; color: var(--text3); line-height: 1.8; }

/* 回顶 */
#toTop {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--gold); color: #1a1200;
  border: none; border-radius: 50%; cursor: pointer; font-size: 18px;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(240,192,64,0.4); transition: var(--transition); z-index: 100;
}
#toTop:hover { transform: translateY(-3px); }
#toTop.visible { display: flex; }

/* ══════════════════════════════════════
   滚动动画
══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════
   响应式
══════════════════════════════════════ */
@media (max-width: 1024px) {
  #features .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-item.wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  #hero { padding-top: 64px; }
  .hero-stats { gap: 24px; }
  #features .features-grid { grid-template-columns: 1fr; }
  .howto-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .install-tabs { width: 100%; }
  .tab-btn { flex: 1; text-align: center; padding: 10px 12px; font-size: 13px; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-item.wide { grid-column: span 2; }
  .lightbox-nav { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(32px, 10vw, 48px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
  .stat-divider { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-item.wide { grid-column: span 1; aspect-ratio: 16 / 9; }
  .demo-item.phone { aspect-ratio: 9 / 16; }
}

/* ══════════════════════════════════════
   演示图片修复：referrerpolicy + 自适应
══════════════════════════════════════ */

/* 图片填满容器，自适应裁剪，不变形 */
.demo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
  position: absolute;
  top: 0; left: 0;
}
.demo-item:hover img { transform: scale(1.03); }

/* phone 类竖图居中裁剪 */
.demo-item.phone img {
  object-position: center center;
}

/* 让容器相对定位，图片绝对撑满 */
.demo-item {
  position: relative;
}

/* 加载失败的占位也绝对定位覆盖 */
.demo-placeholder-fallback {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.qr-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.qr-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  animation: scaleIn 0.25s ease;
}

.qr-box img {
  width: 200px;
  height: 200px;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
