/* ============================================================
   视频大赛报名管理系统 · PHP 版样式
   单文件、零依赖 · 浅色主题 + 品牌渐变
   ------------------------------------------------------------
   约定：所有类名保持向后兼容，模板无需改动即可获得新外观。
   ============================================================ */

:root {
  /* 品牌色 */
  --brand:      #4f46e5;
  --brand-2:    #7c3aed;
  --brand-soft: #eef2ff;
  --brand-line: #c7d2fe;

  /* 文字 */
  --ink:        #0f172a;
  --ink-2:      #334155;
  --ink-3:      #64748b;
  --ink-4:      #94a3b8;

  /* 面 */
  --line:       #e6e9f0;
  --line-2:     #eef1f6;
  --bg:         #f5f6fb;
  --card:       #ffffff;

  /* 状态 */
  --ok:         #059669;
  --ok-soft:    #ecfdf5;
  --warn:       #b45309;
  --warn-soft:  #fffbeb;
  --bad:        #dc2626;
  --bad-soft:   #fef2f2;

  /* 形状 */
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -16px rgba(15, 23, 42, .16);
  --shadow-lg:  0 2px 4px rgba(15, 23, 42, .04), 0 26px 60px -30px rgba(15, 23, 42, .30);
  --ring:       0 0 0 3px rgba(79, 70, 229, .14);

  /* 渐变 */
  --grad:       linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, #a855f7 100%);
  --grad-soft:  linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);

  /* 深色面（侧边栏 / 大屏） */
  --dark:       #0b1020;
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.012em; }

/* 细滚动条 */
* { scrollbar-width: thin; scrollbar-color: #c9cfdb transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb {
  background: #cbd2de; border-radius: 999px; border: 2px solid transparent; background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: #a8b1c1; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   后台骨架
   ============================================================ */

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 460px at 8% -6%, #e8ecff 0%, transparent 58%),
    radial-gradient(900px 420px at 104% 2%, #f1eaff 0%, transparent 52%),
    var(--bg);
  background-attachment: fixed;
}

.admin-shell {
  display: grid;
  grid-template-columns: 246px 1fr;
  min-height: 100vh;
}

.sidebar {
  background:
    radial-gradient(560px 320px at -10% 0%, rgba(124, 58, 237, .35) 0%, transparent 62%),
    radial-gradient(420px 300px at 110% 12%, rgba(79, 70, 229, .30) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, #0d1428 60%, #0b1120 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.brand-logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px -6px rgba(124, 58, 237, .8);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text span { font-size: 11px; color: var(--ink-4); }

.sidebar-nav { flex: 1; padding: 14px 12px 22px; }

.nav-group { margin-bottom: 16px; }

.nav-group-title {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: #6b7893;
  padding: 6px 10px;
  text-transform: uppercase;
  font-weight: 650;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  margin-bottom: 2px;
  border-radius: 10px;
  color: #b8c2d4;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .16s, color .16s, transform .16s;
}

.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }

.nav-item.is-active {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 22px -12px rgba(124, 58, 237, .95);
}

.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: #c4b5fd;
}

.nav-icon { display: inline-flex; width: 17px; height: 17px; flex: 0 0 auto; opacity: .9; }
.nav-icon svg { width: 100%; height: 100%; }
.nav-item.is-active .nav-icon { opacity: 1; }

.nav-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  flex: 0 0 auto;
}

.nav-item.is-active .nav-dot { opacity: 1; }

.sidebar-foot {
  padding: 12px 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-foot .foot-title {
  padding: 0 8px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #5d6a85;
  text-transform: uppercase;
}

.sidebar-foot .foot-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #a7b2c8;
  font-size: 12.5px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.sidebar-foot .foot-link svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: .85;
}

.sidebar-foot .foot-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sidebar-foot .foot-text strong { font-weight: 600; color: inherit; }

.sidebar-foot .foot-text em {
  font-style: normal;
  font-size: 10.5px;
  color: #6b7a95;
}

.sidebar-foot .foot-ext {
  width: 11px !important;
  height: 11px !important;
  opacity: 0;
  transition: opacity .15s;
}

.sidebar-foot .foot-link:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
}

.sidebar-foot .foot-link:hover .foot-ext { opacity: .7; }

/* 移动端抽屉 */
.sidebar-toggle {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}
.sidebar-toggle svg { width: 18px; height: 18px; }

.sidebar-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  z-index: 35;
}

/* ============================================================
   主区域
   ============================================================ */

.admin-main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  /* 性能：sticky + backdrop-filter 会在滚动时每帧重采样模糊，低端机明显掉帧。
     这里改用不透明背景（视觉几乎一致），并把过渡交给 GPU。 */
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 30;
  /* 隔离出独立的合成层，滚动时不连带重绘内容区 */
  will-change: transform;
  transform: translateZ(0);
}

.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title { font-size: 19px; letter-spacing: -.02em; }
.topbar-desc { margin: 2px 0 0; color: var(--ink-3); font-size: 12.5px; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.admin-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px 4px 5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.admin-avatar {
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 12px -6px rgba(124, 58, 237, .9);
}

.admin-name { font-weight: 600; font-size: 13px; }
.admin-role { font-size: 11px; color: var(--ink-3); }

.admin-content { padding: 24px 28px 64px; }

/* ============================================================
   Flash
   ============================================================ */

.flash-stack { padding: 0 28px; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.flash {
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13.5px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.flash-success { background: var(--ok-soft);    color: var(--ok);    border-color: #a7f3d0; }
.flash-error   { background: var(--bad-soft);   color: var(--bad);   border-color: #fecaca; }
.flash-info    { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }

/* 页面内提示条 */
.notice {
  border-radius: 12px; padding: 11px 15px;
  font-size: 13px; line-height: 1.6;
  border: 1px solid transparent;
}
.notice-warn  { background: var(--warn-soft);  color: #92400e; border-color: #fde68a; }
.notice-info  { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.notice a { color: inherit; text-decoration: underline; font-weight: 600; }

/* 状态筛选胶囊（后台列表页通用） */
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.tab-pill em {
  font-style: normal; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 999px; background: #f1f5f9; color: var(--ink-3); font-size: 11.5px;
}
.tab-pill:hover { border-color: var(--brand-line); color: var(--brand); text-decoration: none; }
.tab-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-pill.is-active em { background: rgba(255,255,255,.24); color: #fff; }

/* 侧边栏待办角标 */
.nav-badge {
  margin-left: auto; flex: none;
  min-width: 17px; padding: 0 5px; height: 17px; line-height: 17px;
  border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 10.5px; font-style: normal; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   页头 / 卡片
   ============================================================ */

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}

.page-head-left { min-width: 0; }
.page-title { font-size: 17px; letter-spacing: -.015em; }
.page-desc { margin: 4px 0 0; color: var(--ink-3); font-size: 12.5px; }
.page-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.card-title { font-size: 14.5px; margin-bottom: 4px; }
.card-desc { color: var(--ink-3); font-size: 12.5px; margin: 0 0 14px; }
.card-tight { padding: 0; overflow: hidden; }
.card-tight .table-wrap { border-radius: var(--radius); }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-4-3 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-4-3 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 262px;
    height: 100vh;
    transform: translateX(-102%);
    transition: transform .26s cubic-bezier(.32, .72, 0, 1);
    box-shadow: 0 0 60px rgba(0, 0, 0, .4);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-mask { display: block; }
  .sidebar-toggle { display: inline-flex; }
  .flash-stack { padding: 0 16px; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .admin-content, .topbar { padding-left: 16px; padding-right: 16px; }
  .admin-content { padding-top: 18px; }
  .topbar { padding-top: 12px; padding-bottom: 12px; }
  .topbar-title { font-size: 17px; }
  .admin-role { display: none; }
}

/* ============================================================
   统计卡
   ============================================================ */

.stat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 17px 19px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.stat::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .18s;
}

.stat:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .35); border-color: var(--brand-line); }
.stat:hover::after { opacity: 1; }

.stat-label { color: var(--ink-3); font-size: 12.5px; }
.stat-value { font-size: 27px; font-weight: 700; letter-spacing: -.025em; margin-top: 4px; }
.stat-foot  { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.stat-accent { color: var(--brand); }

/* ============================================================
   徽章 / 标签
   ============================================================ */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.chip-ok   { background: var(--ok-soft);   color: var(--ok);   border-color: #a7f3d0; }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.chip-bad  { background: var(--bad-soft);  color: var(--bad);  border-color: #fecaca; }
.chip-mute { background: #f1f5f9;          color: var(--ink-3);border-color: var(--line); }

/* ============================================================
   按钮
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
  font-family: inherit;
  white-space: nowrap;
}

.btn:hover { background: #f8fafc; border-color: #c9d2e0; text-decoration: none; box-shadow: 0 2px 8px -4px rgba(15, 23, 42, .2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(124, 58, 237, .95);
}

.btn-primary:hover { background: var(--grad); filter: brightness(1.06); box-shadow: 0 12px 26px -12px rgba(124, 58, 237, 1); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: #f1f5f9; }

.btn-danger { color: var(--bad); border-color: #fecaca; background: var(--bad-soft); }
.btn-danger:hover { background: #fee2e2; border-color: #fca5a5; }

.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ============================================================
   表单
   ============================================================ */

.field { margin-bottom: 15px; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field-hint  { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.input::placeholder, .textarea::placeholder { color: #aab3c2; }
.input:hover, .select:hover, .textarea:hover { border-color: #ccd4e2; }

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--ring);
  background: #fff;
}

.input:disabled, .select:disabled, .textarea:disabled { background: #f8fafc; color: var(--ink-3); cursor: not-allowed; }

.textarea { min-height: 88px; resize: vertical; line-height: 1.65; }

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; cursor: pointer; }
.check input { margin: 3px 0 0; accent-color: var(--brand); flex: 0 0 auto; width: 15px; height: 15px; cursor: pointer; }
.check-text { font-size: 13px; }
.check-hint { display: block; font-size: 11.5px; color: var(--ink-3); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }

.form-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* 单选卡片组（如存储方式、验证方式） */
.mode-list { display: grid; gap: 10px; }
.mode-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .mode-list-2 { grid-template-columns: 1fr; } }

.mode {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start;
  transition: border-color .15s, background .15s, box-shadow .15s;
  background: #fff;
}

.mode:hover { border-color: var(--brand-line); background: #fbfcff; }
.mode input { margin: 3px 0 0; accent-color: var(--brand); flex: 0 0 auto; width: 15px; height: 15px; }
.mode.is-on { border-color: var(--brand); background: var(--grad-soft); box-shadow: var(--ring); }
.mode-title { font-weight: 650; font-size: 13.5px; }
.mode-desc  { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ============================================================
   表格
   ============================================================ */

.table-wrap { overflow-x: auto; }

table.table { width: 100%; border-collapse: collapse; font-size: 13px; }

table.table thead th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

table.table tbody tr { transition: background .12s; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: #fafbff; }

.cell-title { font-weight: 650; color: var(--ink); }
.cell-sub   { font-size: 12px; color: var(--ink-3); }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; }

/* 封面缩略图 */
.thumb {
  width: 64px; height: 40px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  flex: 0 0 auto;
  box-shadow: 0 6px 16px -10px rgba(99, 102, 241, .9);
}

/* ============================================================
   空状态
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 48px 22px;
  color: var(--ink-3);
}

.empty-icon {
  width: 48px; height: 48px;
  margin: 0 auto 13px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 20px;
  border: 1px solid var(--brand-line);
}

.empty-title { font-weight: 650; color: var(--ink-2); margin: 0; }
.empty-hint  { font-size: 12.5px; margin: 5px 0 0; }

/* ============================================================
   进度条
   ============================================================ */

.bar { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .4s ease; }

/* ============================================================
   登录页 / 居中页
   ============================================================ */

.center-body {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f5f6fb;
  padding: 24px;
  overflow: hidden;
}

/* 动态背景（纯 CSS，无素材依赖） */
.login-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: .5;
  will-change: transform;
}

.login-orb-1 { width: 430px; height: 430px; background: #818cf8; top: -140px; left: -100px;  animation: vcOrb1 24s ease-in-out infinite; }
.login-orb-2 { width: 390px; height: 390px; background: #c084fc; bottom: -160px; right: -80px; animation: vcOrb2 28s ease-in-out infinite; }
.login-orb-3 { width: 330px; height: 330px; background: #f0abfc; top: 36%; left: 56%;          animation: vcOrb3 32s ease-in-out infinite; }

.login-grid {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(99, 102, 241, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .09) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: vcGrid 44s linear infinite;
}

/* 胶片带：呼应视频大赛主题 */
.login-strip {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 74px;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .95) 0 9px,
      rgba(15, 23, 42, .10) 9px 26px,
      rgba(255, 255, 255, .95) 26px 35px,
      rgba(15, 23, 42, .10) 35px 52px);
  border-top: 1px solid rgba(99, 102, 241, .18);
  border-bottom: 1px solid rgba(99, 102, 241, .18);
  opacity: .5;
}

.login-strip-1 { top: 12%;  transform: rotate(-7deg); animation: vcStrip 40s linear infinite; }
.login-strip-2 { bottom: 9%; transform: rotate(6deg); animation: vcStrip 56s linear infinite reverse; opacity: .38; }

@keyframes vcOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(120px, 70px) scale(1.12); }
}
@keyframes vcOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1.06); }
  50%      { transform: translate(-110px, -60px) scale(1); }
}
@keyframes vcOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-70px, 50px) scale(1.14); }
}
@keyframes vcGrid {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 460px 460px, 460px 460px; }
}
@keyframes vcStrip {
  from { background-position: 0 0; }
  to   { background-position: 3000px 0; }
}

.center-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 404px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 32px 30px;
}

.center-card h1 { font-size: 19px; margin-bottom: 6px; }
.center-card > p { color: var(--ink-3); font-size: 13px; margin: 0 0 20px; }
.center-actions { display: flex; gap: 8px; margin-top: 18px; }

.err-code {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.045em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.login-brand .brand-logo { width: 44px; height: 44px; border-radius: 13px; font-size: 18px; }
.login-brand strong { font-size: 15px; display: block; }
.login-brand span { font-size: 12px; color: var(--ink-3); }

/* ---------- 登录验证码 ---------- */
.captcha-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.captcha-row .input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  letter-spacing: 2px;
}

.captcha-img {
  flex: none;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  line-height: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.captcha-img img { display: block; width: 120px; height: 44px; }
.captcha-img:hover { border-color: var(--brand-line); box-shadow: 0 3px 12px rgba(79, 110, 242, .16); }
.captcha-img:active { transform: scale(.98); }
.captcha-img:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .login-orb, .login-grid, .login-strip { animation: none; }
}

/* ============================================================
   客户端（手机 / PC / 大屏）
   ============================================================ */

.client-body { background: var(--dark); color: #e2e8f0; min-height: 100vh; }

.client-phone {
  /* flex 列：内容不足一屏时也把底部 TabBar 钉在底边（mc-tabbar margin-top:auto） */
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  box-shadow: 0 0 80px rgba(0, 0, 0, .5);
}

.client-hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  padding: 26px 20px 28px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.client-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.client-hero h1 { font-size: 21px; line-height: 1.35; position: relative; }
.client-hero p { margin: 8px 0 0; font-size: 12.5px; opacity: .9; position: relative; }

.client-tabs {
  display: flex; gap: 6px;
  margin: -28px 16px 0;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .5);
  position: relative;
  z-index: 2;
}

.client-tab {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.client-tab.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -12px rgba(124, 58, 237, 1); }
.client-tab:hover { text-decoration: none; color: var(--brand); }
.client-tab.is-active:hover { color: #fff; }

.client-section { padding: 20px 16px 44px; }

.client-notice {
  background: var(--warn-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.client-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 11px;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s;
}

.client-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(15, 23, 42, .38); }

.client-card-head { display: flex; gap: 12px; align-items: flex-start; }

.client-meta { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.client-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ============================================================
   手机端首页（mc- 前缀）：轮播图 / 统计条 / 公告 / 题材 / 作品 / 底部导航
   ============================================================ */

/* ---------- 轮播图 ---------- */
.mc-hero {
  position: relative;
  /* 后台可调：--mc-hero-h 由模板内联注入，未设置时回落到 232px */
  height: var(--mc-hero-h, 232px);
  overflow: hidden;
  background: var(--grad);
}

.mc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.mc-slide.is-active { opacity: 1; }

.mc-slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mc-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .48), rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, 0));
}

.mc-slide-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 20px 26px;
  color: #fff;
}

.mc-topbar { display: flex; align-items: center; gap: 8px; }

.mc-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .22);
  font-size: 14px;
  font-weight: 700;
}

.mc-sitename { font-size: 14px; font-weight: 600; }

.mc-slide-text { margin-top: auto; }
.mc-slide-text h1 { font-size: 24px; font-weight: 700; line-height: 1.32; margin: 0; }
.mc-slide-text p { margin: 7px 0 0; font-size: 12px; color: rgba(255, 255, 255, .82); }
/* 轮播高度调小（最低 140px）时，标题/副标题按比例收缩，避免溢出被裁 */
.mc-hero .mc-slide-body, .pc-hero .mc-slide-body { overflow: hidden; }
.mc-hero .mc-slide-text h1 { font-size: clamp(15px, calc(var(--mc-hero-h, 232px) * .085), 24px); }
.mc-hero .mc-slide-text p  { font-size: clamp(10px, calc(var(--mc-hero-h, 232px) * .048), 12px); }

.mc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .26);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .16s;
}
.mc-nav:hover { background: rgba(0, 0, 0, .44); }
.mc-nav-prev { left: 8px; }
.mc-nav-next { right: 8px; }

.mc-dots {
  position: absolute;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; align-items: center; gap: 6px;
}
.mc-dot {
  width: 6px; height: 6px;
  padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.mc-dot.is-active { width: 16px; background: #fff; }

/* ---------- 数据统计 ---------- */
.mc-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 16px;
  font-size: 11.5px;
  background: linear-gradient(90deg, #6d28d9, #4338ca);
  color: rgba(255, 255, 255, .92);
}
.mc-stats span { display: inline-flex; align-items: center; gap: 4px; }
.mc-stats .ico { width: 13px; height: 13px; flex: none; }

/* ---------- 公告 ---------- */
.mc-notice {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
  font-size: 12px;
  color: #b45309;
}
.mc-notice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mc-flash-wrap { padding: 12px 16px 0; }

/* ---------- 内容区 ---------- */
.mc-content { padding: 14px 16px 88px; }

/* 题材筛选：横向滚动 */
.mc-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 14px;
  padding: 0 16px 2px;
  scrollbar-width: none;
}
.mc-cats::-webkit-scrollbar { display: none; }

.mc-cat {
  flex: none;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s, color .16s, border-color .16s;
}
.mc-cat.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 作品卡·列表样式 */
.mc-work {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 16px -14px rgba(15, 23, 42, .5);
}

.mc-work-cover,
.mc-wf-cover,
.mc-fd-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.mc-work-cover {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 12px;
}
.mc-work-cover em,
.mc-wf-cover em {
  position: absolute;
  right: 5px; bottom: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .55);
  font-size: 10px;
  font-style: normal;
  z-index: 2;
}

.mc-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .55);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  /* 封面图是 absolute 铺满，静态元素会被压在下面 —— 必须提升层级才可见、可点 */
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: transform .15s, background-color .15s;
}
/* 整块封面可点（有视频时） */
.mc-work-cover[data-video],
.mc-wf-cover[data-video],
.mc-fd-cover[data-video],
.pc-tile-cover[data-video] {
  cursor: pointer;
}
.mc-work-cover[data-video]:hover .mc-play,
.mc-wf-cover[data-video]:hover .mc-play,
.pc-tile-cover[data-video]:hover .mc-play {
  transform: scale(1.08);
  background: rgba(15, 23, 42, .75);
}
.mc-work-cover[data-video]:active .mc-play,
.mc-wf-cover[data-video]:active .mc-play,
.pc-tile-cover[data-video]:active .mc-play {
  transform: scale(.94);
}

.mc-work-body { flex: 1; min-width: 0; }
.mc-work-title { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-work-sub { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-work-intro { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }

.mc-work-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 投票改用点赞同款图标按钮（.mc-like.is-vote），旧的文字按钮样式已移除；
   分享按钮接住原「投票」文字按钮的靠右位置 */
.mc-work-meta .mc-share-btn { margin-left: auto; }

/* 作品卡·瀑布流样式 */
.mc-waterfall { display: flex; gap: 12px; align-items: flex-start; }
.mc-wf-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.mc-wf-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 16px -14px rgba(15, 23, 42, .5);
}
.mc-wf-cover { width: 100%; }
.mc-ar-4x5 { aspect-ratio: 4 / 5; }
.mc-ar-3x4 { aspect-ratio: 3 / 4; }
.mc-ar-1x1 { aspect-ratio: 1 / 1; }
.mc-ar-5x4 { aspect-ratio: 5 / 4; }

.mc-wf-info { padding: 9px 10px 11px; }
.mc-wf-title {
  font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-wf-sub { margin-top: 3px; font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-wf-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11px; color: var(--ink-3); }

/* 探索发现精选（首页横滑） */
.mc-featured { margin-top: 18px; }
.mc-featured-head { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }

.mc-featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 2px;
  scrollbar-width: none;
}
.mc-featured-scroll::-webkit-scrollbar { display: none; }

.mc-fd-card {
  flex: none;
  width: 152px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px -14px rgba(15, 23, 42, .5);
}
.mc-fd-cover { height: 92px; }
.mc-fd-info { padding: 8px 10px 10px; }
.mc-fd-title { font-size: 12px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-fd-sub { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 其它区块 */
.mc-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: var(--ink); }
.mc-sec-head span { font-size: 11.5px; color: var(--ink-3); }

.mc-empty { padding: 56px 0; text-align: center; font-size: 13px; color: var(--ink-3); }

.mc-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 10px;
  font-weight: 500;
  vertical-align: middle;
}

/* ===== 探索发现 · 投稿 ===== */
.mc-disc-tip {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #f8faff, #f3f6fc);
  font-size: 11.5px; line-height: 1.55; color: var(--ink-2);
}
.mc-disc-tip > div { flex: 1; min-width: 0; }
.mc-disc-tip strong { font-weight: 600; color: var(--ink); }
.mc-disc-tip .ico-wrap { flex: none; display: inline-flex; color: var(--brand); }
.mc-disc-tip .ico-wrap svg { width: 18px; height: 18px; }

.mc-disc-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 3px;
  padding: 5px 10px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mc-disc-toggle svg { width: 13px; height: 13px; flex: none; }
.mc-disc-toggle em { font-style: normal; }
.mc-disc-toggle.is-open { background: var(--ink-3); }

.mc-disc-login {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; padding: 12px;
  border: 1px dashed var(--line); border-radius: 12px;
  font-size: 12px; color: var(--ink-2);
}
.mc-disc-login .mc-btn-primary { flex: none; padding: 6px 12px; font-size: 12px; }

.mc-disc-form {
  margin-bottom: 14px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.mc-disc-form[hidden] { display: none; }
.mc-req { color: #ef4444; }
.mc-disc-form .mc-input { width: 100%; box-sizing: border-box; }

.mc-disc-file {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 11px; border: 1px dashed var(--line); border-radius: 10px;
  background: #fafbfd; cursor: pointer; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.mc-disc-file svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.mc-disc-file em {
  flex: 1; min-width: 0; font-style: normal; font-size: 11.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mc-disc-file.is-picked { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.mc-disc-file.is-picked em { color: var(--ink); font-weight: 500; }
.mc-disc-file input[type=file] { display: none; }

.mc-disc-form .mc-btn-primary { width: 100%; margin-top: 4px; }
.mc-disc-form .mc-btn-primary[disabled] { opacity: .6; cursor: progress; }
.mc-disc-note { margin: 8px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--ink-3); text-align: center; }

.mc-mine { margin-bottom: 14px; }
.mc-mine-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mc-mine-row:last-child { border-bottom: 0; }
.mc-mine-main { flex: 1; min-width: 0; }
.mc-mine-title { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-mine-sub { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); }
.mc-mine-reason {
  margin-top: 5px; padding: 5px 8px; border-radius: 7px;
  background: #fef2f2; color: #b91c1c; font-size: 10.5px; line-height: 1.5;
}
.mc-mine-st {
  flex: none; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.mc-mine-st.is-pending { background: #fef3c7; color: #b45309; }
.mc-mine-st.is-ok      { background: #dcfce7; color: #15803d; }
.mc-mine-st.is-bad     { background: #fee2e2; color: #b91c1c; }
.mc-mine-st.is-off     { background: #f1f5f9; color: #64748b; }

/* 我的 */
.mc-me-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
}
.mc-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
  font-size: 17px; font-weight: 600;
}
.mc-me-name { font-size: 15px; font-weight: 600; }
.mc-me-sub { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, .8); }

.mc-btn {
  display: block; width: 100%;
  padding: 10px;
  border: 0; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
}
.mc-btn-primary { background: var(--brand); color: #fff; }

.mc-card {
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mc-card-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }

.mc-kv { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--ink-3); }
.mc-kv strong { color: var(--ink); }

.mc-footer { margin-top: 22px; text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* 我的：登录 / 表单 */
.mc-out {
  padding: 5px 12px;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff; font-size: 11.5px;
  cursor: pointer;
}
.mc-warn {
  padding: 9px 12px; margin-bottom: 12px;
  border-radius: 12px;
  background: #fef3c7; color: #92400e;
  font-size: 11.5px;
}
.mc-wallet {
  padding: 13px 14px; margin-bottom: 12px;
  border-radius: 16px; background: #fff;
  border: 1px solid var(--line);
}
.mc-wallet-main { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.mc-wallet-main strong { font-size: 20px; color: var(--brand); }
.mc-wallet-sub { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--ink-3); }

.mc-field { margin-bottom: 11px; }
.mc-field label { display: block; margin-bottom: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.mc-field-row { display: flex; gap: 9px; }
.mc-field-row .mc-field { flex: 1; min-width: 0; }

.mc-tip { margin: 9px 0 0; font-size: 11px; line-height: 1.65; color: var(--ink-3); }

.mc-or {
  display: flex; align-items: center; gap: 10px;
  margin: 15px 0 3px;
  font-size: 11px; color: var(--ink-3);
}
.mc-or::before, .mc-or::after {
  content: ""; flex: 1; height: 1px; background: var(--line-2);
}

/* ---------- 底部固定导航 ---------- */
.mc-tabbar {
  /* sticky 而非 fixed：X5/低端内核里 fixed 底栏会随滚动抖动漂移；
     sticky 锚在文档流上，配合 .client-phone 的 flex 列 + margin-top:auto 兜底短页面 */
  position: sticky;
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: 420px;
  margin: auto auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}

.mc-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 0 8px;
  font-size: 11px;
  color: #94a3b8;
  text-decoration: none;
  transition: color .16s;
}
.mc-tab svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-tab.is-active { color: #7c3aed; font-weight: 600; }
.mc-tab.is-active svg { stroke-width: 2.1; }
.mc-tab:hover { text-decoration: none; color: #7c3aed; }

/* PC 端 */
.pc-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }

/* ============================================================
   PC 端用户端（pc- 前缀）
   ============================================================ */

.pc-body { background: #f1f5f9; color: var(--ink); }

/* ---------- 顶部导航 ---------- */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* 性能：吸顶栏去掉 backdrop-filter，滚动长列表时不掉帧 */
  background: #fff;
  border-bottom: 1px solid var(--line);
  will-change: transform;
}

.pc-header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 20px;
}

.pc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.pc-brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 15px; font-weight: 700;
}
.pc-brand strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.pc-brand em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); }

.pc-nav { display: flex; align-items: center; gap: 2px; font-size: 13.5px; }
.pc-nav a {
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pc-nav a:hover { background: #f1f5f9; color: var(--brand); text-decoration: none; }

.pc-user { margin-left: auto; display: flex; align-items: center; gap: 9px; }

.pc-login-btn {
  padding: 7px 16px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: filter .15s;
}
.pc-login-btn:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }

.pc-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.pc-user-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 12px; font-weight: 600;
}
.pc-user-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pc-logout {
  padding: 3px 9px;
  border: 0; border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink-3);
  font-size: 11.5px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pc-logout:hover { background: #ffe4e6; color: #e11d48; }

/* ---------- 轮播 ---------- */
.pc-hero {
  position: relative;
  /* 后台可调：--mc-hero-h 由模板内联注入，未设置时回落到 380px */
  height: var(--mc-hero-h, 380px);
  overflow: hidden;
  background: var(--grad);
}
.pc-hero .mc-slide-body { padding: 0; }

.pc-hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 30px;
  color: #fff;
}
.pc-hero-body h1 { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.3; }
.pc-hero-body p { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, .86); }
.pc-hero-meta { margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }

/* ---------- 统计条 / 公告 ---------- */
.pc-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 11px 20px;
  font-size: 12.5px;
  background: linear-gradient(90deg, #6d28d9, #4338ca);
  color: rgba(255, 255, 255, .92);
}
.pc-stats strong { font-size: 13px; }
.pc-stats span { display: inline-flex; align-items: center; gap: 5px; }
.pc-stats .ico { width: 14px; height: 14px; flex: none; }

.pc-notice {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #b45309;
  font-size: 12.5px;
}

.pc-flash { max-width: 1180px; margin: 16px auto 0; padding: 0 20px; }

/* ---------- 内容区 ---------- */
.pc-main { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }

.pc-section { padding: 30px 0 6px; }
.pc-section:first-of-type { padding-top: 24px; }

.pc-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pc-sec-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.pc-sec-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }

.pc-search { display: flex; gap: 8px; align-items: center; }
.pc-search .input { width: 230px; }

.pc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pc-btn:hover { text-decoration: none; background: #f8fafc; }
.pc-btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.pc-btn-primary:hover { background: var(--brand); filter: brightness(1.08); color: #fff; }
.pc-btn-sm { padding: 4px 11px; font-size: 11.5px; }

/* 作品卡里的「投一票」：与点赞 / 分享胶囊同款同高（否则会在窄卡里挤成两行竖排） */
.pc-tile-meta .pc-btn {
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.5; font-weight: 500;
  white-space: nowrap; flex: none;
}

/* ===== PC 端 · 探索发现投稿 ===== */
.pc-disc-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--brand); border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: filter .15s;
}
.pc-disc-toggle:hover { filter: brightness(1.07); }
.pc-disc-toggle svg { width: 14px; height: 14px; flex: none; }
.pc-disc-toggle.is-open { background: #fff; color: var(--ink-2); border-color: var(--line-2); }

.pc-disc-form {
  margin-bottom: 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe;
}
.pc-disc-form[hidden] { display: none; }
.pc-disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.pc-field { display: flex; flex-direction: column; min-width: 0; }
.pc-field label { margin-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pc-field .input { width: 100%; box-sizing: border-box; }
.pc-field textarea.input { resize: vertical; min-height: 62px; }
.pc-req { color: #ef4444; }

.pc-disc-files { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-disc-file {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border: 1px dashed var(--line-2); border-radius: 10px;
  background: #fff; cursor: pointer; overflow: hidden;
}
.pc-disc-file svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.pc-disc-file em {
  flex: 1; min-width: 0; font-style: normal; font-size: 12px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-disc-file:hover { border-color: var(--brand); }
.pc-disc-file.is-picked { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.pc-disc-file.is-picked em { color: var(--ink); font-weight: 500; }
.pc-disc-file input[type=file] { display: none; }

.pc-disc-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.pc-disc-actions .pc-btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.pc-disc-actions .pc-btn[disabled] { opacity: .6; cursor: progress; }
.pc-disc-note { font-size: 11.5px; color: var(--ink-3); }

.pc-mine { margin-bottom: 18px; }
.pc-mine-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; margin-bottom: 8px;
}
.pc-mine-main { flex: 1; min-width: 0; }
.pc-mine-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.pc-mine-sub { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.pc-mine-reason {
  margin-top: 6px; padding: 6px 9px; border-radius: 7px;
  background: #fef2f2; color: #b91c1c; font-size: 11.5px;
}
.pc-mine-st { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pc-mine-st.is-pending { background: #fef3c7; color: #b45309; }
.pc-mine-st.is-ok      { background: #dcfce7; color: #15803d; }
.pc-mine-st.is-bad     { background: #fee2e2; color: #b91c1c; }
.pc-mine-st.is-off     { background: #f1f5f9; color: #64748b; }

@media (max-width: 900px) {
  .pc-disc-grid { grid-template-columns: 1fr; }
  .pc-disc-files { grid-template-columns: 1fr; }
}

.pc-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pc-cat {
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.pc-cat:hover { text-decoration: none; border-color: var(--brand-line); color: var(--brand); }
.pc-cat.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 作品网格 */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pc-grid.is-waterfall { display: block; columns: 4; column-gap: 16px; }
.pc-grid.is-waterfall .pc-tile { break-inside: avoid; margin-bottom: 16px; }

@media (max-width: 1080px) { .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pc-grid.is-waterfall { columns: 3; } }
@media (max-width: 780px)  { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-grid.is-waterfall { columns: 2; } }

.pc-tile {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px -18px rgba(15, 23, 42, .55);
  transition: transform .18s, box-shadow .18s;
}
.pc-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(15, 23, 42, .5); }

.pc-tile-cover {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  color: #fff;
  overflow: hidden;
}
.pc-tile-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pc-tile-cover img + .mc-play {
  background: rgba(15, 23, 42, .45);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.pc-tile-cover em {
  position: absolute; right: 8px; bottom: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .55);
  font-size: 10.5px; font-style: normal;
  z-index: 2;
}

.pc-tile-body { padding: 12px 13px 14px; }
.pc-tile-body h3 { margin: 0 0 5px; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tile-sub { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tile-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.pc-tile-meta form { margin-left: auto; }

.pc-empty {
  padding: 56px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
}

/* 提示框与下方作品列表之间留出间距（截图反馈：贴在一起） */
.pc-section .pc-empty { margin-bottom: 18px; }

.pc-panel { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; color: var(--ink-2); }

/* 个人中心 */
.pc-me { display: flex; gap: 16px; flex-wrap: wrap; }
.pc-me-card {
  display: flex; align-items: center; gap: 13px;
  flex: 1 1 320px;
  padding: 16px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
}
.pc-me-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
  font-size: 18px; font-weight: 600;
}
.pc-me-name { font-size: 15px; font-weight: 600; }
.pc-me-sub { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.pc-me-tag { display: inline-block; margin-top: 5px; padding: 1px 8px; border-radius: 999px; background: rgba(251, 191, 36, .9); color: #78350f; font-size: 10.5px; }

.pc-me-wallet {
  flex: 1 1 360px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pc-me-wallet div { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.pc-me-wallet span { font-size: 11px; color: var(--ink-3); }
.pc-me-wallet strong { font-size: 16px; color: var(--brand); }

.pc-auth { display: flex; gap: 16px; flex-wrap: wrap; }
.pc-auth-card {
  flex: 1 1 300px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pc-auth-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink); }

.pc-footer { padding: 34px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }

@media (max-width: 860px) {
  .pc-header-inner { flex-wrap: wrap; gap: 10px; }
  .pc-nav { order: 3; width: 100%; overflow-x: auto; }
  .pc-hero { height: var(--mc-hero-h, 260px); }
  .pc-hero-body h1 { font-size: 23px; }
  .pc-me-wallet { grid-template-columns: repeat(2, 1fr); }
}

.pc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
@media (max-width: 980px) { .pc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pc-cards { grid-template-columns: 1fr; } }

.pc-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}

.pc-tile:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -24px rgba(15, 23, 42, .42); }

.pc-tile-cover { color: #fff; font-weight: 700; font-size: 12.5px; }

.pc-tile-body { padding: 13px; }
.pc-tile-body strong { display: block; font-size: 13.5px; margin-bottom: 3px; }

/* 大屏 */
.screen-wrap { padding: 28px 32px 54px; max-width: 1680px; margin: 0 auto; }

.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.screen-title {
  font-size: 28px;
  letter-spacing: -.025em;
  background: linear-gradient(120deg, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.screen-sub { color: var(--ink-4); font-size: 13px; margin-top: 5px; }
.screen-clock {
  font-size: 15px; color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  padding: 6px 16px;
}

.screen-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
@media (max-width: 1100px) { .screen-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.screen-kpi {
  position: relative;
  background: linear-gradient(160deg, rgba(79, 70, 229, .30), rgba(124, 58, 237, .14));
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 18px;
  padding: 19px 21px;
  overflow: hidden;
}

.screen-kpi::after {
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, .28), transparent 70%);
}

.screen-kpi-label { color: #a5b4fc; font-size: 12.5px; }
.screen-kpi-value {
  font-size: 35px; font-weight: 780; letter-spacing: -.035em; color: #fff; margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.screen-panels { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 1100px) { .screen-panels { grid-template-columns: 1fr; } }

.screen-panel {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 19px 21px;
}

.screen-panel h3 { color: #e2e8f0; font-size: 15px; margin-bottom: 15px; }

.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(148, 163, 184, .16); }
.rank-row:last-child { border-bottom: 0; }

.rank-no {
  width: 27px; height: 27px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(148, 163, 184, .16);
  color: #cbd5e1; font-size: 12px; font-weight: 700; flex: 0 0 auto;
}

.rank-no.top1 { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.rank-no.top2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.rank-no.top3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.rank-title { flex: 1; min-width: 0; color: #e2e8f0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { color: #a5b4fc; font-weight: 700; font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #cbd5e1; }
.legend-row .bar { flex: 1; background: rgba(148, 163, 184, .18); }

/* ============================================================
   工具类
   ============================================================ */

.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.tag-list { display: flex; gap: 7px; flex-wrap: wrap; }
.space-y-4 > * + * { margin-top: 16px; }

/* ============================================================
   开放接口页面
   ============================================================ */

.kv { display: flex; flex-direction: column; gap: 10px; }
.kv-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink-2); }
.kv-key { flex: 0 0 96px; color: var(--ink-3); font-size: 12.5px; }

.code-block {
  margin: 0;
  padding: 13px 15px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre;
  overflow-x: auto;
}

.code-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--ink-2);
  word-break: break-all;
}

.subtable-title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
  margin: 0 0 8px;
}

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
@media (max-width: 760px) { .check-grid { grid-template-columns: 1fr; } }

.app-block + .app-block { margin-top: 12px; }
.app-block { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.app-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 15px; background: #f8fafc; border-bottom: 1px solid var(--line);
}
.app-head .cell-title { font-size: 13.5px; }
.app-body { padding: 15px; }
.app-block > summary { cursor: pointer; list-style: none; }
.app-block > summary::-webkit-details-marker { display: none; }
.app-block > summary:hover { background: #f4f7fb; }

/* ============================================================
   图标管理（后台 → 系统 → 图标管理）
   ============================================================ */

/* ---------- 菜单图标行 ---------- */
.nav-icon-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 8px;
  margin: 4px 0 16px;
}

.nav-icon-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.nav-icon-row.is-target {
  border-color: var(--brand-line);
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .08);
}

.nav-icon-row-group {
  flex: none;
  padding: 1px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: var(--ink-3);
  font-size: 10.5px;
}

.nav-icon-row-label {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon-row-preview {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--brand);
}

.nav-icon-row .btn { flex: none; padding: 4px 9px; font-size: 11.5px; }

/* ---------- 图标搜索 ---------- */
.icon-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.icon-search-form .input { flex: 1; max-width: 420px; }

/* ---------- 图标网格 ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 7px;
}

.icon-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s, transform .14s;
}
.icon-cell svg { width: 22px; height: 22px; color: var(--ink); transition: color .14s; }

.icon-cell-name {
  width: 100%;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--ink-3);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-cell:hover {
  border-color: var(--brand-line);
  background: #f8f7ff;
  transform: translateY(-1px);
}
.icon-cell:hover svg { color: var(--brand); }

.icon-cell.is-picked {
  border-color: var(--brand);
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.icon-cell.is-picked svg { color: var(--brand); }

.icon-tag {
  position: absolute;
  top: 3px; right: 3px;
  padding: 0 4px;
  border-radius: 4px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.5;
}

/* ---------- 分页 ---------- */
.icon-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.icon-pager .btn { padding: 4px 10px; font-size: 12px; }

/* ---------- 自定义图标 ---------- */
.icon-add-form {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 720px) { .icon-add-form { grid-template-columns: 1fr; } }

.icon-custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}

.icon-custom-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.icon-custom-preview { color: var(--brand); line-height: 0; }
.icon-custom-name {
  width: 100%;
  font-size: 10.5px;
  color: var(--ink-3);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-del {
  position: absolute;
  top: 3px; right: 4px;
  width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 0; border-radius: 50%;
  background: #f1f5f9;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.icon-del:hover { background: #ffe4e6; color: #e11d48; }

/* ============================================================
   流畅度基础优化（2026-10-18）
   ------------------------------------------------------------
   目的：减少滚动时的重排/重绘与图片解码卡顿。
   ============================================================ */

/* 图片使用异步解码，避免解码阻塞主线程导致滚动卡顿 */
img { decoding: async; }

/* 长列表容器：跳过屏幕外内容的渲染（现代浏览器自动降级） */
.mc-works,
.mc-waterfall,
.pc-grid,
.admin-table-wrap {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

/* 滚动容器启用硬件滚动，避免整页重绘 */
.admin-main,
.client-body { overscroll-behavior-y: contain; }

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   作品封面图与视频弹层（2026-10-18）
   ============================================================ */

/* 封面容器内的图片：绝对定位铺满，不撑开布局 */
.mc-work-cover img,
.mc-wf-cover img,
.mc-fd-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 有真实封面时播放按钮的对比度（压暗图片底部） */
.mc-work-cover img + .mc-play,
.mc-wf-cover img + .mc-play,
.mc-fd-cover img + .mc-play {
  background: rgba(15, 23, 42, .45);
  backdrop-filter: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* ---------- 视频弹层 ---------- */
/* 用 visibility 切换而不是 display:none：
   display:none 每次打开都要重新布局+合成，手机上是"点了之后先顿一下"的主要来源 */
.mc-vmodal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, .82);
  visibility: hidden;
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity .16s ease, visibility 0s linear .16s;
  will-change: opacity;
}
.mc-vmodal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .16s ease, visibility 0s;
}
.mc-vmodal-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 480px);
  max-height: 88vh;
}
.mc-vmodal video {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}
/* 首帧未就绪时的转圈，给"正在加载"一个明确反馈 */
.mc-vmodal-spin {
  position: absolute;
  width: 34px; height: 34px;
  margin: auto;
  border: 2.5px solid rgba(255, 255, 255, .22);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.mc-vmodal.is-loading .mc-vmodal-spin {
  opacity: 1;
  animation: mc-spin .8s linear infinite;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }
.mc-vmodal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.mc-vmodal-close:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 780px) {
  /* 手机上移出视频区，避免挡住画面右侧 */
  .mc-vmodal-close { top: calc(-42px - env(safe-area-inset-top)); right: 2px; }
}

/* ============================================================
   客户端配置 · 首页可视化编辑（后台 /admin/client）
   ============================================================ */

.cc-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}

.cc-seg { display: inline-flex; gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 10px; }
.cc-seg button {
  padding: 6px 14px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink-3); cursor: pointer;
}
.cc-seg button.is-active {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.cc-pick { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.cc-pick input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.cc-pick em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.cc-state {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; color: var(--ink-3); background: #f1f5f9; white-space: nowrap;
}
.cc-state.is-busy  { color: #2563eb; background: #eff6ff; }
.cc-state.is-dirty { color: #b45309; background: #fffbeb; }
.cc-state.is-bad   { color: #b91c1c; background: #fef2f2; }

/* ---------- 两栏 ---------- */
.cc-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: 16px; align-items: start;
}
.cc-editor { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 预览 ---------- */
.cc-preview {
  position: sticky; top: 10px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 34px -22px rgba(15, 23, 42, .45);
}
.cc-frame-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: #f8fafc; border-bottom: 1px solid var(--line);
}
.cc-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.cc-dot:nth-child(1) { background: #fca5a5; }
.cc-dot:nth-child(2) { background: #fcd34d; }
.cc-dot:nth-child(3) { background: #86efac; }
.cc-frame-url {
  margin-left: 8px; font-size: 11px; color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cc-reload {
  margin-left: auto; width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.cc-reload:hover { background: #f1f5f9; }
.cc-frame-wrap {
  display: flex; justify-content: center; overflow: hidden auto;
  height: calc(100vh - 250px); min-height: 440px; max-height: 840px;
  background: #eef1f7;
}
.cc-frame-wrap iframe {
  width: 390px; height: 100%; border: 0; background: #fff; flex: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06);
}
.cc-frame-wrap.is-pc iframe { width: 100%; }
.cc-frame-foot {
  padding: 8px 12px; font-size: 11.5px; color: var(--ink-3);
  background: #fff; border-top: 1px solid var(--line);
}

/* ---------- 编辑卡片 ---------- */
.cc-card { padding: 15px 16px; }
.cc-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.cc-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.cc-card-head > div { min-width: 0; }
.cc-card-head .card-title { margin: 0; }
.cc-card-head .card-desc { margin: 2px 0 0; }
.cc-card-head > .chip,
.cc-card-head > .cc-interval { margin-left: auto; flex: none; }

.cc-interval { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.cc-interval .input { width: 58px; padding: 4px 6px; text-align: center; }
.cc-interval em { font-style: normal; }

.cc-inline {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 10px 12px; margin-bottom: 12px;
  background: #f8fafc; border-radius: 10px;
}
.cc-inline .check { margin-bottom: 0; }

.cc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-mt { margin-top: 12px; }
.cc-vm { display: flex; align-items: flex-end; padding-bottom: 6px; }

/* ---------- 轮播图 ---------- */
.cc-slides { display: flex; flex-direction: column; gap: 8px; }
.cc-slides-empty {
  padding: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3);
  background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px;
}
.cc-slide { border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; background: #fff; }
.cc-slide:hover { border-color: #cbd5e1; }
/* 已点删除、等待保存的行：一眼看出它不会再提交 */
.cc-slide[data-deleted="1"] { opacity: .45; border-style: dashed; }
.cc-slide.is-removing { animation: cc-slide-out .16s ease-out forwards; }
@keyframes cc-slide-out { to { opacity: 0; transform: translateX(8px); } }
.cc-undo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px; padding: 7px 10px; font-size: 12.5px; color: #92400e;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px;
}
.cc-undo button {
  flex: none; padding: 2px 10px; font-size: 12.5px; font-weight: 600; color: #b45309;
  background: #fff; border: 1px solid #fcd34d; border-radius: 7px; cursor: pointer;
}
.cc-undo button:hover { background: #fffbeb; border-color: #f59e0b; }
.cc-slide-top { display: flex; align-items: center; gap: 8px; }
.cc-slide-no {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.cc-slide-thumb { flex: none; width: 64px; height: 40px; border-radius: 7px; overflow: hidden; background: #f1f5f9; }
.cc-slide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-slide-grad {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: #fff; font-size: 10.5px; letter-spacing: .5px;
}
.cc-slide-title { flex: 1; min-width: 0; }
.cc-slide-ops { flex: none; display: flex; gap: 2px; }
.cc-slide-ops button {
  width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink-3); font-size: 12px; line-height: 1; cursor: pointer;
}
.cc-slide-ops button:hover { background: #f1f5f9; color: var(--ink); }
.cc-slide-ops button.is-danger { width: auto; min-width: 24px; padding: 0 6px; }
.cc-slide-ops button.is-danger::before { content: '✕'; }
.cc-slide-ops button.is-danger:hover {
  background: #fef2f2; color: #dc2626; border-color: #fecaca;
}
/* 悬停时在 ✕ 后面展开「删除」两字，避免只看到 ✕ 猜不出作用（按钮宽 24 → 约 52） */
.cc-slide-ops button.is-danger::after {
  content: '删除'; display: inline-block; max-width: 0; opacity: 0;
  transition: max-width .16s ease, opacity .16s ease, margin-left .16s ease;
}
.cc-slide-ops button.is-danger:hover::after { max-width: 40px; opacity: 1; margin-left: 3px; }

.cc-slide-more {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px;
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line);
}
.cc-upload { display: flex; gap: 6px; }
.cc-upload .input { flex: 1; min-width: 0; }
.cc-upload .btn { flex: none; }
.cc-add { margin-top: 10px; }

/* ---------- 开关 / 模块 ---------- */
.cc-sw {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: 12px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.cc-sw input { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }

.cc-mods { display: flex; flex-direction: column; gap: 6px; }
.cc-mod {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.cc-mod:hover { border-color: #cbd5e1; }
.cc-mod-grip { flex: none; color: #cbd5e1; font-size: 13px; }
.cc-mod-ico { flex: none; font-size: 14px; }
.cc-mod-name { flex: 1; min-width: 0; font-size: 13px; }
.cc-mod-tag {
  flex: none; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; color: var(--ink-3); background: #f1f5f9;
}
.cc-mod-move { flex: none; display: flex; gap: 2px; min-width: 46px; justify-content: flex-end; }
.cc-mod-move button {
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 5px;
  background: #fff; color: var(--ink-3); font-size: 11px; line-height: 1; cursor: pointer;
}
.cc-mod-move button:hover { background: #f1f5f9; color: var(--ink); }

/* ---------- 色板 / 布局 ---------- */
.cc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-sw-item {
  position: relative; overflow: hidden; width: 66px; height: 50px; padding: 0;
  border: 2px solid transparent; border-radius: 9px; cursor: pointer;
}
.cc-sw-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0;
  font-size: 9.5px; color: #fff; text-align: center; background: rgba(15, 23, 42, .38);
}
.cc-sw-item.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .16); }
.cc-color { display: flex; gap: 8px; }
.cc-color input[type="color"] {
  flex: none; width: 38px; height: 34px; padding: 2px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}

.cc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-choice button {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer;
}
.cc-choice button strong { font-size: 13px; color: var(--ink); }
.cc-choice button em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.cc-choice button.is-active {
  border-color: var(--brand); background: #faf5ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

/* ---------- 保存条 / 高亮 ---------- */
.cc-savebar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 11px 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 -8px 26px -20px rgba(15, 23, 42, .5);
}
.cc-card.is-flash { animation: ccFlash 1.3s ease; }
@keyframes ccFlash {
  0%   { box-shadow: 0 0 0 0 rgba(79, 70, 229, .42); }
  45%  { box-shadow: 0 0 0 5px rgba(79, 70, 229, .16); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
body.cc-picking .cc-preview { box-shadow: 0 0 0 2px var(--brand), 0 10px 34px -22px rgba(15, 23, 42, .45); }

/* ---------- 预览 iframe 内部（选择模式） ---------- */
body.is-picking * { pointer-events: none !important; }
body.is-picking [data-zone] {
  pointer-events: auto !important; cursor: crosshair !important;
  outline: 2px dashed rgba(124, 58, 237, .65); outline-offset: -2px;
}
body.is-picking [data-zone]:hover {
  outline: 3px solid rgba(124, 58, 237, .9);
  filter: brightness(.97);
}
[data-zone].is-zone-flash { animation: zoneFlash 1.2s ease; }
@keyframes zoneFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(124, 58, 237, .4); }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
  .cc-cols { grid-template-columns: 1fr; }
  .cc-preview { position: static; }
  .cc-frame-wrap { height: 560px; }
}
@media (max-width: 720px) {
  .cc-two,
  .cc-slide-more,
  .cc-choice { grid-template-columns: 1fr; }
  .cc-pick em { display: none; }
}

/* ============================================================
   点赞按钮 / 未登录提示（手机端 + PC 端共用）
   ============================================================ */

.mc-like-form { display: inline-flex; flex: none; }

.mc-like {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-3);
  font: inherit; font-size: 11.5px; line-height: 1.5;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.mc-like:hover { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
.mc-like.is-on { color: #e11d48; border-color: #fecdd3; background: #fff1f2; cursor: default; }
.mc-like.is-sm { padding: 1px 7px; font-size: 10.5px; }
/* 窄卡片里数字再长也只压缩自己，保证图标与分享按钮始终完整可见 */
.mc-wf-meta .mc-like.is-sm { overflow: hidden; }
.mc-wf-meta .mc-like.is-sm .ico { flex: none; }
.mc-wf-meta .mc-like.is-sm { text-overflow: ellipsis; }
.mc-like.is-vote:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
/* 非交互（未开放点赞/投票时）的纯展示态：无边框、默认色 */
.mc-like.is-plain {
  border-color: transparent; background: none; cursor: default; padding-left: 4px; padding-right: 4px;
}
/* 内联 SVG 图标：跟随文字颜色，不需要 emoji 字体 */
.mc-like .ico, .mc-share-btn .ico, .mc-fd-sub .ico {
  width: 1em; height: 1em; flex: none; vertical-align: -0.12em;
}
.mc-like.is-on .ico { fill: currentColor; }   /* 已点赞：实心爱心 */

.mc-wf-meta { align-items: center; min-width: 0; }
.mc-wf-meta .mc-like-form { display: inline-flex; }
/* 卡片窄：数字可能到 4 位，压缩间距并允许计数收缩，分享按钮永不掉出屏幕 */
.mc-wf-meta { gap: 5px; }
.mc-wf-meta .mc-like { min-width: 0; }
.mc-wf-meta .mc-share-btn { margin-left: auto; }

.pc-tile-meta form.mc-like-form { margin-left: 0; }

/* ---------- 分享按钮（紧跟在投票后面） ---------- */
.mc-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  flex: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-3);
  font: inherit; font-size: 11.5px; line-height: 1.5; cursor: pointer;
  white-space: nowrap;
  transition: color .16s, border-color .16s, background .16s;
}
.mc-share-btn em { font-style: normal; }
.mc-share-btn:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.mc-share-btn.is-sm { padding: 1px 7px; font-size: 10.5px; }
/* 瀑布流窄卡片：分享按钮与投票胶囊同高同款，仅图标不带文字，宽度固定不被截断 */
.mc-share-btn.is-ico {
  width: 30px; padding: 1px 0; gap: 0; justify-content: center;
}
.mc-share-btn.is-ico .ico { width: 1em; height: 1em; }
.mc-wf-meta .mc-share-btn { margin-left: auto; }

/* ---------- 分享面板（底部抽屉） ---------- */
.mc-sheet {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity .18s ease, visibility 0s linear .18s;
}
.mc-sheet.is-open { visibility: visible; opacity: 1; transition: opacity .18s ease, visibility 0s; }
/* PC 端：居中弹窗而不是底部抽屉 */
.mc-sheet.is-center { align-items: center; }
.mc-sheet.is-center .mc-sheet-body {
  border-radius: 18px; max-width: 420px;
  padding: 20px; box-shadow: 0 24px 64px rgba(2, 6, 23, .36);
}
.mc-sheet-mask { position: absolute; inset: 0; background: rgba(2, 6, 23, .5); }
.mc-sheet-body {
  position: relative; width: 100%; max-width: 520px;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, .18);
  transform: translateY(12px); transition: transform .18s ease;
}
.mc-sheet.is-open .mc-sheet-body { transform: translateY(0); }
.mc-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mc-sheet-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.mc-sheet-sub { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.mc-sheet-close {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #f1f5f9; color: var(--ink-3); font-size: 14px; cursor: pointer;
}
.mc-sheet-close:hover { background: #e2e8f0; color: var(--ink); }
.mc-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.mc-share-cell {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 6px 11px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; font: inherit;
  transition: border-color .16s, background .16s, transform .12s;
}
.mc-share-cell:hover:not(:disabled) { border-color: var(--brand-line); background: var(--brand-soft); }
.mc-share-cell:active:not(:disabled) { transform: scale(.97); }
.mc-share-cell:disabled, .mc-share-cell.is-got { cursor: not-allowed; background: #f8fafc; border-color: #eef2f7; }
.mc-share-ico { font-size: 22px; line-height: 1; color: var(--brand); }
.mc-share-ico .ico { width: 22px; height: 22px; }
.mc-share-cell.is-got .mc-share-ico { color: #cbd5e1; }
.mc-share-name { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mc-share-tail { font-size: 10.5px; color: var(--brand); }
.mc-share-cell.is-got .mc-share-name,
.mc-share-cell.is-got .mc-share-tail { color: #cbd5e1; }
.mc-sheet-tip { margin: 10px 0 0; font-size: 11px; color: var(--ink-3); text-align: center; }
.mc-share-copy {
  width: 100%; margin-top: 12px; padding: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.mc-share-copy:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }

.pc-auth-hint {
  flex: 1 1 100%; margin: 0 0 -4px; padding: 9px 13px;
  font-size: 13px; color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand-line); border-radius: 12px;
}

/* ============================================================
   站点品牌标识（Logo / 站点图标）
   ============================================================ */

/* 有 Logo 时不再用渐变底与文字 */
.brand-logo.has-img,
.mc-logo.has-img,
.pc-brand-logo.has-img {
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.brand-logo img,
.mc-logo img,
.pc-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

/* 后台侧边栏为深色，Logo 留白底更清晰 */
.brand-logo.has-img { background: #fff; }

/* ---------- 系统配置：上传槽 ---------- */
.bs-list { display: flex; flex-direction: column; gap: 10px; }

.bs-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color .16s, background .16s;
}
.bs-slot.is-over { border-color: var(--brand); background: var(--brand-soft); }

.bs-prev {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  background-image: conic-gradient(#eef2f7 0 25%, #fff 0 50%, #eef2f7 0 75%, #fff 0);
  background-size: 12px 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.bs-prev img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.bs-prev span { font-size: 24px; font-weight: 700; color: var(--ink-4); }

.bs-prev-fav { width: 48px; height: 48px; border-radius: 10px; }
.bs-prev-fav span { font-size: 17px; }

.bs-body { flex: 1; min-width: 0; }
.bs-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bs-name em { margin-left: 5px; font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.bs-hint { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.bs-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bs-tip { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

@media (max-width: 720px) {
  .bs-slot { align-items: flex-start; }
  .bs-prev { width: 56px; height: 56px; }
  .bs-prev-fav { width: 40px; height: 40px; }
}

/* 手机端 Logo 叠在轮播图上，给一层浅底保证任意 Logo 都看得清 */
.mc-logo.has-img { background: rgba(255, 255, 255, .92); }

/* ============================================================
   登录 / 注册切换栏（手机端 + PC 端共用）
   ============================================================ */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  margin: 0 0 16px;
  background: #f1f5f9;
  border-radius: 11px;
}

.auth-tab {
  padding: 9px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .16s, background .16s, box-shadow .16s;
}
.auth-tab:hover { color: var(--ink-2); }
.auth-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.auth-tab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.auth-pane[hidden] { display: none; }
.auth-pane > form .mc-field:last-of-type { margin-bottom: 14px; }

.auth-foot { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.auth-switch { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-switch:hover { text-decoration: underline; }

.pc-auth-single { max-width: 460px; }
.pc-auth-single .pc-auth-card { flex: 1 1 100%; }

/* 站点标识：favicon 自动生成状态行 */
.bs-fav-line { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.bs-fav-ico {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid var(--line); background: #fff; object-fit: contain;
}

/* ---------- 客户端配置：轮播高度滑块 ---------- */
.cc-range-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 4px;
  background: #f8fafc; border-radius: 10px;
}
.cc-range-label { flex: none; font-size: 12.5px; color: var(--ink-2); }
.cc-range {
  flex: 1; min-width: 120px; height: 4px; accent-color: var(--brand); cursor: pointer;
}
.cc-range-val {
  flex: none; min-width: 54px; text-align: right;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* 高度数字输入框（与滑块双向联动，可直接键入精确值） */
.cc-range-num {
  flex: none; width: 76px; padding: 4px 7px; text-align: right;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink);
}
.cc-range-num:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cc-range-unit { flex: none; margin-left: -6px; font-size: 11.5px; color: var(--ink-3); }
.cc-range-reset {
  flex: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font: inherit; font-size: 11.5px; color: var(--ink-3); cursor: pointer;
}
.cc-range-reset:hover { color: var(--brand); border-color: var(--brand-line); }
.cc-range-reset.is-default { opacity: .45; cursor: default; }
.cc-range-hint { margin: 0 0 12px; font-size: 11.5px; color: var(--ink-3); }

/* ============================================================
   客户端交互手感优化（手机端 /m + PC 端 /pc，作用域限 .client-body）
   —— 目标：点击有即时反馈、触控无 300ms 迟疑、滚动不掉帧
   ============================================================ */

/* 1) 触控响应：去掉移动端 300ms 点击判定延迟，并禁掉长按选中/蓝色高亮方块 */
.client-body {
  /* manipulation = 允许滚动与双指缩放，但双击缩放不再被监听 → 点击立即派发 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.client-body button,
.client-body a,
.client-body [role="button"],
.client-body .mc-play,
.client-body .mc-card,
.client-body .mc-wf-card,
.client-body .pc-tile,
.client-body .mc-like,
.client-body .mc-share-btn,
.client-body .mc-share-cell,
.client-body .mc-tabbar a,
.client-body .mc-nav a {
  /* 卡片/按钮按下时不要触发文字选中，否则长按会出选择手柄、手感发涩 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 2) 按下即反馈：不等 160ms 过渡走完，用极快的 :active 态给出"已收到"的确认
      范围只给"可点击容器"，不给内层文字，避免误伤
      注：.mc-share-cell 已有自己的 :active(scale .97)，此处不重复覆盖 */
.client-body .mc-like:active,
.client-body .mc-share-btn:active,
.client-body .mc-tabbar a:active,
.client-body .mc-nav a:active {
  transform: scale(.96);
  transition-duration: .05s;
}
.client-body .mc-card,
.client-body .mc-wf-card,
.client-body .pc-tile {
  /* 先给容器一个产生过渡的起点，:active 的缩放才是"压下去"而不是硬跳 */
  transition: transform .1s ease-out;
}
.client-body .mc-card:active,
.client-body .mc-wf-card:active {
  transform: scale(.985);
  transition-duration: .06s;
}
/* PC 卡有 :hover 的 translateY(-3px)，按下时保留位移、叠加轻微缩放，别把它压掉 */
.client-body .pc-tile:active {
  transform: translateY(-3px) scale(.99);
  transition-duration: .06s;
}

/* 3) 列表渲染开销：离屏卡片跳过绘制与布局计算
      contain: layout style 让浏览器把卡片当成独立布局单元，滚动时只重排可见部分；
      **不用 contain: paint/content**（会裁掉 .pc-tile hover 时外溢的 box-shadow 阴影）。 */
.client-body .mc-card,
.client-body .mc-wf-card,
.client-body .pc-tile {
  contain: layout style;
}

/* 4) 视频封面：提前提升为合成层，点开弹层时不发生首次纹理上传造成的卡顿 */
.client-body .mc-fd-cover img,
.client-body .mc-wf-cover img {
  backface-visibility: hidden;
}
.client-body .mc-fd-cover,
.client-body .mc-wf-cover {
  transform: translateZ(0);
}

/* 5) 尊重系统「减少动态效果」：关掉缩放与淡入，直接切换 */
@media (prefers-reduced-motion: reduce) {
  .client-body .mc-like:active,
  .client-body .mc-share-btn:active,
  .client-body .mc-tabbar a:active,
  .client-body .mc-nav a:active,
  .client-body .mc-card:active,
  .client-body .mc-wf-card:active {
    transform: none;
  }
  /* PC 卡只去掉缩放，保留 hover 的位移（位移是布局意图，不是动效） */
  .client-body .pc-tile:active {
    transform: translateY(-3px);
  }
  .client-body .mc-card,
  .client-body .mc-wf-card,
  .client-body .pc-tile {
    transition: none;
  }
}

/* 6) 点赞 / 投票的「无刷新」反馈：轻提示 + 提交中态
      替代整页刷新后顶部才出现的 flash，操作手感不中断 */
.mc-toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 130;
  max-width: 78vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .93);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 12px 28px -14px rgba(15, 23, 42, .8);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mc-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.mc-toast.is-bad { background: rgba(190, 18, 60, .95); }

/* PC 没有底部 TabBar，提示靠近底部一点即可 */
@media (min-width: 781px) {
  .mc-toast { bottom: 42px; }
}

/* 请求进行中：按钮压暗且不可再点，避免连点重复提交 */
.client-body .is-busy {
  opacity: .55;
  pointer-events: none;
}

/* ============================================================
   钱包拆分：算力余额（站内消费）/ 现金余额（可提现）
   ============================================================ */
.mc-wallet-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0; background: none; border: 0;
}
.mc-wallet-cell {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 13px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.mc-wallet-cell span { font-size: 11.5px; color: var(--ink-3); }
.mc-wallet-cell strong {
  font-size: 21px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums;
}
.mc-wallet-cell em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.mc-wallet-cell.is-cash {
  background: linear-gradient(160deg, #fff7ed, #fff); border-color: #fed7aa;
}
.mc-wallet-cell.is-cash strong { color: #c2410c; }
.mc-wallet-sub-2 {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: -4px 2px 12px; font-size: 11px; color: var(--ink-3);
}
.mc-wallet-sub-2 b { color: #c2410c; font-variant-numeric: tabular-nums; }

/* 到账方式 */
.mc-payee {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  padding: 9px 11px; margin-bottom: 10px; border-radius: 10px;
  background: #f8fafc; border: 1px dashed var(--line);
  font-size: 11.5px; color: var(--ink-3);
}
.mc-payee strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.mc-warn-soft { background: #fff7ed; color: #9a3412; }

/* 金额输入 + 全部提现 */
.mc-amount { display: flex; align-items: center; gap: 8px; }
.mc-amount .input { flex: 1; min-width: 0; }
.mc-amount-all {
  flex: none; height: 38px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 600; color: var(--brand);
}
.mc-amount-all:active { transform: scale(.96); }
.mc-field-hint { margin-top: 5px; font-size: 10.5px; color: var(--ink-3); }
.mc-field-hint b { color: #c2410c; font-variant-numeric: tabular-nums; }

/* 提现记录 */
.mc-wd-list { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mc-wd-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: 11.5px; color: var(--ink-3);
}
.mc-wd-frozen b { color: #c2410c; font-variant-numeric: tabular-nums; }
.mc-wd-empty { padding: 8px 0; font-size: 11.5px; color: var(--ink-3); }
.mc-wd-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.mc-wd-row:last-child { border-bottom: 0; }
.mc-wd-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-wd-main strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.mc-wd-main span {
  font-size: 10.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mc-wd-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mc-wd-meta em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.mc-wd-tag { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; white-space: nowrap; }
.mc-wd-tag.is-pending { background: #fef3c7; color: #92400e; }
.mc-wd-tag.is-ok { background: #dcfce7; color: #166534; }
.mc-wd-tag.is-bad { background: #fee2e2; color: #991b1b; }

/* PC 个人中心：提现 + 收款信息两栏 */
.pc-me-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-top: 14px;
}
.pc-me-wallet em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.pc-me-wallet .is-cash strong { color: #c2410c; }

/* 不可用状态 */
.mc-btn:disabled, .pc-btn:disabled, .mc-amount-all:disabled {
  opacity: .55; cursor: not-allowed;
}
.input:disabled { background: #f8fafc; color: var(--ink-3); }

@media (max-width: 860px) {
  .pc-me-grid { grid-template-columns: 1fr; }
}

/* ===== 后台文件上传（探索发现「发布新内容」） ===== */
.up-box {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border: 1.5px dashed #ccd4e2; border-radius: 12px;
  background: #fbfcfe; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.up-box:hover { border-color: #93a9c9; background: #f7faff; }
.up-box:focus-within { border-color: #5b7cfa; box-shadow: 0 0 0 3px rgba(91,124,250,.12); }
/* 原生 file 控件藏起来但仍可被 label 触发；不用 display:none，否则部分内核点击 label 无效 */
.up-box input[type="file"] {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.up-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #e8eeff; color: #4b6ff5; font-size: 15px; font-weight: 700;
}
.up-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.up-text strong { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.up-text em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.up-pick {
  flex: none; font-size: 12px; font-weight: 600; color: #4b6ff5;
  background: #eef2ff; padding: 6px 12px; border-radius: 8px;
}
.up-state { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); word-break: break-all; }
.up-state.is-ok  { color: #0f9d58; }
.up-state.is-bad { color: var(--bad); }
.up-thumb {
  display: block; margin-top: 8px; width: 100%; max-width: 220px; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 10px; border: 1px solid #e6ebf3;
}
.up-thumb[hidden] { display: none; }

/* ===== 作品直达视图紧凑页头（替代首页大轮播） ===== */
.mc-works-head {
  padding: 14px 16px 12px;
  background: var(--grad, linear-gradient(135deg, #4f46e5, #7c3aed));
  color: #fff;
}
.mc-works-head .mc-sitename { opacity: .92; }
.mc-works-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ===== 预览页面切换（首页 / 作品页） ===== */
.cc-page-sw {
  display: flex; margin-left: auto; gap: 2px; padding: 2px;
  background: #e8edf5; border-radius: 8px; flex: none;
}
.cc-page-sw button {
  border: 0; background: transparent; color: var(--ink-2, #475569);
  font-size: 11.5px; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; cursor: pointer; transition: background .12s, color .12s;
}
.cc-page-sw button:hover { color: var(--ink, #0f172a); }
.cc-page-sw button.is-active {
  background: #fff; color: var(--ink, #0f172a);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .14);
}
.cc-page-sw[hidden] { display: none; }

/* ===== 图片广告位（手机端四页各一个，后台可视化配置） =====
   样式对齐轮播图：无头部、左右通栏无空位、无圆角、无边框 */
.mc-ad {
  display: block; position: relative; overflow: hidden;
  margin: 12px 0 0;
  background: var(--grad, #4f46e5);
  text-decoration: none;
}
.mc-ad:active { opacity: .92; transition: opacity .05s; }
.mc-ad img { display: block; width: 100%; height: auto; }
/* 后台配了高度：固定高度 + 裁切填充（同轮播图 object-fit 效果） */
.mc-ad.has-h img { height: 100%; object-fit: cover; }
/* 内容区自带 16px 左右内边距，反向撑满做通栏 */
.mc-content > .mc-ad { margin-left: -16px; margin-right: -16px; }
/* 「我的」页广告位是内容区首个元素，向上顶到页头 */
.mc-content > .mc-ad:first-child { margin-top: -14px; }
/* 页面最顶部的广告位（如作品页顶替页头时）完全贴顶，同轮播图 */
.client-phone > .mc-ad:first-child { margin-top: 0; }

/* 后台编辑卡：广告位行 */
.cc-ad-row {
  padding: 10px 0; border-bottom: 1px dashed var(--line, #e6ebf3);
}
.cc-ad-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cc-ad-fields {
  display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
}
.cc-ad-fields .cc-upload { display: flex; gap: 8px; align-items: center; }
.cc-ad-fields .cc-upload .input { flex: 1; min-width: 0; }
.cc-ad-line { display: flex; gap: 8px; }
.cc-ad-line .input:first-child { flex: 0 0 132px; }
.cc-ad-line .input:last-child { flex: 1; min-width: 0; }

/* ===== 我的页 · 头像点击更换 ===== */
.mc-avatar-form { flex: none; margin: 0; }
.mc-avatar-btn { position: relative; cursor: pointer; }
.mc-avatar-btn img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.mc-avatar-cam {
  position: absolute; right: -2px; bottom: -2px; z-index: 2;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: #4f46e5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}
.mc-avatar-cam svg { width: 11px; height: 11px; }
.mc-avatar-btn.is-busy { opacity: .55; pointer-events: none; }

/* ===== 分享引导层：微信 H5 不能直接拉起分享，引导点右上角「···」 ===== */
.mc-wxguide {
  position: fixed; inset: 0; z-index: 110;
  display: none;
}
.mc-wxguide.is-open { display: block; }
.mc-wxguide-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .78); }
.mc-wxguide-tip {
  position: absolute; top: 12px; right: 14px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  color: #fff;
}
.mc-wxguide-arrow { display: block; width: 46px; height: 46px; margin-right: 26px; opacity: .95; }
.mc-wxguide-arrow svg { width: 100%; height: 100%; }
.mc-wxguide-card {
  background: #fff; border-radius: 14px; padding: 18px 18px 14px;
  width: min(78vw, 300px);
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.mc-wxguide-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.mc-wxguide-text { margin: 8px 0 14px; font-size: 13px; line-height: 1.6; color: #475569; }
.mc-wxguide-btn {
  display: block; width: 100%; padding: 9px 0;
  border: 0; border-radius: 9px;
  background: var(--grad, #4f46e5); color: #fff; font-size: 14px; font-weight: 600;
}

/* 轻提示（领奖失败等） */
.mc-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 140;
  max-width: 80vw; padding: 9px 16px;
  background: rgba(15, 23, 42, .92); color: #fff;
  font-size: 13px; line-height: 1.5; border-radius: 999px;
  animation: mcToastIn .18s ease;
}
@keyframes mcToastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
