/* ============================================================
   DeepSeek 聊天站 - 样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #4d6bfe;
  --blue-light: #e8efff;
  --blue-border: #dbe4ff;
  --side-bg: #f8faff;
  --line: #eef1f9;
  --text: #1a1a1a;
  --text-2: #3a3a3a;
  --gray: #9aa4b8;
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  overflow: hidden;
}

#app { display: flex; height: 100vh; overflow: hidden; }
.hidden { display: none !important; }
button.mobile-only { display: none; }

/* ---------------- 侧边栏 ---------------- */
#sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--side-bg);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  height: 100%;
}

.side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 4px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .3px; }

.side-new { padding: 12px 12px 0; }
.btn-new {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--blue-border); border-radius: 12px;
  background: #fff; color: var(--blue);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.btn-new:hover { background: #eef3ff; }
.btn-new svg { width: 16px; height: 16px; }

.side-label { padding: 20px 16px 4px; font-size: 12px; color: var(--gray); }

.conv-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.conv-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-top: 40px; font-size: 12px; color: #cbd2e0;
}
.conv-empty svg { width: 20px; height: 20px; }

.conv-item {
  position: relative; display: flex; align-items: center;
  padding: 8px 12px; margin-bottom: 2px;
  border-radius: 8px; font-size: 14px; color: var(--text-2);
  cursor: pointer; transition: background .12s;
}
.conv-item:hover { background: #eaefff; }
.conv-item.active { background: #dfe9ff; color: #1f2d5c; font-weight: 500; }
.conv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-ops { display: none; align-items: center; gap: 2px; flex-shrink: 0; margin-left: 4px; }
.conv-item:hover .conv-ops { display: flex; }
.conv-op {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: none; border-radius: 6px;
  background: transparent; color: var(--gray); cursor: pointer;
}
.conv-op:hover { background: #fff; color: var(--text); }
.conv-op.del:hover { color: #ef4444; }
.conv-op svg { width: 13px; height: 13px; }
.conv-rename {
  width: 100%; padding: 2px 4px; font-size: 14px;
  border: 1px solid var(--blue); border-radius: 4px; outline: none;
}

.side-user {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding: 12px 16px;
  cursor: pointer; transition: background .15s;
}
.side-user:hover { background: #f1f4fb; }
.me-enter { margin-left: auto; font-size: 12px; color: var(--gray); }
.avatar-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.u-name { font-size: 14px; }
.u-sub { font-size: 12px; color: var(--gray); }

.side-mask { display: none; }

/* ---------------- 主区域 ---------------- */
#main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: transparent; color: var(--gray); cursor: pointer; font-size: 16px;
}
.icon-btn:hover { background: #f1f4fb; }
.side-open { position: absolute; top: 12px; left: 12px; z-index: 30; }

/* 欢迎页 */
.hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 16px;
}
.hero h1 { margin-top: 20px; font-size: 26px; font-weight: 600; }
.hero-sub { margin-top: 8px; font-size: 15px; line-height: 24px; color: #6b7280; text-align: center; }
.hero .composer-slot { margin-top: 32px; width: 100%; max-width: 720px; }
.hero .disclaimer { margin-top: 12px; }
.hero .composer { box-shadow: 0 4px 24px rgba(77, 107, 254, .08); }

/* 对话页 */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.msg-scroll { flex: 1; overflow-y: auto; }
.msg-list { max-width: 800px; margin: 0 auto; padding: 32px 16px 16px; }
.composer-dock { padding: 0 16px 16px; }
.composer-dock .composer-slot { max-width: 800px; margin: 0 auto; }
.composer-dock .disclaimer { text-align: center; margin-top: 8px; }

.disclaimer { font-size: 12px; color: var(--gray); }

/* ---------------- 消息 ---------------- */
.msg { margin-bottom: 28px; }

.msg-user { display: flex; justify-content: flex-end; }
.bubble-user {
  max-width: 78%;
  background: var(--blue-light);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 16px;
  font-size: 15px; line-height: 28px; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}

.msg-asst { display: flex; gap: 12px; }
.asst-avatar { flex-shrink: 0; margin-top: 2px; }
.asst-body { flex: 1; min-width: 0; }

/* 思考过程 */
.think-head {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; cursor: pointer;
  font-size: 14px; color: #6b7280; padding: 0;
  transition: color .15s;
}
.think-head:hover { color: var(--text); }
.think-head svg { width: 15px; height: 15px; transition: transform .2s; }
.think-head.open svg { transform: rotate(180deg); }
.think-body {
  margin-top: 8px; margin-bottom: 10px;
  border-left: 2px solid #e3e9f6; padding-left: 12px;
  font-size: 14px; line-height: 24px; color: #6b7280;
  white-space: pre-wrap; word-break: break-word;
}

/* 加载指示 */
.typing-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); animation: ds-pulse 1s ease-in-out infinite;
}
@keyframes ds-pulse {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}
.shimmer {
  font-weight: 500;
  background: linear-gradient(90deg, #9aa4b8 25%, #e2e8f2 50%, #9aa4b8 75%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: ds-shimmer 1.4s linear infinite;
}
@keyframes ds-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ds-cursor::after {
  content: ""; display: inline-block;
  width: 7px; height: 16px; margin-left: 3px; vertical-align: -2px;
  border-radius: 2px; background: var(--blue);
  animation: ds-blink .9s steps(2, start) infinite;
}
@keyframes ds-blink { to { visibility: hidden; } }

/* 消息操作栏 */
.msg-actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.act-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: transparent; color: var(--gray); cursor: pointer;
  transition: all .12s;
}
.act-btn:hover { background: #f1f4fb; color: var(--text); }
.act-btn.on { color: var(--blue); }
.act-btn svg { width: 16px; height: 16px; }

/* ---------------- Markdown ---------------- */
.md { font-size: 15px; line-height: 1.8; color: #262626; word-break: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 {
  margin: 18px 0 10px; font-weight: 600; line-height: 1.4; color: var(--text);
}
.md h1 { font-size: 22px; } .md h2 { font-size: 19px; } .md h3 { font-size: 17px; }
.md h4 { font-size: 15px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--gray); }
.md blockquote {
  margin: 0 0 12px; border-left: 3px solid #d7e0f5;
  padding: 2px 0 2px 12px; color: #5b6472;
}
.md hr { margin: 18px 0; border: none; border-top: 1px solid #e8edf6; }
.md strong { font-weight: 600; color: var(--text); }
.md a { color: var(--blue); }
.md img { max-width: 100%; }
.md code:not(pre code) {
  background: #f1f4fb; border-radius: 5px; padding: 1.5px 5px;
  font-size: 13px; color: #33416e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.md .katex-display { margin: 12px 0; overflow-x: auto; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md th { border-bottom: 1px solid #e5eaf5; background: #f4f6fc; padding: 8px 12px; text-align: left; font-weight: 500; }
.md td { border-bottom: 1px solid #eef1f8; padding: 8px 12px; vertical-align: top; }
.md .table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid #e5eaf5; border-radius: 8px; }
.md .table-wrap table { margin: 0; }

/* 代码块 */
.code-block {
  margin: 12px 0; overflow: hidden;
  border: 1px solid #e5eaf5; border-radius: 12px; background: #fafbff;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px; border-bottom: 1px solid #edf0f8; background: #f4f6fc;
}
.code-lang { font-size: 12px; color: #6b7280; }
.code-copy {
  display: flex; align-items: center; gap: 4px;
  border: none; background: none; cursor: pointer;
  font-size: 12px; color: #6b7280;
}
.code-copy:hover { color: var(--text); }
.code-copy svg { width: 13px; height: 13px; }
.code-block pre { margin: 0 !important; padding: 14px 16px !important; background: transparent !important; overflow-x: auto; }
.code-block code { font-size: 13px; line-height: 1.7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------------- 输入框 ---------------- */
.composer-slot { position: relative; }
.composer {
  border: 1px solid #e2e8f5; border-radius: 24px; background: #fff;
  box-shadow: 0 2px 12px rgba(15, 35, 95, .05);
  transition: border-color .15s;
}
.composer:focus-within { border-color: var(--blue); }
#composer-input {
  display: block; width: 100%;
  border: none; outline: none; resize: none; background: transparent;
  padding: 16px 16px 0;
  font-size: 15px; line-height: 24px; color: var(--text);
  font-family: inherit;
  max-height: 200px;
}
#composer-input::placeholder { color: var(--gray); }
.composer-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 12px; }
.composer-tools { display: flex; align-items: center; gap: 8px; }

.pill {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid #e5e7eb; border-radius: 999px;
  background: #fff; color: #6b7280; font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.pill:hover { border-color: #cbd2e0; color: var(--text-2); }
.pill.on { border-color: rgba(77, 107, 254, .5); background: var(--blue-light); color: var(--blue); }
.pill svg { width: 15px; height: 15px; }

.btn-send {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--blue); color: #fff; cursor: pointer;
  transition: opacity .15s;
}
.btn-send:hover { opacity: .85; }
.btn-send:disabled { background: #dbe4ff; cursor: not-allowed; }
.btn-send svg { width: 18px; height: 18px; }
.btn-send .stop-sq { display: block; width: 12px; height: 12px; border-radius: 2px; background: #fff; }

/* ---------------- 提示条 ---------------- */
#toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-8px);
  padding: 10px 18px; border-radius: 10px;
  background: rgba(30, 34, 45, .92); color: #fff; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100;
  max-width: 80vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 「我的」弹窗 ---------------- */
.me-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .4);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.me-mask.hidden { display: none; }
.me-modal {
  width: 100%; max-width: 420px; max-height: 88vh;
  background: #fff; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 12px 48px rgba(15, 35, 95, .18);
}
.me-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #eef1f8;
}
.me-title { font-size: 16px; font-weight: 600; }
.me-body { padding: 16px; overflow-y: auto; }

.me-tabs { display: flex; gap: 4px; background: #f1f4fb; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.me-tabs button {
  flex: 1; height: 34px; border: none; border-radius: 8px;
  background: transparent; color: #6b7280; font-size: 14px; cursor: pointer;
}
.me-tabs button.on { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.me-form { display: flex; flex-direction: column; gap: 10px; }
.me-input {
  width: 100%; height: 42px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid #e2e8f5; border-radius: 10px; outline: none;
  font-size: 14px; color: var(--text); background: #fff;
}
.me-input:focus { border-color: var(--blue); }
.me-err { min-height: 18px; font-size: 13px; color: #e5484d; }
.me-btn {
  height: 42px; border: none; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: 15px; cursor: pointer;
  transition: opacity .15s;
}
.me-btn:hover { opacity: .88; }
.me-btn:disabled { opacity: .55; cursor: not-allowed; }
.me-btn-ghost {
  margin-top: 16px; width: 100%;
  background: #fff; color: #6b7280; border: 1px solid #e2e8f5;
}
.me-btn-ghost:hover { color: #e5484d; border-color: #f3c1c3; opacity: 1; }

.me-profile {
  border: 1px solid #eef1f8; border-radius: 12px;
  padding: 4px 14px; margin-bottom: 16px;
}
.me-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 14px;
  border-bottom: 1px solid #f4f6fc;
}
.me-row:last-child { border-bottom: none; }
.me-k { color: var(--gray); }
.me-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; background: #f1f4fb; color: #6b7280;
}
.me-badge.ok { background: #e6f6ec; color: #1a9e54; }
.me-verify-info { border: 1px solid #eef1f8; border-radius: 12px; padding: 4px 14px 10px; margin-bottom: 16px; }
.me-photos { display: flex; gap: 10px; padding: 8px 0 4px; flex-wrap: wrap; }
.me-photos a { font-size: 13px; color: var(--blue); text-decoration: none; }
.me-photos a:hover { text-decoration: underline; }
.me-tip { font-size: 12px; color: var(--gray); margin: 6px 0 0; }

.me-sec-title { font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
.me-verify-form { display: flex; flex-direction: column; gap: 10px; }
.me-up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.me-up {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; aspect-ratio: 4 / 3; border: 1.5px dashed #cbd5e6; border-radius: 10px;
  cursor: pointer; text-align: center; padding: 6px; overflow: hidden;
  background-size: cover; background-position: center;
  transition: border-color .15s;
}
.me-up:hover { border-color: var(--blue); }
.me-up.has-img .me-up-label,
.me-up.has-img .me-up-hint {
  background: rgba(0, 0, 0, .45); color: #fff; border-radius: 4px; padding: 1px 6px;
}
.me-up-label { font-size: 13px; color: var(--text); }
.me-up-hint {
  font-size: 11px; color: var(--gray);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- 登录 / 注册（DeepSeek 风格） ---------------- */
.auth-wrap { text-align: center; padding: 8px 4px 4px; }
.auth-logo { display: flex; justify-content: center; margin: 8px 0 4px; }
.auth-title { font-size: 22px; font-weight: 600; margin: 10px 0 20px; }
.auth-tabs {
  display: flex; gap: 24px; justify-content: flex-start;
  border-bottom: 1px solid #eef1f8; margin-bottom: 18px;
}
.auth-tab {
  border: none; background: none; cursor: pointer;
  font-size: 15px; color: #6b7280; padding: 0 2px 10px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.on { color: var(--blue); font-weight: 500; border-bottom-color: var(--blue); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-input {
  width: 100%; height: 46px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid #e5eaf5; border-radius: 10px; outline: none;
  font-size: 15px; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77, 107, 254, .12); }
.auth-btn {
  height: 46px; border: none; border-radius: 10px; margin-top: 2px;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: opacity .15s;
}
.auth-btn:hover { opacity: .88; }
.auth-agree { margin: 16px 0 4px; font-size: 12px; color: var(--gray); }

/* ---------------- 资料页 / 菜单 ---------------- */
.me-usercard {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 2px 16px;
}
.me-avatar-lg { width: 52px; height: 52px; font-size: 22px; }
.me-usercard-name { font-size: 17px; font-weight: 600; }
.me-usercard-sub { margin-top: 4px; }
.me-menu { border: 1px solid #eef1f8; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.me-menu-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 14px; border: none; background: #fff; cursor: pointer;
  font-size: 15px; color: var(--text); text-align: left;
  transition: background .15s;
}
.me-menu-row:hover { background: #f7f9ff; }
.me-menu-row.disabled { cursor: default; }
.me-menu-row.disabled:hover { background: #fff; }
.me-menu-ic { display: flex; color: var(--blue); }
.me-menu-ic svg { width: 20px; height: 20px; }
.me-menu-label { flex: 1; }
.me-menu-extra { font-size: 13px; color: var(--gray); }
.me-menu-extra.ok { color: #1a9e54; }
.me-menu-arrow { color: #c4cde0; font-size: 16px; }

/* ---------------- 实名认证向导 ---------------- */
.wz-steps { display: flex; align-items: center; margin: 4px 0 18px; }
.wz-step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); }
.wz-step.on { color: var(--blue); font-weight: 500; }
.wz-step.done { color: #1a9e54; }
.wz-dot {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #eef1f8; font-size: 12px;
}
.wz-step.on .wz-dot { background: var(--blue); color: #fff; }
.wz-step.done .wz-dot { background: #1a9e54; color: #fff; }
.wz-line { flex: 1; height: 1px; background: #e5eaf5; margin: 0 8px; }
.wz-line.done { background: #1a9e54; }
.wz-body { display: flex; flex-direction: column; gap: 12px; }
.wz-hint { font-size: 13px; color: #6b7280; line-height: 1.6; }
.wz-check { min-height: 18px; font-size: 13px; }
.wz-check.ok { color: #1a9e54; }
.wz-check.bad { color: #e5484d; }
.wz-video-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid #e5eaf5; border-radius: 12px; overflow: hidden;
  background: #0f172a; display: flex; align-items: center; justify-content: center;
}
.wz-video-box video { width: 100%; height: 100%; object-fit: cover; }
.wz-video-empty { color: #94a3b8; font-size: 13px; }
.wz-action {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(15, 23, 42, .72); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: 1px;
  white-space: nowrap; z-index: 2;
}
.wz-flash {
  position: absolute; inset: 0; background: #fff;
  opacity: 0; pointer-events: none; z-index: 3;
  transition: opacity .15s;
}
.wz-flash.on { opacity: .96; }
.wz-video-code {
  text-align: center; font-size: 15px; font-weight: 600; color: var(--blue);
  letter-spacing: 1px;
}
.wz-btns { display: flex; gap: 8px; }
.me-btn-mini { flex: 1; height: 38px; font-size: 13px; }
.me-btn-ghost2 { background: #f1f4fb; color: var(--text); }
.me-upload-video {
  display: block; text-align: center; padding: 10px;
  border: 1.5px dashed #cbd5e6; border-radius: 10px;
  font-size: 13px; color: #6b7280; cursor: pointer;
  transition: border-color .15s;
}
.me-upload-video:hover { border-color: var(--blue); color: var(--blue); }
.me-link {
  border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--gray); padding: 4px;
}
.me-link:hover { color: var(--text); }
.me-up-grid.two { grid-template-columns: repeat(2, 1fr); }

/* ---------------- 全屏活体认证 ---------------- */
.lv-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #0b1020;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
  transition: background-color .15s;
}
.lv-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; cursor: pointer;
}
.lv-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lv-ring {
  width: min(72vw, 340px); height: min(72vw, 340px);
  border-radius: 50%; padding: 6px;
  border: 5px solid rgba(255, 255, 255, .35);
  transition: border-color .2s, box-shadow .2s;
}
.lv-ring.face-ok { border-color: #22c55e; box-shadow: 0 0 30px rgba(34, 197, 94, .45); }
.lv-circle {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: #000; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lv-circle video { width: 100%; height: 100%; object-fit: cover; }
.lv-placeholder { color: #64748b; font-size: 14px; }
.lv-action {
  margin-top: 22px; padding: 10px 22px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 16px; font-weight: 500; letter-spacing: 1px;
  text-align: center;
}
.lv-btns { display: flex; gap: 10px; margin-top: 26px; width: 100%; max-width: 340px; }
.lv-btn {
  flex: 1; height: 46px; border: none; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
}
.lv-btn:disabled { opacity: .4; cursor: not-allowed; }
.lv-btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.wz-done {
  padding: 10px 14px; border-radius: 10px;
  background: #e6f6ec; color: #1a9e54; font-size: 14px; text-align: center;
}

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d9e0ee; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c4cde0; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 768px) {
  button.mobile-only { display: flex; }
  #sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: 280px;
    transform: translateX(-100%); transition: transform .25s;
    box-shadow: none;
  }
  #sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.12); }
  .side-mask {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgba(0, 0, 0, .3);
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .side-mask.show { opacity: 1; pointer-events: auto; }
}
