:root {
  --bg: #f8faff;
  --panel: #ffffff;
  --ink: #1a1e2d;
  --muted: #6b7280;
  --line: #e2e8f0;
  --blue: #2563eb;
  --purple: #7c3aed;
  --grad: linear-gradient(135deg, #2563eb, #7c3aed);
  --green: #10b981;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --shadow: 0 10px 30px rgba(37,99,235,0.08);
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image: 
    linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Shared */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sec { padding: 60px 0; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sec-head h2 { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -0.5px; }
.dot-live { width: 10px; height: 10px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 0 rgba(16,185,129,0.7); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.mono { font-family: var(--mono); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 24px;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.2s;
  border: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Nav */
.header-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 20px; overflow-x: auto; flex: 1; margin: 0 20px; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Hero */
.hero { padding: 40px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.chat-window { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.chat-header { background: #f8faff; padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.chat-body { padding: 24px; }
.chat-body h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.chat-body p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.stats-row { display: flex; gap: 20px; border-top: 1px dashed var(--line); padding-top: 16px; margin-bottom: 20px; }
.stat-item { display: flex; flex-direction: column; }
.stat-val { font-size: 20px; font-weight: 700; color: var(--blue); }
.stat-label { font-size: 12px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .btn { flex: 1; }

.hero-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; perspective: 1000px; }
.feed-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); animation: flyIn 0.6s ease-out both; }
.feed-card:nth-child(2) { animation-delay: 0.1s; }
.feed-card:nth-child(3) { animation-delay: 0.2s; }
.feed-card:nth-child(4) { animation-delay: 0.3s; }
.feed-card:nth-child(5) { animation-delay: 0.4s; }
.feed-card:nth-child(6) { animation-delay: 0.5s; }
@keyframes flyIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
.feed-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.badge-time { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; backdrop-filter: blur(4px); }

/* Works Grid */
.work-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.work-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: all 0.3s; position: relative; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.work-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.work-info { padding: 12px; }
.work-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 10px; padding: 2px 6px; background: #eef2ff; color: var(--blue); border-radius: 4px; font-family: var(--mono); }

/* Queue */
.queue-list { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.batch { margin-bottom: 24px; }
.batch:last-child { margin-bottom: 0; }
.batch-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.batch-time { font-family: var(--mono); font-weight: 700; color: var(--blue); background: #eef2ff; padding: 4px 8px; border-radius: 4px; }
.batch-status { font-size: 13px; color: var(--muted); }
.batch-status.active { color: var(--green); font-weight: 600; }
.queue-items { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.queue-item { flex: 0 0 100px; }
.queue-item img { width: 100px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.q-title { font-size: 12px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-ep { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.progress-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); width: 100%; }

/* Rank */
.rank-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.rank-table th, .rank-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank-table th { background: #f8faff; font-weight: 600; color: var(--muted); font-size: 13px; }
.rank-table tr.top1 { background: linear-gradient(90deg, rgba(37,99,235,0.05), transparent); font-weight: 600; }
.rank-table td.mono { font-family: var(--mono); }
.rank-img { width: 32px; height: 42px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; }
.rank-up { color: var(--green); }
.rank-down { color: #ef4444; }

/* Models */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; transition: all 0.3s; display: flex; flex-direction: column; }
.model-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.model-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.model-name { font-weight: 700; font-size: 15px; }
.model-ver { font-family: var(--mono); font-size: 12px; color: var(--muted); background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.model-covers { display: flex; gap: 8px; margin-bottom: 12px; }
.model-covers img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; }
.model-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 12px; color: var(--muted); }
.model-btn { font-size: 12px; color: var(--blue); font-weight: 600; cursor: pointer; }

/* Exclusive */
.exclusive-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; }
.exclusive-main { background: #fff; border: 2px solid transparent; background-clip: padding-box; border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow); }
.exclusive-main::before { content: ''; position: absolute; inset: -2px; z-index: -1; background: var(--grad); border-radius: calc(var(--radius) + 2px); }
.ex-main-img { width: 100%; max-width: 200px; margin: 0 auto 16px; border-radius: 12px; object-fit: cover; aspect-ratio: 3/4; }
.ex-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.ex-desc { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 20px; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.cd-box { background: #1a1e2d; color: #fff; font-family: var(--mono); padding: 8px 12px; border-radius: 6px; font-size: 18px; font-weight: 700; }
.ex-list { display: flex; flex-direction: column; gap: 12px; }
.ex-item { display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.ex-item img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; }
.ex-item-info { flex: 1; }
.ex-item-name { font-weight: 600; font-size: 14px; }
.ex-item-date { font-size: 12px; color: var(--muted); }

/* Free */
.free-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.free-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.free-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.free-badge { position: absolute; top: 8px; right: 8px; background: var(--green); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.free-info { padding: 12px; }

/* Tuning */
.tuner-panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.slider-group { margin-bottom: 20px; }
.slider-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input[type=range] { width: 100%; -webkit-appearance: none; height: 8px; background: var(--line); border-radius: 4px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; background: var(--blue); border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.tuner-actions { display: flex; justify-content: center; margin-top: 24px; }

/* Feedback */
.log-track { position: relative; padding-left: 20px; }
.log-track::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.log-item { position: relative; margin-bottom: 24px; padding-left: 20px; }
.log-item::before { content: ''; position: absolute; left: -19px; top: 6px; width: 10px; height: 10px; background: var(--blue); border-radius: 50%; border: 2px solid #fff; }
.log-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); }
.log-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.log-content { background: #fff; padding: 12px 16px; border-radius: 0 12px 12px 12px; border: 1px solid var(--line); font-size: 14px; }
.stars { color: #f59e0b; font-size: 12px; letter-spacing: 2px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.faq-q { padding: 16px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #f8faff; }
.faq-a { padding: 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); display: none; }
.faq-item.active .faq-a { display: block; }

/* Deploy */
.deploy-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.step-card { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; border: 1px solid var(--line); }
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--muted); }
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.dl-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 32px 24px; text-align: center; transition: all 0.2s; }
.dl-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.dl-card h3 { font-size: 20px; margin-bottom: 8px; }
.dl-card p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.dl-card .btn { width: 100%; height: 56px; font-size: 18px; }

/* Footer */
footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 20px; font-size: 13px; color: var(--muted); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.f-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.f-brand img { height: 28px; }
.f-links h4 { font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.f-links ul { display: flex; flex-direction: column; gap: 8px; }
.f-links a:hover { color: var(--blue); }
.f-bottom { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; font-size: 12px; line-height: 2; }
.f-bottom a { color: var(--muted); }
.f-bottom a:hover { color: var(--blue); text-decoration: underline; }

/* Mobile Bar */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px; z-index: 100; box-shadow: 0 -4px 12px rgba(0,0,0,0.05); }
.mobile-bar .btn { flex: 1; height: 44px; font-size: 15px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .exclusive-layout { grid-template-columns: 1fr; }
  .work-grid, .model-grid, .free-grid { grid-template-columns: repeat(3, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .btn { display: none; }
  .hero-feed { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .model-grid, .free-grid { grid-template-columns: repeat(2, 1fr); }
  .deploy-steps { grid-template-columns: 1fr; }
  .dl-cards { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; gap: 24px; }
  .mobile-bar { display: flex; gap: 12px; }
  body { padding-bottom: 68px; }
  .sec-head h2 { font-size: 20px; }
  .rank-table th:nth-child(4), .rank-table td:nth-child(4) { display: none; }
}