/* ============ RH Studio 样式 ============ */
:root {
  --bg: #0a0e17;
  --bg-2: #0d1320;
  --surface: #111827;
  --surface-2: #161f30;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #e5e7eb;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --success: #34d399;
  --error: #f87171;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 10% -10%, rgba(167, 139, 250, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: var(--text); }
a { color: var(--accent); text-decoration: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { flex: none; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35)); }
.brand-text h1 { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.brand-text p { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: transform 0.06s ease, border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.ghost { background: transparent; padding: 6px 12px; font-size: 12px; }
.btn.primary {
  border: none;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  color: #fff; font-weight: 600;
  width: 100%; padding: 13px; font-size: 15px; margin-top: 6px;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.22);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary:disabled { filter: saturate(0.4) brightness(0.8); box-shadow: none; }
.btn.mini {
  padding: 4px 10px; font-size: 12px; border-radius: 8px;
  background: transparent; border: 1px dashed var(--border-strong); color: var(--text-2);
}

/* ---------- 功能导航 ---------- */
.feature-nav {
  position: sticky; top: 59px; z-index: 20;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.feature-nav::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 6px;
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.15s;
}
.nav-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(139, 92, 246, 0.22));
  border-color: rgba(56, 189, 248, 0.55);
}

/* ---------- 面板 ---------- */
.content { max-width: 1080px; margin: 0 auto; padding: 18px 16px 40px; }
.panel { display: none; }
.panel.active { display: block; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-head { margin-bottom: 14px; }
.panel-head h2 { font-size: 20px; font-weight: 700; }
.panel-head p { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block; font-size: 12.5px; color: var(--text-2);
  margin-bottom: 7px; font-weight: 500;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
textarea, select, input[type="text"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
textarea:focus, select:focus, input:focus { border-color: var(--accent); }
select { appearance: auto; height: 42px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ---------- 上传 ---------- */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.upload-grid.single { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.upload-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--text-3); font-size: 12px;
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-cell:hover { border-color: var(--accent); background: rgba(56, 189, 248, 0.04); }
.upload-cell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.upload-cell.has-file { border-style: solid; border-color: var(--border-strong); cursor: default; }
.upload-cell.has-file:hover { border-color: var(--border-strong); background: var(--bg-2); }
.upload-cell img.preview { width: 100%; height: 100%; object-fit: cover; }
.upload-cell .file-chip {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(13, 19, 32, 0.82);
  font-size: 11px; color: var(--text-2); text-align: center; padding: 6px;
  word-break: break-all;
}
.upload-cell .file-chip svg { width: 20px; height: 20px; }
.upload-cell .remove {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.upload-cell .remove:hover { background: var(--error); }
.upload-cell .uploading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 23, 0.7); font-size: 11px; color: var(--text-2);
}

/* ---------- 模式选择 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2);
  transition: all 0.15s;
}
.chip.active {
  color: #fff; border-color: var(--accent);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(139, 92, 246, 0.25));
}

/* ---------- 进度 ---------- */
.run-progress {
  margin-top: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 10px;
}
.run-progress .bar {
  flex: 1; height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.2); overflow: hidden;
}
.run-progress .bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px; transition: width 0.6s ease;
}
.run-progress .spin {
  width: 14px; height: 14px; flex: none;
  border: 2px solid rgba(148, 163, 184, 0.3); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 管线步骤 ---------- */
.steps { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
}
.step .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--text-3); }
.step.running .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15); animation: pulse 1.2s ease infinite; }
.step.success .dot { background: var(--success); }
.step.failed .dot { background: var(--error); }
.step .msg { margin-left: auto; font-size: 12px; color: var(--text-3); text-align: right; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.05); } }

/* ---------- 结果画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery:empty { display: none; }
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.result-card .media { position: relative; aspect-ratio: 1 / 1; background: #000; }
.result-card .media img, .result-card .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-card .media audio { width: 100%; position: absolute; bottom: 0; left: 0; }
.result-card .media .badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(10, 14, 23, 0.75); color: var(--text-2);
  border: 1px solid var(--border);
}
.result-card .meta { padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.result-card .meta .name {
  flex: 1; min-width: 0; font-size: 12px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result-card .meta a {
  font-size: 12px; padding: 4px 9px; border-radius: 8px;
  border: 1px solid var(--border-strong); color: var(--text-2);
  white-space: nowrap;
}
.result-card .meta a:hover { color: #fff; border-color: var(--accent); }

/* ---------- 其他 ---------- */
.transcript-wrap { position: relative; }
.file-btn.mini { display: inline-block; margin-top: 8px; }
.hint { font-size: 12px; color: var(--text-3); margin: -4px 0 10px; }
.hint a { color: var(--accent); }

.foot { margin-top: 30px; text-align: center; font-size: 12px; color: var(--text-3); padding: 8px 16px 84px; }
.foot a { color: var(--text-3); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ---------- 图形验证码（登录/注册） ---------- */
.captcha-row { display: flex; align-items: flex-end; gap: 10px; }
.captcha-row .grow { flex: 1; }
.captcha-img {
  width: 130px; height: 44px; border-radius: 8px; border: 1px solid var(--border-strong);
  cursor: pointer; object-fit: cover; background: var(--surface-2); display: none; flex-shrink: 0;
  margin-bottom: 14px;
}

/* ---------- 认证区 ---------- */
.auth-area { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.user-chip b { color: var(--accent); font-weight: 600; }
.user-chip .lvl { color: var(--accent-2); }
.user-chip a { font-size: 12px; color: var(--text-3); margin-left: 2px; }

/* ---------- 积分预估 ---------- */
.cost-line {
  margin-top: 10px; font-size: 12.5px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cost-line .pts { color: var(--warn); font-weight: 600; }
.cost-line .lvl-off { color: var(--accent-2); }
.cost-line.low { color: var(--error); }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 8, 14, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: fade 0.18s ease;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.modal-head h3 { font-size: 16px; }
.modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text-2);
  font-size: 15px; line-height: 1;
}
.modal-close:hover { color: #fff; border-color: var(--error); }
.modal-body { padding: 4px 16px 18px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  max-width: min(90vw, 480px);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 11px 18px; border-radius: 12px;
  font-size: 13px; z-index: 100;
  box-shadow: var(--shadow);
  animation: fade 0.2s ease;
}
.toast.error { border-color: rgba(248, 113, 113, 0.5); color: #fecaca; }
.toast.success { border-color: rgba(52, 211, 153, 0.5); }

/* ============ 四视图 & 宫格 & 底部导航（新版） ============ */
.content { padding-bottom: 76px; }
.view { display: none; }
.view.active { display: block; animation: fade 0.2s ease; }
.page-head { margin: 6px 0 16px; }
.page-head h2 { font-size: 20px; }
.page-head p { font-size: 13px; color: var(--text-3); margin-top: 3px; }

/* 桌面导航 */
.desk-nav { display: none; align-items: center; gap: 4px; }
.desk-nav-item {
  border: none; background: transparent; color: var(--text-2);
  font-size: 14px; padding: 8px 14px; border-radius: 999px; font-family: inherit;
}
.desk-nav-item:hover { color: var(--text); }
.desk-nav-item.active { background: var(--surface-2); color: var(--accent); }

/* 首屏 Hero */
.hero { text-align: center; padding: 22px 12px 6px; }
.hero h2 { font-size: clamp(20px, 4vw, 28px); background: linear-gradient(135deg, #7dd3fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 13px; color: var(--text-2); margin-top: 6px; max-width: 560px; margin-inline: auto; }

/* 区块标题 */
.grid-section { max-width: 980px; margin: 18px auto 0; padding: 0 16px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-title h3 { font-size: 16px; }
.sec-title span { font-size: 12px; color: var(--text-3); }

/* 功能宫格 */
.feat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.feat-card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 14px 12px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; font-family: inherit; color: var(--text);
  transition: transform 0.12s ease, border-color 0.15s, background 0.15s;
}
.feat-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.5); background: var(--surface-2); }
.feat-card:active { transform: scale(0.97); }
.feat-card img {
  width: 68px; height: 68px; border-radius: 14px; object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.feat-card .fc-name { font-size: 14.5px; font-weight: 600; }
.feat-card .fc-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }

/* 案例区 */
.case-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.case-card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
}
.case-card video, .case-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #000; }
.case-meta { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.case-badge {
  font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(56, 189, 248, 0.12); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.35);
}
.case-desc { font-size: 12.5px; color: var(--text-2); }

/* 作品网格 */
.works-grid {
  display: grid; gap: 14px; max-width: 980px; margin: 0 auto; padding: 0 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.work-card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
}
.work-card .media { background: #000; }
.work-card video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.work-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.work-meta { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; color: var(--text-2); }
.work-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(167, 139, 250, 0.12); color: var(--accent-2); border: 1px solid rgba(167, 139, 250, 0.35);
  white-space: nowrap;
}
.work-time { flex: 1; text-align: right; }
.work-meta a { font-size: 12px; }
.w-audio { background: var(--surface-2); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }

.empty-box { text-align: center; padding: 44px 16px; color: var(--text-3); grid-column: 1 / -1; }
.empty-box p { margin-bottom: 12px; font-size: 14px; }

/* 我的页 */
.mine-card {
  max-width: 720px; margin: 0 auto 16px; padding: 16px;
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius);
}
.mine-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mine-card-head h4 { font-size: 14.5px; }
.user-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
}
.ms-body { flex: 1; min-width: 160px; }
.ms-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lvl-badge {
  font-size: 11px; padding: 2px 9px; border-radius: 999px;
  background: rgba(251, 191, 36, 0.12); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.35);
}
.ms-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.ms-stats { display: flex; gap: 18px; flex: none; }
.stat { text-align: center; }
.stat b { display: block; font-size: 18px; color: var(--accent); }
.stat span { font-size: 11px; color: var(--text-3); }
.mine-tips { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); line-height: 2; }
.tx-list { display: flex; flex-direction: column; }
.tx-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px;
}
.tx-row:last-child { border-bottom: none; }
.tx-name { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-time { color: var(--text-3); font-size: 11.5px; flex: none; }
.tx-amt { font-weight: 600; flex: none; }
.tx-amt.in { color: var(--success); }
.tx-amt.out { color: var(--error); }
.btn.mini { padding: 5px 12px; font-size: 12px; }

/* 底部导航（手机端） */
.bottom-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
}
.btab {
  border: none; background: transparent; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: inherit; font-size: 11px; padding: 5px 0 3px;
}
.btab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.btab.active { color: var(--accent); }

/* 登录/注册辅助 */
.row-between { display: flex; align-items: center; justify-content: flex-end; }
.send-code-btn { white-space: nowrap; align-self: flex-end; margin-bottom: 14px; min-width: 108px; }

/* ============ 响应式（新版布局） ============ */
@media (min-width: 768px) {
  .desk-nav { display: flex; }
  .feat-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .case-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 767px) {
  .bottom-tabbar { display: grid; }
  .desk-nav { display: none; }
  .hero { padding: 14px 12px 2px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feat-card { padding: 12px 8px 10px; }
  .feat-card img { width: 60px; height: 60px; }
  .grid-section { padding: 0 12px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
  .case-grid { grid-template-columns: 1fr; }
  .user-summary { flex-direction: column; align-items: flex-start; }
  .ms-stats { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) {
  .feat-card .fc-desc { font-size: 10.5px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .topbar { padding: 10px 12px; }
  .feature-nav { top: 56px; padding: 8px 12px; }
  .brand-text p { display: none; }
  .content { padding: 14px 12px 32px; }
  .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .upload-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }

  /* 移动端触控与可读性优化 */
  .brand-text h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-actions .btn.ghost { min-height: 38px; padding: 8px 10px; font-size: 12.5px; }
  .user-chip { min-height: 38px; padding: 8px 12px; font-size: 13px; }
  .nav-item { padding: 10px 14px; font-size: 14px; }
  input, textarea, select { font-size: 16px; }
  .field-label { font-size: 13px; }
  .btn.primary { min-height: 46px; }
}
