:root {
  color-scheme: light;
  --bg: #0c0f14;
  --surface: #131722;
  --surface-alt: #101521;
  --text: #eef2f7;
  --muted: #a7b0c0;
  --accent: #5ec8ff;
  --accent-strong: #3aa7ff;
  --border: #232a3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 32px 6vw 48px;
  background: radial-gradient(circle at top left, #1e2a3f 0%, #0c0f14 60%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0b0f15;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.hero {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 12px 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(94, 200, 255, 0.15);
  color: var(--accent);
  font-size: 13px;
}

.subhead {
  color: var(--muted);
  margin-bottom: 24px;
}

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

.microcopy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.note {
  font-size: 12px;
  color: var(--muted);
}

.section {
  padding: 72px 6vw;
}

.section.alt {
  background: var(--surface-alt);
}

.section h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.card h3 {
  margin: 0 0 12px;
}

.pipeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.pipeline li {
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.pipeline strong {
  font-size: 16px;
}

.copy-block {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 24px;
}

.demo-controls {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.demo-controls label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.demo-controls input,
.demo-controls select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1420;
  color: var(--text);
}

.demo-controls button {
  align-self: end;
  height: 44px;
}

.demo-output {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.output-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.hidden {
  display: none !important;
}

.cta {
  background: linear-gradient(135deg, rgba(94, 200, 255, 0.2), rgba(58, 167, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer {
  padding: 32px 6vw 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.version-info {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  font-family: monospace;
}

/* 多文件列表样式 */
.file-list {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-link:hover {
  background: rgba(94, 200, 255, 0.1);
}

.file-items {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  gap: 12px;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 12px;
  color: var(--muted);
}

.file-status {
  flex-shrink: 0;
}

.status-text {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.status-waiting {
  color: var(--muted);
  background: rgba(167, 176, 192, 0.1);
}

.status-processing {
  color: var(--accent);
  background: rgba(94, 200, 255, 0.15);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-completed {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
}

.status-error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 输出统计样式 */
.output-summary {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

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

.download-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* 滚动条样式 */
.file-items::-webkit-scrollbar {
  width: 6px;
}

.file-items::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.file-items::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.file-items::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
