@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --accent: #00ff88;
  --accent-dim: #00ff8833;
  --accent-glow: #00ff8844;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #808080;
  /* JetBrains Mono 只含拉丁子集，中文由后面的 CJK 字体承接 */
  --font: 'JetBrains Mono', Consolas, 'Courier New', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', monospace;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* html 是滚动容器，锁 body 无效 */
html.modal-open,
html.modal-open body {
  overflow: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  /* 背景网格纹理 */
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
}

a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1a1a1a;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}

.nav__logo-text {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero__title--accent {
  color: var(--accent);
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__meta {
  font-size: 12px;
  color: var(--text-dim);
}

.accent {
  color: var(--accent);
}

/* ── Upload Section ── */
.upload-section {
  padding: 0 0 60px;
}

.upload-zone {
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.upload-zone.dragover {
  border-style: solid;
  box-shadow: 0 0 20px var(--accent-glow);
}

.upload-zone__icon {
  font-size: 40px;
  margin-bottom: 16px;
  filter: grayscale(1) brightness(2);
}

.upload-zone__label {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

.upload-zone__or {
  color: var(--text-muted);
  font-size: 12px;
  margin: 12px 0;
}

.upload-zone__hint {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 16px;
}

.btn-upload {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.btn-upload:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-zone__filename {
  color: var(--accent);
  font-size: 13px;
  margin-top: 12px;
}

.upload-zone__filename--error {
  color: #ff6b6b;
}

/* ── Stats Bar ── */
.stats-section {
  padding: 0 0 32px;
}

.stats-bar {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

/* ── Feed ── */
.feed-section {
  padding: 0 0 80px;
}

.feed__title {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.feed__window {
  height: 240px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 8px 0;
  position: relative;
  /* 上下渐隐遮罩 */
  mask-image: linear-gradient(transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(transparent, black 15%, black 85%, transparent);
}

.feed__track {
  display: flex;
  flex-direction: column;
  animation: feedScroll linear infinite;
}

@keyframes feedScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.feed__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}

.feed__dot {
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
}

.feed__name {
  color: var(--accent);
  font-weight: 500;
  min-width: 60px;
  flex-shrink: 0;
}

.feed__action {
  color: var(--text);
  flex-shrink: 0;
}

.feed__sep {
  color: #333;
  flex-shrink: 0;
}

.feed__detail {
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed__time {
  color: var(--text-dim);
  font-size: 11px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Features ── */
.features {
  padding: 0 0 80px;
}

.section-label {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 32px;
  opacity: 0.7;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.feature-card__icon {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.feature-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Pricing ── */
.pricing {
  padding: 0 0 80px;
}

.pricing__card {
  max-width: 360px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
}

.pricing__name {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing__price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pricing__original {
  text-decoration: line-through;
  color: #555;
  font-size: 14px;
}

.pricing__current {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.pricing__tag {
  font-size: 12px;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 24px;
}

.pricing__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing__features li {
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #1a1a1a;
}

.pricing__features li:last-child {
  border-bottom: none;
}

.btn-buy {
  width: 100%;
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.btn-buy:hover {
  opacity: 0.85;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 32px;
  width: 320px;
  position: relative;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  font-family: var(--font);
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--text);
}

.modal__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.modal__tabs {
  display: flex;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 4px;
}

.modal__tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.modal__tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.modal__tab:hover:not(.active) {
  color: var(--text);
}

.modal__qr img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 20px auto;
  border-radius: 4px;
}

.modal__hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid #1a1a1a;
  padding: 32px 0;
}

.footer__inner {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

/* ── Reduced motion ── */
/* 放在文件末尾：同优先级下后出现的规则才能覆盖前面的动画声明 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feed__track {
    animation: none;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
