/* ===== 变量 ===== */
:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --text: #fafafa;
  --muted: #9ca3af;
  --dim: #52525b;
  --border: #27272a;
  --accent: #2997ff;
  --accent-hover: #0071e3;
  --note: #d4d4d8;
  --radius-lg: 28px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== 顶部导航 ===== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9,9,11,0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-brand { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-btn {
  background: var(--accent); color: white; border: none;
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-decoration: none; display: inline-block;
}
.nav-btn:hover { background: var(--accent-hover); transform: scale(1.02); }

/* ===== 左侧年份导航 ===== */
.year-nav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.year-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.year-nav a::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dim);
  transition: var(--transition);
}
.year-nav a.active,
.year-nav a:hover { color: var(--text); }
.year-nav a.active::before,
.year-nav a:hover::before { background: var(--text); box-shadow: 0 0 8px rgba(255,255,255,0.3); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,9,11,0.2) 0%, rgba(9,9,11,0.7) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect fill='%230d0d0d' width='100' height='100'/%3E%3Ccircle fill='%2318181b' cx='20' cy='20' r='2'/%3E%3Ccircle fill='%2318181b' cx='80' cy='40' r='3'/%3E%3Ccircle fill='%2318181b' cx='40' cy='80' r='2'/%3E%3Ccircle fill='%2318181b' cx='70' cy='70' r='1.5'/%3E%3Ccircle fill='%2318181b' cx='30' cy='50' r='2.5'/%3E%3Ccircle fill='%2318181b' cx='90' cy='80' r='2'/%3E%3C/svg%3E");
  background-size: cover, 200px 200px;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-avatar {
  width: 96px; height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: white;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(102,126,234,0.3);
}
.hero-title {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: #e5e7eb;
  font-weight: 400;
}
.hero-subtitle p { margin: 4px 0; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--dim);
  font-size: 24px;
  cursor: pointer;
}
@keyframes bounce {
  0%,20%,50%,80%,100%{transform:translateX(-50%)translateY(0)}
  40%{transform:translateX(-50%)translateY(-10px)}
  60%{transform:translateX(-50%)translateY(-5px)}
}

/* ===== 时间轴主区域 ===== */
.timeline-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}

/* 年份区块 */
.year-section { scroll-margin-top: 80px; }
.year-title {
  font-size: clamp(48px, 8vw, 72px);
  color: var(--dim);
  font-weight: 700;
  letter-spacing: -2px;
  margin: 100px 0 50px;
  line-height: 1;
}
.year-section:first-child .year-title { margin-top: 0; }

/* Entry */
.entry {
  margin-bottom: 120px;
  animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.entry-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.entry-meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  font-weight: 400;
}

/* 媒体容器 */
.entry-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.entry-media:hover {
  transform: scale(1.005);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.entry-media img,
.entry-media video {
  width: 100%;
  display: block;
  transition: var(--transition);
}
.entry-media:hover img,
.entry-media:hover video {
  transform: scale(1.02);
}

/* 视频 Poster */
.video-poster {
  height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: var(--transition);
}
.entry-media:hover .video-poster::before {
  background: rgba(0,0,0,0.25);
}
.play-btn {
  position: relative;
  z-index: 2;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.play-btn:hover {
  transform: scale(1.1);
  background: white;
}
.play-btn::after {
  content: '▶';
  margin-left: 4px;
}

/* ZIP 加密标记 */
.zip-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  z-index: 3;
  border: 1px solid rgba(41,151,255,0.3);
  backdrop-filter: blur(10px);
}

/* 文字注释 */
.entry-note {
  max-width: 650px;
  color: var(--note);
  margin-top: 20px;
  line-height: 1.8;
  font-size: 16px;
}

/* 懒加载骨架 */
.skeleton {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 加载状态 */
.loading-trigger {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 14px;
}
.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 160px 24px;
  color: var(--muted);
}
.empty-state h3 { font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.empty-state p { font-size: 15px; margin-bottom: 24px; }

/* ===== About ===== */
.about {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  color: #a1a1aa;
}
.about h2 { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.5px; }
.about p { margin: 6px 0; font-size: 15px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9,9,11,0.96);
  backdrop-filter: blur(30px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-info {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.lightbox-info .name { color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 4px; }

/* ===== 视频弹窗 ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9,9,11,0.96);
  backdrop-filter: blur(30px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-modal.active { display: flex; opacity: 1; }
.video-modal video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.video-modal-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.video-modal-close:hover { background: rgba(255,255,255,0.18); }

/* ===== ZIP 弹窗 ===== */
.zip-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9,9,11,0.92);
  backdrop-filter: blur(30px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.zip-modal.active { display: flex; opacity: 1; }
.zip-modal-content {
  max-width: 420px;
  width: 90%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.zip-modal-content h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.zip-modal-content p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.zip-modal-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.zip-modal-close:hover { background: rgba(255,255,255,0.18); }
.zip-unlock-btn {
  margin-top: 24px;
  background: var(--accent); color: white; border: none;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.zip-unlock-btn:hover { background: var(--accent-hover); }
.zip-unlock-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.zip-progress { margin-top: 20px; }
.zip-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.zip-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.zip-progress-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: #30d158; color: #000; }
.toast.error { background: #ff453a; color: white; }
.toast.info { background: var(--accent); color: white; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .year-nav { display: none; }
  .top-nav { padding: 12px 20px; }
  .hero-title { font-size: 48px; }
  .hero-subtitle { font-size: 16px; }
  .timeline-main { padding: 80px 20px 40px; }
  .year-title { font-size: 48px; margin: 80px 0 40px; }
  .entry { margin-bottom: 80px; }
  .entry-title { font-size: 28px; }
  .video-poster { height: 320px; }
  .play-btn { width: 60px; height: 60px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
}


/* ===== 上传页面 ===== */
.upload-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}
.upload-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.upload-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.upload-card .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41,151,255,0.1);
}
.form-group .required {
  color: #ff453a;
}
.form-group .field-hint {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 6px;
}

/* 拖放区域 */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(41,151,255,0.03);
}
.drop-zone input[type="file"] {
  display: none;
}
.drop-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.drop-text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
.drop-hint {
  font-size: 12px;
  color: var(--dim);
}

/* 文件预览 */
.file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px solid var(--border);
}
.file-preview .thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-card);
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}
.file-remove {
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  transition: var(--transition);
}
.file-remove:hover {
  color: #ff453a;
}

/* 选项行 */
.options-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.option-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* 提交按钮 */
.upload-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.upload-submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.upload-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 进度条 */
.progress-container {
  margin-top: 20px;
  display: none;
}
.progress-container.active {
  display: block;
}
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.progress-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 640px) {
  .upload-card { padding: 24px; }
  .options-row { flex-direction: column; gap: 12px; }
}
