/* ============================================
   黑白简约 · 半透明玻璃质感 · 高级动态
   程序下载 (cxxz.css)
   ============================================ */

:root {
  --bg-base: transparent;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted: rgba(255, 255, 255, 0.38);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --blur: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Consolas, Monaco, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, html {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 0; background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }
html { scrollbar-width: none; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* 动态背景光斑 */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

body::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  top: -120px;
  left: -100px;
  animation: cxxzOrb1 22s ease-in-out infinite;
}

body::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
  animation: cxxzOrb2 26s ease-in-out infinite;
}

@keyframes cxxzOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 120px) scale(1.15); }
}

@keyframes cxxzOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -80px) scale(0.9); }
}

/* ===== 内容容器 ===== */
.fullscreen-content {
  width: 100%;
  max-width: 620px;
  padding: 32px 24px;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .fullscreen-content { max-width: 620px; }
}

/* ===== 头部 ===== */
header {
  text-align: center;
  margin-bottom: 40px;
  animation: headerFadeIn 0.8s var(--ease) both;
}

@keyframes headerFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.title {
  font-size: 2.8rem;
  font-weight: 200;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  opacity: 1;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  font-weight: 300;
}

main { width: 100%; }

.download-section {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
  animation: formSlideIn 0.8s var(--ease) 0.1s both;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 22px;
  display: block;
  animation: formSlideIn 0.8s var(--ease) 0.15s both;
}

@keyframes formSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  height: 58px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.35s var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.form-control::placeholder {
  color: var(--text-muted);
  font-family: var(--font-display);
}

.form-control:focus {
  border-color: var(--glass-border-strong);
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ===== 按钮 ===== */
.btn {
  width: 100%;
  height: 58px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-strong);
  color: var(--text-primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.35s var(--ease);
  margin: 20px 0 30px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s var(--ease);
}

.btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn:hover:not(:disabled)::before { left: 100%; }
.btn:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-success {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.16) 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== 文件卡片网格 ===== */
.files-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.file-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  animation: cardSlideIn 0.7s var(--ease) both;
}

.file-card:nth-child(1) { animation-delay: 0.15s; }
.file-card:nth-child(2) { animation-delay: 0.25s; }
.file-card:nth-child(3) { animation-delay: 0.35s; }
.file-card:nth-child(4) { animation-delay: 0.45s; }

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.6;
}

.file-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 14px;
}

.file-name {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  word-wrap: break-word;
  letter-spacing: 0.02em;
}

.file-version {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: var(--text-primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.file-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.actions {
  text-align: center;
  margin-top: 30px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* ===== 结果与提示 ===== */
.result-container {
  margin-bottom: 30px;
  animation: resultFadeIn 0.6s var(--ease);
}

@keyframes resultFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert {
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.alert-success {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.alert-danger {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-strong);
  color: var(--text-secondary);
}

.alert i {
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .title { font-size: 2.2rem; }
  .subtitle { font-size: 0.92rem; }
  .btn, .form-control { height: 54px; font-size: 0.95rem; }
  .file-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .file-meta { gap: 10px; flex-direction: column; align-items: flex-start; }
  .fullscreen-content { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .fullscreen-content { padding: 20px 15px; }
  .title { font-size: 1.8rem; }
  .subtitle { font-size: 0.88rem; }
  .section-header h2 { font-size: 1.3rem; }
  .btn, .form-control { height: 50px; font-size: 0.9rem; }
  header { margin-bottom: 30px; }
  .file-card { padding: 20px 20px; }
  .file-name { font-size: 1rem; }
}
