/* ============ 4E 康复评估训练系统 · 患者端 · 桌面 Web 设计系统 ============ */

:root {
  --primary: #14B8A6;
  --primary-dark: #0D9488;
  --primary-light: #5EEAD4;
  --primary-50: #F0FDFA;
  --primary-100: #CCFBF1;

  --accent: #F59E0B;
  --accent-light: #FCD34D;

  --bg: #F1F5F9;
  --bg-page: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;

  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --text-on-primary: #FFFFFF;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 2px 8px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --header-h: 64px;
  --container-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Helvetica, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
img, svg { display: block; max-width: 100%; }

/* ============ 顶部导航 ============ */
.app-header {
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.app-header-inner {
  max-width: var(--container-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 12px rgba(20, 184, 166, .35);
}
.top-nav { display: flex; gap: 4px; flex: 1; }
.top-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--text-2);
  font-size: 14px; font-weight: 500;
  transition: color .15s, background .15s;
}
.top-nav a:hover { color: var(--text); background: var(--bg); }
.top-nav a.active { color: var(--primary-dark); background: var(--primary-50); font-weight: 600; }

.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--border); color: var(--text); }
.icon-btn .badge {
  position: absolute; top: 6px; right: 6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-full);
  background: var(--bg);
  font-size: 13px; font-weight: 500;
  color: var(--text);
  transition: background .15s;
}
.user-chip:hover { background: var(--border); }
.user-chip .avatar { width: 30px; height: 30px; font-size: 13px; }

/* ============ 主体 ============ */
.app-main {
  min-height: calc(100vh - var(--header-h));
  padding: 32px 0 64px;
}
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* 页面标题区 */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 16px;
}
.page-head .crumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 6px;
}
.page-head .crumb a:hover { color: var(--primary); }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.page-head .sub { color: var(--text-2); margin-top: 6px; font-size: 14px; }
.page-head .head-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 简单的返回栏(用于无 nav 的页面) */
.mini-bar {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
}
.mini-bar .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 14px;
  padding: 8px 12px; border-radius: var(--radius);
}
.mini-bar .back-link:hover { background: var(--bg); color: var(--text); }

/* ============ 卡片 ============ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card.flat { box-shadow: none; }
.card.tight { padding: 16px; }
.card.gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-on-primary);
  border: none;
}
.card.gradient .muted { color: rgba(255,255,255,.85); }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card-sub { font-size: 13px; color: var(--text-2); }
.section-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 32px 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title .more { font-size: 13px; font-weight: 500; color: var(--text-3); }
.section-title .more:hover { color: var(--primary); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  background: var(--bg);
  color: var(--text);
  transition: transform .1s, box-shadow .15s, background .15s, opacity .15s;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { background: var(--border); }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 184, 166, .3);
}
.btn.primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.btn.primary[disabled] { background: #CBD5E1; color: #fff; box-shadow: none; cursor: not-allowed; }
.btn.outline { background: transparent; border: 1.5px solid var(--border-strong); }
.btn.outline:hover { background: var(--bg); }
.btn.outline.primary { color: var(--primary-dark); border-color: var(--primary); background: transparent; box-shadow: none; }
.btn.outline.primary:hover { background: var(--primary-50); }
.btn.accent { background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%); color: #fff; box-shadow: 0 6px 16px rgba(245,158,11,.3); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #DC2626; }
.btn.ghost-danger { color: var(--danger); background: transparent; }
.btn.ghost-danger:hover { background: #FEF2F2; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn.sm { height: 32px; font-size: 13px; padding: 0 12px; }
.btn.icon { width: 40px; padding: 0; }

/* ============ 表单 ============ */
.field { margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.field-label .req { color: var(--danger); margin-left: 2px; }
.input, .textarea, .select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 12px 14px; min-height: 100px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}
.input.error { border-color: var(--danger); }
.input.with-suffix { padding-right: 110px; }
.field.invalid .input { border-color: var(--danger); background: #FEF2F2; }
.help { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.help.error { color: var(--danger); }
.field-group { position: relative; }
.field-suffix {
  position: absolute; right: 5px; top: 5px;
  height: 34px; padding: 0 14px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center;
}
.field-suffix:hover { background: var(--primary-100); }
.field-suffix.disabled, .field-suffix[disabled] { color: var(--text-3); background: var(--bg); cursor: not-allowed; }

/* ============ 进度条 ============ */
.progress {
  height: 8px; background: var(--bg); border-radius: var(--radius-full);
  overflow: hidden;
}
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: inherit; transition: width .3s ease; }
.progress.thin { height: 4px; }
.progress.thick { height: 12px; }
.progress.accent .bar { background: linear-gradient(90deg, var(--accent-light), var(--accent)); }

/* ============ 步骤指示 ============ */
.stepper-h {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 32px;
}
.stepper-h .step-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-3); font-size: 13px;
}
.stepper-h .step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  border: 2px solid var(--bg);
}
.stepper-h .step-item.active .step-num {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-50);
}
.stepper-h .step-item.active { color: var(--text); }
.stepper-h .step-item.done .step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.stepper-h .step-item.done { color: var(--primary-dark); }
.stepper-h .step-line { width: 80px; height: 2px; background: var(--bg); margin: 0 10px; }
.stepper-h .step-line.done { background: var(--primary); }

/* ============ 标签 chip ============ */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--bg); color: var(--text-2);
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
}
.chip:hover { background: var(--border); }
.chip.active { background: var(--primary-50); color: var(--primary-dark); border-color: var(--primary-light); }
.chip.accent { background: #FFFBEB; color: #B45309; }
.chip.danger { background: #FEF2F2; color: var(--danger); }
.chip.success { background: #ECFDF5; color: #047857; }
.chip.outline { background: transparent; border-color: var(--border); }
.chip.sm { height: 24px; padding: 0 10px; font-size: 11px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ 列表项 ============ */
.list { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.list-item:last-child { border-bottom: none; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover { background: var(--bg-page); }
.list-item .li-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--primary-50); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-item .li-icon.accent { background: #FFFBEB; color: #B45309; }
.list-item .li-body { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 14px; font-weight: 500; }
.list-item .li-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.list-item .li-action { color: var(--text-3); flex-shrink: 0; }

/* ============ 徽标 ============ */
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block;
}

/* ============ 工具类 ============ */
.row { display: flex; align-items: center; }
.row.gap-4 { gap: 4px; } .row.gap-8 { gap: 8px; } .row.gap-12 { gap: 12px; } .row.gap-16 { gap: 16px; } .row.gap-24 { gap: 24px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.col { display: flex; flex-direction: column; }
.col.gap-4 { gap: 4px; } .col.gap-8 { gap: 8px; } .col.gap-12 { gap: 12px; } .col.gap-16 { gap: 16px; } .col.gap-24 { gap: 24px; }
.center { display: flex; align-items: center; justify-content: center; }
.flex-1 { flex: 1; min-width: 0; }
.text-xs { font-size: 12px; } .text-sm { font-size: 13px; } .text-base { font-size: 14px; }
.text-lg { font-size: 16px; } .text-xl { font-size: 20px; } .text-2xl { font-size: 24px; } .text-3xl { font-size: 32px; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.text-primary { color: var(--primary-dark); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.rounded { border-radius: var(--radius); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 评分滑块 ============ */
.score-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
  box-shadow: 0 12px 32px rgba(20,184,166,.35);
}
.score-bar { display: flex; gap: 8px; padding: 4px; }
.score-bar .score-num {
  flex: 1; height: 48px;
  border-radius: 10px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  cursor: pointer; user-select: none;
  border: 1.5px solid transparent;
  transition: all .12s;
}
.score-bar .score-num:hover { border-color: var(--primary-light); }
.score-bar .score-num.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: var(--primary-dark);
}

/* ============ 缩略图 / 视频卡 ============ */
.thumb {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #94A3B8 0%, #64748B 100%);
  position: relative;
  overflow: hidden;
}
.thumb.gradient-1 { background: linear-gradient(135deg, #14B8A6 0%, #0EA5E9 100%); }
.thumb.gradient-2 { background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); }
.thumb.gradient-3 { background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%); }
.thumb.gradient-4 { background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%); }
.thumb.gradient-5 { background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%); }
.thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 60%);
  color: #fff;
}
.thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.95);
}
.thumb-play svg { width: 48px; height: 48px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.duration {
  font-size: 11px; padding: 2px 6px; background: rgba(0,0,0,.55);
  border-radius: 4px; color: #fff;
}

/* ============ 全屏沉浸场景(摄像头 / 视频录制 / 训练课程) ============ */
.immersive {
  min-height: 100vh;
  background: #0F172A;
  color: #fff;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.immersive .imm-header {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 20px 32px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 5;
  background: linear-gradient(180deg, rgba(0,0,0,.5), transparent);
}
.imm-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .15s;
}
.imm-icon-btn:hover { background: rgba(255,255,255,.2); }

/* 拍照快门 */
.shutter {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.shutter .inner { width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.shutter.recording .inner { background: var(--danger); border-radius: 8px; width: 28px; height: 28px; }

/* ============ 庆祝动画 ============ */
.celebrate {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 20px 50px rgba(20,184,166,.4);
  animation: pop .5s ease-out;
  position: relative;
}
.celebrate::before, .celebrate::after {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%; border: 2px solid var(--primary-light); opacity: .5;
  animation: ring 2s ease-out infinite;
}
.celebrate::after { animation-delay: .6s; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============ 空状态 ============ */
.empty {
  padding: 64px 24px; text-align: center;
  color: var(--text-3);
}
.empty-icon {
  width: 80px; height: 80px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}

/* ============ 网格 ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: flex-start; }
.split-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: flex-start; }
@media (max-width: 900px) {
  .split, .split-3 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .app-header-inner { padding: 0 16px; gap: 12px; }
  .container { padding: 0 16px; }
}

/* ============ 头像 ============ */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
  flex-shrink: 0;
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 80px; height: 80px; font-size: 28px; }
.avatar.xl { width: 96px; height: 96px; font-size: 36px; }

/* ============ 二维码 mock ============ */
.qr-mock {
  width: 180px; height: 180px;
  background:
    linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%) 0 0/16px 16px,
    linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%) 8px 8px/16px 16px,
    #fff;
  border: 10px solid #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; top: 96px;
  transform: translateX(-50%);
  background: rgba(15,23,42,.92); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-full);
  font-size: 14px; z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

/* ============ 试用期提示条(全宽) ============ */
.trial-banner {
  background: linear-gradient(90deg, #FEF3C7, #FDE68A);
  color: #92400E;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid #FBBF24;
}
.trial-banner .container { display: flex; align-items: center; justify-content: space-between; }

/* ============ Auth 页面专用布局 ============ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 540px;
  background: var(--bg-page);
}
.auth-hero {
  background:
    radial-gradient(800px 600px at 20% 30%, rgba(94,234,212,.5), transparent 60%),
    radial-gradient(700px 500px at 90% 80%, rgba(96,165,250,.35), transparent 60%),
    linear-gradient(135deg, #0D9488 0%, #0E7490 60%, #1E3A8A 100%);
  color: #fff;
  padding: 56px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.auth-hero::before {
  content: ""; position: absolute; right: -100px; bottom: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.auth-hero::after {
  content: ""; position: absolute; right: 80px; top: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.auth-hero-content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-form-side {
  padding: 56px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--surface);
}
.auth-form-inner { max-width: 380px; width: 100%; margin: 0 auto; }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-form-side { min-height: 100vh; padding: 32px 20px; }
}
.feat-item {
  display: flex; gap: 14px;
  padding: 14px 0;
}
.feat-item .feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

/* ============ Hero/Banner cards ============ */
.hero-card {
  background: linear-gradient(135deg, #14B8A6 0%, #0EA5E9 100%);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.hero-card::before {
  content: ""; position: absolute; right: 80px; top: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-card > * { position: relative; z-index: 1; }

/* ============ 索引页(总览)样式 ============ */
.index-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #ECFEFF 0%, #F8FAFC 40%);
  padding: 40px 24px 80px;
}
.thumb-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.thumb-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  display: block;
}
.thumb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.thumb-card .thumb-preview {
  aspect-ratio: 16/10;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.thumb-card .thumb-preview iframe {
  position: absolute; top: 0; left: 0;
  width: 333%; height: 333%;
  transform: scale(0.3);
  transform-origin: top left;
  border: none;
  pointer-events: none;
  background: #fff;
}
.thumb-card .meta { padding: 14px 18px 16px; }
.thumb-card .pid {
  font-size: 11px; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-50);
  padding: 2px 8px; border-radius: var(--radius-full);
  display: inline-block; margin-bottom: 6px;
}
.thumb-card .pname { font-size: 14px; font-weight: 600; color: var(--text); }
.thumb-card .pdesc { font-size: 12px; color: var(--text-3); margin-top: 4px; }
