*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root { 
  --bg: #0f1419; 
  --bg-gradient-start: #1a2332;
  --bg-gradient-end: #0f1419;
  --surface: rgba(255, 255, 255, 0.05); 
  --surface2: rgba(255, 255, 255, 0.08); 
  --border: rgba(255, 255, 255, 0.1); 
  --text: #f0f4f8; 
  --text2: #94a3b8; 
  --accent: #c9a227; 
  --accent-hover: #d4b43a; 
  --accent-glow: rgba(201, 162, 39, 0.3);
  --success: #22c55e; 
  --warning: #f59e0b; 
  --error: #ef4444; 
  --radius: 16px; 
  --radius-sm: 10px;
  --gold: #c9a227;
  --gold-light: #e8d5a3;
  --navy: #1e3a5f;
  --navy-light: #2d4a6f;
}
html { font-size: 16px; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', system-ui, sans-serif; 
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text); 
  min-height: 100dvh; 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* 70周年背景装饰 */
.anniversary-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-shapes {
  position: absolute;
  inset: 0;
}
.shape {
  position: absolute;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.08;
  font-family: 'Times New Roman', serif;
  font-style: italic;
  animation: float 20s infinite ease-in-out;
}
.shape:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.shape:nth-child(2) { top: 20%; right: 10%; animation-delay: 2s; font-size: 2.5rem; }
.shape:nth-child(3) { top: 60%; left: 8%; animation-delay: 4s; }
.shape:nth-child(4) { bottom: 20%; right: 5%; animation-delay: 6s; font-size: 3rem; }
.shape:nth-child(5) { top: 40%; left: 15%; animation-delay: 8s; }
.shape:nth-child(6) { bottom: 30%; left: 20%; animation-delay: 10s; }
.shape:nth-child(7) { top: 70%; right: 15%; animation-delay: 12s; }
.shape:nth-child(8) { bottom: 10%; left: 40%; animation-delay: 14s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* 70周年徽章 */
.anniversary-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 4px rgba(201, 162, 39, 0.1);
  animation: badgePulse 3s infinite ease-in-out;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 4px rgba(201, 162, 39, 0.1); }
  50% { box-shadow: 0 6px 30px var(--accent-glow), 0 0 0 6px rgba(201, 162, 39, 0.15); }
}
.badge-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
  font-family: 'Times New Roman', serif;
}
.badge-text {
  font-size: 0.7rem;
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* 页脚 */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15, 20, 25, 0.95), transparent);
  z-index: 10;
}
.site-footer p {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 0.25rem;
}
.site-footer .footer-quote {
  font-size: 0.75rem;
  color: var(--gold);
  font-style: italic;
  opacity: 0.8;
}
.container { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 6rem; position: relative; z-index: 1; }
.header { text-align: center; margin-bottom: 2.5rem; padding-top: 1rem; }
.header h1 { font-size: 2rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.5rem; color: var(--text); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.header .subtitle { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; font-weight: 500; }
.header .description { color: var(--text2); font-size: 0.95rem; font-weight: 400; }
.admin-link { position: fixed; bottom: 1.5rem; right: 1.5rem; color: var(--text2); text-decoration: none; font-size: 0.75rem; opacity: 0.4; transition: opacity 0.2s; }
.admin-link:hover { opacity: 1; }
.drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all 0.3s ease; background: var(--surface); position: relative; backdrop-filter: blur(10px); }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--gold); background: rgba(201, 162, 39, 0.08); box-shadow: 0 0 30px rgba(201, 162, 39, 0.15); }
.drop-zone.drag-over { transform: scale(1.01); }
.drop-zone-icon { width: 64px; height: 64px; margin: 0 auto 1.25rem; opacity: 0.7; color: var(--gold); }
.drop-zone-icon svg { width: 100%; height: 100%; }
.drop-zone-text { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text); }
.drop-zone-hint { font-size: 0.85rem; color: var(--text2); }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.upload-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; animation: slideIn 0.25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.upload-item-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.file-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 0.75rem; color: var(--text2); display: flex; gap: 0.75rem; margin-top: 0.15rem; }
.upload-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.btn-icon { width: 32px; height: 32px; border: none; border-radius: var(--radius-sm); background: var(--surface2); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; transition: all 0.15s; }
.btn-icon:hover { background: var(--border); color: var(--text); }
.progress-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; width: 0%; }
.progress-fill.done { background: var(--success); }
.progress-fill.error { background: var(--error); }
.upload-status { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text2); }
.status-text.done { color: var(--success); }
.status-text.error { color: var(--error); }
.copy-link { color: var(--accent); cursor: pointer; font-size: 0.75rem; background: none; border: none; padding: 0.15rem 0.5rem; border-radius: 4px; transition: background 0.15s; }
.copy-link:hover { background: rgba(99, 102, 241, 0.1); }
.toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.8rem; animation: toastIn 0.25s ease, toastOut 0.25s ease 2.75s forwards; box-shadow: 0 8px 32px rgba(0,0,0,0.3); max-width: 300px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 640px) { .container { padding: 1.25rem 1rem; } .header h1 { font-size: 1.35rem; } .drop-zone { padding: 2rem 1.25rem; } .drop-zone-icon { font-size: 2rem; } .file-meta { flex-wrap: wrap; gap: 0.4rem; } }
.admin-container { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 6rem; position: relative; z-index: 1; }
.login-form { max-width: 380px; margin: 3rem auto; text-align: center; background: var(--surface); padding: 2.5rem 2rem; border-radius: var(--radius); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.login-form h2 { margin-bottom: 1.5rem; color: var(--gold); }
.input-field { width: 100%; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 0.875rem; outline: none; transition: border-color 0.15s; }
.input-field:focus { border-color: var(--accent); }
.input-field::placeholder { color: var(--text2); }
.btn { padding: 0.6rem 1.25rem; background: var(--gold); color: var(--bg); border: none; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); }
.btn-danger { background: var(--error); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(201, 162, 39, 0.1); color: var(--gold-light); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; backdrop-filter: blur(10px); transition: all 0.2s; }
.stat-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.stat-card .label { font-size: 0.75rem; color: var(--text2); margin-bottom: 0.25rem; }
.stat-card .value { font-size: 1.35rem; font-weight: 600; color: var(--gold); }
.toolbar { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar .input-field { flex: 1; min-width: 200px; }
.file-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.file-table th { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--border); color: var(--text2); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.file-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.file-table tr:hover td { background: var(--surface); }
.status-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 500; }
.status-badge.done { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-badge.uploading { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.status-badge.error { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.status-badge.merging { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 1.25rem; font-size: 0.8rem; color: var(--text2); }
.table-wrapper { overflow-x: auto; }
.checkbox { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.preview-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 9998; display: flex; flex-direction: column; }
.preview-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; background: rgba(0, 0, 0, 0.5); flex-shrink: 0; }
.preview-title { color: #fff; font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 60px); }
.preview-close { width: 36px; height: 36px; border: none; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
.preview-close:hover { background: rgba(255, 255, 255, 0.2); }
.preview-content { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 1rem; }
.preview-content img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.preview-content video, .preview-content audio { max-width: 100%; max-height: 100%; }
.preview-content iframe { width: 100%; height: 100%; border: none; border-radius: 4px; background: #fff; }
.preview-content .preview-unsupported { color: var(--text2); text-align: center; font-size: 0.9rem; }
@media (max-width: 640px) { .admin-container { padding: 1rem; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .toolbar { flex-direction: column; } .toolbar .input-field { min-width: 100%; } }
