/* ================================================================
   流量蜂红薯扫码发布捷径 · 本地版
   1. 基础     2. 宣传页     3. 多维表格工作台     4. 弹窗     5. 扫码发布页
   ================================================================ */

/* ---------- 1. 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1f2329;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.ic {
  width: 16px;
  height: 16px;
}

[hidden] {
  display: none !important;
}

/* ---------- 2. 宣传页 ---------- */
.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(109, 74, 255, 0.1), transparent 60%),
    radial-gradient(900px 420px at 92% 0%, rgba(255, 36, 66, 0.07), transparent 55%),
    #f6f6fb;
  padding: 44px 40px 26px;
}

.landing {
  max-width: 1440px;
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
}

.hero-logo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ff4b3e 0%, #e11d2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(225, 29, 46, 0.3);
}

.hero-logo .bee {
  width: 58px;
  height: 58px;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.hero-text p {
  margin: 0;
  color: #5c6270;
  font-size: 17px;
}

.btn-cta {
  margin-left: auto;
  flex: none;
  padding: 13px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f6bff, #2456e6);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(47, 107, 255, 0.36);
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 566px;
  background: #fff;
  border: 1px solid #ececf5;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(35, 38, 64, 0.07);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border-bottom: 1px solid #f1f1f7;
}

.panel-head.core-head {
  background: linear-gradient(118deg, #6d4aff 0%, #7c5cff 48%, #9b78ff 100%);
  color: #fff;
  border-bottom: 0;
  position: relative;
}

.panel-head.core-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.feishu-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef3ff;
  color: #3457ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feishu-mark svg {
  width: 22px;
  height: 22px;
}

.feishu-mark.light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.head-divider {
  width: 1px;
  height: 20px;
  background: #e0e2ea;
}

.head-divider.light {
  background: rgba(255, 255, 255, 0.34);
}

.xhs-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #ff2442;
  background: #fff1f3;
  border-radius: 6px;
  padding: 3px 8px 3px 4px;
}

.core-head .xhs-pill {
  background: rgba(255, 255, 255, 0.96);
}

.xhs-icon {
  width: 17px;
  height: 17px;
}

.xhs-icon.tiny {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
}

.panel-note {
  margin-left: auto;
  font-size: 13px;
  color: #9aa0aa;
}

.core-pill {
  margin-left: auto;
  font-size: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 4px 12px;
}

.panel-body {
  flex: 1;
}

.flow-body {
  display: flex;
  align-items: center;
  padding: 44px 30px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.step {
  width: 31%;
  text-align: center;
  position: relative;
}

.step-badge {
  position: absolute;
  top: -10px;
  right: calc(50% - 62px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(140deg, #7b5bff, #5c3bff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(92, 59, 255, 0.32);
  z-index: 2;
}

.step-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 40px;
  height: 40px;
}

.icon-violet {
  background: linear-gradient(150deg, #f0ebff, #e4dcff);
  color: #6d4aff;
}

.icon-amber {
  background: linear-gradient(150deg, #fff7dd, #ffe9b3);
  color: #f5a300;
}

.icon-rose {
  background: linear-gradient(150deg, #ffe9ee, #ffd3dd);
  color: #ff2442;
}

.step h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #8a8f99;
}

.step-link {
  align-self: flex-start;
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #c5c8d2;
}

.step-link .dots {
  letter-spacing: 3px;
  font-size: 12px;
  color: #c9c3ff;
}

.step-link .link-label {
  font-size: 12px;
  color: #9aa0aa;
  background: #f5f4fb;
  border-radius: 999px;
  padding: 2px 10px;
}

.core-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: linear-gradient(180deg, #f7f4ff 0%, #fbfaff 100%);
}

.core-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.core-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(45, 38, 90, 0.06);
  border-top: 3px solid transparent;
}

.core-card.accent-blue {
  border-top-color: #5b8cff;
}

.core-card.accent-red {
  border-top-color: #ff5c74;
}

.core-card.accent-amber {
  border-top-color: #ffc53d;
}

.core-card.accent-green {
  border-top-color: #34c759;
}

.core-icon {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-icon svg {
  width: 26px;
  height: 26px;
}

.icon-blue {
  background: #edf2ff;
  color: #4d7cff;
}

.icon-green {
  background: #e9f9ee;
  color: #23b14d;
}

.core-text h3 {
  margin: 2px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.core-text p {
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4e5969;
}

.core-text p.muted {
  color: #9aa0aa;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 26px;
  background: #fafafc;
  border-top: 1px solid #f1f1f7;
  color: #9aa0aa;
  font-size: 12.5px;
}

.foot-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.foot-arrow {
  color: #c2c6cf;
}

.landing-tip {
  margin: 22px 0 0;
  text-align: center;
  color: #9aa0aa;
  font-size: 12.5px;
}

/* ---------- 3. 多维表格工作台 ---------- */
.app-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #e5e6eb;
  background: #fff;
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.tb-logo {
  width: 28px;
  height: 28px;
  color: #3457ff;
}

.tb-logo svg {
  width: 24px;
  height: 24px;
}

.tb-app {
  font-size: 14px;
  color: #4e5969;
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
  margin-left: 10px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  color: #4e5969;
}

.tab.active {
  background: #fff;
  border-color: #e5e6eb;
  color: #1f2329;
  box-shadow: 0 -2px 6px rgba(31, 35, 41, 0.04);
}

.tab-bee {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(145deg, #ff4b3e, #e11d2e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-bee svg {
  width: 12px;
  height: 12px;
}

.tab-close {
  border: 0;
  background: transparent;
  color: #9aa0aa;
  font-size: 15px;
  line-height: 1;
  padding: 2px 3px;
  border-radius: 4px;
}

.tab-close:hover {
  background: #f2f3f5;
  color: #1f2329;
}

.tab-add {
  border: 0;
  background: transparent;
  color: #8f959e;
  font-size: 18px;
  width: 30px;
  height: 32px;
  border-radius: 6px;
}

.tab-add:hover {
  background: #f2f3f5;
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-back {
  font-size: 12.5px;
  color: #4e5969;
  padding: 5px 10px;
  border-radius: 6px;
}

.tb-back:hover {
  background: #f2f3f5;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(140deg, #7c5cff, #4d7cff);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 10px;
  flex-wrap: wrap;
}

.doc-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.doc-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.doc-star {
  color: #c2c6cf;
  font-size: 18px;
  cursor: default;
}

.doc-saved {
  font-size: 12px;
  color: #9aa0aa;
  margin-left: 4px;
}

.doc-saved.flash {
  animation: saved-flash 0.9s ease;
}

@keyframes saved-flash {
  0% {
    color: #00b42a;
  }
  100% {
    color: #9aa0aa;
  }
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #d0d3d9;
  background: #fff;
  font-size: 13px;
  color: #1f2329;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: #f7f8fa;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.primary {
  background: #3370ff;
  border-color: #3370ff;
  color: #fff;
}

.btn.primary:hover {
  background: #245bdb;
  border-color: #245bdb;
}

.btn.ghost {
  background: #fff;
}

.hint-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 20px 14px;
  padding: 10px 14px;
  background: #f0f4ff;
  border: 1px solid #dbe5ff;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #40516e;
}

.hint-bar b {
  color: #1c3f8f;
  font-weight: 600;
}

.hint-bee {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, #ff4b3e, #e11d2e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hint-bee svg {
  width: 14px;
  height: 14px;
}

.hint-link {
  margin-left: auto;
  flex: none;
  border: 0;
  background: transparent;
  color: #3370ff;
  font-size: 12.5px;
  padding: 4px 6px;
  border-radius: 4px;
}

.hint-link:hover {
  background: rgba(51, 112, 255, 0.08);
}

.sheet-wrap {
  padding: 0 20px 24px;
}

.sheet-scroll {
  overflow-x: auto;
  border-radius: 8px;
}

.sheet {
  min-width: 1120px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.sheet-head,
.rec {
  display: grid;
  grid-template-columns: 240px 320px 200px 170px 240px minmax(52px, 1fr);
}

.sheet-head {
  height: 42px;
  background: #f5f6f7;
  border-bottom: 1px solid #e5e6eb;
  position: sticky;
  top: 0;
  z-index: 5;
}

.col {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid #e5e6eb;
  min-width: 0;
}

.sheet-head .col {
  font-size: 12.5px;
  color: #4e5969;
  font-weight: 500;
  cursor: default;
}

.sheet-head .col-shortcut {
  cursor: pointer;
  background: #f0f4ff;
}

.sheet-head .col-shortcut:hover {
  background: #e6edff;
}

.col:last-child {
  border-right: 0;
}

.field-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: #8f959e;
}

.field-icon svg {
  width: 15px;
  height: 15px;
}

.field-icon.bee {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(145deg, #ff4b3e, #e11d2e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.sc-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-badge {
  flex: none;
  font-size: 10.5px;
  color: #3370ff;
  background: #e8f0ff;
  border-radius: 3px;
  padding: 1px 5px;
}

.col-caret {
  margin-left: auto;
  color: #b3b8c2;
  width: 14px;
  height: 14px;
}

.col-caret svg {
  width: 13px;
  height: 13px;
}

.col-add-btn {
  border: 0;
  background: transparent;
  color: #8f959e;
  font-size: 16px;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  margin: 0 auto;
}

.col-add-btn:hover,
.row-more:hover {
  background: #e8eaed;
  color: #1f2329;
}

.sheet-body .rec {
  border-bottom: 1px solid #e5e6eb;
  min-height: 78px;
}

.sheet-body .rec:last-child {
  border-bottom: 0;
}

.sheet-body .rec:hover {
  background: #fafbfc;
}

.sheet-body .rec .col {
  padding: 10px 12px;
  align-items: flex-start;
}

.sheet-body .rec .col-add {
  align-items: center;
}

.cell-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
  color: #1f2329;
  resize: none;
  padding: 3px 4px;
  border-radius: 4px;
}

.cell-input.title {
  font-weight: 600;
  font-size: 13.5px;
}

.cell-input::placeholder {
  color: #b8bcc6;
  font-weight: 400;
}

.sheet-body .rec .col:focus-within {
  box-shadow: inset 0 0 0 1.5px #3370ff;
  border-radius: 4px;
}

.media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  width: 100%;
}

.media-thumb {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: #f2f3f5;
  flex: none;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.media-del {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 0;
  background: rgba(31, 35, 41, 0.72);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.media-thumb:hover .media-del {
  display: flex;
}

.media-add {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 1px dashed #c9cdd4;
  background: transparent;
  color: #8f959e;
  font-size: 18px;
  flex: none;
}

.media-add:hover {
  border-color: #3370ff;
  color: #3370ff;
}

.sc-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.qr-thumb {
  flex: none;
  width: 46px;
  height: 46px;
  padding: 2px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qr-thumb:hover {
  border-color: #3370ff;
  box-shadow: 0 2px 10px rgba(51, 112, 255, 0.2);
}

.qr-thumb canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}

.sc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sc-status {
  font-size: 11.5px;
  border-radius: 4px;
  padding: 1px 6px;
  align-self: flex-start;
}

.sc-status.wait {
  color: #d97706;
  background: #fff4e0;
}

.sc-status.done {
  color: #00b42a;
  background: #e8ffea;
}

.sc-url {
  font-size: 11px;
  color: #9aa0aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.btn-mini {
  border: 1px solid #3370ff;
  background: #fff;
  color: #3370ff;
  border-radius: 5px;
  font-size: 12px;
  padding: 4px 10px;
  white-space: nowrap;
}

.btn-mini:hover {
  background: #f0f5ff;
}

.row-more {
  border: 0;
  background: transparent;
  color: #9aa0aa;
  font-size: 17px;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rec:hover .row-more {
  opacity: 1;
}

.sheet-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-top: 1px solid #e5e6eb;
  background: #fafbfc;
}

.add-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #4e5969;
  font-size: 12.5px;
  padding: 5px 8px;
  border-radius: 5px;
}

.add-row:hover {
  background: #eef0f3;
  color: #1f2329;
}

.row-count {
  font-size: 12px;
  color: #9aa0aa;
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 10px;
  font-size: 12px;
  color: #9aa0aa;
}

.sheet-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f2f3f5;
  border-radius: 3px;
  padding: 1px 5px;
}

/* 行操作菜单 */
.row-menu {
  position: fixed;
  z-index: 60;
  min-width: 132px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.14);
  padding: 4px;
}

.row-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12.5px;
  color: #f54a45;
  text-align: left;
}

.row-menu button:hover {
  background: #fff1f0;
}

/* ---------- 4. 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 17, 23, 0.42);
  backdrop-filter: blur(1.5px);
  animation: mask-in 0.16s ease;
}

@keyframes mask-in {
  from {
    opacity: 0;
  }
}

.modal {
  width: 380px;
  max-width: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  animation: modal-in 0.18s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

.config-modal {
  padding: 20px 20px 0;
}

.config-modal .modal-title {
  display: none;
}

.modal-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
}

.m-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 12px;
  color: #646a73;
}

.config-modal .m-label:first-child {
  margin-top: 0;
}

.m-input {
  width: 100%;
  height: 34px;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.m-input:focus,
.m-select:focus {
  border-color: #3370ff;
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.14);
}

.type-list {
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  overflow: hidden;
}

.type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  cursor: default;
}

.type-row + .type-row {
  border-top: 1px solid #f0f1f4;
}

.type-row:hover {
  background: #f7f8fa;
}

.type-row.selected {
  background: #eef4ff;
}

.type-icon {
  width: 17px;
  height: 17px;
  color: #8f959e;
}

.type-icon svg {
  width: 16px;
  height: 16px;
}

.type-bee {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(145deg, #ff4b3e, #e11d2e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 2px;
}

.type-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-chev {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: #b3b8c2;
}

.type-chev svg {
  width: 13px;
  height: 13px;
}

.mini-badge {
  flex: none;
  font-size: 10.5px;
  color: #3370ff;
  background: #dbe7ff;
  border-radius: 3px;
  padding: 1px 5px;
}

.cfg-box {
  margin-top: 12px;
  padding: 12px;
  background: #f7f8fa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cfg-field label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  font-size: 12px;
  color: #646a73;
  margin-bottom: 6px;
}

.cfg-chev {
  display: none;
}

.cfg-chev svg {
  width: 12px;
  height: 12px;
}

.req {
  color: #f54a45;
  margin-left: 2px;
}

.m-select {
  width: 100%;
  height: 32px;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  background: #fff;
  padding: 0 8px;
  font-size: 13px;
  outline: none;
  appearance: auto;
}

.scope-box {
  padding: 12px;
  background: #f7f8fa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.radio input[type="radio"] {
  accent-color: #3370ff;
  width: 15px;
  height: 15px;
  margin: 0;
}

.count-input {
  width: 110px;
  height: 30px;
  margin-left: auto;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
  outline: none;
}

.count-input:focus {
  border-color: #3370ff;
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.14);
}

.count-input:disabled {
  background: #f2f3f5;
  color: #b3b8c2;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
}

.switch {
  position: relative;
  width: 34px;
  height: 19px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .knob {
  position: absolute;
  inset: 0;
  background: #c9cdd4;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.switch .knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .knob {
  background: #3370ff;
}

.switch input:checked + .knob::after {
  transform: translateX(15px);
}

.switch-label {
  color: #1f2329;
}

.help {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #c9cdd4;
  color: #9aa0aa;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex: none;
}

.switch-desc {
  margin-left: auto;
  font-size: 11.5px;
  color: #b3b8c2;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 0;
}

/* 二维码结果 */
.results-modal {
  width: 700px;
  padding: 20px;
}

.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.results-title {
  font-size: 17px;
  font-weight: 600;
}

.results-sub {
  margin-top: 5px;
  font-size: 12px;
  color: #9aa0aa;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #8f959e;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #f2f3f5;
  color: #1f2329;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 2px;
}

.qr-card {
  border: 1px solid #eceef2;
  border-radius: 10px;
  padding: 14px 12px;
  background: #fbfcfd;
  text-align: center;
}

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
}

.qr-canvas-wrap canvas {
  display: block;
  border-radius: 4px;
}

.qr-card-title {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-code {
  margin-top: 3px;
  font-size: 11px;
  color: #9aa0aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.qr-download {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #3370ff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
}

.qr-download:hover {
  background: #eef4ff;
}

.results-hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #9aa0aa;
}

.results-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

/* 链接设置 */
.link-modal {
  padding: 20px;
}

.link-modal .modal-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
}

.link-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #646a73;
}

.link-now {
  padding: 8px 10px;
  background: #f2f3f5;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #40516e;
  word-break: break-all;
}

.link-tip {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #b3b8c2;
}

.link-sec {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f1f3;
}

.link-sec-title {
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2b2f38;
}

.link-sec .m-input {
  margin-bottom: 8px;
}

.link-sec .link-tip {
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 300;
  max-width: 80vw;
  padding: 9px 16px;
  border-radius: 8px;
  background: rgba(31, 35, 41, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  animation: toast-in 0.2s ease;
}

.toast.error {
  background: rgba(197, 40, 40, 0.94);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ---------- 5. 扫码发布页 ---------- */
.publish-page {
  min-height: 100vh;
  background: #101014;
}

.publish-bg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(255, 36, 66, 0.16), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(109, 74, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #f7f7fb 0%, #eef0f4 100%);
}

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 392px;
  min-width: 0;
  max-width: 100%;
  height: min(860px, calc(100vh - 48px));
  min-height: 520px;
  background: #fff;
  border: 9px solid #17171c;
  border-radius: 46px;
  box-shadow: 0 40px 90px rgba(24, 22, 35, 0.28);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 22px;
  background: #17171c;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.p-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 66px;
  padding: 26px 16px 0;
  border-bottom: 1px solid #f2f3f5;
  position: relative;
}

.p-back {
  border: 0;
  background: transparent;
  color: #1f2329;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.p-back svg {
  width: 18px;
  height: 18px;
}

.p-head-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.p-head-xhs {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #ff2442;
  border-radius: 4px;
  padding: 2px 5px;
  letter-spacing: 0.5px;
}

.p-status {
  position: absolute;
  right: 14px;
  font-size: 11.5px;
  color: #00b42a;
  background: #e8ffea;
  border-radius: 999px;
  padding: 2px 9px;
}

.p-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 8px;
  -webkit-overflow-scrolling: touch;
}

.p-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.p-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4b3e, #e11d2e);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-user-meta b {
  font-size: 13.5px;
}

.p-user-meta span {
  font-size: 11.5px;
  color: #9aa0aa;
}

.p-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.p-gallery img {
  width: 100%;
  min-width: 0;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #f2f3f5;
}

.p-gallery.one img {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.p-gallery.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-gallery.two img {
  aspect-ratio: 1 / 1;
}

.p-gallery.many {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-gallery.many img {
  aspect-ratio: 1 / 1;
}

.p-gallery.many img.cover {
  grid-column: span 1;
}

.p-video {
  margin-bottom: 8px;
}

.p-video video {
  width: 100%;
  max-height: 420px;
  border-radius: 10px;
  background: #000;
  display: block;
}

.p-noimg {
  padding: 40px 0;
  text-align: center;
  color: #b3b8c2;
  background: #f7f8fa;
  border-radius: 10px;
  font-size: 13px;
}

.p-title {
  margin: 15px 0 9px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  word-break: break-word;
}

.p-body {
  font-size: 14.5px;
  line-height: 1.8;
  color: #33363d;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.p-tags span {
  font-size: 12px;
  color: #31558f;
  background: #eef3fb;
  border-radius: 999px;
  padding: 3px 10px;
}

.p-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 18px;
  padding: 10px 12px;
  background: #f7f8fa;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #646a73;
}

.p-tip svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: #00b42a;
  margin-top: 1px;
}

.p-meta {
  margin: 12px 0 4px;
  font-size: 11.5px;
  color: #b3b8c2;
}

.p-foot {
  flex: none;
  padding: 10px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f2f3f5;
  background: #fff;
}

.publish-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 24px;
  background: #ff2442;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.publish-btn:hover {
  background: #e61f3b;
}

.publish-btn:active {
  transform: scale(0.995);
}

.publish-btn:disabled {
  background: #ffb3c0;
  cursor: default;
}

.p-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 8px;
}

.p-actions:first-child {
  margin-top: 0;
}

.p-action {
  height: 44px;
  padding: 0 8px;
  border-radius: 22px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.p-actions .btn.ghost {
  border-color: #e6e8ec;
  background: #fff;
  color: #333;
}

.p-actions .btn.primary {
  background: #ff2442;
  border-color: #ff2442;
}

.p-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.5;
  color: #b3b8c2;
}

.p-foot .p-mark {
  display: block;
  margin: 6px auto 0;
  background: none;
  border: 0;
  font-size: 11px;
  color: #b3b8c2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-loading,
.p-error,
.p-success {
  padding: 64px 22px;
  text-align: center;
}

.p-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2.5px solid #eceef2;
  border-top-color: #ff2442;
  animation: spin 0.8s linear infinite;
}

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

.p-loading p {
  color: #9aa0aa;
  font-size: 13px;
}

.p-success-icon {
  width: 76px;
  height: 76px;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: #e8ffea;
  color: #00b42a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-success-icon svg {
  width: 38px;
  height: 38px;
}

.p-success h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.p-success-sub {
  margin: 0 0 24px;
  font-size: 13px;
  color: #9aa0aa;
}

.p-success-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fafbfc;
  border: 1px solid #f0f1f4;
  border-radius: 10px;
  text-align: left;
}

.p-success-card img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.p-success-card b {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-success-card span {
  display: block;
  font-size: 11.5px;
  color: #9aa0aa;
  line-height: 1.7;
}

.p-link {
  display: inline-block;
  margin-top: 22px;
  color: #3370ff;
  font-size: 13px;
  background: #eef4ff;
  padding: 8px 16px;
  border-radius: 8px;
}

.p-error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff1f0;
  color: #f54a45;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-error h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.p-error p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #9aa0aa;
  line-height: 1.7;
}

/* ---------- 扫码发布页：分享与手动引导 ---------- */

.p-mark {
  display: block;
  width: 100%;
  margin: 6px 0 0;
  padding: 4px;
  border: 0;
  background: none;
  color: #8a909b;
  font-size: 12px;
  cursor: pointer;
}

.p-mark:hover {
  color: #5a6270;
}

.p-video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.p-success-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-success-sub {
  font-size: 11.5px;
  color: #9aa0aa;
  line-height: 1.7;
}

.p-success-cover {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.p-success-desc {
  margin: 0 0 18px;
  font-size: 13px;
  color: #7d8492;
  line-height: 1.7;
}

.p-success-warn {
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #a8adb8;
  text-align: left;
}

.p-success-btn {
  width: 100%;
  margin-top: 12px;
}

.p-shared {
  padding: 56px 22px;
  text-align: center;
}

.p-shared h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.p-shared .p-success-card {
  text-align: left;
}

/* 手动发布底部弹层 */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 18, 24, 0.42);
  backdrop-filter: blur(2px);
}

.sheet-mask[hidden] {
  display: none;
}

.sheet {
  width: min(560px, 100%);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(15, 18, 24, 0.16);
  animation: sheet-up 0.22s ease-out;
}

@keyframes sheet-up {
  from {
    transform: translateY(18px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.sheet-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f4f5f7;
  color: #6b7280;
  font-size: 18px;
  line-height: 30px;
  cursor: pointer;
}

.sheet-reason {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff8e8;
  color: #8a6116;
  font-size: 12.5px;
  line-height: 1.6;
}

.sheet-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #4e5663;
  font-size: 13px;
  line-height: 1.9;
}

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

.sheet-actions .btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  font-size: 13px;
  padding: 0 8px;
}

.sheet-actions .btn.primary {
  background: #ff2442;
  color: #fff;
  flex: 1.1;
}

.sheet-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #a8adb8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .landing-page {
    padding: 32px 20px 22px;
  }

  .panels {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .panel {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    flex-wrap: wrap;
  }

  .hero-logo {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }

  .hero-logo .bee {
    width: 42px;
    height: 42px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .btn-cta {
    margin-left: 0;
    padding: 10px 18px;
    font-size: 14px;
  }

  .flow-body {
    padding: 30px 16px;
  }

  .steps {
    flex-direction: column;
    gap: 26px;
  }

  .step {
    width: 100%;
  }

  .step-link {
    display: none;
  }

  .core-grid {
    grid-template-columns: 1fr;
  }

  .doc-head {
    padding: 12px 14px 8px;
  }

  .frame,
  .sheet-wrap {
    padding: 0 12px 18px;
  }

  .hint-bar {
    margin: 2px 12px 12px;
    flex-wrap: wrap;
  }

  .hint-link {
    margin-left: 0;
  }

  .publish-bg {
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone::before {
    display: none;
  }

  .p-head {
    height: 54px;
    padding: 8px 16px 0;
  }

  .results-modal {
    width: 100%;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
