/* ===================================================================
   Relyto.MiTrans - 密传风格样式表
   =================================================================== */

/* ---------- 设计系统变量 ---------- */
:root {
  /* 主色调 */
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;

  /* 强调色 */
  --accent: #10B981;
  --accent-dark: #059669;
  --danger: #EF4444;
  --warning: #F59E0B;

  /* 渐变 */
  --gradient-bg: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 50%, #f0f9ff 100%);
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3b82f6 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

  /* 中性色 */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  /* 背景色 */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --bg-dark: #1e293b;
  --bg-darker: #0f172a;

  /* 边框与阴影 */
  --border-light: rgba(148, 163, 184, 0.2);
  --border-medium: rgba(148, 163, 184, 0.3);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 8px 32px rgba(37, 99, 235, 0.08), 0 1px 3px rgba(0, 0, 0, 0.08);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 间距 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

/* ---------- 基础重置 ---------- */
html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gradient-bg);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- 导航栏 ---------- */
.navbar-modern {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  transition: var(--transition-normal);
}

.navbar-modern .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* .navbar-modern .navbar-brand::before 样式已移除，改用内联 SVG */


.navbar-modern .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.navbar-modern .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.08);
}

.navbar-modern .nav-link.active {
  background: var(--primary);
  color: white !important;
}

/* 用户头像区域 */
.navbar-modern .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ---------- 主容器 ---------- */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem var(--space-md);
  padding-bottom: 1rem;
}

/* ---------- 英雄区域 ---------- */
.hero-section {
  text-align: center;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.hero-title-emoji {
  font-size: 2rem;
  margin-right: var(--space-sm);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* 统计徽章 */
.stats-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.stat-badge i {
  color: var(--primary);
}

/* 公告横幅 */
.announcement-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-decoration: none;
  transition: var(--transition-fast);
}

.announcement-banner:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.announcement-badge {
  background: var(--primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ---------- 主卡片 ---------- */
.main-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.main-card-body {
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .main-card-body {
    padding: var(--space-2xl);
  }
}

/* ---------- 功能选项卡 ---------- */
.feature-tabs {
  display: flex;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-xl);
}

.feature-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.feature-tab:hover {
  color: var(--text-primary);
}

.feature-tab.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.feature-tab i {
  font-size: 1.125rem;
}

/* ---------- Tab内容区域 ---------- */
.tab-content-area {
  min-height: 200px;
}

/* 文本分享区域 */
.text-share-area {
  position: relative;
}

.text-input-wrapper {
  position: relative;
}

.text-input {
  width: 100%;
  min-height: 180px;
  padding: var(--space-lg);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  transition: var(--transition-fast);
  background: var(--bg-white);
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.text-input::placeholder {
  color: var(--text-muted);
}

/* 粘贴按钮 */
.paste-button {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.paste-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* 文件上传区域 */
.file-upload-zone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  background: var(--bg-light);
  transition: var(--transition-fast);
  cursor: pointer;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.file-upload-zone.dragover {
  transform: scale(1.01);
}

.upload-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.upload-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 文件列表 */
.file-list {
  margin-top: var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.file-list-body {
  max-height: 200px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.file-item:last-child {
  border-bottom: none;
}

.file-item-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  overflow: hidden;
}

.file-item-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-size {
  color: var(--text-muted);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

/* 取件区域 */
.receive-area {
  text-align: center;
}

.code-input-group {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.code-input {
  width: 60px;
  height: 72px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.code-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* 单行取件码输入 */
.code-input-single {
  width: 100%;
  max-width: 300px;
  height: 56px;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.code-input-single:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ---------- 主按钮 ---------- */
.btn-main {
  width: 100%;
  padding: 1rem var(--space-xl);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-main:active {
  transform: translateY(0);
}

.btn-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-main.btn-success {
  background: var(--gradient-primary);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.btn-main.btn-success:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* 次要按钮 */
.btn-secondary-modern {
  background: var(--bg-light);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary-modern:hover {
  background: var(--bg-gray);
  border-color: var(--text-muted);
}

/* 链接按钮 */
.btn-link-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-link-modern:hover {
  color: var(--primary);
}

/* ---------- 分隔或链接 ---------- */
.action-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.action-link:hover {
  color: var(--primary);
}

/* ---------- 使用指南 ---------- */
.usage-guide {
  text-align: center;
  margin-top: var(--space-2xl);
}

.usage-guide-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.usage-cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.75rem;
}

.usage-card {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.usage-card:hover {
  background: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.usage-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.usage-card-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.usage-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- 成功状态 ---------- */
.success-state {
  text-align: center;
  padding: var(--space-xl);
}

.success-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.success-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* 结果卡片 */
.result-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
}

.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.result-code {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2em;
}

.result-input-group {
  display: flex;
  gap: var(--space-sm);
}

.result-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--bg-white);
}

.result-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- 警告横幅 ---------- */
.warning-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  font-size: 0.75rem;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  text-align: center;
}

/* ---------- 页脚 ---------- */
.footer-modern {
  background: var(--gradient-dark);
  color: var(--text-light);
  padding: 0.75rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-icp {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: var(--transition-fast);
}

.footer-icp:hover {
  color: var(--text-light);
}

/* ---------- 登录提示区域 ---------- */
.login-prompt {
  text-align: center;
  padding: var(--space-2xl);
}

.login-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.login-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ---------- 进度条 ---------- */
.progress-modern {
  height: 6px;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-modern {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ---------- 复选框 ---------- */
.checkbox-modern {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.checkbox-modern input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--primary);
}

/* ---------- 选择框 ---------- */
.select-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.select-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ---------- 输入框 ---------- */
.input-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.input-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-modern::placeholder {
  color: var(--text-muted);
}

/* 表单标签 */
.label-modern {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

/* 表单组 */
.form-group {
  margin-bottom: var(--space-lg);
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ---------- 工具类 ---------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-success {
  color: var(--accent) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: var(--space-xs) !important;
}

.mb-2 {
  margin-bottom: var(--space-sm) !important;
}

.mb-3 {
  margin-bottom: var(--space-md) !important;
}

.mb-4 {
  margin-bottom: var(--space-lg) !important;
}

.mb-5 {
  margin-bottom: var(--space-xl) !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-3 {
  margin-top: var(--space-md) !important;
}

.mt-4 {
  margin-top: var(--space-lg) !important;
}

.gap-2 {
  gap: var(--space-sm);
}

.gap-3 {
  gap: var(--space-md);
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

/* ---------- 覆盖 Bootstrap 默认样式 ---------- */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border-radius: var(--radius-md);
}

/* ---------- 响应式调整 ---------- */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .feature-tabs {
    flex-direction: column;
  }

  .code-input {
    width: 48px;
    height: 60px;
    font-size: 1.5rem;
  }

  .result-code {
    font-size: 2rem;
  }

  .stats-badges {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .usage-cards {
    grid-template-columns: 1fr 1fr;
  }

  .main-card-body {
    padding: var(--space-lg);
  }
}

/* ---------- Modal ---------- */
[v-cloak] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.modal-body {
  padding: 2rem;
}

.consent-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.consent-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.consent-list li:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: var(--bg-light);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}