:root {
  --bg: #0A0A0C;
  --card: #121216;
  --line: rgba(255,255,255,.09);
  --red: #E8452C;
  --gold: #E0B15C;
  --text: #F3F0EB;
  --muted: #9A948C;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 12, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 32px;
  border-radius: 3px;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
}
.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--text);
}
.btn-header {
  background-color: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-header:hover {
  opacity: 0.9;
}

/* 首屏 */
.hero {
  position: relative;
  height: 78vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10,10,12,1) 0%, rgba(10,10,12,0.7) 50%, rgba(10,10,12,0.2) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-content p {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.btn-primary {
  display: inline-block;
  background-color: var(--red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text);
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.05);
}

/* 数据条 */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-sub {
  font-size: 12px;
  color: var(--muted);
}

/* 通用区块 */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-head {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-desc {
  font-size: 15px;
  color: var(--muted);
}
.view-more {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

/* 分类标签 */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--card);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.tag:hover {
  border-color: var(--muted);
}
.tag-idx {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

/* 卡片墙 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.movie-card {
  background-color: var(--card);
  border-radius: 3px;
  overflow: hidden;
  display: block;
  transition: transform 0.2s;
}
.movie-card:hover {
  transform: translateY(-4px);
}
.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-badge-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}
.card-badge-time {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--red);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}
.card-rating {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  font-family: monospace;
}
.card-info {
  padding: 12px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

/* 专题 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.topic-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  display: block;
}
.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.topic-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 8px;
}
.topic-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.topic-desc {
  font-size: 13px;
  color: var(--muted);
}

/* 教程 */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background-color: var(--card);
  border-radius: 3px;
  padding: 24px;
}
.step-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a20;
  border-radius: 3px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 24px;
  overflow: hidden;
}
.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.step-num {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  margin-bottom: 8px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.step-note {
  font-size: 12px;
  border-left: 2px solid var(--gold);
  padding-left: 8px;
  color: var(--muted);
}

/* 答疑 */
.faq-list {
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.faq-icon {
  color: var(--red);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.faq-item.active .faq-a {
  display: block;
}
.error-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}
.error-table th, .error-table td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.error-table th {
  background-color: rgba(255,255,255,0.02);
  color: var(--text);
}

/* 下载 */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: var(--card);
}
.download-col {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.download-col:last-child {
  border-right: none;
}
.dl-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}
.dl-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dl-ver {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  margin-bottom: 20px;
}
.dl-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: left;
}
.dl-link {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
  background-color: rgba(0,0,0,0.2);
  padding: 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  background-color: #08080A;
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand {
  flex: 1;
  min-width: 200px;
}
.footer-brand h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 4px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-links {
  display: flex;
  gap: 60px;
}
.link-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.link-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.link-col a:hover {
  color: var(--text);
}
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: var(--text);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .grid-4, .grid-3, .tutorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .download-col {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .download-col:last-child {
    border-bottom: none;
  }
  .hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .header-inner {
    padding: 0 16px;
  }
  .hero {
    height: 70vh;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    text-align: center;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat-item:nth-child(even) {
    border-right: none;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .grid-4, .grid-3, .tutorial-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 50px 16px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .category-tags {
    gap: 8px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}