:root {
  --bg: #ffffff;
  --bg-light: #f7f9fc;
  --text: #1e293b;
  --text-light: #64748b;
  --blue: #2563eb;
  --purple: #7c3aed;
  --grad: linear-gradient(135deg, #2563eb, #7c3aed);
  --border: #e2e8f0;
  --green: #10b981;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.9); }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.section-header h2 { font-size: 24px; font-weight: 700; }
.status-dot { 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 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Nav */
.top-nav { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.logo img { height: 32px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; color: var(--text-light); }
.nav-links a:hover { color: var(--blue); }
.nav-search { display: flex; align-items: center; background: var(--bg-light); border: 1px solid var(--border); border-radius: 20px; padding: 6px 16px; }
.nav-search input { border: none; background: transparent; outline: none; font-size: 14px; width: 120px; }
.btn-download-nav { background: var(--grad); color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }

/* Hero */
.hero { padding: 80px 0; background: transparent; border-bottom: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-chat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; }
.hero-chat::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px; background: var(--grad); border-radius: var(--radius) var(--radius) 0 0; }
h1 { font-size: 32px; line-height: 1.3; margin-bottom: 16px; }
.hook-sub { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }
.data-row { display: flex; gap: 20px; font-family: var(--mono); font-size: 14px; border-top: 1px solid var(--border); padding-top: 20px; margin-bottom: 24px; }
.data-item span { display: block; font-size: 12px; color: var(--text-light); }
.data-val { font-weight: 700; color: var(--blue); font-size: 18px; }
.hero-btns { display: flex; gap: 16px; }
.btn-primary { background: var(--grad); color: #fff; padding: 14px 32px; border-radius: 28px; font-size: 16px; font-weight: 600; text-align: center; flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.btn-primary:active { transform: scale(0.98); }
.hero-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cover-card { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.cover-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tag-just { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,0.7); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; backdrop-filter: blur(4px); }

/* Sections Common */
.section-intro { font-size: 15px; color: var(--text-light); max-width: 700px; margin-bottom: 30px; background: var(--bg-light); padding: 16px; border-radius: 8px; border-left: 4px solid var(--blue); }

/* Grid Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.story-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.story-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-info h3 { font-size: 14px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.param-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.param-tag { font-size: 11px; background: var(--bg-light); color: var(--text-light); padding: 2px 6px; border-radius: 4px; }

/* Queue */
.queue-timeline { display: flex; flex-direction: column; gap: 20px; }
.queue-batch { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.queue-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-family: var(--mono); font-weight: bold; }
.queue-header.active { color: var(--blue); }
.queue-covers { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.queue-item { flex: 0 0 100px; }
.queue-item img { width: 100px; aspect-ratio: 3/4; border-radius: 6px; margin-bottom: 6px; }
.queue-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.queue-status { font-size: 10px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.queue-status.pending { color: var(--text-light); }

/* Rank Table */
.rank-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; border: 1px solid var(--border); }
.rank-table th, .rank-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.rank-table th { background: var(--bg-light); color: var(--text-light); font-weight: normal; }
.rank-table tr.top1 { background: rgba(37, 99, 235, 0.05); border-left: 3px solid var(--blue); }
.rank-badge { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; font-size: 12px; font-weight: bold; color: #fff; }
.badge-1 { background: #fbbf24; }
.badge-2 { background: #94a3b8; }
.badge-3 { background: #d97706; }
.rank-trend.up { color: #ef4444; }
.rank-trend.down { color: var(--green); }

/* Models */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.model-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.model-card::after { content: ''; position: absolute; bottom: 0; left: 0; height: 3px; width: 0; background: var(--grad); transition: width 0.3s; }
.model-card:hover::after { width: 100%; }
.model-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.model-title { font-weight: 700; font-size: 15px; }
.model-ver { font-size: 12px; font-family: var(--mono); color: var(--purple); background: rgba(124, 58, 237, 0.1); padding: 2px 6px; border-radius: 4px; }
.model-meta { font-size: 12px; color: var(--text-light); margin-bottom: 12px; display: flex; justify-content: space-between; }
.model-imgs { display: flex; gap: 8px; }
.model-imgs img { flex: 1; width: calc(50% - 4px); aspect-ratio: 3/4; border-radius: 6px; }

/* Exclusive */
.exclusive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.exclusive-main { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border-radius: var(--radius); padding: 24px; }
.exclusive-main img { width: 100%; max-width: 240px; margin: 0 auto 20px; border-radius: 8px; }
.exclusive-main p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.countdown { font-family: var(--mono); font-size: 24px; font-weight: bold; color: var(--blue); margin-bottom: 20px; display: flex; gap: 8px; justify-content: center; }
.btn-reserve { display: block; width: 100%; text-align: center; padding: 12px; background: #fff; border: 1px solid var(--blue); color: var(--blue); border-radius: 20px; font-weight: 600; cursor: pointer; min-height: 48px; transition: all 0.2s; }
.btn-reserve:hover { background: var(--blue); color: #fff; }
.exclusive-list { display: flex; flex-direction: column; gap: 16px; }
.exclusive-item { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); padding: 12px; border-radius: 8px; }
.exclusive-item img { width: 60px; aspect-ratio: 3/4; border-radius: 4px; }
.ex-item-info { flex: 1; }
.ex-item-info h3 { font-size: 14px; margin-bottom: 4px; }
.ex-item-info .date { font-size: 12px; color: var(--text-light); font-family: var(--mono); }

/* Free */
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.free-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.free-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.free-tag { position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.free-info { padding: 10px; }
.free-info h3 { font-size: 13px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.free-info p { font-size: 12px; color: var(--text-light); }

/* Tuner */
.tuner-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.tuner-controls { background: #fff; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.slider-group { margin-bottom: 24px; }
.slider-group label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; font-family: var(--mono); }
input[type=range] { -webkit-appearance: none; width: 100%; height: 8px; background: var(--border); border-radius: 4px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.btn-gen { width: 100%; background: var(--grad); color: #fff; border: none; padding: 14px; border-radius: 24px; font-size: 16px; font-weight: 600; cursor: pointer; min-height: 48px; }

/* Feedback */
.feedback-stats { display: flex; gap: 30px; margin-bottom: 30px; background: var(--bg-light); padding: 20px; border-radius: var(--radius); }
.stat-item { text-align: center; flex: 1; }
.stat-val { font-size: 24px; font-weight: bold; color: var(--blue); font-family: var(--mono); }
.stat-label { font-size: 13px; color: var(--text-light); }
.log-stream { display: flex; flex-direction: column; gap: 20px; position: relative; padding-left: 20px; }
.log-stream::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.log-item { position: relative; background: #fff; border: 1px solid var(--border); padding: 16px; border-radius: 8px; font-size: 14px; }
.log-item::before { content: ''; position: absolute; left: -22px; top: 20px; width: 10px; height: 10px; background: var(--blue); border-radius: 50%; border: 2px solid #fff; }
.log-meta { font-family: var(--mono); font-size: 12px; color: var(--text-light); margin-bottom: 8px; display: flex; gap: 12px; align-items: center; }
.log-user { display: flex; align-items: center; gap: 8px; font-weight: bold; color: var(--text); margin-bottom: 8px; }
.log-user img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); }
.stars { color: #fbbf24; letter-spacing: 2px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.faq-q::after { content: '+'; font-size: 20px; color: var(--blue); }
.faq-item.open .faq-q::after { content: '-'; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--bg-light); font-size: 14px; color: var(--text-light); }
.faq-item.open .faq-a { padding: 16px 20px; max-height: 200px; }
.faq-contact { text-align: center; margin-top: 30px; font-size: 14px; }
.faq-contact a { color: var(--blue); font-weight: bold; }

/* Deploy */
.deploy-steps { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.step-card { flex: 1; background: #fff; border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); text-align: center; }
.step-num { width: 40px; height: 40px; background: var(--bg-light); color: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; margin: 0 auto 16px; }
.step-card h3 { font-size: 16px; margin-bottom: 12px; }
.step-card p { font-size: 13px; color: var(--text-light); }
.download-cards { display: flex; justify-content: center; gap: 30px; }
.dl-card { flex: 1; max-width: 400px; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; transition: border-color 0.2s; }
.dl-card:hover { border-color: var(--blue); }
.dl-card h3 { font-size: 20px; margin-bottom: 8px; }
.dl-meta { font-size: 13px; color: var(--text-light); font-family: var(--mono); margin-bottom: 24px; }
.btn-dl-large { display: block; width: 100%; background: var(--grad); color: #fff; padding: 16px; border-radius: 30px; font-size: 18px; font-weight: bold; min-height: 56px; display: flex; align-items: center; justify-content: center; }

/* Footer */
footer { background: #fff; padding: 40px 0 20px; font-size: 13px; color: var(--text-light); }
.footer-status { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-family: var(--mono); font-size: 12px; color: var(--green); }
.footer-status .status-dot { width: 8px; height: 8px; }
.footer-status::after { content: ''; flex: 1; border-bottom: 1px dashed var(--border); margin-left: 10px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-brand p { margin-bottom: 16px; }
.footer-links h4 { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; }
.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--blue); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .exclusive-grid, .tuner-layout { grid-template-columns: 1fr; }
  .deploy-steps { flex-wrap: wrap; }
  .step-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .hero-covers { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .free-grid { grid-template-columns: repeat(2, 1fr); }
  .deploy-steps { flex-direction: column; }
  .step-card { flex: 1 1 auto; }
  .download-cards { flex-direction: column; align-items: center; }
  .dl-card { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .data-row { flex-wrap: wrap; gap: 10px; }
  .feedback-stats { flex-direction: column; gap: 16px; }
  .rank-table th:nth-child(3), .rank-table td:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .section-header h2 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}