/*
 * 云拍拍 · 网页版（H5）样式
 *
 * 视觉语言参考小红书。颜色取自小红书网页版样式表里的变量（2026-11 抓取）：
 *   品牌红 #FF2442、浅红底 #FFEDF0、正文 #333、次级文字是 #333 的 80% / 60% / 30%、页面底纯白、
 *   填充灰 rgba(48,48,52,.05)、分割线 rgba(0,0,0,.08)、蓝 #3D8AF5、链接深蓝 #13386C。
 * 它的几条规矩，这里照着来：
 *   - 白是底，内容直接铺在白底上：不套卡片、不描边、不加投影，区块之间靠留白分开。
 *   - 字是 #333，不是纯黑；层次靠粗细和三档灰，不靠颜色。
 *   - 红只给最要紧的：主按钮、选中、角标、价格。面积小，底下永远是白。
 *   - 圆润：按钮和胶囊全圆，图片 8，图标块和输入框 12。
 *   - 顶上是居中的小标题，底部导航只有文字，选中的加粗变黑。
 *
 * 两处和小红书不完全一样，是为了看得清：
 *   - 小字里的红用深一档的 #E6143A（白底上 4.6:1；品牌红只有 3.8:1），大字、按钮、角标仍是品牌红。
 *   - 三级文字用 #767676（4.5:1），没有用它的 60% 灰（3.7:1）。
 *
 * 字号 12 / 13 / 14 / 15 / 16 / 17 / 22px，间距 4 / 8 / 12 / 16 / 24px。出错用琥珀色加文案，不用红（红是品牌色）。
 * 兼容：不用 aspect-ratio、inset 简写和弹性布局的 gap（iOS 14 及以下不认）。
 */
:root {
  /* 底 */
  --c-bg: #FFFFFF;                       /* 页面底：纯白 */
  --c-card: #FFFFFF;
  --c-fill: #F5F5F5;                     /* 占位、次按钮、未选的选项、输入框 */
  --c-fill-2: rgba(48, 48, 52, .05);     /* 选中的筛选标签底下那层很淡的灰 */
  --c-press: #EBEBEB;
  --c-line: rgba(0, 0, 0, .08);          /* 分割线 */
  --c-border: rgba(0, 0, 0, .12);
  /* 字 */
  --c-ink: #333333;
  --c-sub: #5C5C5C;                      /* #333 的 80% */
  --c-faint: #767676;
  --c-disabled: #C2C2C2;                 /* #333 的 30% */
  --c-on: #FFFFFF;
  /* 品牌红 */
  --c-primary: #FF2442;                  /* 填充：主按钮、角标、选中的描边、进度条 */
  --c-primary-dark: #E6143A;             /* 按下；也是小字里的红 */
  --c-primary-soft: #FFEDF0;             /* 浅红底：选中的选项、标签 */
  --c-tint: #E6143A;                     /* 可点的红字 */
  --c-link: #13386C;                     /* 正文里的链接 */
  /* 功能色 */
  --c-blue: #3D8AF5;
  --c-blue-soft: rgba(61, 138, 245, .10);
  --c-ok: #1F8A4C;
  --c-ok-soft: #E9F7EE;
  --c-warn: #9C5F14;
  --c-warn-soft: #FFF6E5;
  /* 蒙层 */
  --c-scrim: rgba(0, 0, 0, .55);
  --c-mask: rgba(0, 0, 0, .40);
  /* 圆角 */
  --r-card: 16px;
  --r-media: 8px;
  --r-box: 12px;
  --r-tag: 4px;
  --r-pill: 999px;

  --tab-h: 50px;
  --bar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* touch-action：不认双击缩放，点一下立刻响应（否则浏览器要等一会儿看是不是双击） */
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: 15px/22px "PingFang SC", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
a { color: var(--c-link); text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* 整个应用限宽居中：手机上铺满，电脑上是一条手机宽的栏 */
#app, #tabbar, .bottom-bar, .topbar { max-width: 480px; margin-left: auto; margin-right: auto; }
#app { position: relative; min-height: 100vh; }
.page, #bar { position: relative; }
.boot { position: relative; padding: 96px 16px; text-align: center; color: var(--c-faint); }

/* ---------- 文字 ---------- */
.t-num { font-size: 22px; line-height: 28px; font-weight: 600; }
.t-title { font-size: 17px; line-height: 24px; font-weight: 600; }
.t-main { font-size: 16px; line-height: 24px; }
.t-sub { font-size: 15px; line-height: 22px; font-weight: 600; }
.t-body { font-size: 14px; line-height: 21px; }
.t-note { font-size: 12px; line-height: 18px; }
.c-ink { color: var(--c-ink); } .c-sub { color: var(--c-sub); } .c-faint { color: var(--c-faint); }
.c-primary { color: var(--c-tint); } .link { color: var(--c-link); } .c-warn { color: var(--c-warn); } .c-ok { color: var(--c-ok); }
.center { text-align: center; } .left { text-align: left; }
.ls-code { letter-spacing: 4px; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pre { white-space: pre-line; }
.price { font-size: 22px; line-height: 28px; font-weight: 600; }
.price-unit { font-size: 14px; font-weight: 600; }
.price-strike { font-size: 12px; color: var(--c-faint); text-decoration: line-through; margin-left: 8px; }
.ai-note { display: block; margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--c-faint); text-align: center; }

/* ---------- 布局 ---------- */
.page { padding: 4px 16px 32px; }
.page-tab { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.page-bar { padding-bottom: calc(var(--bar-h) + var(--safe-b) + 24px); }
.page-tab.page-bar { padding-bottom: calc(var(--tab-h) + var(--bar-h) + var(--safe-b) + 24px); }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-top { display: flex; align-items: flex-start; }
.col { display: flex; flex-direction: column; align-items: flex-end; }
.wrap { flex-wrap: wrap; }
.flex1 { flex: 1; min-width: 0; } .shrink0 { flex-shrink: 0; }
.divider { height: 1px; background: var(--c-line); margin: 14px 0; transform: scaleY(.5); }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0 !important; } .mb8 { margin-bottom: 8px; }
.ml8 { margin-left: 8px; } .ml12 { margin-left: 12px; }

/* 四个主页面顶上：居中的标题，下面一行小字说这一页是干什么的 */
.hero { position: relative; padding: 12px 20px 8px; text-align: center; }
.hero-title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.hero-sub { margin: 2px 0 0; font-size: 12px; line-height: 18px; color: var(--c-faint); }

/* 子页面顶上的一条：返回 + 居中的标题（主页面没有） */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 48px; padding: 0 8px;
  background: rgba(255, 255, 255, .96);
}
.topbar-back { display: flex; align-items: center; height: 44px; padding: 0 10px 0 4px; color: var(--c-ink); font-size: 15px; }
.topbar-back .icon { width: 20px; height: 20px; margin-right: 2px; }
.topbar-back:active { opacity: .5; }
.topbar-title { flex: 1; text-align: center; font-size: 18px; font-weight: 600; margin-right: 66px; }

/* ---------- 图标 ---------- */
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon-24 { width: 24px; height: 24px; flex-shrink: 0; }
.icon-48 { width: 48px; height: 48px; }
.help-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -2px -6px -2px 6px; border-radius: 50%; color: var(--c-faint); }
.help-btn:active { opacity: .5; }
.help-btn.pulse { animation: pulse .6s ease 2; }
@keyframes pulse { 50% { color: var(--c-primary); transform: scale(1.25); } }

/* ---------- 按钮：全圆。主按钮是品牌红 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; white-space: nowrap; user-select: none; -webkit-user-select: none; position: relative;
  transition: opacity .12s, background-color .12s;
}
.btn:active { opacity: .8; }
.btn-primary { background: var(--c-primary); color: var(--c-on); }
.btn-secondary { background: var(--c-fill); color: var(--c-ink); }
.btn-text { height: 44px; padding: 0 4px; font-size: 15px; font-weight: 500; color: var(--c-tint); }
.btn-text:active { opacity: .5; }
/* 行里的小按钮：红色描边的胶囊（小红书的「关注」） */
.btn-sm { height: 32px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.btn-sm.btn-secondary { background: none; color: var(--c-tint); box-shadow: inset 0 0 0 1px var(--c-primary); }
.btn-block { display: flex; width: 100%; }
.btn-center { display: flex; width: 220px; margin-left: auto; margin-right: auto; }
.btn-disabled, .btn-disabled:active { background: var(--c-fill); color: var(--c-disabled); box-shadow: none; opacity: 1; }
.btn-row { display: flex; }
.btn-row > .btn { flex: 1; }
.btn-row > .btn + .btn { margin-left: 10px; }
/* 处理中：按钮里转圈，不再响应点击 */
.btn.loading { pointer-events: none; }
.btn.loading::before {
  content: ""; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 选项、筛选标签、标签、提示条 ---------- */
.chips { display: flex; flex-wrap: wrap; margin: -5px -4px; }
.chips > .chip { margin: 5px 4px; }
/* 选项（可多选的那种：复刻哪几样、照片的问题）：未选是灰底，选中是浅红底红字 */
.chip {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--c-fill); color: var(--c-ink); font-size: 14px; white-space: nowrap; flex-shrink: 0;
  transition: background-color .15s, color .15s;
}
.chip-on { background: var(--c-primary-soft); color: var(--c-tint); font-weight: 500; }
.chip-off { color: var(--c-disabled); }
/* 筛选标签（场景、参考视频上面那一行）：小红书频道栏的样子——没选的只是灰字，选中的加粗、底下一层很淡的灰 */
.tag-row { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tag-row::-webkit-scrollbar { display: none; }
.tag-row > .chip { height: 34px; padding: 0 14px; background: none; color: var(--c-faint); font-size: 15px; }
.tag-row > .chip + .chip { margin-left: 2px; }
.tag-row > .chip-on { background: var(--c-fill-2); color: var(--c-ink); font-weight: 600; }
/* 时长：一行均分的三个选项，选中的是浅红底 + 一圈红 */
.chips.chips-even { flex-wrap: nowrap; margin: 16px -4px 0; }
.chips-even > .chip { flex: 1; height: 44px; margin: 0 4px; padding: 0 4px; border-radius: var(--r-box); }
.chips-even > .chip-on { box-shadow: inset 0 0 0 1px var(--c-primary); }
.chip-strong { font-weight: 600; margin-right: 4px; }
.tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: var(--r-tag);
  background: var(--c-fill); color: var(--c-sub); font-size: 11px; white-space: nowrap; flex-shrink: 0;
}
.tag-primary { background: var(--c-primary-soft); color: var(--c-tint); }
.tag-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.tag-warn { background: var(--c-warn-soft); color: var(--c-warn); }
.notice { padding: 12px 14px; border-radius: var(--r-box); background: var(--c-fill); color: var(--c-sub); font-size: 14px; line-height: 21px; margin-bottom: 12px; }
.notice-warn { background: var(--c-warn-soft); color: var(--c-warn); }
.notice.tap { display: flex; align-items: center; }
.notice.tap:active { opacity: .6; }

/* ---------- 区块、列表行 ----------
   「卡片」在这里只是一个区块：直接铺在白底上，不描边、不加底色，和下一块之间靠留白分开 */
.card { padding: 12px 0; margin-bottom: 4px; }
.card-tight { padding: 10px 0; }
.card-list { padding-top: 0; padding-bottom: 0; }
/* 整块可点的入口（取片页的两个加购）：一块灰底的圆角条，和普通区块区分开 */
.card.row { padding: 14px 16px; margin-bottom: 8px; border-radius: var(--r-box); background: var(--c-fill); }
.card.row:active { background: var(--c-press); }
.card-title { font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: 10px; }
.cell { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 0; }
/* 行间的分割线：半像素，从文字左缘起 */
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--c-line); transform: scaleY(.5); }
.cell-2 { min-height: 72px; }
.cell.tap:active { background: var(--c-fill); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.cell.tap:active::before { left: 16px; right: 16px; }
.cell-busy { opacity: .5; pointer-events: none; }
.cell-title { font-size: 16px; line-height: 24px; font-weight: 500; }
.cell-desc { font-size: 13px; line-height: 20px; color: var(--c-faint); }
.cell-arrow { color: var(--c-disabled); margin-left: 8px; }
.thumb { width: 48px; height: 64px; border-radius: var(--r-media); object-fit: cover; background: var(--c-fill); margin-right: 12px; flex-shrink: 0; }
.checkbox { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c-disabled); display: flex; align-items: center; justify-content: center; color: var(--c-on); flex-shrink: 0; }
.checkbox-on { background: var(--c-primary); border-color: var(--c-primary); }

/* ---------- 表单：灰底圆角框 ---------- */
.textarea {
  display: block; width: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-box);
  background: var(--c-fill); font-size: 15px; line-height: 22px; resize: none; outline: none; -webkit-appearance: none;
}
.textarea:focus, .input:focus { background: var(--c-card); border-color: var(--c-ink); }
.textarea::placeholder, .input::placeholder { color: var(--c-faint); }
.input { display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--r-box); background: var(--c-fill); font-size: 16px; outline: none; -webkit-appearance: none; }
.field-label { font-size: 13px; color: var(--c-sub); margin-bottom: 6px; }
/* 输入框右边并排的按钮（昵称的「保存」）：和输入框一样高 */
.side-btn { flex-shrink: 0; min-width: 84px; height: 46px; margin-left: 10px; padding: 0 18px; font-size: 15px; }
.form-err { font-size: 12px; color: var(--c-warn); margin-top: 4px; }

/* ---------- 图片网格与素材卡片 ---------- */
.grid { display: grid; gap: 6px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 3:4 的格子。不用 aspect-ratio：用上内边距把高度撑出来，里面的图和占位绝对定位铺满。
   选中 = 图上压一圈品牌红的描边（单独一层，不占位置、不挤图）+ 右上角的红色序号（小红书选图就是这样） */
.media { position: relative; border-radius: var(--r-media); overflow: hidden; background: var(--c-fill); user-select: none; -webkit-user-select: none; }
.media::before { content: ""; display: block; padding-top: 133.333%; }
.media-on::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 2px solid var(--c-primary); border-radius: inherit; pointer-events: none; }
.media-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; -webkit-touch-callout: none; }
.media-ph { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--c-faint); font-size: 12px; line-height: 18px; text-align: center; padding: 4px; }
/* 还没传的格子：灰底，中间一个加号 */
.slot > .icon-24 { width: 28px; height: 28px; margin-bottom: 6px; color: var(--c-disabled); stroke-width: 1.6; }
.slot .t-body { font-weight: 500; }
.media-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 6px; color: var(--c-on); font-size: 12px; line-height: 18px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5)); pointer-events: none; }
.media-badge { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--c-primary); color: var(--c-on); font-size: 13px; font-weight: 600; line-height: 22px; text-align: center; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.media-badge .icon { width: 14px; height: 14px; stroke-width: 3; }
.media-badge-ok { background: var(--c-ok); }
.media-badge-warn { background: var(--c-warn); }
.media-badge-scrim { background: var(--c-scrim); box-shadow: none; }
.media-badge-bl { top: auto; right: auto; left: 6px; bottom: 6px; }
.media-badge-tl { right: auto; left: 6px; }
/* 素材多于两行时：在格子区域里上下滑，只露出第三行的一条边（看得出下面还有）。一格的高 = 宽的 4/3，宽 = (内容宽 - 两道间隔) / 3 */
.grid-scroll {
  --cell-h: calc((min(100vw, 480px) - 32px - 12px) / 3 * 4 / 3);
  max-height: calc(var(--cell-h) * 2 + 6px + 26px); overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: var(--r-media);
}
.grid-scroll::-webkit-scrollbar { display: none; }
/* 参考视频的格子：底下一行，左边秒数、右边播放钮。标签那一条本身不接点击，只有播放钮可点 */
.rv-foot { display: flex; align-items: flex-end; justify-content: space-between; padding: 24px 6px 6px 8px; white-space: nowrap; }
.rv-secs { font-size: 12px; line-height: 20px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
/* 播放钮：一个半透明的小圆，里面只有三角。点它全屏带声音播放；热区比看起来的大一圈 */
.rv-play { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .45); pointer-events: auto; }
.rv-play .icon { width: 14px; height: 14px; margin-left: 2px; fill: currentColor; stroke: none; }
.rv-play::before { content: ""; position: absolute; top: -10px; right: -8px; bottom: -8px; left: -12px; }
.rv-play:active { opacity: .6; }
/* 格子里直接播的视频：不要系统自带的播放按钮（iPhone 低电量模式不让自动播时会冒出来） */
video[data-clip]::-webkit-media-controls, video[data-clip]::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video[data-clip] { pointer-events: none; }
.media-op { position: absolute; display: flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(0, 0, 0, .4); color: var(--c-on); font-size: 12px; }
.media-op-tl { top: 6px; left: 6px; } .media-op-tr { top: 6px; right: 6px; }
.media-op-icon { width: 22px; padding: 0; justify-content: center; }
.media-mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; background: var(--c-mask); color: var(--c-on); font-size: 12px; }
.upload-tag { position: absolute; top: 6px; left: 6px; background: var(--c-card); color: var(--c-faint); }
.upload-tag.tag-primary { background: var(--c-primary-soft); color: var(--c-tint); }
.gate-line { margin-top: 10px; padding: 8px 12px; border-radius: var(--r-media); background: var(--c-warn-soft); }
.aspect-line { display: flex; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.aspect-line > * { margin: 6px 8px 0 0; }
.aspect-line .chip { height: 28px; padding: 0 14px; font-size: 13px; }

/* ---------- 统计数字 ---------- */
.stat-grid { display: flex; flex-wrap: wrap; }
.stat { width: 50%; padding: 8px 0; }
.stat-third { width: 33.33%; }
.stat-num { font-size: 22px; line-height: 28px; font-weight: 600; }
.stat-label { font-size: 12px; line-height: 18px; color: var(--c-faint); }

/* ---------- 状态页（加载 / 空 / 出错）与结果图标 ----------
   结果图标是小红书那种浅色圆角图标块：很浅的底 + 同色的图标 */
.state { padding: 56px 16px; text-align: center; color: var(--c-faint); }
.state .btn { margin-top: 16px; }
.spinner { width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%; border: 2.5px solid var(--c-fill); border-right-color: var(--c-primary); animation: spin .7s linear infinite; }
.big-icon { width: 60px; height: 60px; margin: 16px auto 0; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--c-blue); background: var(--c-blue-soft); }
.big-icon.ok { background: var(--c-ok-soft); color: var(--c-ok); }
.big-icon.warn { background: var(--c-warn-soft); color: var(--c-warn); }
.big-icon.wait { border-radius: 50%; background: none; border: 4px solid var(--c-primary-soft); border-right-color: var(--c-primary); animation: spin 1s linear infinite; }
.empty-title { font-size: 18px; line-height: 26px; font-weight: 600; margin-top: 14px; }
.empty-desc { color: var(--c-faint); margin-top: 4px; font-size: 14px; line-height: 21px; }
.progress { height: 6px; border-radius: 3px; background: var(--c-fill); overflow: hidden; }
.progress-fill { height: 100%; background: var(--c-primary); border-radius: 3px; transition: width .4s; }
.fade-in { animation: fade .4s; }
@keyframes fade { from { opacity: 0; } }

/* ---------- 底部：导航栏与支付栏 ---------- */
/* 导航栏只有文字（图标收起来）：没选的是灰字，选中的加粗变黑 */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b); background: var(--c-card); box-shadow: 0 -.5px 0 var(--c-line);
}
.tab { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--c-faint); font-size: 16px; line-height: 22px; }
.tab .icon-24 { display: none; }
.tab:active { opacity: .5; }
.tab-on { color: var(--c-ink); font-size: 17px; font-weight: 600; }
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center;
  min-height: calc(var(--bar-h) + var(--safe-b)); padding: 8px 16px calc(8px + var(--safe-b));
  background: var(--c-card); box-shadow: 0 -.5px 0 var(--c-line);
}
.bottom-bar-tab { bottom: calc(var(--tab-h) + var(--safe-b)); min-height: var(--bar-h); padding-bottom: 8px; }
.bottom-bar-info { flex: 1; min-width: 0; }
.bottom-bar-price { display: flex; align-items: baseline; }
.bottom-bar .price { color: var(--c-primary); }
.bottom-bar .btn { flex-shrink: 0; height: 44px; padding: 0 24px; margin-left: 12px; }
.no-refund { font-size: 12px; line-height: 18px; color: var(--c-faint); }

/* ---------- 弹层：遮罩、底部弹层、对话框、轻提示、看大图 ---------- */
.mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; background: var(--c-mask); animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 480px; margin: 0 auto; max-height: 86vh; overflow-y: auto;
  padding: 20px 16px calc(16px + var(--safe-b)); background: var(--c-card); border-radius: var(--r-card) var(--r-card) 0 0; animation: rise .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-title { font-size: 17px; line-height: 24px; font-weight: 600; }
.sheet-close { padding: 8px 0 8px 16px; color: var(--c-faint); font-size: 14px; }
.sheet-foot { margin-top: 18px; }
.dialog {
  position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(296px, calc(100vw - 64px));
  background: var(--c-card); border-radius: var(--r-card); overflow: hidden; animation: fade .15s;
}
.dialog-mask { z-index: 60; }
.dialog-body { padding: 24px 20px 20px; max-height: 60vh; overflow-y: auto; }
.dialog-title { font-size: 17px; line-height: 24px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.dialog-content { color: var(--c-sub); font-size: 14px; line-height: 21px; white-space: pre-line; word-break: break-word; }
.dialog-content.center { text-align: center; }
.dialog-input { margin-top: 12px; }
.dialog-foot { display: flex; box-shadow: 0 -.5px 0 var(--c-line); }
.dialog-btn { flex: 1; height: 50px; font-size: 16px; color: var(--c-sub); }
.dialog-btn + .dialog-btn { box-shadow: -.5px 0 0 var(--c-line); }
.dialog-btn.primary { color: var(--c-tint); font-weight: 600; }
.dialog-btn:active { background: var(--c-fill); }
.toast {
  position: fixed; z-index: 80; left: 50%; top: 42%; transform: translateX(-50%); max-width: 76vw; padding: 10px 18px;
  border-radius: var(--r-media); background: rgba(0, 0, 0, .72); color: var(--c-on); font-size: 14px; line-height: 20px; text-align: center; pointer-events: none; animation: fade .15s;
}
.loading-box { position: fixed; z-index: 70; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 20px 24px; border-radius: var(--r-box); background: rgba(0, 0, 0, .72); color: var(--c-on); text-align: center; }
.loading-box .spinner { border-color: rgba(255, 255, 255, .35); border-right-color: var(--c-on); }
.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 65; background: #000; display: flex; flex-direction: column; animation: fade .2s; }
/* 多张时左右滑：横向滚动 + 吸附，跟手；一屏一张 */
.lightbox-stage { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.lightbox-stage::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-touch-callout: default; user-select: auto; -webkit-user-select: auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px calc(10px + var(--safe-b)); color: var(--c-on); font-size: 14px; }
.lightbox-btn { margin-left: 8px; min-width: 64px; height: 36px; padding: 0 14px; border-radius: 18px; background: rgba(255, 255, 255, .18); color: var(--c-on); font-size: 14px; }
.lightbox-btn:first-child { margin-left: 0; }
.lightbox-btn:active { opacity: .6; }
.lightbox-btn[disabled] { opacity: .3; }
.lightbox-hint { flex: 1; text-align: center; font-size: 12px; opacity: .85; }
.save-list img { width: 100%; border-radius: var(--r-media); margin-bottom: 12px; -webkit-touch-callout: default; }

/* ---------- 各页面的零碎 ---------- */
.help-step { display: flex; margin-top: 14px; }
.help-no, .tip-no { width: 20px; height: 20px; margin: 1px 10px 0 0; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-tint); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; flex-shrink: 0; }
.tip-row { display: flex; margin-top: 10px; }
/* 头像位：小红书那种浅色圆角图标块 */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center; }
.qr { width: 228px; height: 228px; margin: 20px auto 14px; -webkit-touch-callout: default; }
.code-card { display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.code-row { display: flex; align-items: center; padding: 8px 0; }
.rs-video { width: 100%; max-height: 70vh; border-radius: var(--r-media); background: #000; }
.rs-video-ph { padding: 48px 0; text-align: center; color: var(--c-faint); background: var(--c-fill); border-radius: var(--r-media); }
.work-cover { width: 84px; flex-shrink: 0; }
/* 账号口令：一条灰底，左边小字说明 + 大一号的口令，右边「复制」 */
.notice.pass-box { display: flex; align-items: center; }
.pass-label { font-size: 12px; line-height: 18px; color: var(--c-faint); }
.pass-code { margin-top: 2px; font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: 1px; color: var(--c-ink); user-select: all; -webkit-user-select: all; }
/* 「我的」页最底下并排的两个文字入口 */
.foot-links { display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.foot-links .btn-text { padding: 0 12px; }
.foot-links .foot-minor { color: var(--c-faint); }   /* 次要的那个用灰字，「联系客服」保持原样 */
.foot-dot { color: var(--c-disabled); }
/* 作品卡片之间留出间隔 */
.card-list[data-key] { margin-bottom: 16px; }
/* 一张作品：左边封面，右边一栏和封面一样高——上面是标题和状态（贴着封面的上沿），下面是日期和「再拍一单」（贴着封面的下沿） */
.work-cell { align-items: stretch; }
.work-info { flex: 1; min-width: 0; margin-left: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.work-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.work-info .cell-arrow { margin-left: 8px; }
/* 重试页：选中的照片各有一行「第 N 张 + 问题选项」 */
.rt-row { display: flex; align-items: flex-start; margin-top: 12px; }
.rt-no { flex-shrink: 0; width: 52px; font-size: 13px; line-height: 32px; color: var(--c-sub); }
.rt-chips { padding: 0 0 12px 60px; }
.upload-box { position: relative; width: 96px; height: 96px; border-radius: var(--r-media); background: var(--c-fill); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--c-faint); font-size: 12px; overflow: hidden; flex-shrink: 0; }
.upload-box .icon-24 { color: var(--c-disabled); margin-bottom: 4px; }
.upload-box img { width: 100%; height: 100%; object-fit: contain; background: var(--c-card); }
.rule-sec { margin-bottom: 8px; }
.rule-sec p { margin: 8px 0 0; color: var(--c-sub); font-size: 14px; line-height: 21px; }
.le-error { margin-top: 10px; padding: 8px 12px; border-radius: var(--r-media); background: var(--c-warn-soft); color: var(--c-warn); font-size: 14px; }
.le-wait { margin-top: 10px; color: var(--c-faint); font-size: 14px; }

/* ---------- 流畅度：转场、按下的反馈、占位 ---------- */
/* 换页的转场只加在内容区上（.page）：往里走从右边滑进来，点「返回」从左边滑进来；底部 tab 之间不加。
   横向滑动需要把溢出裁掉（overflow: clip，不影响顶栏的吸顶）；不认它的老浏览器只做淡入 */
@keyframes page-fade { from { opacity: 0; } }
@keyframes page-in-forward { from { opacity: 0; transform: translate3d(28px, 0, 0); } }
@keyframes page-in-back { from { opacity: 0; transform: translate3d(-28px, 0, 0); } }
.page-in-forward, .page-in-back { animation: page-fade .2s ease both; }
@supports (overflow: clip) {
  #app { overflow-x: clip; }
  .page-in-forward { animation: page-in-forward .26s cubic-bezier(.2, .8, .2, 1) both; }
  .page-in-back { animation: page-in-back .26s cubic-bezier(.2, .8, .2, 1) both; }
}
/* 按下去立刻有反应：图片格子、按钮微微缩一点，选项和列表行变淡 */
.media, .btn { transition: transform .12s ease, opacity .12s, background-color .12s; }
.media[data-act]:active { transform: scale(.97); }
.btn:active { transform: scale(.98); }
.btn-disabled:active, .btn.loading:active { transform: none; }
.chip:active { opacity: .7; }
/* 还没取回来的内容先摆灰块，上面扫过一道浅光 */
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton { background: linear-gradient(100deg, var(--c-fill) 40%, #FAFAFA 50%, var(--c-fill) 60%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
/* 作品列表很长时，屏幕外的那些先不排版、不绘制（认这个属性的浏览器才生效），滚到了再画 */
.card-list[data-key] { content-visibility: auto; contain-intrinsic-size: auto 140px; }

/* 不想看动画的人：转圈保留（它表示「正在处理」），其余的进出场都关掉 */
@media (prefers-reduced-motion: reduce) {
  .mask, .sheet, .dialog, .toast, .lightbox, .fade-in, .help-btn.pulse, .page-in-forward, .page-in-back, .skeleton { animation: none; }
  .btn, .chip, .progress-fill, .media { transition: none; }
  .media[data-act]:active, .btn:active { transform: none; }
}
