/* 短视频托管 · 一站式工作台样式（双端自适应：手机 375/390 单列大按钮 + 电脑 900px+ 侧边栏宽屏工作台） */
:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --text: #181B20;
  --muted: #667085;
  --primary: #C8402F;
  --primary-dark: #A93325;
  --primary-soft: #FDF2F0;
  --ok: #167A4B;
  --ok-soft: #ECFDF3;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --err: #C0392B;
  --line: #E8E4DC;
  --shadow: 0 1px 2px rgba(24, 27, 32, .05), 0 6px 20px rgba(24, 27, 32, .04);
  --shadow-lg: 0 4px 12px rgba(24, 27, 32, .06), 0 16px 36px rgba(24, 27, 32, .06);
  --radius: 16px;
  --pad: 16px;
  --nav-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--pad);
  padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px));
}
.page.no-nav { padding-bottom: 32px; }

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
  position: sticky;
  top: 0;
  background: rgba(246, 245, 241, .92);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.topbar h1 { font-size: 19px; margin: 0; font-weight: 700; flex: 1; letter-spacing: -.2px; }
.topbar .back {
  width: 40px; height: 40px; margin-left: -8px;
  display: grid; place-items: center;
  border: 0; background: transparent; font-size: 20px; cursor: pointer;
  border-radius: 10px;
}
.topbar .back:hover { background: rgba(0,0,0,.04); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft); display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--primary);
  border: 1px solid rgba(200,64,47,.16); cursor: pointer;
}

/* 卡片与标题 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text); }

/* 徽章 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: #EFECE6;
  color: var(--muted);
}
.pill-primary { background: var(--primary-soft); color: var(--primary); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* 首页欢迎 Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 16px;
}
.hello { font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.3px; }
.plan {
  font-size: 14px; color: var(--muted);
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}

/* KPI 四宫格 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.kpi-card:hover { border-color: #D7D1C7; box-shadow: var(--shadow-lg); }
.kpi-card.kpi-highlight {
  background: linear-gradient(135deg, #FFF7F5 0%, #FFFFFF 100%);
  border-color: rgba(200, 64, 47, .28);
}
.kpi-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.kpi-val { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Bento 双栏 */
.bento-grid { display: grid; gap: 14px; }

/* 按钮 */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 17px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover:not(:disabled) { border-color: #CFC8BC; background: #FAF9F6; }
.btn:active { transform: scale(.99); }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(200, 64, 47, .22);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover:not(:disabled) { background: #12633D; border-color: #12633D; }
.btn-warn { background: #fff; border-color: var(--warn); color: var(--warn); }
.btn-warn:hover:not(:disabled) { background: #FFFBEB; }
.btn-lg { height: 56px; font-size: 18px; }
.btn-sm { min-height: 48px; font-size: 14px; width: auto; padding: 0 16px; border-radius: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-block { margin-bottom: 10px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }
.quick-actions { display: grid; gap: 10px; margin-bottom: 14px; }
.quick-actions .btn-block { margin-bottom: 0; }

.hint { font-size: 13px; color: var(--muted); }
.hint-warn { color: var(--warn); }
.center { text-align: center; }

/* 状态卡 */
.cards { display: grid; gap: 0; }
.card-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; cursor: pointer; min-height: 48px;
}
.card-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.card-row:first-child { padding-top: 4px; }
.card-row .k { font-size: 14px; color: var(--muted); flex: 1; }
.card-row .v { font-size: 15px; font-weight: 600; text-align: right; }
.card-row .unknown { color: var(--warn); font-weight: 600; }
.card-row .arrow { color: #C2BBB0; font-size: 18px; margin-left: 2px; }

/* 列表 */
.list { display: grid; gap: 12px; }
.item {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); cursor: pointer;
  text-align: left; width: 100%; transition: border-color .15s ease, transform .1s ease;
}
.item:hover { border-color: #CFC8BC; }
.cover {
  width: 64px; height: 86px; border-radius: 10px; background: #E9E3DB;
  flex: 0 0 auto; object-fit: cover;
}
.item .meta { flex: 1; min-width: 0; }
.item .title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.item .tag { font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 8px; border-radius: 99px; background: #F2EFEA; }
.tag-ok { color: var(--ok); background: var(--ok-soft); }
.tag-warn { color: var(--warn); background: var(--warn-soft); }

/* 分段 */
.tabs {
  display: flex; gap: 4px; background: #EAE5DC; border-radius: 12px;
  padding: 4px; margin: 8px 0 16px;
}
.tabs button {
  flex: 1; min-height: 48px; border: 0; border-radius: 9px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.tabs button.on { background: #fff; color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 52px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  padding: 12px 14px; font-size: 16px;
}
.input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
textarea.input { min-height: 96px; resize: vertical; }

/* 消息条 */
.banner {
  border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px;
  display: none;
}
.banner.show { display: block; }
.banner-warn { background: #FDF3E7; color: var(--warn); border: 1px solid rgba(180,83,9,.16); }
.banner-err { background: #FBEAE8; color: var(--err); border: 1px solid rgba(192,57,43,.16); }
.banner-gray { background: #ECE8E2; color: var(--text); }

/* 进度 */
.progress { height: 8px; background: #EFE9E2; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.progress > i { display: block; height: 100%; background: var(--primary); width: 0; transition: width .2s; }

/* 手机端底栏 */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-around;
  max-width: 480px; margin: 0 auto; z-index: 20;
}
.bottom-nav a, .bottom-nav button {
  position: relative;
  flex: 1; text-align: center; font-size: 11px; color: var(--muted);
  border: 0; background: none; min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; cursor: pointer; padding: 4px 0;
}
.bottom-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav .on { color: var(--primary); font-weight: 700; }
.bottom-nav .plus {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 26px; line-height: 1; margin-top: -16px; box-shadow: 0 6px 16px rgba(200,64,47,.32);
  display: grid; place-items: center; flex: 0 0 auto; padding: 0;
}

/* 底部面板 */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(20,20,20,.4); display: none; z-index: 30;
}
.sheet-mask.show { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: 480px; margin: 0 auto; transform: translateY(110%);
  transition: transform .22s ease; box-shadow: var(--shadow-lg);
}
.sheet.show { transform: translateY(0); }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }
.sheet .sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 10px 16px; font-size: 14px; cursor: pointer; min-height: 48px;
}
.chip:active { background: #F2ECE5; }

/* 视频与成片分屏 */
.clip-layout { display: grid; gap: 14px; }
.player-wrap {
  background: #111318; border-radius: 16px; overflow: hidden;
  position: relative; aspect-ratio: 9 / 16; max-height: 58vh;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.player-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-cover {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 8px;
  background-size: cover; background-position: center; color: #fff; cursor: pointer;
  text-align: center; padding: 16px;
}
.player-cover::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32);
}
.player-cover > * { position: relative; z-index: 1; }
.play-btn {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.94);
  color: var(--primary); font-size: 24px; display: grid; place-items: center; margin: 0 auto;
  border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer;
}
.clip-actions-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 480px; margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(246, 245, 241, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); z-index: 22;
}
.clip-spacer { height: 84px; }

/* 原生流量大屏图表与表格 */
.bar-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bar-row:last-child { border-bottom: 0; }
.bar-head { display: flex; justify-content: space-between; font-size: 14px; }
.bar-track { height: 9px; background: #EFECE6; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #E06D5E); border-radius: 99px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
  padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
.data-table th { font-size: 12px; font-weight: 600; color: var(--muted); background: #FAF9F6; }
.data-table tr:last-child td { border-bottom: 0; }

/* 空态 */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .icon { font-size: 38px; opacity: .65; margin-bottom: 8px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px); opacity: 0; z-index: 40;
  background: rgba(24,27,32,.92); color: #fff; padding: 10px 18px; border-radius: 12px;
  font-size: 14px; transition: all .2s; pointer-events: none; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 上传项 */
.upload-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.upload-item:last-child { border-bottom: 0; }
.upload-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.upload-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.upload-size { color: var(--muted); font-size: 13px; }
.upload-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 登录 */
.login-wrap { max-width: 420px; margin: 0 auto; padding: 56px 20px 24px; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: .3px; }
.brand .dot { color: var(--primary); }

/* 桌面端侧边栏（手机端隐藏） */
.side-nav { display: none; }

@media (min-width: 600px) {
  .page { max-width: 480px; }
}

/* ==================== 电脑端一站式工作台布局（≥900px） ==================== */
@media (min-width: 900px) {
  body.has-nav { padding-left: 244px; }
  body.has-nav .bottom-nav { display: none; }

  .side-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 244px;
    background: #FFFFFF;
    border-right: 1px solid var(--line);
    padding: 20px 14px 16px;
    z-index: 25;
  }
  .side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .side-logo {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--primary); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 15px;
    box-shadow: 0 4px 10px rgba(200,64,47,.25);
  }
  .side-brand-title { font-size: 16px; font-weight: 800; line-height: 1.2; }
  .side-brand-sub { font-size: 12px; color: var(--muted); }

  .side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: background .15s ease, color .15s ease;
  }
  .side-nav a svg {
    width: 19px; height: 19px; stroke: currentColor; fill: none;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
  }
  .side-nav a:hover { background: #F6F5F1; color: var(--text); }
  .side-nav a.on {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
  }
  .side-user {
    margin-top: auto;
    padding: 12px;
    border-radius: 12px;
    background: #FAF9F6;
    border: 1px solid var(--line);
  }
  .side-user-name { font-size: 14px; font-weight: 700; color: var(--text); }
  .side-user-plan { font-size: 12px; color: var(--muted); margin-top: 2px; }

  .page {
    max-width: 1040px;
    padding: 20px 36px 56px;
  }
  .page.page-wide { max-width: 1220px; }

  .topbar {
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    position: static;
    height: auto;
  }
  .topbar h1 { font-size: 24px; font-weight: 800; }
  .topbar .back,
  .topbar .avatar { display: none; }

  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
    margin: 0 0 18px;
  }
  .hero .quick-actions {
    display: flex;
    gap: 10px;
    margin: 0;
    flex: 0 0 auto;
  }
  .hero .quick-actions .btn {
    width: auto;
    min-width: 148px;
    padding: 0 20px;
    min-height: 56px;
    font-size: 15px;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }
  .kpi-card { padding: 18px 20px; }
  .kpi-val { font-size: 28px; }

  .bento-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* 成片确认页：电脑端左右分屏 */
  .clip-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .player-wrap {
    max-height: 610px;
    width: 100%;
    position: sticky;
    top: 20px;
  }
  .clip-actions-bar {
    position: static;
    max-width: none;
    margin: 14px 0 0;
    padding: 16px 18px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .clip-spacer { display: none; }

  .login-wrap {
    margin-top: 84px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 34px 32px;
    box-shadow: var(--shadow-lg);
  }
}

/* ==================== 零学习成本引导组件（双端通用） ==================== */
.nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bottom-badge {
  position: absolute;
  top: 4px;
  left: 52%;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.next-step-card {
  background: linear-gradient(135deg, #FFF5F3 0%, #FFFFFF 100%);
  border: 1.5px solid rgba(200, 64, 47, .35);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.next-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.next-step-title { font-size: 20px; font-weight: 800; line-height: 1.3; margin: 2px 0 4px; }
.next-step-desc { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.next-step-btn { min-height: 52px; }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.flow-step {
  border: 1px solid var(--line);
  background: #FAF9F6;
  border-radius: 14px;
  padding: 12px 13px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s ease, background .15s ease;
}
.flow-step:hover { border-color: #CFC8BC; }
.flow-step-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.flow-step-num { font-size: 13px; font-weight: 700; color: var(--text); }
.flow-step-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: #ECE8E2;
  color: var(--muted);
}
.flow-step-val { font-size: 13px; color: var(--muted); }
.flow-step.is-done { background: var(--ok-soft); border-color: rgba(22, 122, 75, .28); }
.flow-step.is-done .flow-step-badge { background: rgba(22, 122, 75, .15); color: var(--ok); }
.flow-step.is-now { background: var(--primary-soft); border-color: rgba(200, 64, 47, .42); }
.flow-step.is-now .flow-step-badge { background: var(--primary); color: #fff; }

.promise-bar {
  background: #FAF7F2;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.promise-bar strong { color: var(--text); }

.upload-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  text-align: center;
}
.upload-step {
  background: #FAF9F6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.upload-step b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.tab-hint {
  background: #FAF7F2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 14px;
  line-height: 1.5;
}
.action-guide {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 8px;
}

@media (min-width: 900px) {
  .next-step-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
  }
  .next-step-btn { width: auto; min-width: 210px; padding: 0 24px; flex: 0 0 auto; }
  .flow-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

/* ==================== 合一工作台顶栏三模块切换 & 企业账本样式 ==================== */
.module-bar {
  position: sticky;
  top: 0;
  z-index: 24;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.module-bar-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.module-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  background: #EFECE6;
  padding: 4px;
  border-radius: 12px;
}
.mod-tab {
  min-height: 48px;
  padding: 0 8px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.mod-tab:hover { color: var(--text); }
.mod-tab.on {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(24, 27, 32, .08);
}
.mod-label-full { display: none; }
.mod-label-short { display: inline; }
.mod-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.module-account { display: none; }
.side-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .4px;
  padding: 10px 12px 4px;
}
body.has-nav .topbar { position: static; background: transparent; backdrop-filter: none; }

/* 企业账本页面组件 */
.ledger-frame {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 520px;
  border: 0;
  display: block;
  background: #fff;
}
.ledger-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.metric-card {
  border: 1px solid var(--line);
  background: #FAF9F6;
  border-radius: 14px;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .15s ease, background .15s ease;
}
.metric-card:hover {
  border-color: rgba(200, 64, 47, .38);
  background: var(--primary-soft);
}
.metric-head { display: flex; align-items: center; gap: 8px; }
.metric-num {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
}
.metric-name { font-size: 14px; font-weight: 700; color: var(--text); }
.metric-q { font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.metric-desc { font-size: 12px; color: var(--muted); }

.gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gate-item {
  border: 1px solid var(--line);
  background: #FAF9F6;
  border-radius: 14px;
  padding: 14px;
}
.gate-label { font-size: 12px; color: var(--muted); }
.gate-val { font-size: 24px; font-weight: 800; color: var(--primary); margin: 4px 0; }
.gate-sub { font-size: 12px; color: var(--muted); }

@media (min-width: 900px) {
  .module-bar-inner {
    max-width: 1220px;
    padding: 8px 36px;
    justify-content: space-between;
  }
  .module-tabs {
    width: auto;
    min-width: 520px;
    display: inline-grid;
  }
  .mod-tab { padding: 0 18px; font-size: 14px; }
  .mod-label-short { display: none; }
  .mod-label-full { display: inline; }
  .module-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #FAF9F6;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
  }
  .module-account:hover, .module-account.on {
    border-color: rgba(200, 64, 47, .35);
    background: var(--primary-soft);
  }
  .module-account-name { font-weight: 700; }
  .module-account-plan { color: var(--muted); font-size: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
