:root {
  --bg-dark: #0f1115;
  --bg-panel: #181b22;
  --bg-card: #20242d;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #10b981;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #2d333f;
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }
button { cursor: pointer; font-family: inherit; border: none; }
.mono { font-family: var(--font-mono); }

/* 顶栏 */
.top-bar { position: sticky; top: 0; z-index: 100; background: rgba(15, 17, 21, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 18px; white-space: nowrap; }
.logo-area img { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font-size: 14px; color: var(--text-muted); padding: 6px 12px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--border); white-space: nowrap; transition: 0.2s; }
.nav-links a:hover { color: var(--text-main); border-color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.search-box { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 20px; padding: 6px 16px; color: var(--text-main); display: flex; align-items: center; font-size: 13px; width: 160px; }
.search-box input { background: transparent; border: none; color: var(--text-main); outline: none; width: 100%; margin-left: 6px; }
.btn-dl-top { background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: 0.2s; }
.btn-dl-top:hover { background: var(--primary-hover); }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 24px; max-width: 1200px; margin: 0 auto; align-items: center; }
.chat-window { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; }
.chat-window::before { content: ''; position: absolute; top: -1px; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.chat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; border: 1px solid var(--primary); font-size: 20px; }
.chat-bubble { background: var(--bg-card); padding: 16px; border-radius: 0 12px 12px 12px; font-size: 16px; color: var(--text-main); line-height: 1.7; margin-bottom: 24px; position: relative; }
.chat-bubble h1 { font-size: 24px; margin-bottom: 12px; color: var(--text-main); }
.chat-data { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; }
.chat-data span { color: var(--accent); }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; justify-content: center; }
.btn-large { flex: 1; text-align: center; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.btn-android { background: var(--accent); color: #fff; }
.btn-ios { background: #f3f4f6; color: #0f1115; }
.btn-large:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.hero-gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.hero-card { flex: 0 0 180px; scroll-snap-align: start; background: var(--bg-card); border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.hero-card img { width: 100%; height: 260px; object-fit: cover; }
.hero-card .tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.7); font-size: 11px; padding: 4px 8px; border-radius: 4px; color: var(--accent); font-family: var(--font-mono); }

/* 通用区块 */
.section { padding: 60px 24px; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.section-intro { font-size: 15px; color: var(--text-muted); max-width: 600px; margin-top: 8px; }
h2 { font-size: 28px; color: var(--text-main); }
h3 { font-size: 18px; margin-bottom: 12px; color: var(--text-main); }

/* 成品墙 */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.wall-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; position: relative; transition: 0.3s; border: 1px solid var(--border); }
.wall-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.wall-card img { width: 100%; height: 280px; object-fit: cover; }
.wall-info { padding: 12px; }
.wall-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.param-tag { background: var(--bg-dark); border: 1px solid var(--border); font-size: 11px; padding: 2px 6px; border-radius: 4px; color: var(--text-muted); font-family: var(--font-mono); }
.param-panel { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(15, 17, 21, 0.95); padding: 12px; transform: translateY(100%); transition: 0.3s; border-top: 1px solid var(--primary); }
.wall-card:hover .param-panel { transform: translateY(0); }
.param-panel p { font-size: 12px; color: var(--text-main); margin-bottom: 4px; font-family: var(--font-mono); }
.param-panel .highlight { color: var(--accent); }

/* 更新队列 */
.queue-timeline { display: flex; flex-direction: column; gap: 24px; }
.queue-batch { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.queue-batch.active { border-color: var(--accent); box-shadow: 0 0 15px rgba(16, 185, 129, 0.1); }
.batch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.batch-time { font-size: 16px; font-family: var(--font-mono); font-weight: bold; color: var(--primary); }
.batch-status { font-size: 13px; padding: 4px 10px; border-radius: 12px; background: var(--bg-card); }
.batch-status.done { color: var(--accent); }
.batch-status.waiting { color: var(--text-muted); }
.batch-status.running { color: #f59e0b; display: flex; align-items: center; gap: 4px; }
.queue-dots::after { content: '...'; animation: dots 1.5s infinite steps(4); display: inline-block; width: 12px; text-align: left; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0%, 100% { width: 0; } 25% { width: 4px; } 50% { width: 8px; } 75% { width: 12px; } }
.batch-items { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.queue-item { flex: 0 0 100px; position: relative; }
.queue-item img { width: 100px; height: 140px; object-fit: cover; border-radius: 8px; }
.queue-item-title { font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-ep { font-size: 10px; color: var(--accent); position: absolute; bottom: 22px; left: 4px; right: 4px; background: rgba(0,0,0,0.7); text-align: center; border-radius: 4px; padding: 2px; }
.queue-progress { height: 3px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.queue-progress span { display: block; height: 100%; background: var(--accent); width: 100%; }
.queue-progress.waiting span { background: var(--text-muted); width: 0; }
.queue-progress.running span { background: #f59e0b; width: 50%; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.5; } }

/* 排行榜 */
.rank-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; background: var(--bg-panel); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.rank-table th, .rank-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.rank-table th { background: var(--bg-card); color: var(--text-muted); font-weight: normal; border-bottom: 2px solid var(--border); }
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr:hover { background: rgba(59, 130, 246, 0.05); }
.rank-table .top-1 { background: rgba(59, 130, 246, 0.1); border-left: 4px solid var(--primary); }
.rank-table .top-1 td { color: #fff; font-weight: bold; }
.rank-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 12px; background: var(--bg-dark); color: var(--text-muted); margin-right: 8px; }
.rank-badge.gold { background: #b45309; color: #fff; }
.rank-badge.silver { background: #6b7280; color: #fff; }
.rank-badge.bronze { background: #92400e; color: #fff; }
.rank-cover { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 12px; }
.rank-trend { font-size: 12px; color: var(--accent); }
.rank-trend.down { color: #ef4444; }

/* 模型库 */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.model-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: relative; overflow: hidden; transition: 0.3s; }
.model-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.model-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.model-version { font-family: var(--font-mono); font-size: 12px; color: var(--primary); background: rgba(59, 130, 246, 0.1); padding: 2px 6px; border-radius: 4px; }
.model-stat { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.model-covers { display: flex; gap: 8px; margin-bottom: 16px; }
.model-covers img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; }
.model-load-bar { height: 2px; background: var(--border); position: absolute; bottom: 0; left: 0; right: 0; overflow: hidden; }
.model-load-bar span { display: block; height: 100%; background: var(--primary); width: 0; transition: width 0.5s ease-in-out; }
.model-card:hover .model-load-bar span { width: 100%; }
.btn-load { display: block; text-align: center; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-main); padding: 8px; border-radius: 6px; font-size: 13px; transition: 0.2s; }
.model-card:hover .btn-load { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 独播区 */
.exclusive-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.exclusive-main { background: linear-gradient(145deg, var(--bg-panel), var(--bg-dark)); border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: relative; border-left: 4px solid var(--accent); }
.exclusive-main img { width: 100%; border-radius: 8px; margin-bottom: 20px; }
.excl-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.excl-countdown { display: flex; gap: 8px; margin-bottom: 24px; }
.countdown-box { background: var(--bg-dark); border: 1px solid var(--border); padding: 8px 12px; border-radius: 6px; font-family: var(--font-mono); font-size: 18px; color: var(--accent); font-weight: bold; }
.btn-booking { width: 100%; background: var(--accent); color: #fff; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: bold; transition: 0.2s; }
.btn-booking:hover { background: #059669; }
.excl-badge { position: absolute; top: 24px; right: 24px; background: rgba(0,0,0,0.7); font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--accent); color: var(--accent); }
.exclusive-list { display: flex; flex-direction: column; gap: 16px; }
.excl-item { display: flex; gap: 16px; align-items: center; background: var(--bg-card); padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.excl-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; }
.excl-item-info p { font-size: 14px; font-weight: 500; }
.excl-item-info span { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

/* 免费专区 */
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.free-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.free-card img { width: 100%; height: 240px; object-fit: cover; }
.free-tag { position: absolute; top: 8px; right: 8px; background: #ef4444; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.free-info { padding: 12px; }
.free-info p { font-size: 14px; font-weight: 500; }
.free-info span { font-size: 12px; color: var(--text-muted); }
.scanline { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.free-card:hover .scanline { opacity: 1; animation: scan 1.5s linear infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* 互动工作台 */
.workbench { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.slider-group { margin-bottom: 24px; }
.slider-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; font-family: var(--font-mono); }
.slider-label span:last-child { color: var(--primary); }
input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; background: var(--border); border-radius: 3px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.gen-cards { display: flex; gap: 16px; margin-top: 32px; overflow-x: auto; min-height: 160px; padding-bottom: 10px; }
.gen-card { flex: 0 0 100px; background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; }
.gen-card.flash { animation: flashAnim 0.5s; }
@keyframes flashAnim { 0% { opacity: 0.5; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }
.gen-card img { width: 100%; height: 140px; object-fit: cover; }
.gen-card p { font-size: 12px; padding: 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-generate { background: var(--primary); color: #fff; padding: 14px 24px; border-radius: 8px; font-size: 16px; font-weight: bold; margin-top: 24px; width: 100%; transition: 0.2s; }
.btn-generate:hover { background: var(--primary-hover); }

/* 评价 */
.stats-bar { display: flex; justify-content: space-around; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 32px; }
.stat-item { text-align: center; }
.stat-num { font-size: 32px; font-family: var(--font-mono); color: var(--primary); font-weight: bold; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.log-timeline { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; position: relative; }
.log-timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.log-item { display: flex; gap: 16px; position: relative; padding-left: 40px; }
.log-item::before { content: ''; position: absolute; left: 14px; top: 20px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; border: 2px solid var(--bg-dark); }
.log-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; flex: 1; }
.log-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.log-time { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.log-user { display: flex; align-items: center; gap: 8px; }
.log-user img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #fff; }
.log-user span { font-size: 13px; color: var(--text-main); }
.log-stars { color: #fbbf24; font-size: 12px; }
.log-text { font-size: 14px; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { display: flex; flex-direction: column; gap: 12px; }
.faq-q { background: var(--bg-card); border: 1px solid var(--border); padding: 16px; border-radius: 12px 12px 12px 0; font-size: 15px; align-self: flex-start; max-width: 80%; cursor: pointer; transition: 0.2s; }
.faq-q:hover { border-color: var(--primary); }
.faq-a { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); padding: 16px; border-radius: 12px 12px 0 12px; font-size: 14px; align-self: flex-end; max-width: 80%; color: var(--text-main); font-family: var(--font-mono); }
.faq-help { text-align: center; margin-top: 32px; font-size: 14px; color: var(--text-muted); }
.faq-help a { color: var(--primary); cursor: pointer; }

/* 下载区 */
.download-section { background: linear-gradient(180deg, var(--bg-panel), var(--bg-dark)); padding: 80px 24px; border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-card h3 { font-size: 18px; margin-bottom: 12px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.dl-cards { display: flex; gap: 40px; justify-content: center; max-width: 800px; margin: 0 auto; }
.dl-card { flex: 1; background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; transition: 0.3s; }
.dl-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.dl-card-icon { font-size: 48px; margin-bottom: 16px; }
.dl-card h3 { font-size: 20px; margin-bottom: 8px; }
.dl-card-meta { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 24px; }
.btn-download-big { display: block; width: 100%; padding: 16px; border-radius: 8px; font-size: 16px; font-weight: bold; text-align: center; transition: 0.2s; }
.dl-android .btn-download-big { background: var(--accent); color: #fff; }
.dl-ios .btn-download-big { background: #fff; color: #000; }
.btn-download-big:hover { opacity: 0.9; }

/* 页脚 */
footer { text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
footer a { color: var(--text-muted); transition: 0.2s; }
footer a:hover { color: var(--text-main); }
.footer-time { margin-top: 8px; font-family: var(--font-mono); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-gallery { justify-content: center; }
  .exclusive-container { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .dl-cards { flex-direction: column; gap: 20px; }
}
@media (max-width: 768px) {
  .top-bar { flex-wrap: wrap; padding: 12px 16px; }
  .nav-links { order: 3; width: 100%; margin-top: 12px; padding-bottom: 4px; }
  .search-box { display: none; }
  .hero { padding: 32px 16px; gap: 24px; }
  .hero-actions { flex-direction: column; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-table th:nth-child(3), .rank-table td:nth-child(3) { display: none; }
  .model-grid { grid-template-columns: 1fr; }
  .free-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { flex-direction: column; gap: 16px; }
  .log-timeline::before { left: 10px; }
  .log-item { padding-left: 24px; }
  .log-item::before { left: 4px; }
  .faq-q, .faq-a { max-width: 100%; }
}