/* ============================================================
   星云传输 · Aurora Stellaris
   深邃午夜 × 温暖琥珀 × 玻璃拟态 × 极光氛围
   ============================================================ */

/* ===== 设计令牌 ===== */
:root {
  /* 主色：温暖琥珀金 —— 星光对夜空 */
  --amber: #fbbf24;
  --amber-deep: #f59e0b;
  --amber-glow: rgba(251, 191, 36, 0.35);
  --amber-soft: rgba(251, 191, 36, 0.12);
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.25);

  /* 深色为默认 —— 午夜星海 */
  --bg: #080b16;
  --bg-2: #0d1224;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-solid: #131830;
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-bright: rgba(251, 191, 36, 0.3);

  --text: #eef1f8;
  --text-mid: #aab2c8;
  --text-light: #6b7490;

  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);

  --success: #34d399;
  --danger: #fb7185;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;

  --shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --glow-amber: 0 0 40px rgba(251, 191, 36, 0.15);
  --transition: 0.3s cubic-bezier(0.32, 0.72, 0, 1);

  /* 字体 */
  --font-display: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Sora', 'Noto Sans SC', -apple-system, sans-serif;
}

/* ===== 浅色主题 ===== */
[data-theme="light"] {
  --bg: #f7f4ef;
  --bg-2: #efe9e0;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-hover: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --glass-border: rgba(20, 20, 40, 0.08);
  --glass-border-bright: rgba(217, 119, 6, 0.35);

  --text: #1c1932;
  --text-mid: #565070;
  --text-light: #948fa8;

  --border: rgba(20, 20, 40, 0.09);
  --border-light: rgba(20, 20, 40, 0.05);

  --amber: #d97706;
  --amber-deep: #b45309;
  --amber-glow: rgba(217, 119, 6, 0.2);
  --amber-soft: rgba(217, 119, 6, 0.08);

  --shadow: 0 8px 40px rgba(120, 100, 60, 0.12);
  --shadow-sm: 0 2px 12px rgba(120, 100, 60, 0.06);
  --glow-amber: 0 0 40px rgba(217, 119, 6, 0.1);
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important;; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s, color 0.4s;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

/* ===== 极光氛围背景 ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.aurora-blob.a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent 70%);
  top: -120px; left: -80px;
  animation: drift-a 24s ease-in-out infinite;
}
.aurora-blob.b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 70%);
  bottom: -180px; right: -120px;
  animation: drift-b 30s ease-in-out infinite;
}
.aurora-blob.c {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
  top: 40%; left: 50%;
  animation: drift-c 28s ease-in-out infinite;
}
[data-theme="light"] .aurora-blob { opacity: 0.3; }
[data-theme="light"] .aurora-blob.a { background: radial-gradient(circle, rgba(217, 119, 6, 0.3), transparent 70%); }
[data-theme="light"] .aurora-blob.b { background: radial-gradient(circle, rgba(20, 184, 166, 0.2), transparent 70%); }
[data-theme="light"] .aurora-blob.c { background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%); }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 80px) scale(0.95); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-50px, -60px) scale(1.08); }
  70% { transform: translate(40px, -30px) scale(0.92); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -50px) scale(1.15); }
}

/* 微星粒子层 */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 85%, rgba(251,191,36,0.5), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 15% 65%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(45,212,191,0.4), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.3), transparent);
  background-size: 100% 100%;
  animation: twinkle 6s ease-in-out infinite;
}
[data-theme="light"] .starfield { opacity: 0.3; }
@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ===== 布局容器 ===== */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ===== 顶部导航 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
}
.brand svg { filter: drop-shadow(0 0 8px var(--amber-glow)); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
}
.nav-link:hover {
  background: var(--amber-soft);
  color: var(--amber);
}

/* ===== 主区域 ===== */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 100px;
  position: relative;
}

/* ===== Hero ===== */
.upload-hero {
  text-align: center;
  margin-bottom: 40px;
  animation: fade-up 0.7s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--amber), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 14.5px;
  color: var(--text-light);
  letter-spacing: 0.01em;
}
.hero-subtitle b {
  color: var(--amber);
  font-weight: 600;
}

/* ===== 拖拽投递区 —— 发光传送门 ===== */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 60px 32px;
  text-align: center;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
  animation: fade-up 0.7s 0.1s cubic-bezier(0.32, 0.72, 0, 1) both;
}
/* 内部光晕 */
.dropzone::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 320px; height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--amber-soft), transparent 65%);
  opacity: 0.6;
  transition: opacity 0.4s, transform 0.6s;
  pointer-events: none;
}
.dropzone:hover {
  border-color: var(--glass-border-bright);
  background: var(--surface-hover);
  box-shadow: var(--glow-amber);
}
.dropzone:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
.dropzone.drag-over {
  border-color: var(--amber);
  border-style: solid;
  background: var(--amber-soft);
  box-shadow: 0 0 0 4px var(--amber-soft), var(--glow-amber);
  transform: scale(1.01);
}
.dropzone-icon {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  margin-bottom: 18px;
  transition: var(--transition);
  animation: float 4s ease-in-out infinite;
}
.dropzone:hover .dropzone-icon,
.dropzone.drag-over .dropzone-icon {
  color: var(--amber);
  filter: drop-shadow(0 0 12px var(--amber-glow));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.dropzone-text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.dropzone-hint {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 22px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: #1a1208;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--amber-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--amber-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-lg {
  padding: 13px 36px;
  font-size: 15px;
}
/* 按钮流光效果 */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.btn-primary:hover::after { left: 100%; }

.btn-ghost {
  background: var(--surface);
  color: var(--text-mid);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--text-light);
}

/* ===== 上传选项 ===== */
.upload-options {
  margin-top: 20px;
  padding: 22px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fade-up 0.5s ease both;
}
.option-row {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.option-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.option-input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--border-light);
  color: var(--text);
  transition: var(--transition);
}
.option-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  background: var(--surface);
}

/* ===== 上传进度 ===== */
.progress-section {
  margin-top: 24px;
  animation: fade-up 0.5s ease both;
}
.progress-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.progress-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.file-icon-sm {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}
.progress-file-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.progress-file-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-file-size {
  font-size: 12.5px;
  color: var(--text-light);
}
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: 0 0 12px var(--amber-glow);
}
/* 流光动画 */
.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s linear infinite;
}
.progress-bar-fill.done {
  background: linear-gradient(90deg, var(--success), #6ee7b7);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
.progress-bar-fill.done::after { display: none; }
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-status {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}
.progress-speed { color: var(--amber); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ===== 分享结果 ===== */
.result-section {
  margin-top: 24px;
  animation: fade-up 0.5s ease both;
}
.result-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
/* 成功光晕装饰 */
.result-card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 140px;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.18), transparent 70%);
  pointer-events: none;
}
.result-success {
  margin-bottom: 26px;
  position: relative;
}
.result-success svg { animation: pop-in 0.5s cubic-bezier(0.32, 1.6, 0.6, 1) both; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.result-success h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.result-link-box {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.result-link-input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--border-light);
  color: var(--text);
  font-family: 'Sora', monospace;
}
.result-link-input:focus {
  outline: none;
  border-color: var(--amber);
}
.result-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== 我的分享抽屉 ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.35s;
}
.drawer-overlay:not([hidden]) { opacity: 1; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--bg-2);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
}
.drawer:not([hidden]) { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.drawer-close:hover { background: var(--surface-hover); color: var(--text); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}
.drawer-empty {
  text-align: center;
  color: var(--text-light);
  padding: 50px 20px;
  font-size: 14px;
  line-height: 1.8;
}

/* 分享记录卡片 */
.share-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: var(--transition);
  background: var(--surface);
}
.share-item:hover {
  border-color: var(--glass-border-bright);
  background: var(--surface-hover);
}
.share-item-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
}
.share-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.share-item-icon.image { background: linear-gradient(135deg, #34d399, #10b981); }
.share-item-icon.video { background: linear-gradient(135deg, #f472b6, #ec4899); }
.share-item-icon.audio { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.share-item-icon.doc { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.share-item-icon.archive { background: linear-gradient(135deg, #fb923c, #f97316); }
.share-item-icon.default { background: linear-gradient(135deg, #94a3b8, #64748b); }
.share-item-icon svg { color: #fff; }
.share-item-name {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.share-item-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.share-item-actions {
  display: flex;
  gap: 8px;
}
.share-item-actions .btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.share-item-actions .btn-sm:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.share-item-actions .btn-sm.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ===== 上传浮层 ===== */
.upload-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 80;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.upload-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--amber-deep), var(--amber));
  color: #1a1208;
  font-size: 13px;
  font-weight: 600;
}
.upload-float-toggle {
  color: #1a1208;
  font-size: 18px;
  padding: 0 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.upload-float-toggle:hover { opacity: 1; }
.upload-float-body {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}
.upload-float.collapsed .upload-float-body { display: none; }
.float-item {
  padding: 11px;
  border-radius: 9px;
  margin-bottom: 6px;
  background: var(--border-light);
}
.float-item-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}
.float-item-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.float-item-bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
  transition: width 0.3s;
}
.float-item-bar-fill.done { background: var(--success); }
.float-item-bar-fill.error { background: var(--danger); }
.float-item-status {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 5px;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
}
.toast {
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: var(--shadow);
  animation: toast-in 0.35s cubic-bezier(0.32, 1.4, 0.6, 1);
  backdrop-filter: blur(12px);
}
.toast.success { background: rgba(52, 211, 153, 0.92); }
.toast.error { background: rgba(251, 113, 133, 0.92); }
.toast.info { background: rgba(251, 191, 36, 0.92); color: #1a1208; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 入场动画 ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .header-inner { padding: 0 18px; height: 56px; }
  .brand { font-size: 17px; }
  .main { padding: 36px 18px 70px; }
  .hero-title { font-size: 27px; }
  .hero-subtitle { font-size: 13.5px; }
  .dropzone { padding: 44px 20px; }
  .upload-options { flex-direction: column; padding: 18px; }
  .result-link-box { flex-direction: column; }
  .result-card { padding: 28px 22px; }
  .upload-float { width: calc(100vw - 32px); right: 16px; bottom: 16px; }
  .nav-link { padding: 8px 11px; font-size: 13px; }
}

/* ===== 触摸优化 ===== */
@media (hover: none) and (pointer: coarse) {
  * { -webkit-tap-highlight-color: transparent; }
  .btn { min-height: 44px; }
  .nav-link { min-height: 42px; }
  .dropzone:active { transform: scale(0.99); }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ===== 选区 ===== */
::selection { background: var(--amber-soft); color: var(--amber); }
