/* TBH 下载站 — 深色 emerald 主题 */

:root {
  --bg: #09090b;
  --surface: rgba(24, 24, 27, 0.5);
  --surface-solid: #18181b;
  --border: #27272a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-dim: #71717a;
  --accent: #34d399;
  --accent-dim: #10b981;
  --accent-bg: rgba(6, 78, 59, 0.8);
  --warning: #fbbf24;
  --danger: #f87171;
  --max-w: 64rem;
  --radius: 1rem;
  --radius-lg: 1.25rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

@media (min-width: 640px) {
  .container {
    padding: 4rem 1rem 5rem;
  }
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.page-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 2.25rem;
  }
}

.page-desc {
  margin: 1rem auto 0;
  max-width: 42rem;
  color: var(--muted);
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-dim);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.product-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.product-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(24, 24, 27, 0.8);
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.9);
}

.product-name {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.product-card:hover .product-name {
  color: #6ee7b7;
}

.product-sub {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.badge-win {
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.product-summary {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
}

.chip-accent {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--accent-bg);
  color: #6ee7b7;
}

.chip {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: #27272a;
  color: var(--muted);
}

.chip-mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: #d4d4d8;
}

.card-link {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.product-card:hover .card-link {
  color: #6ee7b7;
}

.section {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(24, 24, 27, 0.4);
}

.section-title {
  font-size: 1.125rem;
  font-weight: 500;
}

.section-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.ol-list {
  margin-top: 1rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.ol-list li + li {
  margin-top: 0.5rem;
}

.hero-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-brand .product-tag {
  font-size: 0.875rem;
}

.hero-brand h1 {
  margin-top: 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.hero-brand .product-sub {
  margin-top: 0.75rem;
  max-width: 36rem;
  line-height: 1.625;
}

.hero-meta {
  min-width: 220px;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--muted-dim);
}

.meta-value {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.meta-value.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.meta-date {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-dim);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-download:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-download.secondary {
  background: #27272a;
  border: 1px solid var(--border);
  color: var(--text);
}

.file-meta-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .file-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cloud-download {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  background: #09090b;
  border: 1px solid var(--border);
}

.copy-field {
  flex: 1;
  min-width: 0;
}

.copy-field .meta-value {
  font-size: 0.875rem;
  word-break: break-all;
}

.copy-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-copy:hover {
  opacity: 0.9;
}

.btn-copy.secondary {
  background: #27272a;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-copy.hidden,
a.btn-copy.hidden {
  display: none;
}

.copy-tip {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: #34d399;
}

.changelog {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #09090b;
  border: 1px solid var(--border);
}

.changelog pre {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8125rem;
  color: #d4d4d8;
  white-space: pre-wrap;
}

.doc-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.doc-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.doc-section p,
.doc-section li {
  font-size: 0.9375rem;
  color: var(--muted);
}

.doc-section ul,
.doc-section ol {
  padding-left: 1.25rem;
}

.doc-section li + li {
  margin-top: 0.375rem;
}

.doc-section p + p,
.doc-section ul + p {
  margin-top: 0.75rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.25rem;
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.feature-list li strong {
  color: #e4e4e7;
}

.faq-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.faq-item:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.faq-q {
  font-weight: 600;
  color: #e4e4e7;
  font-size: 0.9375rem;
}

.faq-a {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.risk-box {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.15);
}

.risk-box .section-title {
  color: #fca5a5;
}

.risk-box li {
  color: #fecaca;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: #e4e4e7;
  font-weight: 500;
  background: rgba(39, 39, 42, 0.5);
}

td {
  color: var(--muted);
}

code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: #27272a;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8125rem;
  color: #e4e4e7;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-dim);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-dim);
}

.site-footer a {
  color: var(--accent);
}
