/* ===== Reset & Variables ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --primary-light: #ebf0ff;
  --accent-purple: #764ba2;
  --accent-pink: #f093fb;
  --accent-orange: #f5576c;
  --accent-yellow: #fda085;
  --accent-green: #38d9a9;
  --accent-blue: #4facfe;
  --danger: #f5576c;
  --warning: #fbbf24;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 40px -4px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: 'Inter', -apple-system, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ===== 背景装饰 ===== */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: blobFloat 20s ease-in-out infinite;
}

.bg-blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-blob-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.bg-blob-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ===== 页面布局 ===== */
.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* ===== 顶部导航 ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-green);
  background: rgba(56, 217, 169, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(56, 217, 169, 0.2);
}

/* ===== 统计卡片 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 40px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translateY(20px);
}

.stat-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-orange {
  background: linear-gradient(135deg, #fda085 0%, #f6d365 100%);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat-desc {
  font-size: 12px;
  opacity: 0.8;
}

.stat-icon {
  opacity: 0.85;
  z-index: 1;
}

/* ===== 通用卡片 ===== */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-xl);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.card-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-header-icon.icon-yellow {
  background: linear-gradient(135deg, #fda085 0%, #f6d365 100%);
  box-shadow: 0 4px 12px rgba(253, 160, 133, 0.3);
}

.card-header-icon.icon-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-body {
  padding: 24px 28px 28px;
}

/* ===== 输入区 ===== */
.input-section {
  margin-bottom: 20px;
}

.input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.secret-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.secret-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0;
}

.secret-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
  background: #fff;
}

.clear-input-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}

.clear-input-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.clear-input-btn:hover {
  color: var(--text);
  background: var(--border);
}

/* ===== 获取按钮 ===== */
.get-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  margin-bottom: 24px;
  user-select: none;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.get-code-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.5s ease;
}

.get-code-btn:hover::before {
  left: 100%;
}

.get-code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.get-code-btn:active {
  transform: translateY(0) scale(0.98);
}

.get-code-btn svg {
  flex-shrink: 0;
}

/* ===== 结果区 ===== */
.result-section {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.result-section.visible {
  display: flex;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 验证码展示区 */
.code-showcase {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.code-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.code-showcase::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.code-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.code-showcase-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.code-timer-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.code-timer-badge.urgent {
  background: rgba(245, 87, 108, 0.5);
  animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.timer-unit {
  font-size: 11px;
  opacity: 0.8;
}

.code-display-area {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.totp-code {
  font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 8px;
  line-height: 1;
  transition: all 0.3s;
  user-select: all;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.totp-code.expired {
  opacity: 0.4;
  text-decoration: line-through;
}

.totp-code.refreshing {
  animation: codePulse 0.5s ease;
}

@keyframes codePulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.expired-tip {
  color: #ffd0d0;
  font-size: 13px;
  font-weight: 500;
  display: none;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.expired-tip.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== 进度条 ===== */
.progress-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: width 1s linear, background-color 0.5s;
  width: 100%;
}

.progress-bar.urgent {
  background: #ffd0d0;
}

/* 密钥信息行 */
.secret-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: var(--radius);
  border: 1px dashed rgba(102, 126, 234, 0.2);
}

.secret-info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.secret-display {
  font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
  color: var(--primary);
  font-weight: 600;
  word-break: break-all;
  letter-spacing: 1px;
  font-size: 13px;
}

/* 操作按钮组 */
.action-buttons {
  display: flex;
  gap: 10px;
}

/* ===== QR 按钮 ===== */
.qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
  font-family: var(--font);
}

.qr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
}

/* ===== 二维码区域 ===== */
.qr-section {
  display: none;
  margin-top: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.05), rgba(0, 242, 254, 0.05));
  border: 1px solid rgba(79, 172, 254, 0.15);
  border-radius: var(--radius-lg);
}

.qr-section.visible {
  display: block;
  animation: slideUp 0.3s ease;
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qr-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.qr-header-left svg {
  color: var(--accent-blue);
}

.close-qr-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  display: flex;
  border-radius: 8px;
  transition: all 0.2s;
}

.close-qr-btn:hover {
  color: var(--danger);
  background: rgba(245, 87, 108, 0.1);
}

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

#qrContainer {
  display: flex;
  justify-content: center;
}

#qrContainer img,
#qrContainer canvas {
  border: 8px solid white;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  display: block;
}

.qr-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 步骤网格 ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px 24px 24px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  cursor: default;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.step-icon-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.step-icon-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.step-icon-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.step-icon-4 { background: linear-gradient(135deg, #38d9a9, #51cf66); }

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== FAQ区域 ===== */
.faq-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-banner {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(253, 160, 133, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius);
}

.notice-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.4;
}

.notice-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.notice-text strong {
  color: #d97706;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(102, 126, 234, 0.2);
  box-shadow: var(--shadow-sm);
}

.faq-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.3;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-q {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.faq-a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 复制气泡 ===== */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 页脚 ===== */
.page-footer {
  margin-top: 8px;
}

.footer-content {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-content p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 11px !important;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== 错误状态 ===== */
.secret-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(245, 87, 108, 0.1);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.error-msg {
  font-size: 13px;
  color: var(--danger);
  margin-top: 8px;
  display: none;
  font-weight: 500;
}

.error-msg.visible {
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.3s ease;
}

/* ===== Timer 样式 (兼容JS) ===== */
.timer-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timer-value.urgent {
  color: var(--danger) !important;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 16px 14px 30px;
    gap: 14px;
  }

  .top-bar {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 18px;
  }

  .stat-value {
    font-size: 24px;
  }

  .card-header {
    padding: 18px 20px;
  }

  .card-body {
    padding: 20px;
  }

  .totp-code {
    font-size: 30px;
    letter-spacing: 5px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    padding: 16px 20px 20px;
  }

  .get-code-btn {
    width: 100%;
    justify-content: center;
  }

  .qr-btn {
    width: 100%;
    justify-content: center;
  }

  .code-display-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .top-bar {
    flex-direction: column;
    gap: 10px;
  }

  .brand-badge {
    display: none;
  }

  .totp-code {
    font-size: 26px;
    letter-spacing: 4px;
  }

  .code-showcase {
    padding: 20px 16px;
  }

  .stat-card {
    padding: 16px;
  }
}

/* ===== 深色滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}
