/* 沐元 · 达人模版库 · 布局与组件（一套代码，两套布局：默认电脑，body.dev-mobile 是手机） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root { --tabh: 56px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  height: 100vh; display: flex; flex-direction: column; overflow: hidden;
}

/* ============ 应用骨架 ============ */
.app { flex: 1; min-height: 0; display: flex; }
/* 手机：主区变成上下排（.main 自己滚，底部 tab 浮在上面） */
.dev-mobile .app { display: flex; flex-direction: column; }

/* ---- 电脑：左侧导航 ---- */
.side {
  width: 208px; flex: none; background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 4px;
}
.side .logo { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; }
.side .logo i {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: 15px;
}
.side .logo b { font-size: 15px; letter-spacing: .3px; }
.side a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-radius: 9px; color: var(--dim); text-decoration: none;
  cursor: pointer; font-size: 13.5px; transition: .12s;
}
.side a:hover { background: var(--surface2); color: var(--text); }
.side a.on { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.side .who { margin-top: auto; padding: 10px 11px; font-size: 11.5px; color: var(--dim); line-height: 1.7; border-top: 1px solid var(--line); }

/* ---- 手机：隐藏侧栏，显示底部 tab ---- */
.dev-mobile .side { display: none; }

.main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.dev-mobile .main { min-height: 0; padding-bottom: calc(var(--tabh) + 8px); }

.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
}
.dev-mobile .tabbar { display: flex; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--dim); text-decoration: none; font-size: 10.5px; padding: 3px 0; cursor: pointer;
}
.tabbar a i { font-style: normal; font-size: 19px; line-height: 1.1; }
.tabbar a.on { color: var(--brand-2); font-weight: 600; }

/* ============ 顶栏 / 搜索 / 筛选 ============ */
.topbar { padding: 16px 18px 10px; display: flex; align-items: center; gap: 10px; }
.topbar h1 { margin: 0; font-size: 20px; letter-spacing: .3px; }
.topbar .back {
  width: 30px; height: 30px; flex: none; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 15px; cursor: pointer;
}
.dev-mobile .topbar { padding: 12px 14px 8px; }
.dev-mobile .topbar h1 { font-size: 17px; }

.search {
  margin: 0 18px 10px; padding: 11px 13px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px;
}
.search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--text); font-size: 13.5px; font-family: inherit;
}
.dev-mobile .search { margin: 0 14px 10px; }

.chips { display: flex; gap: 8px; padding: 0 18px 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
/* 一行里塞两组筛选时，开头给个小字标签，免得两个「全部」挨着分不清 */
.chiplab { flex: none; align-self: center; font-size: 11px; color: var(--dim); white-space: nowrap; }
.chiplab + .chip { margin-left: 2px; }
.chips .chiplab ~ .chiplab { margin-left: 8px; }
.chips.in { padding: 0; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 12.5px;
  background: var(--surface); border: 1px solid var(--line); color: var(--dim);
  cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--brand); border-color: var(--brand-2); color: var(--brand-ink); font-weight: 600; }
/* chip 上那个条数；为 0 的项淡一点，点进去是空的，先让人看见 */
.chip i { font-style: normal; font-size: 11px; opacity: .62; margin-left: 1px; }
.chip.off { opacity: .42; }
.chip.off i { opacity: .8; }
.dev-mobile .chips { padding: 0 14px 10px; }

/* ============ 内容区 ============ */
.wrap { padding: 0 18px 28px; }
.dev-mobile .wrap { padding: 0 14px 24px; }

.note {
  font-size: 12px; color: var(--dim); line-height: 1.65;
  background: var(--surface2); border-radius: 10px; padding: 11px 13px; margin-bottom: 14px;
}
.note b { color: var(--text); }

/* ---- 模版卡片 ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.dev-mobile .grid { grid-template-columns: 1fr 1fr; gap: 10px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  overflow: hidden; cursor: pointer; transition: .14s;
}
.card:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.cover {
  position: relative; aspect-ratio: 9/15;
  background: linear-gradient(160deg, var(--g1, #2b1b3d), var(--g2, #5b2a55));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
}
.dev-mobile .cover { aspect-ratio: 9/13; padding: 10px; }
.cover .big { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: .5px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.dev-mobile .cover .big { font-size: 16px; }
.cover .sub { font-size: 11.5px; opacity: .85; margin-top: 4px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.badge {
  position: absolute; top: 9px; font-size: 10.5px; padding: 3px 8px; z-index: 2;
  border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
}
.badge.tl { left: 9px; }
.badge.tr { right: 9px; }
.badge.tr.easy { background: rgba(46,213,115,.9); color: #06240f; font-weight: 700; }
/* 真封面图：盖住整块，文字压在上面好看就留，不好看也不影响 */
.cover.hasimg { background: #000; }
.cover .cimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge.play {
  top: auto; bottom: 9px; right: 9px; left: auto; background: rgba(0,0,0,.62);
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
}
.cover .big, .cover .sub { position: relative; }
.cover.hasimg .big, .cover.hasimg .sub { display: none; }
.meta { padding: 10px 12px 12px; }
.meta .t { font-size: 13px; font-weight: 600; line-height: 1.4; }
.meta .s { font-size: 11px; color: var(--dim); margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }

/* ---- 详情 ---- */
.hero {
  height: 190px; border-radius: 14px; margin-bottom: 14px;
  background: var(--hero); display: flex; align-items: flex-end; padding: 16px;
}
.dev-mobile .hero { height: 150px; padding: 13px; }
.hero .big { font-size: 26px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.dev-mobile .hero .big { font-size: 21px; }
/* 详情页 hero 用真封面图时：图铺满 + 压一层黑，字才看得清 */
.hero.hasimg { background-size: cover; background-position: center; position: relative; }
.hero.hasimg::before {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.15) 60%, rgba(0,0,0,.35));
}
.hero.hasimg > div { position: relative; z-index: 1; }

/* ---- 示例视频播放器 ---- */
.playerwrap { margin-bottom: 10px; }
.player {
  display: block; margin: 0 auto; background: #000; border-radius: 10px;
  height: 44vh; width: auto; max-width: 100%; object-fit: contain;
}
.dev-desktop .player { height: 56vh; }

.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: 11.5px; padding: 4px 10px; border-radius: 7px; background: var(--surface2); color: var(--dim); border: 1px solid var(--line); }
.tag.pri { background: var(--brand); border-color: var(--brand-2); color: var(--brand-ink); font-weight: 600; }

/* ============ 折叠区（老板铁律：默认收起，摘要里必须有数字） ============ */
.fold { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 11px; overflow: hidden; }
.fold > summary {
  list-style: none; cursor: pointer; padding: 13px 15px;
  display: flex; align-items: baseline; gap: 9px; font-weight: 600; font-size: 13.5px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "▾"; margin-left: auto; color: var(--dim); font-size: 11px; transition: .15s; }
.fold[open] > summary::after { transform: rotate(180deg); }
.fold > summary .n { font-weight: 400; font-size: 11.5px; color: var(--dim); }
.foldbody { padding: 0 15px 14px; }

.row { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .k { flex: none; width: 62px; font-size: 11.5px; color: var(--brand-2); font-weight: 700; padding-top: 2px; }
.row .v { flex: 1; min-width: 0; font-size: 13px; line-height: 1.65; }
.row .v b { color: var(--accent); font-weight: 600; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--dim); font-weight: 600; font-size: 11px; white-space: nowrap; }
.tbl td { line-height: 1.55; }
.tblwrap { overflow-x: auto; }

.kv { display: flex; gap: 10px; flex-wrap: wrap; }
.kv .item { flex: 1 1 110px; background: var(--surface2); border-radius: 10px; padding: 11px; }
.kv .item em { font-style: normal; display: block; font-size: 19px; font-weight: 800; color: var(--brand-2); }
.kv .item span { font-size: 11px; color: var(--dim); }

.plist { display: flex; gap: 6px; flex-wrap: wrap; }
.plist span { font-size: 12px; padding: 5px 10px; border-radius: 8px; background: var(--surface2); border: 1px dashed var(--line); color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; }

.warn { font-size: 12px; line-height: 1.7; color: var(--warn); background: var(--surface2); border-radius: 10px; padding: 11px 13px; margin-top: 12px; }

/* ---- 底部操作条 ---- */
.actbar {
  position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 18px;
  background: var(--bg); border-top: 1px solid var(--line);
}
/* 手机：操作条钉在底部 tab 上面，两个都不会挡住内容 */
.dev-mobile .actbar {
  position: fixed; left: 0; right: 0; z-index: 40;
  bottom: calc(var(--tabh) + env(safe-area-inset-bottom));
  padding: 11px 14px;
}
.actbar .btn { flex: 1; }

/* ============ 按钮 ============ */
.btn {
  padding: 11px 18px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 13.5px; font-family: inherit;
  cursor: pointer; font-weight: 500; transition: .12s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand-2); }
.btn.pri { background: var(--brand); border-color: var(--brand-2); color: var(--brand-ink); font-weight: 700; }
.btn.pri:hover { filter: brightness(1.08); }
.btn.ghost { background: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }

/* ============ 表单 ============ */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; font-family: inherit; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-2); }
.field textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: 11px; color: var(--dim); margin-top: 4px; line-height: 1.6; }
/* 选文件按钮：盖掉浏览器自带的白色按钮，跟主题一致 */
.field input[type=file] {
  background: var(--surface2); border: 1px dashed var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--dim); cursor: pointer;
}
.field input[type=file]:hover { border-color: var(--brand-2); }
.field input[type=file]::file-selector-button {
  background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px;
  padding: 7px 14px; margin-right: 10px; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 12px;
}

/* ============ 登录 ============ */
.login { max-width: 380px; margin: 9vh auto; padding: 0 20px; }
.login .brandbox { text-align: center; margin-bottom: 26px; }
.login .brandbox i {
  width: 52px; height: 52px; border-radius: 15px; background: var(--brand); color: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 26px; font-weight: 800; margin-bottom: 12px;
}
.login h1 { font-size: 20px; margin: 0 0 6px; }
.login p { font-size: 12.5px; color: var(--dim); margin: 0; line-height: 1.7; }
.login .codebar { display: flex; gap: 8px; }
.login .codebar input { flex: 1; }
.login .shown {
  margin-top: 10px; font-size: 12px; color: var(--ok);
  background: var(--surface2); border-radius: 10px; padding: 10px 12px; line-height: 1.7;
}
.login .shown b { font-size: 17px; letter-spacing: 3px; color: var(--text); }

/* ============ 提示条 ============ */
.toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 11px 18px; border-radius: 11px; font-size: 13px; z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: 88vw;
}
.toast.bad { border-color: var(--warn); color: var(--warn); }
.toast.good { border-color: var(--ok); color: var(--ok); }

.empty { text-align: center; color: var(--dim); font-size: 13px; padding: 50px 20px; line-height: 1.8; }

/* 主题选择 */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dev-mobile .themes { grid-template-columns: 1fr; }
.themes .t {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px; cursor: pointer;
  background: var(--surface);
}
.themes .t.on { border-color: var(--brand-2); border-width: 2px; padding: 12px; }
.themes .t b { display: block; font-size: 13.5px; margin-bottom: 8px; }
.themes .t .sw { display: flex; gap: 6px; margin-bottom: 8px; }
.themes .t .sw i { width: 22px; height: 22px; border-radius: 6px; display: block; }
.themes .t span { font-size: 11.5px; color: var(--dim); line-height: 1.6; }

/* 开关行 */
.rowsw { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rowsw:last-child { border-bottom: 0; }
.rowsw small { color: var(--dim); font-size: 11.5px; display: block; margin-top: 2px; }

/* ============ 二期：任务 / 申请 / 审核 ============ */

/* 任务大厅横幅（挂在模版库顶上） */
.banner {
  display: flex; align-items: center; gap: 11px; margin: 0 18px 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 12px; cursor: pointer;
}
.dev-mobile .banner { margin: 0 14px 10px; padding: 11px 12px; }
.banner i { font-style: normal; font-size: 22px; }
.banner div { flex: 1; min-width: 0; }
.banner b { font-size: 14px; display: block; }
.banner span { font-size: 11.5px; color: var(--dim); }
.banner span b { display: inline; font-size: 11.5px; color: var(--brand-2); }
.banner em { font-style: normal; color: var(--dim); font-size: 20px; }

/* 登录页身份二选一 */
.rolepick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 12px; cursor: pointer;
}
.rp.on { border-color: var(--brand-2); }
.rp b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.rp span { font-size: 11.5px; color: var(--dim); line-height: 1.5; }

/* 底部右下的角标（任务稿费） */
.badge.br { top: auto; bottom: 9px; left: auto; right: 9px; background: var(--brand); color: var(--brand-ink); font-weight: 800; }

/* 复选框组 */
.cbs { display: flex; gap: 8px; flex-wrap: wrap; }
.cb {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 9px;
  padding: 8px 12px; cursor: pointer;
}
.cb input { width: auto; margin: 0; }

/* 缩略图 / 已传文件 */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.thumb {
  width: 62px; height: 62px; border-radius: 9px; background: var(--surface2);
  border: 1px solid var(--line); display: inline-flex; align-items: center;
  justify-content: center; font-size: 22px; overflow: hidden; font-style: normal;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thint { font-size: 11.5px; color: var(--dim); line-height: 62px; }

/* 我的页的菜单 */
.menu { margin-bottom: 14px; }
.menu a {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  font-size: 14px; cursor: pointer;
}
.menu a:first-child { border-radius: 12px 12px 0 0; }
.menu a:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.menu a span { font-size: 17px; }
.menu a i { margin-left: auto; font-style: normal; color: var(--dim); }

/* 一条申请的行 */
.approw {
  border: 1px solid var(--line); background: var(--surface2); border-radius: 11px;
  padding: 11px 12px; margin-bottom: 9px;
}
.approw.pend { border-left: 3px solid var(--brand); }
.approw .ah { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.approw .ah b { font-size: 13.5px; }
.approw .as { font-size: 12px; color: var(--dim); line-height: 1.7; word-break: break-all; }
.approw .as.bad { color: var(--warn); }
.approw .acts { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
.approw .mini {
  width: auto; flex: 1 1 118px; min-width: 100px; font-size: 12px; padding: 7px 9px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text);
}
.pill {
  font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--surface);
  border: 1px solid var(--line); color: var(--dim);
}
.pill.pending { color: var(--brand-2); border-color: var(--brand-2); }
.pill.approved { color: var(--ok); border-color: var(--ok); }
.pill.rejected { color: var(--warn); border-color: var(--warn); }
.pill.shipped, .pill.done { color: var(--accent); border-color: var(--accent); }
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.bad { color: var(--warn); border-color: var(--warn); }
.okdot { font-size: 12px; color: var(--ok); }

/* 折叠块套折叠块（稿费清单按商家分组） */
.fold.inner { margin: 0 0 8px; background: var(--surface2); }
.fold.inner:last-child { margin-bottom: 0; }

/* 小视频（参考视频里） */
.player.sm { height: 26vh; }

/* 空壳参考链接：光一个域名、没指向具体视频 —— 显示成点不动的灰字（老板 m03405 拍板 B） */
.reflink-off { color: var(--dim); word-break: break-all; }
.reftip { font-size: 11px; color: var(--dim); opacity: .82; }

/* hint 里放长文 */
.field .hint { white-space: pre-wrap; }

/* ---------------- 提示词页（✨ 想法变提示词 + 📚 卡库） ---------------- */
.mini {
  width: auto; min-width: 88px; font-size: 12px; padding: 7px 11px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text);
}
.mini:hover { border-color: var(--brand-2); }

.ask {
  background: var(--surface); border: 1px solid var(--brand); border-radius: 14px;
  padding: 14px; margin-bottom: 13px;
}
.askhead { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
/* 想法变提示词那个框：占满宽度 + 默认就高一点，右下角能上下拖大（跟老板原来的提示词系统一个手感） */
.ask .idea {
  width: 100%; box-sizing: border-box;
  min-height: 104px; resize: vertical; line-height: 1.75;
  padding: 12px; border-radius: 12px; overflow: auto;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; outline: none;
}
.ask .idea:focus { border-color: var(--brand-2); }
.dev-desktop .ask .idea { min-height: 148px; }
.chips.kchips { padding: 0; margin-top: 10px; flex-wrap: wrap; overflow: visible; }
.ask .go { width: 100%; margin-top: 11px; }
.dev-desktop .ask .go { width: auto; padding: 11px 44px; }
.quota { font-size: 11px; color: var(--dim); line-height: 1.65; margin-top: 9px; }
.quota b { color: var(--text); }

.qrow { padding: 11px 0; border-bottom: 1px solid var(--line); }
.qrow:last-of-type { border-bottom: 0; }
.qrow .qq { font-size: 12.5px; margin-bottom: 7px; }
.qrow input { width: 100%; }

.res {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 13px;
}
.reshead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.reshead .tag {
  font-weight: 400; font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--line); color: var(--dim);
}
.draft { font-size: 13px; line-height: 1.95; color: var(--text); }
.draft .ph { color: var(--brand-2); font-weight: 700; }
.res .acts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.res .hint { font-size: 11px; color: var(--dim); line-height: 1.7; margin-top: 10px; }

.libbar { margin-bottom: 10px; }
.libbar input { width: 100%; }
.chips.libchips { padding: 0; margin-bottom: 12px; flex-wrap: wrap; overflow: visible; }
.cards { display: flex; flex-direction: column; gap: 9px; }
.pcard { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.pcard .pch { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pcard .pch b { flex: 1; font-size: 13px; }
.pcard .pct { font-size: 12.5px; line-height: 1.8; color: var(--text); }
.pcard .pcf { font-size: 11px; color: var(--dim); margin-top: 7px; }
.dev-desktop .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ============ 四期：我的积分 / 商城 / 回填 / 发货台账 ============ */

/* 积分页顶部那块渐变大卡 */
.score {
  background: var(--score);
  border-radius: 15px; padding: 17px 18px 19px; margin-bottom: 13px; color: var(--score-ink);
}
.score em { font-size: 36px; font-weight: 800; font-style: normal; display: block; line-height: 1.1; letter-spacing: -1px; }
.score span { font-size: 12px; opacity: .93; display: block; margin-top: 6px; line-height: 1.65; }
.score .bar { height: 7px; border-radius: 99px; background: rgba(var(--score-rgb), .32); margin-top: 12px; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: rgb(var(--score-rgb)); border-radius: 99px; }

/* 商城：小屏两列、电脑多列 */
.mall { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.mcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.mcard img { width: 100%; aspect-ratio: 9/10; object-fit: cover; display: block; background: var(--surface2); }
.mcard .mb { padding: 10px 11px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mcard .mn { font-size: 13px; font-weight: 700; line-height: 1.45; }
.mcard .mc { font-size: 15.5px; font-weight: 800; color: var(--brand-2); }
.mcard .mc small { font-size: 11px; font-weight: 500; color: var(--dim); margin-left: 5px; }
.mcard .btn { margin-top: auto; }

/* 兑换单 / 回填视频的条目卡（跟 .approw 一套观感） */
.ord, .wcard {
  border: 1px solid var(--line); background: var(--surface2); border-radius: 11px;
  padding: 11px 12px; margin-bottom: 9px;
}
.ord .oh, .wcard .wh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.ord .oh b, .wcard .wh b { font-size: 13.5px; }
.ord .os, .wcard .ws { font-size: 12px; color: var(--dim); line-height: 1.75; word-break: break-all; }
.ord .acts, .wcard .acts { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 9px; }
.ord .mini, .wcard .mini {
  flex: 1 1 118px; min-width: 100px; font-size: 12px; padding: 7px 9px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text);
}

