/**
 * 面试模拟舱 — 全局样式
 * 白色轻量 SaaS 风格 + 橙色主色调
 */

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #eef0f3;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --border-color: #dde0e4;
  --border-glow: rgba(255, 107, 0, 0.25);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #7c8798;
  --accent-blue: #ff6b00;
  --accent-purple: #ff6b00;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #ff6b00;
  --accent-red: #ef4444;
  --gradient-primary: linear-gradient(135deg, #ff6b00, #ff8c33);
  --gradient-bg: #f8f9fb;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-glow: 0 4px 20px rgba(255,107,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f5f6f8;
}
/* 动态渐变光斑 — 固定定位覆盖全屏 */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255,107,0,.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 85% 60%, rgba(59,130,246,.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 50% 90%, rgba(139,92,246,.06) 0%, transparent 55%);
  animation: bgShimmer 14s ease-in-out infinite alternate;
}
@keyframes bgShimmer {
  0%   { opacity: .7; transform: scale(1) translate(0,0); }
  33%  { opacity: 1; transform: scale(1.08) translate(-2%,1%); }
  66%  { opacity: .8; transform: scale(1.04) translate(1%,-2%); }
  100% { opacity: 1; transform: scale(1.06) translate(-1%,-1%); }
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: #e55d00; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

/* ===== Particle Canvas (hidden in light mode) ===== */
#particles-canvas { display: none; }

/* ===== Top Navigation ===== */
#top-nav {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.nav-inner {
  width: 100%;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #1a1a2e;
  flex-shrink: 0;
  margin-right: 28px;
}

.nav-logo {
  width: 32px; height: 32px;
  background: url('../assets/logo-256.png') center/contain no-repeat;
  border-radius: 50%;
}

.nav-title {
  font-size: .95rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-link {
  padding: 7px 14px;
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-link:hover { background: #f5f5f5; color: #1a1a2e; }

a.nav-link { display: inline-block; }

.nav-link.train {
  background: #fff3eb;
  color: #ff6b00;
  font-weight: 600;
}

.nav-link.train:hover { background: #ff6b00; color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-credit {
  font-size: .78rem;
  color: #6b7280;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 12px;
}

.nav-btn {
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  color: #4b5563;
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover { background: #f5f5f5; }

.nav-btn-primary {
  background: #ff6b00;
  color: #fff;
  border: none;
  font-weight: 600;
}

.nav-btn-primary:hover { background: #e55d00; }

.nav-btn-user {
  background: #fff3eb;
  border-color: rgba(255,107,0,.2);
  color: #ff6b00;
}

.nav-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: #ff6b00;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: #fff;
}

/* ===== Profile Page ===== */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-info h2 {
  margin: 0;
  font-size: 1.3rem;
}

.profile-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-credit-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.profile-credit-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-credit-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Profile Records */
.profile-section {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.profile-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
}

.profile-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.profile-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-records {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-record-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex-wrap: wrap;
}

.profile-record-item:hover {
  border-color: var(--border-glow);
}

.pr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pr-mode {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pr-position {
  font-weight: 500;
  font-size: 0.9rem;
}

.pr-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pr-right {
  text-align: right;
  flex-shrink: 0;
}

.pr-score {
  font-size: 1.2rem;
  font-weight: 700;
}

.pr-grade {
  font-size: 0.75rem;
  display: block;
}

.pr-detail {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pr-detail.open {
  max-height: 3000px;
  overflow-y: auto;
}

.pr-detail-inner {
  padding: 12px 0 0;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
}

.pr-dim {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pr-dim-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.pr-dim-bar div {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Record Q&A detail */
.pr-qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-qa-item {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.pr-qa-q {
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pr-qa-q span {
  color: var(--accent-blue);
  font-weight: 700;
  margin-right: 4px;
}

.pr-qa-a {
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(68,138,255,0.04);
  border-radius: 4px;
  margin-bottom: 4px;
}

.pr-qa-a span { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; }
.pr-qa-a em { color: var(--accent-orange); font-style: normal; font-size: 0.75rem; }

.pr-qa-ref {
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(0,230,118,0.03);
  border-radius: 4px;
  margin-bottom: 4px;
}

.pr-qa-ref span { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; }

.pr-qa-cmt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
}

/* Wrong Answer Bank */
.wrong-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wrong-item {
  padding: 14px;
  background: rgba(255,82,82,0.03);
  border: 1px solid rgba(255,82,82,0.1);
  border-radius: var(--radius-sm);
}

.wrong-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.wrong-pos {
  font-size: 0.78rem;
  padding: 2px 8px;
  background: rgba(68,138,255,0.1);
  border-radius: 10px;
  color: var(--accent-blue);
}

.wrong-level {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wrong-score {
  font-size: 0.75rem;
  font-weight: 700;
}

.wrong-score.bad { color: var(--accent-red); }

.wrong-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.wrong-q {
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.wrong-q strong { color: var(--accent-blue); }

.wrong-a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(255,152,0,0.04);
  border-left: 2px solid rgba(255,152,0,0.3);
  border-radius: 0 4px 4px 0;
  margin-bottom: 4px;
}

.wrong-a strong { color: var(--accent-orange); font-size: 0.72rem; }

.wrong-ref {
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(0,230,118,0.03);
  border-left: 2px solid rgba(0,230,118,0.3);
  border-radius: 0 4px 4px 0;
  margin-bottom: 4px;
}

.wrong-ref strong { color: var(--accent-green); font-size: 0.72rem; }

.wrong-cmt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 4px;
}

/* Practice modal */
.practice-q {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}

.practice-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.practice-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.practice-opt:hover {
  border-color: rgba(68,138,255,0.3);
}

.practice-opt.selected {
  background: rgba(68,138,255,0.12);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.practice-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.practice-opt.selected .practice-opt-letter {
  background: var(--accent-blue);
  color: #fff;
}

.practice-correct {
  padding: 14px;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.practice-wrong-ans {
  padding: 14px;
  background: rgba(255,82,82,0.06);
  border: 1px solid rgba(255,82,82,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 0.9rem;
}

.practice-hint {
  padding: 14px;
  background: rgba(68,138,255,0.04);
  border: 1px solid rgba(68,138,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Adjust page top padding for nav */
.page {
  padding-top: 80px;
}

#page-home {
  padding-top: 56px;
}

#page-report {
  padding-top: 60px;
}

#page-login, #page-register {
  padding-top: 0;
}

/* ===== Status Bar (hidden) ===== */
#status-bar {
  display: none;
}

/* ===== App Container ===== */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 50px;
}

/* ===== Page System ===== */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ===== Transition Overlay ===== */
#transition-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999; background: rgba(255,255,255,0.96);
  display: none; flex-direction: column; align-items: center;
  justify-content: center; pointer-events: all; user-select: none;
}

#transition-overlay.active {
  display: flex;
  animation: overlayIn 0.35s ease;
}

#transition-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.transition-content {
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.transition-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.transition-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-blue);
  border-right-color: var(--accent-purple);
  animation: ringSpin 1.2s linear infinite;
}

.transition-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.transition-messages {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#transition-text { font-size: 1.15rem; color: #1a1a2e; letter-spacing: 1.5px; font-weight: 500; min-height: 1.6em; }
#transition-subtitle { font-size: 0.82rem; color: #9ca3af; margin-top: 6px; transition: opacity 0.5s ease; opacity: 0.6; }

.transition-progress {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}

.transition-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: #ff6b00;
  color: #fff;
  border: none;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: #ff6b00;
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #e55d00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.25);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover { background: #e5e7eb; }

.btn-outline {
  background: #fff;
  color: #ff6b00;
  border: 1px solid #ff6b00;
  font-weight: 500;
}

.btn-outline:hover { background: #fff3eb; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); }

.btn-danger {
  background: #fef2f2;
  color: var(--accent-red);
  border: 1px solid #fecaca;
}

.btn-danger:hover { background: #fee2e2; }

.btn-large {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.back-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 20px;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ===== Home Page ===== */
/* 首页样式迁移至 css/home.css */

/* ===== Config Pages ===== */
.config-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.form-group label {
  display: block; margin-bottom: 10px; font-weight: 600;
  color: var(--text-primary); font-size: 0.88rem;
}

.config-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.config-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.mode1-badge {
  background: rgba(68, 138, 255, 0.15);
  color: var(--accent-blue);
}

.mode2-badge {
  background: rgba(124, 77, 255, 0.15);
  color: var(--accent-purple);
}

.config-header h2 {
  margin-bottom: 6px;
}

.config-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Form */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255,107,0,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Tag Select */
.tag-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  user-select: none;
}

.tag-item:hover { border-color: #ff6b00; color: var(--text-primary); }
.tag-item.active { background: #fff3eb; border-color: #ff6b00; color: #ff6b00; font-weight: 500; }

/* Level Select */
.level-select {
  display: flex;
  gap: 12px;
}

.level-item {
  flex: 1; padding: 12px; text-align: center;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.9rem; transition: var(--transition); user-select: none;
}
.level-item:hover { border-color: #ff6b00; }
.level-item.active { background: #fff3eb; border-color: #ff6b00; color: #ff6b00; font-weight: 600; }

/* Salary */
.salary-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.salary-range select {
  flex: 1;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #d1d5db; border-radius: var(--radius-md);
  padding: 40px; text-align: center; cursor: pointer;
  transition: var(--transition); background: #fafafa;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: #ff6b00; background: #fff3eb; }

.upload-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.upload-preview {
  text-align: center;
  margin-top: 12px;
}

.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: contain;
}

/* ===== Interview Page (New Design) ===== */
.interview-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
}

/* Top bar */
.iv-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}

.iv-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iv-position {
  font-weight: 600;
  font-size: 0.95rem;
}

.iv-level {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
}

.iv-timer-wrap {
  position: relative;
  width: 56px;
  height: 56px;
}

.iv-timer-svg {
  width: 56px;
  height: 56px;
}

.iv-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Progress bar */
.iv-progress-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.iv-progress-fill {
  display: none;
}

.iv-progress-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f0f0f0; border: 2px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: #9ca3af;
  cursor: pointer; transition: all 0.2s ease; flex-shrink: 0;
}
.iv-progress-dot:hover { border-color: #ff6b00; }
.iv-progress-dot.current { border-color: #ff6b00; background: #fff3eb; color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,0.12); }
.iv-progress-dot.done { border-color: #10b981; background: #ecfdf5; color: #10b981; }
.iv-progress-dot.skipped { border-color: #fecaca; background: #fef2f2; color: #ef4444; }

/* Question area */
.iv-question-area {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
  animation: cardSlideIn 0.3s ease;
}

.iv-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.iv-q-badge {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
}

.iv-q-num {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.iv-question-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 22px;
}

/* Options */
.iv-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iv-option {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: #fafafa; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease;
}
.iv-option:hover { background: #fff3eb; border-color: rgba(255,107,0,0.3); }
.iv-option.selected { background: #fff3eb; border-color: #ff6b00; }
.iv-opt-letter {
  width: 32px; height: 32px; border-radius: 50%; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0; transition: all 0.2s ease;
}
.iv-option.selected .iv-opt-letter { background: #ff6b00; color: #fff; }
.iv-opt-text { font-size: 0.9rem; color: var(--text-secondary); }
.iv-option.selected .iv-opt-text { color: var(--text-primary); }

/* Inputs */
.iv-input {
  width: 100%; padding: 14px 18px; background: #f9fafb;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.2s ease;
}
.iv-input:focus { border-color: #ff6b00; background: #fff; }

.iv-textarea {
  width: 100%; padding: 14px 18px; background: #f9fafb;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem; font-family: inherit;
  outline: none; resize: vertical; min-height: 120px; line-height: 1.7;
  transition: border-color 0.2s ease;
}
.iv-textarea:focus { border-color: #ff6b00; background: #fff; }

.iv-code-input {
  width: 100%; padding: 14px 18px; background: #1e1e2e;
  border: 1px solid #2d2d3d; border-radius: var(--radius-sm);
  color: #06b6d4; font-size: 0.85rem; font-family: var(--font-mono);
  outline: none; resize: vertical; min-height: 140px;
}

/* Actions */
.iv-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.iv-btn-ghost {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.iv-btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.iv-btn-next {
  padding: 10px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.iv-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(68,138,255,0.35);
}


/* ===== Report Page ===== */
/* ================================================================
   Report Dashboard — 全屏 Dashboard 布局
   ================================================================ */

.report-dash {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /* 减去顶部导航 */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.rd-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.rd-back {
  width: 36px; height: 36px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rd-back:hover { background: var(--bg-secondary); }
.rd-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rd-header-info { flex: 1; min-width: 0; }
.rd-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rd-header-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.rd-sep { color: var(--border-color); }
.rd-early { color: #ff9800; font-weight: 600; }

.rd-score-block {
  text-align: center;
  flex-shrink: 0;
  padding: 0 10px;
}
.rd-score-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rd-score-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.rd-header-actions { flex-shrink: 0; display: flex; gap: 10px; align-items: center; }
.rd-header-actions .btn-retry {
  background: linear-gradient(135deg, #ff6b00, #ff9800);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .88rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(255,107,0,.35);
  transition: all .2s;
  white-space: nowrap;
}
.rd-header-actions .btn-retry:hover {
  background: linear-gradient(135deg, #e55d00, #f57c00);
  box-shadow: 0 4px 18px rgba(255,107,0,.45);
  transform: translateY(-1px);
}

/* ---- 能力维度横条 ---- */
.rd-dims-bar {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  flex-shrink: 0;
  overflow-x: auto;
}
.rd-dim-item {
  flex: 1;
  min-width: 100px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.rd-dim-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
}
.rd-dim-bar-wrap {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}
.rd-dim-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.rd-dim-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

/* ---- Tabs ---- */
.rd-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 0 0;
  border-bottom: 2px solid var(--bg-secondary);
  flex-shrink: 0;
}
.rd-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: inherit;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.15s;
  position: relative;
}
.rd-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
.rd-tab.active {
  color: var(--accent-blue);
  font-weight: 600;
}
.rd-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}
.rd-tab-badge {
  font-size: 0.72rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.rd-tab.active .rd-tab-badge {
  background: rgba(255,107,0,0.1);
  color: var(--accent-blue);
}

/* ---- Content Area ---- */
.rd-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 20px;
  min-height: 0;
}
.rd-tab-panel { padding-top: 16px; }
.rd-scrollable { overflow-y: auto; }

/* ---- Overview Grid ---- */
.rd-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
@media (max-width: 768px) {
  .rd-overview-grid { grid-template-columns: 1fr; }
}

/* Cards */
.rd-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.rd-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}

/* Radar */
.rd-radar-card { grid-row: span 2; }
.rd-radar-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}

/* Radar Fallback — 横条图 */
.rd-radar-fallback { padding: 12px 0; }
.rd-dim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rd-dim-name {
  width: 72px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}
.rd-dim-track {
  flex: 1;
  height: 22px;
  background: #f3f4f6;
  border-radius: 11px;
  overflow: hidden;
}
.rd-dim-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
  position: relative;
}
.rd-dim-score {
  width: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.rd-dim-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* Stats Grid */
.rd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rd-stat-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.rd-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.rd-stat-unit { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.rd-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 得分分布条 */
.rd-dist-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.rd-dist-label { font-size: .8rem; color: #6b7280; width: 90px; flex-shrink: 0; text-align: right; }
.rd-dist-bar-wrap { flex: 1; height: 14px; background: #f0f0f5; border-radius: 7px; overflow: hidden; }
.rd-dist-bar { height: 100%; border-radius: 7px; transition: width .4s ease; min-width: 0; }
.rd-dist-count { font-size: .78rem; color: #8892b0; width: 40px; flex-shrink: 0; }

/* Match */
.rd-match-ring-wrap {
  text-align: center;
  margin-bottom: 14px;
}
.rd-match-ring {
  width: 100px;
  height: 100px;
  display: block;
  margin: 0 auto;
}
.rd-match-arc {
  stroke: #ff6b00;
}
.rd-match-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff6b00;
  display: block;
  margin-top: -68px;
  margin-bottom: 48px;
}
.rd-match-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -44px;
  margin-bottom: 16px;
}
.rd-match-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}
.rd-inference {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255,107,0,0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid #ff6b00;
}
.rd-inference-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}
.rd-inference p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.rd-recommend {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
}
.rd-recommend span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 4px;
}
.rd-rec-yes {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--accent-green);
}
.rd-rec-no {
  background: rgba(255,152,0,0.08);
  border: 1px solid rgba(255,152,0,0.2);
  color: var(--accent-orange);
}

/* ---- Question Reviews ---- */
.rd-review-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: box-shadow 0.15s;
}
.rd-review-item:hover { box-shadow: var(--shadow-card); }
.rd-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rd-review-num {
  width: 32px; height: 32px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.rd-review-type {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 10px;
}
.rd-review-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 10px;
}
.tag-mark { background: rgba(255,152,0,0.1); color: #ff9800; }
.tag-skip { background: rgba(239,68,68,0.08); color: var(--accent-red); }
.rd-review-score {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}
.rd-review-score.good { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.rd-review-score.medium { background: rgba(255,152,0,0.1); color: var(--accent-orange); }
.rd-review-score.low { background: rgba(239,68,68,0.08); color: var(--accent-red); }

.rd-review-q {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.rd-review-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .rd-review-answers { grid-template-columns: 1fr; }
}
.rd-review-user, .rd-review-ref {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  line-height: 1.6;
}
.rd-review-user {
  background: rgba(255,107,0,0.04);
  border: 1px solid rgba(255,107,0,0.1);
}
.rd-review-ref {
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.1);
}
.rd-review-label {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rd-review-comment {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* ---- Suggestions ---- */
.rd-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rd-suggestion-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  align-items: flex-start;
}
.rd-suggestion-item:hover { box-shadow: var(--shadow-card); }
.rd-sug-num {
  width: 36px; height: 36px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.rd-suggestion-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
  flex: 1;
}

/* Bottom actions */
.rd-actions-bottom {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  padding-bottom: 20px;
}
.rd-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 0.95rem;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 768px) {
  .report-dash { height: auto; min-height: 100vh; padding: 0 12px; }
  .rd-content { overflow-y: visible; }
  .rd-header { flex-wrap: wrap; gap: 8px; }
  .rd-header-actions { width: 100%; display: flex; gap: 8px; }
  .rd-header-actions .btn { flex: 1; }
  .rd-score-num { font-size: 2rem; }
  .rd-dims-bar { gap: 6px; }
  .rd-dim-item { min-width: 80px; padding: 8px 10px; }
  .rd-tab { padding: 8px 14px; font-size: 0.8rem; }
  .rd-overview-grid { grid-template-columns: 1fr; }
  .rd-radar-card { grid-row: auto; }
  .rd-stats { grid-template-columns: 1fr 1fr; }
}

/* ===== History Page ===== */
.history-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.history-header h2 { margin-bottom: 0; }

.history-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Filter */
.filter-bar {
  display: flex; gap: 10px; align-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); margin-bottom: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.filter-bar select,
.filter-bar input {
  padding: 8px 12px; background: #fff;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.85rem; font-family: inherit; outline: none;
}
.filter-bar input[type="text"] { flex: 1; min-width: 140px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: #ff6b00; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Records */
.records-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow-card);
}

.record-item:hover {
  border-color: var(--border-glow);
}

.record-item.expanded {
  border-color: var(--accent-blue);
}

.record-summary {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  gap: 16px;
  transition: var(--transition);
}

.record-summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.record-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.record-mode {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.mode1-tag { background: rgba(68, 138, 255, 0.12); color: var(--accent-blue); }
.mode2-tag { background: rgba(124, 77, 255, 0.12); color: var(--accent-purple); }

.record-position {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-meta {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  flex-wrap: wrap;
}

.record-right {
  text-align: right;
  flex-shrink: 0;
}

.record-score {
  font-size: 1.5rem;
  font-weight: 700;
}

.record-grade {
  font-size: 0.8rem;
}

.record-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.record-expand {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.record-item.expanded .record-expand {
  transform: rotate(180deg);
}

.record-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.record-detail.open {
  max-height: 2000px;
}

.detail-content {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h4 {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-section p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.dimension-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dim-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dim-label {
  width: 80px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-align: right;
}

.dim-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1s ease;
}

.dim-value {
  width: 30px;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

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

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); z-index: 9998;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 32px;
  max-width: 480px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-card h3 { margin-bottom: 4px; }

/* API Config Modal */
.api-config-modal {
  max-width: 520px;
}

.api-config-modal select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.api-config-modal select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(68, 138, 255, 0.1);
}

.api-config-modal select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.api-provider-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(68, 138, 255, 0.08);
  border: 1px solid rgba(68, 138, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.provider-logo {
  font-size: 1.4rem;
}

/* ===== Icon Replacements (non-emoji) ===== */
.icon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-right: 6px;
  vertical-align: middle;
}

.icon-gear {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
  margin-right: 4px;
}

.icon-gear::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.icon-label {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.8;
}

.icon-arrow {
  font-size: 1.1em;
  color: var(--text-muted);
}

.icon-arrow-r {
  font-size: 1em;
  color: inherit;
  opacity: 0.7;
}

.icon-mark,
.icon-marked {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  vertical-align: middle;
  margin-right: 2px;
  opacity: 0.6;
}

.icon-marked {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  opacity: 0.9;
}

.icon-check {
  display: inline-block;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: middle;
  margin-left: 4px;
}

/* Upload icon SVG */
.upload-icon svg {
  color: var(--text-muted);
}

/* Empty state icon */
.empty-icon svg {
  color: var(--text-muted);
}

/* ===== Auth Pages (Login/Register) ===== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.auth-logo {
  width: 48px; height: 48px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; letter-spacing: 1px;
  margin: 0 auto 12px;
}

.auth-header p {
  font-size: .88rem;
  color: #6b7280;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.auth-form input {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: #1a1a2e;
  outline: none;
}

.auth-form input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255,107,0,.06);
}

.auth-form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}

.auth-form button[type="submit"]:hover {
  background: #e55d00;
}

.field-error { display: none; font-size: .78rem; color: #ef4444; margin-top: 4px; }
.input-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; }

.auth-error {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #ef4444;
  font-size: .82rem;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: .88rem;
  color: #6b7280;
}

.auth-footer a {
  color: #ff6b00;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
}

.auth-hint {
  text-align: center;
  margin-top: 16px;
  padding: 10px;
  background: #fafafa;
  border-radius: 8px;
  font-size: .78rem;
  color: #9ca3af;
}

/* 用户协议复选框 */
.agreement-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.agreement-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #ff6b00;
  cursor: pointer;
  flex-shrink: 0;
}
.agreement-check a {
  color: #ff6b00;
  text-decoration: none;
  font-weight: 500;
}
.agreement-check a:hover {
  text-decoration: underline;
}

/* 用户协议弹窗 */
.agreement-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.agreement-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%; max-width: 560px;
  max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.agreement-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.agreement-header h2 {
  font-size: 1.05rem; font-weight: 700; margin: 0; color: #1a1a2e;
}
.agreement-close {
  background: none; border: none;
  font-size: 1.2rem; color: #9ca3af; cursor: pointer; padding: 4px 8px;
  border-radius: 4px;
}
.agreement-close:hover { color: #374151; background: #f3f4f6; }
.agreement-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: .85rem; line-height: 1.8; color: #374151;
}
.agreement-body h3 {
  font-size: .92rem; font-weight: 700; margin: 18px 0 8px; color: #1a1a2e;
}
.agreement-body p {
  margin: 6px 0;
}

.login-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.benefit-item {
  font-size: .85rem;
  color: #374151;
}

.benefit-icon {
  color: #10b981;
  margin-right: 6px;
  font-weight: 700;
}

/* ===== Auth Tabs (登录/注册模式切换) ===== */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  color: #4b5563;
}

.auth-tab.active {
  color: #ff6b00;
  border-bottom-color: #ff6b00;
  font-weight: 600;
}

.auth-tab-panel {
  display: none;
}

.auth-tab-panel.active {
  display: block;
}

/* ===== SMS 验证码输入行 ===== */
.sms-code-row {
  display: flex;
  gap: 10px;
}

.sms-code-row input {
  flex: 1;
  width: auto;
}

.btn-sms-code {
  padding: 10px 14px;
  background: #fff3eb;
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 8px;
  color: #ff6b00;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-width: 105px;
}

.btn-sms-code:hover:not(:disabled) {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
}

.btn-sms-code:disabled {
  background: #f5f5f5;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

/* ===== 图形验证码 ===== */
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.captcha-row input {
  flex: 1;
  width: auto;
}

.captcha-img-wrap {
  width: 120px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.captcha-img-wrap:hover {
  border-color: #ff6b00;
}

.captcha-img-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Recharge Page ===== */
.recharge-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.recharge-hero {
  text-align: center;
  margin-bottom: 32px;
}

.recharge-hero h2 {
  margin-bottom: 8px;
}

.recharge-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.recharge-hero strong {
  color: var(--accent-blue);
  font-size: 1.2rem;
}

/* 双栏布局 */
.recharge-columns {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.recharge-column {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px 16px;
}

.recharge-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.recharge-column-header .col-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.recharge-column-header h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0;
}

.recharge-column-header .col-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(68, 138, 255, 0.15);
  color: var(--accent-blue);
  margin-left: auto;
}

/* 套餐卡片在单列中的垂直排列 */
.package-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-card {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.package-card:hover {
  border-color: var(--accent-blue);
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

/* 订阅套餐卡片特殊样式 */
.sub-card .package-card {
  border-color: rgba(255, 107, 0, 0.2);
  background: rgba(255, 107, 0, 0.02);
}
.sub-card .package-card:hover {
  border-color: #ff6b00;
}
.sub-card .package-card.package-popular {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.06);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.1);
}

/* 按次充值卡片特殊样式 */
.credit-card .package-card {
  border-color: rgba(68, 138, 255, 0.15);
  background: rgba(68, 138, 255, 0.01);
}
.credit-card .package-card:hover {
  border-color: var(--accent-blue);
}

.package-popular {
  border-color: rgba(255, 107, 0, 0.5) !important;
  background: rgba(255, 107, 0, 0.04) !important;
}

.package-current {
  border-color: #4caf50 !important;
  background: rgba(76, 175, 80, 0.04) !important;
  cursor: default;
}
.package-current:hover {
  transform: none !important;
  border-color: #4caf50 !important;
  box-shadow: var(--shadow-card) !important;
}

.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 卡片左侧信息区 */
.package-info {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.package-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.package-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.package-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

/* 卡片右侧价格+按钮区 */
.package-action {
  text-align: center;
  flex-shrink: 0;
}

.package-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.2;
}

.package-price.sub-price {
  color: #ff6b00;
}

.price-symbol {
  font-size: 0.85rem;
  margin-right: 1px;
}

.package-per {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.recharge-priority-hint {
  text-align: center;
  padding: 12px 16px;
  margin: 16px 0 0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: .82rem;
  color: #1e40af;
  line-height: 1.6;
}

.recharge-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
  .recharge-columns {
    flex-direction: column;
  }
  .recharge-column {
    padding: 16px 12px;
  }
  .package-card {
    padding: 16px 12px;
  }
  .package-amount {
    font-size: 1.2rem;
  }
  .package-price {
    font-size: 1.4rem;
  }
}

/* ===== Payment Modal ===== */
.pay-modal-card {
  max-width: 440px !important;
  text-align: center;
  position: relative;
}

.pay-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.pay-close:hover { color: var(--text-primary); }

.pay-order-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: left;
}

.pay-order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pay-order-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pay-order-price {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1rem;
}

/* QR Code */
.qr-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.qr-placeholder {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.qr-placeholder-icon {
  width: 100px;
  height: 100px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #999;
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  animation: qrScan 2s linear infinite;
}

@keyframes qrScan {
  0% { top: 10px; }
  50% { top: 208px; }
  100% { top: 10px; }
}

/* ===== Payment Steps ===== */
.pay-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 8px;
  gap: 0;
}

.pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.pay-step.active { color: var(--accent-blue); }
.pay-step.done { color: var(--accent-green); }

.pay-step .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.pay-step.active .step-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(68,138,255,0.5);
  animation: pulse 1.5s ease infinite;
}

.pay-step.done .step-dot {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(0,230,118,0.4);
}

.pay-step-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
  margin-bottom: 18px;
}

/* Payment Status */
.pay-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-waiting { background: var(--accent-orange); animation: pulse 1.5s ease infinite; }
.status-detecting { background: var(--accent-blue); animation: pulse 0.8s ease infinite; }
.status-success { background: var(--accent-green); animation: none; }
.status-expired { background: var(--accent-red); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== Admin QR Package Editor ===== */
.qr-package-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-package-edit {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qr-pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-color);
}

.qr-pkg-title {
  font-weight: 600;
  color: var(--text-primary);
}

.qr-pkg-info {
  font-size: 0.85rem;
  color: var(--accent-blue);
}

.qr-pkg-body {
  display: flex;
  gap: 20px;
  padding: 16px;
  flex-wrap: wrap;
}

.qr-pkg-fields {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.qr-field input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.qr-field input:focus {
  border-color: var(--accent-blue);
}

.qr-pkg-upload {
  width: 140px;
  flex-shrink: 0;
  text-align: center;
}

.qr-upload-zone {
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
}

.qr-upload-zone:hover {
  border-color: var(--accent-blue);
  background: rgba(68,138,255,0.04);
}

.qr-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* Pending order row */
.order-pending {
  background: rgba(255, 152, 0, 0.04) !important;
}

.pending-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 152, 0, 0.15);
  color: var(--accent-orange);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== Payment Verify Input ===== */
.pay-verify-section {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.verify-input-row {
  display: flex;
  gap: 8px;
}

.verify-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-sm);
  color: #ffd700;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 0.3s ease;
}

.verify-input-wide {
  font-size: 0.8rem;
  min-width: 0;
}

.verify-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255,215,0,0.15);
}

.verify-input.verify-error {
  border-color: var(--accent-red);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.verify-hint {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255,215,0,0.06);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  word-break: break-all;
}

.verify-info-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: rgba(255,215,0,0.2);
  color: #ffd700;
  border-radius: 50%;
  text-align: center;
  line-height: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 4px;
  font-style: italic;
  font-family: serif;
}

/* Verify code display (step 2) */
.pay-step2-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.15);
  border-radius: var(--radius-sm);
}

.step2-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.verify-code-display {
  text-align: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(255,215,0,0.02));
  border: 2px dashed rgba(255,215,0,0.3);
  border-radius: var(--radius-md);
}

.verify-code-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.verify-code-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 8px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
  user-select: all;
}

.verify-code-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== User Bar (Home Page) ===== */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(17, 25, 40, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.guest-avatar {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border: 2px dashed rgba(255,255,255,0.2);
}

.trial-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-green);
  border-radius: 10px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

.credit-trial {
  background: rgba(0, 230, 118, 0.08) !important;
  border-color: rgba(0, 230, 118, 0.25) !important;
}

.credit-trial .credit-num {
  color: var(--accent-green) !important;
}

.trial-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.role-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(124, 77, 255, 0.2);
  color: var(--accent-purple);
  border-radius: 10px;
  font-weight: 600;
}

.user-credits {
  display: flex;
  align-items: center;
}

.credit-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 18px;
  background: rgba(68, 138, 255, 0.08);
  border: 1px solid rgba(68, 138, 255, 0.2);
  border-radius: var(--radius-sm);
  gap: 2px;
}

.credit-badge.credit-low {
  background: rgba(255, 152, 0, 0.08);
  border-color: rgba(255, 152, 0, 0.2);
}

.credit-badge.credit-empty {
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.2);
}

.credit-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.credit-empty .credit-num { color: var(--accent-red); }
.credit-low .credit-num { color: var(--accent-orange); }

.credit-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.user-actions {
  display: flex;
  gap: 8px;
}

.cost-tag {
  background: rgba(255, 215, 0, 0.1) !important;
  color: #ffd700 !important;
  border-color: rgba(255, 215, 0, 0.2) !important;
}

.icon-user {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 2px;
  position: relative;
}

.icon-user::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

/* ===== Admin Panel Pro ===== */
/* ===== 管理后台 ===== */
.admin-layout {
  display: flex; gap: 0;
  min-height: calc(100vh - 56px);
  width: 100%;
  background: #f8f9fb;
}
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  display: flex; flex-direction: column; padding: 0;
  border-radius: 0;
  box-shadow: 2px 0 20px rgba(0,0,0,.06);
}
.admin-sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #ff6b00, #ff9800);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255,107,0,.3);
}
.admin-sidebar-name { font-weight: 600; font-size: .88rem; color: #fff; }
.admin-sidebar-role { font-size: .7rem; color: rgba(255,255,255,.5); }

.admin-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: none; background: none;
  border-radius: 8px;
  font-size: .85rem; font-family: inherit;
  color: rgba(255,255,255,.6);
  cursor: pointer; width: 100%; text-align: left;
  transition: all .2s; position: relative;
}
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-item.active {
  background: rgba(255,107,0,.15); color: #ff9800; font-weight: 600;
  box-shadow: inset 3px 0 0 #ff6b00;
}
.admin-nav-icon { font-size: 1rem; width: 24px; text-align: center; flex-shrink: 0; }
.admin-nav-badge {
  margin-left: auto;
  background: #ff5252; color: #fff;
  font-size: .65rem; padding: 2px 8px; border-radius: 10px;
  font-weight: 700; min-width: 20px; text-align: center;
}
.admin-sidebar-footer { padding: 8px; border-top: 1px solid rgba(255,255,255,.08); }

.admin-main { flex: 1; min-width: 0; padding: 28px 32px 60px; overflow-x: hidden; }
.admin-main-header { margin-bottom: 24px; }
.admin-main-header h2 { margin: 0; font-size: 1.4rem; font-weight: 700; color: #1a1a2e; }

/* 统计卡片 */
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.admin-stat-card {
  background: #fff; border: none;
  border-radius: 14px; padding: 20px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.admin-stat-icon {
  font-size: 1.4rem; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0;
}
.admin-stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.admin-stat-label { font-size: .78rem; color: #8892b0; margin-top: 2px; }

/* 趋势图 */
.admin-chart { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding: 8px 0; }
.admin-chart-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.admin-chart-bar-value { font-size: .75rem; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
.admin-chart-bar { width: 100%; max-width: 48px; border-radius: 6px 6px 0 0; min-height: 0; transition: height .4s ease; }
.admin-chart-bar-label { font-size: .68rem; color: #8892b0; margin-top: 6px; }
.admin-chart-section { flex: 1; min-width: 260px; }

/* 评分分布 */
.admin-score-dist { display: flex; flex-direction: column; gap: 10px; }
.admin-score-bar-row { display: flex; align-items: center; gap: 10px; }
.admin-score-range { font-size: .78rem; color: #8892b0; width: 55px; flex-shrink: 0; text-align: right; }
.admin-score-bar-track { flex: 1; height: 22px; background: #f0f0f5; border-radius: 11px; overflow: hidden; }
.admin-score-bar-fill { height: 100%; border-radius: 11px; transition: width .5s ease; }
.admin-score-count { font-size: .78rem; font-weight: 600; color: #1a1a2e; min-width: 50px; }

/* 排行榜 */
.admin-rank-list { display: flex; flex-direction: column; gap: 8px; }
.admin-rank-item { display: flex; align-items: center; gap: 10px; }
.admin-rank-icon { width: 24px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.admin-rank-name { font-size: .82rem; color: #1a1a2e; width: 90px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-rank-bar-wrap { flex: 1; height: 18px; background: #f0f0f5; border-radius: 9px; overflow: hidden; }
.admin-rank-bar { height: 100%; border-radius: 9px; transition: width .5s ease; }
.admin-rank-count { font-size: .75rem; font-weight: 600; color: #8892b0; min-width: 36px; }

/* 维度列表 */
.admin-dim-list { display: flex; flex-direction: column; gap: 10px; }

/* 卡片 */
.admin-card {
  background: #fff; border: none;
  border-radius: 14px; padding: 24px 28px; margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f5;
}
.admin-card-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #1a1a2e; }
.admin-count { font-weight: 500; color: #8892b0; font-size: .8rem; background: #f0f0f5; padding: 2px 10px; border-radius: 10px; }

/* 信息网格 */
.admin-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
}
.admin-info-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 10px;
  background: #f8f9fb;
  transition: background .15s;
}
.admin-info-item:hover { background: #f0f2f5; }
.admin-info-label { color: #8892b0; font-size: .82rem; font-weight: 500; }
.admin-info-value { font-weight: 600; font-size: .88rem; color: #1a1a2e; }

/* API 厂商卡片网格 */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.provider-item-card {
  transition: all .15s ease;
}
.provider-item-card:hover {
  border-color: var(--accent-blue) !important;
  transform: translateY(-2px);
}

/* 预设厂商选择卡片 */
.preset-card {
  transition: all .15s ease;
}
.preset-card:hover {
  transform: translateY(-2px);
}
.admin-info-value .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-green { background: #4caf50; box-shadow: 0 0 6px rgba(76,175,80,.4); }
.dot-red { background: #ff5252; box-shadow: 0 0 6px rgba(255,82,82,.4); }

/* 筛选标签 */
.admin-filter-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: #f0f2f5; border-radius: 10px; padding: 4px;
}
.filter-tab {
  padding: 8px 18px; border: none; background: none;
  border-radius: 8px; font-size: .82rem; font-family: inherit;
  font-weight: 500; color: #6b7280; cursor: pointer;
  transition: all .2s;
}
.filter-tab:hover { color: #1a1a2e; }
.filter-tab.active { background: #fff; color: #ff6b00; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.filter-count { font-size: .7rem; margin-left: 4px; }
.filter-count.pending { color: #ff9800; font-weight: 700; }

/* 表格（管理后台专用） */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.admin-table thead th {
  text-align: left; padding: 12px 14px;
  font-weight: 600; font-size: .75rem; color: #8892b0;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 2px solid #f0f0f5;
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 13px 14px; border-bottom: 1px solid #f5f5f8;
  color: #374151;
}
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table tbody tr.admin-row { background: #fffdf7; }
.mono { font-family: 'SF Mono','Cascadia Code','Consolas',monospace; font-size: .78rem; }
.text-sm { font-size: .78rem; color: #8892b0; }
.text-muted { color: #8892b0; }
.text-success { color: #4caf50; }
.text-warning { color: #ff9800; }
.text-danger { color: #ff5252; }
.admin-actions-cell { white-space: nowrap; display: flex; gap: 6px; }
.admin-empty { text-align: center; padding: 40px; color: #8892b0; }
.admin-error { color: #ff5252; padding: 20px; }
.admin-loading { padding: 40px; text-align: center; color: #8892b0; }

/* 徽章 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: .73rem; font-weight: 600; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-muted { background: #f0f0f5; color: #8892b0; }
.badge-info { background: #e3f2fd; color: #1565c0; }
/* 订单状态标签 */
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: .75rem; font-weight: 600; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #f0f0f5; color: #8892b0; }
.status-refunded { background: #fce4ec; color: #c62828; }
.credit-badge { padding: 3px 10px; border-radius: 6px; font-weight: 600; font-size: .8rem; }
.credit-badge.ok { background: #e8f5e9; color: #2e7d32; }
.credit-badge.warn { background: #fff3e0; color: #e65100; }
.credit-badge.low { background: #fce4ec; color: #c62828; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; margin-left: 6px; }
.tag-admin { background: #fff3e0; color: #e65100; }
.admin-search { position: relative; }
.admin-search input {
  padding: 8px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: .82rem; width: 200px; font-family: inherit;
  transition: border-color .2s;
}
.admin-search input:focus { outline: none; border-color: #ff6b00; }

/* 模态 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-card {
  background: #fff; border-radius: 16px; padding: 24px 28px;
  max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-input, .form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
  font-size: .88rem; font-family: inherit; box-sizing: border-box;
  transition: border-color .2s;
}
.form-input:focus, .form-group input:focus { outline: none; border-color: #ff6b00; }
.form-hint { font-size: .73rem; color: #8892b0; margin-top: 4px; display: block; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }
.btns-row { display: flex; gap: 8px; margin-top: 8px; }
.preset-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.preset-tag {
  padding: 4px 12px; background: #f0f2f5; border-radius: 6px;
  font-size: .78rem; cursor: pointer; border: none; font-family: inherit;
  transition: all .15s;
}
.preset-tag:hover { background: #fff3eb; color: #ff6b00; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.ml-2 { margin-left: 8px; }
.package-edit-list { display: flex; flex-direction: column; gap: 10px; }
.package-edit-row { display: flex; align-items: center; gap: 10px; }
.package-edit-num { width: 28px; text-align: center; color: #8892b0; font-weight: 600; }
.package-edit-fields { flex: 1; display: flex; gap: 8px; }
.form-input-sm { padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: .8rem; width: 80px; font-family: inherit; }
.package-edit-qr { width: 40px; height: 40px; border: 1px dashed #d1d5db; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.qr-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.qr-remove { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #ff5252; color: #fff; border: none; font-size: .7rem; cursor: pointer; padding: 0; }
.qr-upload-hint { font-size: .6rem; color: #9ca3af; text-align: center; }
.filter-tab.active { background: #fff; color: var(--text-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.filter-count { font-size: 0.7rem; color: var(--text-muted); margin-left: 4px; }
.filter-count.pending { color: #ff9800; font-weight: 700; }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-muted { background: #f5f5f5; color: #9e9e9e; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: .75rem; font-weight: 600; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #f5f5f5; color: #9e9e9e; }
.status-refunded { background: #fce4ec; color: #c62828; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 600; margin-left: 4px; }
.tag-admin { background: #e3f2fd; color: #1565c0; }
.admin-row { background: #fafbff; }

/* Credit badge */
.credit-badge { font-weight: 700; font-size: 0.82rem; }
.credit-badge.ok { color: #2e7d32; }
.credit-badge.warn { color: #e65100; }
.credit-badge.low { color: #c62828; }

/* Dot */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-green { background: #4caf50; }
.dot-red { background: #f44336; }

/* Tables (refined) */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-table th {
  text-align: left; padding: 9px 12px;
  color: var(--text-muted); font-weight: 600; font-size: 0.75rem;
  border-bottom: 2px solid #f0f0f0; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .mono { font-family: var(--font-mono); font-size: 0.75rem; }
.admin-table .text-sm { font-size: 0.78rem; color: var(--text-muted); }
.admin-actions-cell { display: flex; gap: 6px; }
.admin-empty { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }
.admin-loading { text-align: center; padding: 60px; color: var(--text-muted); }
.admin-error { text-align: center; padding: 40px; color: #c62828; }

/* Package edit */
.package-edit-list { display: flex; flex-direction: column; gap: 10px; }
.package-edit-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fafafa;
  border-radius: 8px; border: 1px solid #eee;
}
.package-edit-num { width: 24px; height: 24px; background: #ff6b00; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.package-edit-fields { flex: 1; display: flex; gap: 8px; }
.package-edit-qr {
  width: 50px; height: 50px; border: 2px dashed #ddd; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; position: relative;
  overflow: hidden;
}
.qr-thumb { width: 100%; height: 100%; object-fit: cover; }
.qr-remove { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; background: #f44336; color: #fff; border: none; border-radius: 50%; font-size: 0.65rem; cursor: pointer; }
.qr-upload-hint { font-size: 0.58rem; color: var(--text-muted); text-align: center; }

/* Helpers */
.form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.9rem; font-family: inherit; color: var(--text-primary); outline: none; background: #fff; }
.form-input:focus { border-color: #ff6b00; box-shadow: 0 0 0 2px rgba(255,107,0,.08); }
.form-input-sm { padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.82rem; font-family: inherit; outline: none; width: 100%; background: #fff; }
.form-input-sm:focus { border-color: #ff6b00; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.btns-row { display: flex; gap: 10px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.ml-2 { margin-left: 8px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.82rem; }
.text-success { color: #2e7d32; }
.text-danger { color: #c62828; }
.text-warning { color: #e65100; }
.btn-sm { padding: 5px 12px !important; font-size: 0.78rem !important; min-height: 32px !important; }
.preset-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-tag { padding: 5px 12px; background: #f0f0f0; border-radius: 6px; font-size: 0.78rem; cursor: pointer; font-weight: 600; transition: all .15s; }
.preset-tag:hover { background: #ff6b00; color: #fff; }

/* Modal (refined) */
.modal-card { background: #fff; border-radius: 12px; padding: 24px; max-width: 400px; width: 90%; box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.modal-card h3 { margin: 0 0 8px; font-size: 1.1rem; }

/* Pagination */
.admin-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid #f0f0f5;
}
.admin-page-info { font-size: .82rem; color: #8892b0; }

/* Activity timeline */
.admin-activity-list {
  display: flex; flex-direction: column;
}
.admin-activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f8;
}
.admin-activity-item:last-child { border-bottom: none; }
.admin-activity-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0;
}
.admin-activity-body { flex: 1; min-width: 0; }
.admin-activity-text { font-size: .85rem; color: #1a1a2e; }
.admin-activity-time { font-size: .72rem; color: #8892b0; margin-top: 2px; }

/* Interview records */
.admin-interview-row { transition: background .15s; }
.admin-interview-row:hover { background: #fafbfc !important; }

/* Mobile admin */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; flex-direction: row; flex-wrap: wrap;
    border-right: none; border-bottom: 1px solid var(--border-color);
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar-header { display: none; }
  .admin-sidebar-footer { display: none; }
  .admin-nav {
    flex-direction: row; gap: 2px; padding: 0;
    flex: 0 0 auto;
  }
  .admin-nav-item {
    flex-shrink: 0; width: auto;
    padding: 8px 12px; font-size: 0.78rem;
  }
  .admin-nav-icon { font-size: 0.95rem; }
  .admin-nav-badge { margin-left: 4px; }
  .admin-main { padding: 14px 10px 40px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-stat-card { padding: 12px 10px; gap: 8px; }
  .admin-stat-icon { width: 32px; height: 32px; font-size: 1rem; }
  .admin-stat-value { font-size: 1rem; }
  .admin-stat-label { font-size: 0.68rem; }
  .admin-info-grid { grid-template-columns: 1fr; }
  /* 概览分析卡片移动端单列 */
  .admin-overview-analytics { grid-template-columns: 1fr !important; }
  .admin-chart-section { min-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .package-edit-row { flex-wrap: wrap; }
  .package-edit-fields { flex: 1 1 100%; flex-wrap: wrap; }
  .package-edit-fields .form-input-sm { flex: 1 1 30%; min-width: 70px; }
  .admin-table { min-width: 560px; }
  .admin-actions-cell { flex-direction: row; }
  .admin-sidebar { background: #1a1a2e; }
  .admin-nav-item { color: rgba(255,255,255,.5); }
}
}


/* Recharge presets */
.recharge-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.preset-tag {
  padding: 6px 14px;
  background: rgba(68,138,255,0.08);
  border: 1px solid rgba(68,138,255,0.2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--accent-blue);
  transition: var(--transition);
  user-select: none;
}

.preset-tag:hover {
  background: rgba(68,138,255,0.18);
}

/* ===== Toast ===== */
.toast-msg {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: #1a1a2e; color: #fff; border: none;
  border-radius: var(--radius-md); padding: 12px 28px;
  font-size: 0.9rem; z-index: 10000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.toast-msg .toast-icon { font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.toast-msg.toast-success { background: #065f46; border-left: 3px solid #10b981; }
.toast-msg.toast-error   { background: #7f1d1d; border-left: 3px solid #ef4444; }
.toast-msg.toast-warning { background: #78350f; border-left: 3px solid #f59e0b; }
.toast-msg.toast-info    { background: #1a1a2e; border-left: 3px solid #448aff; }
.toast-msg.show { transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-undo-btn {
  margin-left: 8px; padding: 3px 12px;
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px; font-size: .78rem; font-family: inherit; cursor: pointer;
  white-space: nowrap; transition: background .2s;
}
.toast-undo-btn:hover { background: rgba(255,255,255,.25); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ===== 汉堡菜单（桌面端隐藏） ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 210;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== 响应式 ===== */

/* ---------- 平板 / 小屏笔记本 (≤768px) ---------- */
@media (max-width: 768px) {
  /* 汉堡菜单 */
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-links, .nav-right { display: none !important; }
  .nav-links.mobile-open,
  .nav-right.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: #fff;
    padding: 12px 16px;
    gap: 2px;
    overflow-y: auto;
    z-index: 199;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
  .nav-right.mobile-open {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0; right: 0;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
  }
  .nav-links.mobile-open .nav-link {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* 排版 */
  html { font-size: 14px; }
  .hero-title { font-size: 1.8rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .home-hero h1 { font-size: 2rem; }

  /* 卡片 & 布局 */
  .mode-card { padding: 24px 16px; border-radius: 12px; }
  .config-card { padding: 20px 14px; border-radius: 10px; }
  .rd-card { padding: 16px; }
  .question-card { padding: 18px; }
  .interview-page-pro { padding: 12px 8px 30px; }
  section { padding: 40px 16px; }
  .profile-container { padding: 20px 14px 40px; }
  .config-page { padding: 16px 14px 40px; }

  /* 顶部导航 */
  #status-bar { padding: 6px 14px; font-size: 0.7rem; }
  .nav-inner { padding: 0 16px; }

  /* Grid 回退 */
  .home-features-grid { grid-template-columns: repeat(2, 1fr); }
  .home-steps-grid { grid-template-columns: 1fr; }
  .home-showcase-body { flex-direction: column; }
  .home-compare-grid { grid-template-columns: 1fr; }

  /* 管理后台 */
  /* 首页英雄 */
  .home-hero-stats { gap: 20px; }
  .stat-item { padding: 12px; }
}

/* ---------- 大屏手机 (≤480px) ---------- */
@media (max-width: 480px) {
  html { font-size: 13px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .home-hero h1 { font-size: 1.6rem; }
  .home-hero .subtitle { font-size: 0.95rem; }
  .home-hero { padding: 70px 14px 36px; }

  /* Grid → 全单列 */
  .home-features-grid { grid-template-columns: 1fr; }
  .home-hero-stats { flex-direction: column; gap: 12px; align-items: stretch; }
  .home-showcase-body { flex-direction: column; }
  .training-cards { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .rd-review-answers { grid-template-columns: 1fr; }

  /* 卡片全宽 */
  .mode-card, .config-card, .question-card {
    padding: 16px 12px;
    border-radius: 8px;
  }
  .profile-container, .config-page { padding: 14px 10px 36px; }

  /* 触控目标 ≥ 44px */
  button, .btn, .nav-link, .nav-btn, .nav-btn-user,
  .config-level-btn, .ivp-opt, .ivp-btn-ghost, .ivp-btn-next,
  select, input[type="submit"], .back-btn {
    min-height: 44px;
  }
  .btn-small { min-height: 36px; }

  /* 表单组件换行 */
  .config-level-group, .salary-range, .ivp-top,
  .filter-bar, .verify-input-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .config-level-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 80px;
    padding: 12px 8px;
    font-size: 0.8rem;
  }
  .level-select {
    flex-wrap: wrap;
    gap: 8px;
  }
  .level-select .config-level-btn {
    flex: 1 1 calc(33% - 6px);
  }

  /* 输入框全宽 */
  input, select, textarea {
    max-width: 100%;
    font-size: 16px; /* 防 iOS 缩放 */
  }

  /* 管理后台（已在主区块适配，此处仅保留小屏补丁） */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table { font-size: 0.75rem; min-width: 480px; }
  .admin-actions-cell .btn-sm { min-height: 30px; padding: 4px 8px; font-size: 0.68rem; }

  /* 首页英雄 */
  .home-hero { padding: 36px 12px 20px; }
  .home-hero h1 { font-size: 1.4rem; }
  .home-hero .subtitle { font-size: 0.85rem; }
  .home-hero-btns { flex-direction: column; gap: 8px; width: 100%; }
  .home-hero-btns button { width: 100%; min-height: 48px; font-size: 0.9rem; }
  .home-hero-stats { flex-wrap: wrap; gap: 8px; }
  .home-hero-stat { flex: 1 1 40%; min-width: 100px; padding: 10px; }
  .home-hero-stat .num { font-size: 1.2rem; }
  .home-hero-stat .label { font-size: 0.65rem; }

  /* 套餐 / 训练卡片 */
  .package-grid, .training-cards { grid-template-columns: 1fr; gap: 12px; }
  .package-card, .training-card { padding: 18px 14px; }

  /* 个人资料 */
  .profile-section { padding: 14px 10px; }
  .profile-header { flex-direction: column; text-align: center; gap: 10px; }
  .profile-avatar-large { margin: 0 auto; }
  .profile-credit-card { flex-direction: column; text-align: center; gap: 12px; }

  /* 弹窗 */
  .modal-card { width: 94%; max-width: 94%; padding: 18px 14px; border-radius: 12px; }
  .toast-msg { left: 5%; right: 5%; font-size: 0.8rem; text-align: center; }
  .pay-modal-card { max-width: 96%; padding: 16px 12px; }
  .qr-wrapper { width: 180px; height: 180px; }
  .pay-order-row { font-size: 0.82rem; }
  .verify-input-row { flex-direction: column; gap: 8px; }
  .verify-input { width: 100%; font-size: 16px; }

  /* 充值 */
  .recharge-container { padding: 12px 10px; }
  .recharge-hero { padding: 18px 12px; }
  .recharge-hero h2 { font-size: 1.2rem; }

  /* 首页展示 */
  .home-showcase-body { flex-direction: column; }
  .home-showcase-sidebar { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .home-showcase-main { min-width: auto; }

  /* 报告 Dashboard */
  .report-dash { height: auto; min-height: 100vh; padding: 0 10px; }
  .rd-header { flex-wrap: wrap; gap: 6px; padding: 12px 0 10px; }
  .rd-header-actions { width: 100%; display: flex; gap: 8px; }
  .rd-header-actions .btn { flex: 1; }
  .rd-score-num { font-size: 1.8rem; }
  .rd-dims-bar { gap: 4px; }
  .rd-dim-item { min-width: 70px; padding: 8px; }
  .rd-dim-label { font-size: 0.68rem; }
  .rd-overview-grid { grid-template-columns: 1fr; }
  .rd-radar-card { grid-row: auto; }
  .rd-review-item { padding: 14px 10px; }
  .rd-review-answers { grid-template-columns: 1fr; }
  .rd-tab { padding: 8px 12px; font-size: 0.78rem; }
  .rd-actions-bottom { flex-direction: column; gap: 8px; }
  .rd-actions-bottom .btn { width: 100%; min-height: 44px; }

  /* 导航栏 */
  .nav-brand { font-size: 0.85rem; }
  .nav-inner { padding: 0 8px; height: 48px; }
  .nav-logo { width: 28px; height: 28px; }
  .nav-links.mobile-open { top: 48px; }
  .nav-right { gap: 4px; }
  .nav-credit { font-size: 0.7rem; padding: 0 6px; }
  .nav-btn { padding: 5px 10px; font-size: 0.72rem; min-height: 36px; }
  .nav-btn-user { padding: 4px 8px; font-size: 0.72rem; }
  .nav-btn-user .nav-avatar { width: 24px; height: 24px; font-size: 0.7rem; }

  /* 面试页面 */
  .ivp-top { flex-direction: column; gap: 6px; padding: 10px 12px; }
  .ivp-dot { width: 22px; height: 22px; font-size: 0.65rem; min-width: 22px; }
  .ivp-question { font-size: 0.95rem; }
  .ivp-opt { padding: 12px 14px; margin-bottom: 6px; }

  /* 个人资料 */
  .profile-section { padding: 16px 12px; }
  .record-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .record-item { padding: 10px; font-size: 0.8rem; }

  /* Toast / 弹窗 */
  .modal-card { width: 94%; max-width: 94%; padding: 18px 14px; }
  .toast-msg { left: 5%; right: 5%; font-size: 0.8rem; text-align: center; }
  #status-bar { padding: 4px 10px; font-size: 0.65rem; }
}

/* ---------- 小屏手机 (≤360px) ---------- */
@media (max-width: 360px) {
  html { font-size: 12px; }
  .home-hero h1 { font-size: 1.4rem; }
  .home-hero .subtitle { font-size: 0.85rem; }

  .nav-title { font-size: 0.8rem; }
  .nav-logo { width: 24px; height: 24px; }
  .nav-hamburger { width: 40px; height: 40px; }
  .nav-hamburger span { width: 20px; }

  .config-level-btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .record-summary { grid-template-columns: 1fr; }
}

/* ===== 水面 + 面试鸡漂浮（首页） ===== */
.home-pond {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: visible;
  margin: -40px 0 0;
  z-index: 10;
}
.water-layer, .water-caustics { display: none; }

/* 水面线 */
.home-pond::before {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 5%; right: 5%;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.07) 50%, rgba(0,0,0,0.05) 80%, transparent);
  pointer-events: none;
}

/* 鸡容器 — GPU加速 translateX 替代 left */
.pond-chicken {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 70px; height: 70px;
  z-index: 20;
  will-change: transform;
  transform: translateX(-80px);
}
.pond-chicken.walking {
  animation: floatCross 8s linear forwards;
}
.chicken-body {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  transform: scaleX(-1) translateZ(0);
  position: relative;
  z-index: 3;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.pond-chicken.walking .chicken-body {
  animation: floatBob 2.5s ease-in-out infinite;
}

/* GPU动画：仅用transform+opacity */
@keyframes floatBob {
  0%, 100% { transform: scaleX(-1) rotate(-2deg) translateY(0) translateZ(0); }
  50%      { transform: scaleX(-1) rotate(2deg)  translateY(-3px) translateZ(0); }
}
@keyframes floatCross {
  0%   { transform: translateX(-80px); }
  100% { transform: translateX(calc(100vw + 30px)); }
}

/* ---- 水面涟漪 ---- */
.step-ripple {
  position: absolute;
  bottom: -6px; left: 50%;
  width: 8px; height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, 0) translateZ(0);
}
.pond-chicken.walking .step-ripple {
  animation: pondRipple 2.5s ease-out infinite;
}
.pond-chicken .step-ripple:nth-child(3) { animation-delay: 0s; }
.pond-chicken .step-ripple:nth-child(4) { animation-delay: 0.8s; }
.pond-chicken .step-ripple:nth-child(5) { animation-delay: 1.6s; }
@keyframes pondRipple {
  0%   { opacity: 0;   transform: translate(-50%, 0) scaleX(0.3) scaleY(0.1) translateZ(0); }
  15%  { opacity: 0.4; transform: translate(-50%, 0) scaleX(2) scaleY(0.3) translateZ(0); }
  50%  { opacity: 0.1; transform: translate(-50%, 0) scaleX(12) scaleY(1.5) translateZ(0); }
  100% { opacity: 0;   transform: translate(-50%, 0) scaleX(30) scaleY(3) translateZ(0); }
}

/* ---- 对话气泡 ---- */
.chicken-speech {
  position: absolute;
  top: -42px;
  left: 50%;
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 18px;
  white-space: nowrap;
  opacity: 0;
  z-index: 30;
  box-shadow: 0 3px 16px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
  pointer-events: none;
  transform: translateX(-50%);
}
.chicken-speech::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}
.chicken-speech.show {
  opacity: 1;
  animation: bubbleEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes bubbleEnter {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.5); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
  .home-hero h1 { font-size: 1.8rem; }
  .home-hero .subtitle { font-size: .9rem; padding: 0 8px; }
  .home-hero-stats { flex-wrap: wrap; gap: 12px; }
  .home-hero-stat { flex: 1 1 40%; }
  .home-hero-stat .num { font-size: 1.4rem; }
  .home-features-grid { grid-template-columns: 1fr 1fr; }
  .home-steps-grid { grid-template-columns: 1fr; }
  .home-compare-grid { grid-template-columns: 1fr; }
  .recharge-columns { flex-direction: column; }
  .recharge-column { flex: 1 1 auto; }
  .package-grid { grid-template-columns: 1fr; }
  .training-cards { flex-direction: column; align-items: center; }
  .training-card { max-width: 400px; width: 100%; }
  .config-card { padding: 24px 20px; }
  .config-section { padding: 16px 14px; }
  .interview-page-pro { padding: 16px 12px; }
  .ivp-card { padding: 20px 16px; }
  .ivp-opt { padding: 12px 14px; font-size: .88rem; }
  .rd-header { flex-wrap: wrap; gap: 10px; }
  .rd-header-actions { width: 100%; justify-content: flex-end; }
  .nav-inner { padding: 0 12px; }
  .nav-link { font-size: .82rem; padding: 6px 10px; }
  .modal-card { width: 92vw; max-width: 420px; padding: 20px 16px; }
  .mode-select-cards { flex-direction: column; }
  .mode-card { max-width: 100%; }
}
@media (max-width: 480px) {
  .home-hero h1 { font-size: 1.5rem; }
  .home-hero-stats { flex-direction: column; }
  .home-hero-stat { flex: 1 1 auto; }
  .home-features-grid { grid-template-columns: 1fr; }
  .home-positions-grid { grid-template-columns: repeat(2, 1fr); }
  .ivp-actions { flex-direction: column; }
  .ivp-btn-next, .ivp-btn-ghost { width: 100%; text-align: center; }
}
