/* ==========================================================================
   CloudPan Design System v2
   现代 · 轻盈 · 奶白 + 电光蓝
   ========================================================================== */

:root {
  /* 品牌色 */
  --brand: #2f6bff;
  --brand-dark: #1f55e0;
  --brand-soft: #edf3ff;
  --brand-ink: #0b2a6b;
  --violet: #8b5cf6;
  --violet-soft: #f3ecff;

  /* 奶白系（后台侧栏 / 柔和面） */
  --cream: #fcf9f3;
  --cream-2: #f6f0e4;
  --cream-3: #efe7d8;
  --cream-line: #ece3d3;
  /* 后台侧栏：纯白 */
  --side-bg-1: #ffffff;
  --side-line: var(--border);
  --side-label: #9aa4b8;

  /* 中性色 */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e7ebf3;
  --border-soft: #eef1f7;
  --text: #0f172a;
  --muted: #697586;
  --danger: #e5484d;
  --success: #12a150;
  --warning: #e08c00;

  /* 形状 */
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 2px 6px rgba(16, 24, 40, .04), 0 16px 32px -22px rgba(16, 24, 40, .28);
  --shadow-lg: 0 30px 64px -32px rgba(16, 24, 40, .38);
  --ring: 0 0 0 4px rgba(47, 107, 255, .12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro SC", "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.005em;
}

a { color: var(--brand); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -.022em; line-height: 1.3; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
code, pre { font-family: var(--font-mono); }
::selection { background: rgba(47, 107, 255, .16); }

/* 滚动条：细、圆、低调（后台另行隐藏） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d7dfeb; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #c2cee0; background-clip: content-box; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.grid { display: grid; gap: 20px; }
.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)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-100 { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 10px 30px -24px rgba(16, 24, 40, .5); }
.site-header .container { display: flex; align-items: center; gap: 22px; height: 66px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16.5px; color: var(--text); letter-spacing: -.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #4b83ff, #7c5cff 60%, #a855f7);
  color: #fff; font-size: 15px; box-shadow: 0 8px 18px -10px rgba(76, 110, 255, .9);
}
.logo img { height: 30px; }

.site-nav { display: flex; gap: 2px; margin-left: 6px; align-items: center; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 550; font-size: 13.5px;
  transition: .16s ease;
}
.site-nav a:hover { background: #f2f5fb; color: var(--text); }
.site-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- 自定义导航：下拉二级菜单 ---------- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { opacity: .5; transition: transform .18s ease; flex: none; }
.nav-item.has-menu:hover .nav-caret,
.nav-item.has-menu:focus-within .nav-caret { transform: rotate(180deg); opacity: .8; }
.nav-item.has-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-menu {
  position: absolute; top: calc(100% + 9px); left: 0; min-width: 172px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 26px 54px -32px rgba(16, 24, 40, .5);
  padding: 6px; display: none; z-index: 60;
}
.nav-item.has-menu:hover .nav-menu,
.nav-item.has-menu:focus-within .nav-menu { display: block; animation: navMenuIn .16s ease; }
@keyframes navMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nav-menu a {
  display: block; padding: 9px 12px; border-radius: 9px; white-space: nowrap;
  font-size: 13.5px; font-weight: 550; color: var(--text); background: transparent;
}
.nav-menu a:hover { background: #f4f7fd; color: var(--brand-dark); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-head > .flex { flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 22px; }
.card-foot {
  padding: 15px 22px; border-top: 1px solid var(--border-soft); background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
/* 卡片内工具条（批量操作） */
.card-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: #fbfcfe; border-bottom: 1px solid var(--border-soft);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { border-color: #d3dbe9; background: #f8fafd; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #3f78ff, var(--brand)); border-color: var(--brand);
  color: #fff; box-shadow: 0 8px 20px -12px rgba(47, 107, 255, .95);
}
.btn-primary:hover { background: linear-gradient(180deg, #356dff, var(--brand-dark)); border-color: var(--brand-dark); color: #fff; box-shadow: 0 12px 26px -12px rgba(47, 107, 255, .95); }
.btn-violet { background: linear-gradient(180deg, #9a6bff, var(--violet)); border-color: var(--violet); color: #fff; }
.btn-violet:hover { background: #7c4ce8; color: #fff; }
.btn-danger { color: #c22c31; border-color: #f6d3d4; background: #fef5f5; }
.btn-danger:hover { background: #fdeaea; border-color: #f0b9ba; color: #b02328; }
.btn-tint { background: #eef4ff; border-color: #dbe6ff; color: var(--brand-dark); }
.btn-tint:hover { background: #e3edff; border-color: #c9dbff; color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f4fa; color: var(--text); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-icon { width: 36px; padding: 0; }

/* 分段切换（排序等） */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: #f1f4fa; border-radius: 11px; }
.seg a {
  height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: #5b6779; white-space: nowrap; transition: background .14s ease, color .14s ease;
}
.seg a:hover { color: var(--text); background: rgba(255, 255, 255, .65); }
.seg a.on { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(16, 24, 40, .14); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 13px; color: #33405a; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder, .textarea::placeholder { color: #a3adbd; }
.textarea { height: auto; min-height: 116px; padding: 11px 13px; line-height: 1.65; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #d5dded; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23697586' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.input-sm { height: 34px; font-size: 13px; border-radius: 9px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-bottom: 10px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #dfe6f1; border-radius: 99px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  text-align: left; padding: 12px 16px; background: var(--surface-2);
  color: #6b7688; font-weight: 600; font-size: 12px; letter-spacing: .02em;
  border-bottom: 1px solid var(--border-soft); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tbody tr { transition: background .14s ease; }
.table tbody tr:hover { background: #f8faff; }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { font-variant-numeric: tabular-nums; }
/* 表格内容默认不换行，避免时间/状态被挤成竖排；需要换行的列加 .cell-wrap */
.table td { white-space: nowrap; }
.table td.cell-wrap { white-space: normal; }
.table-compact td { padding: 11px 10px; }
.table-compact th { padding: 10px 10px; }
.table-compact td:first-child, .table-compact th:first-child { padding-left: 16px; }
.table-compact td:last-child, .table-compact th:last-child { padding-right: 16px; }
/* 表格内的行内操作按钮，弱化描边 */
.table .btn-sm { box-shadow: none; }
.table td .btn + .btn, .table td .btn + form, .table td form + .btn, .table td form + form { margin-left: 4px; }

/* ---------- 开关 ---------- */
.switch {
  position: relative; display: inline-block; width: 40px; height: 22px; padding: 0;
  border-radius: 999px; border: 1px solid #dfe5ee; background: #e8ecf3; cursor: pointer;
  transition: background .18s ease, border-color .18s ease; vertical-align: middle;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .28);
  transition: left .18s cubic-bezier(.4, 0, .2, 1);
}
.switch.is-on { background: var(--brand); border-color: var(--brand); }
.switch.is-on::after { left: 20px; }
.switch:hover { border-color: #cfd7e4; }
.switch.is-on:hover { border-color: var(--brand-dark); }

/* ---------- 文件选择 ---------- */
input[type="file"] {
  width: 100%; font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit;
  border: 1px dashed var(--border); border-radius: var(--radius-sm); background: #fbfcfe;
  padding: 6px 8px; transition: border-color .16s ease, background .16s ease;
  -webkit-appearance: none; appearance: none;
}
input[type="file"]:hover { border-color: var(--brand); background: #f6f9ff; }
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px; height: 30px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid #dbe6ff; background: #eef4ff; color: var(--brand-dark);
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  -webkit-appearance: none; appearance: none;
}
input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover { background: #e0eaff; border-color: var(--brand); color: var(--brand-dark); }

/* 领取码等大号输入 */
.input-code {
  height: 54px; font-size: 21px; letter-spacing: .3em; text-align: center;
  font-family: var(--font-mono); font-weight: 600; padding-left: .3em;
}
.input-code::placeholder { letter-spacing: .06em; font-size: 14px; font-weight: 400; }

/* 列表 + 表单双栏：窄屏自动堆叠 */
.split-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1320px) {
  .split-2 { grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); }
}
.split-2 > .card { min-width: 0; }
/* 双栏内的表格收紧内边距，避免列被挤到换行 */
.split-2 .table td { padding: 11px 10px; }
.split-2 .table th { padding: 10px 10px; }
.split-2 .table td:first-child, .split-2 .table th:first-child { padding-left: 16px; }
.split-2 .table td:last-child, .split-2 .table th:last-child { padding-right: 16px; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 650; background: #f1f4fa; color: #55617a;
  white-space: nowrap; flex: none; letter-spacing: .01em;
}
.badge-blue { background: #e9f0ff; color: #1f55e0; }
.badge-green { background: #e6f8ee; color: #0d7a3e; }
.badge-red { background: #feecec; color: #b42318; }
.badge-amber { background: #fff5e5; color: #a45c00; }
.badge-violet { background: #f2ebff; color: #6d28d9; }
.badge-gray { background: #f1f4fa; color: #64708a; }

/* ---------- 提示 ---------- */
.alert {
  padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  font-size: 13.5px; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start;
}
.alert-success { background: #effaf3; border-color: #c6eed6; color: #10643a; }
.alert-error { background: #fef4f4; border-color: #f8d3d4; color: #96201f; }
.alert-warning { background: #fffaeb; border-color: #fbe3ac; color: #8a5300; }
.alert-info { background: #eff5ff; border-color: #c9dcff; color: #1a44a8; }

/* 附件展示 */
.msg-attach { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* 公告中心列表 */
.notice-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px;
  border-bottom: 1px dashed var(--border-soft); color: inherit; border-radius: 10px;
  transition: background .16s ease;
}
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover { background: #f8faff; }
.notice-row-main { flex: 1; min-width: 0; }
.notice-row-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; margin-bottom: 5px;
}
.notice-row-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   广告位（全站任意位置）
   ========================================================================== */
.ad-zone { margin: 16px 0; }
.ad-wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ad-slot { width: 100%; text-align: center; }
.ad-slot img { display: block; margin: 0 auto; }
.ad-text { padding: 12px 16px; background: #f6f9ff; border: 1px dashed #d7e3ff; border-radius: 12px; color: #33405a; font-size: 13.5px; text-align: center; }

.ad-topbar { background: #fff; border-bottom: 1px solid var(--border-soft); padding: 10px 16px; text-align: center; }
.ad-topbar .ad-zone { margin: 0; }
.ad-below-nav { background: linear-gradient(180deg, #f8faff 0%, #fff 100%); border-bottom: 1px solid var(--border-soft); padding: 12px 16px; }
.ad-below-nav .ad-zone { margin: 0; }
.ad-nav-right { display: flex; align-items: center; margin-left: auto; margin-right: 10px; max-width: 300px; }
.ad-nav-right .ad-slot img { max-height: 40px; width: auto; }
.ad-footer-slot { padding: 24px 0 0; }
.ad-footer-bottom { background: #fff; border-top: 1px solid var(--border-soft); padding: 16px; text-align: center; }

/* 悬浮 / 四角 / 侧栏 / 底部横条 / 弹窗 */
.ad-float { position: fixed; z-index: 60; }
.ad-float-close {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; padding: 0;
  border-radius: 50%; border: 1px solid #e4e9f2; background: #fff; color: #7b879c;
  font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .16); font-family: inherit;
}
.ad-float-close:hover { color: #b42318; border-color: #f6d3d4; }
.ad-float .ad-slot img { max-width: 260px; height: auto; border-radius: 12px; box-shadow: 0 14px 40px -22px rgba(16, 24, 40, .55); }
.ad-float .ad-zone { margin: 0; }
.ad-float-float-tl { left: 18px; top: 134px; }
.ad-float-float-tr { right: 18px; top: 134px; }
.ad-float-float-bl { left: 18px; bottom: 18px; }
.ad-float-float-br { right: 18px; bottom: 18px; }
.ad-float-left-rail { left: 10px; top: 50%; transform: translateY(-50%); }
.ad-float-right-rail { right: 10px; top: 50%; transform: translateY(-50%); }
.ad-float-left-rail .ad-slot img, .ad-float-right-rail .ad-slot img { max-width: 140px; }
.ad-float-floating-bottom {
  left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 70;
  max-width: min(760px, calc(100vw - 32px));
}
.ad-float-floating-bottom .ad-slot img { max-width: 100%; max-height: 90px; width: auto; }
/* 底部悬浮横条存在时，给页面留出安全区，避免压住页脚内容 */
body.has-ad-bottom { padding-bottom: 96px; }

/* 进站弹窗：全屏遮罩 + 居中卡片，关闭按钮贴在卡片右上角 */
.ad-float-popup {
  inset: 0; display: grid; place-items: center; padding: 24px; z-index: 90;
  background: rgba(15, 23, 42, .42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.ad-float-popup .ad-wrap {
  position: relative; width: 100%; max-width: 560px; padding: 20px;
  background: #fff; border-radius: 18px; box-shadow: 0 40px 90px -40px rgba(16, 24, 40, .7);
}
.ad-float-popup .ad-float-close {
  top: 10px; right: 10px; width: auto; height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; gap: 5px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  background: #fff; color: #5b6779; border: 1px solid #e4e9f2;
}
.ad-float-popup .ad-float-close:hover { color: #b42318; border-color: #f6d3d4; background: #fff5f5; }
.ad-float-popup .ad-float-close span { font-size: 15px; line-height: 1; }
.ad-float-popup .ad-slot img { max-width: 100%; box-shadow: none; }
@media (max-width: 1400px) {
  .ad-float-left-rail, .ad-float-right-rail { display: none; }
}
@media (max-width: 720px) {
  .ad-float .ad-slot img { max-width: 150px; }
  .ad-float-float-tl { left: 10px; top: 100px; }
  .ad-float-float-tr { right: 10px; top: 100px; }
  .ad-float-float-bl { left: 10px; bottom: 12px; }
  .ad-float-float-br { right: 10px; bottom: 12px; }
  .ad-nav-right { display: none; }
  .ad-float-popup .ad-wrap { max-width: 92vw; padding: 14px; }
  body.has-ad-bottom { padding-bottom: 130px; }
}

/* ==========================================================================
   通知中心
   ========================================================================== */
.notif { position: relative; }
.notif-btn {
  position: relative; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: #5b6779; cursor: pointer; padding: 0;
}
.notif-btn:hover { background: #f1f4fa; color: var(--text); }
.notif-dot {
  position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: #f04438; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; line-height: 1;
}
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 324px; z-index: 90;
  background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 70px -34px rgba(16, 24, 40, .55), 0 2px 8px rgba(16, 24, 40, .05);
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px;
}
.notif-body { max-height: 360px; overflow: auto; padding: 6px; }
.notif-label { font-size: 11px; font-weight: 700; color: #9aa5b8; letter-spacing: .06em; padding: 9px 10px 4px; }
.notif-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 10px; color: #33405a; font-size: 13px; transition: background .14s ease;
}
.notif-item:hover { background: #f6f9ff; }
.notif-item.unread .notif-title::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); margin-right: 6px; vertical-align: middle;
}
.notif-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { flex: none; color: #9aa5b8; font-size: 11.5px; }
.notif-empty { padding: 26px 10px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .notif-panel { width: min(86vw, 320px); right: -64px; }
}

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.auth-shell {
  display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1000px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border-soft); border-radius: 26px; overflow: hidden;
  box-shadow: 0 34px 90px -56px rgba(23, 37, 71, .55), 0 2px 8px rgba(23, 37, 71, .05);
}
@media (min-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}
.auth-aside {
  position: relative; overflow: hidden; padding: 38px 36px;
  display: flex; flex-direction: column; gap: 16px;
  background:
    radial-gradient(520px 300px at 0% 0%, #e6eeff 0%, transparent 62%),
    radial-gradient(430px 300px at 100% 100%, #f2e9ff 0%, transparent 58%),
    linear-gradient(180deg, #fdfcf9 0%, #f6f9ff 100%);
  border-right: 1px solid var(--border-soft);
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(47, 107, 255, .16) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(420px 300px at 85% 8%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(420px 300px at 85% 8%, #000 0%, transparent 75%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 15px; color: #101c33; letter-spacing: -.01em; }
.auth-aside h2 { font-size: clamp(21px, 2vw, 26px); line-height: 1.35; letter-spacing: -.03em; margin: 6px 0 0; }
.auth-aside .lead { font-size: 13.5px; color: #5a6a86; line-height: 1.75; }
.auth-points { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; }
.auth-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #3d4b66; line-height: 1.55; }
.auth-points .tick {
  flex: none; width: 18px; height: 18px; border-radius: 6px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e9f0ff; color: var(--brand);
}
.auth-points .tick svg { width: 11px; height: 11px; }
.auth-aside .auth-quote {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--cream-line, #ece3d3);
  font-size: 12px; color: #7b879c;
}
.auth-main { padding: 40px 42px 34px; }
.auth-main h1 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-main .sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-main .btn-lg { margin-top: 6px; }
.auth-alt { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { font-weight: 650; }
@media (max-width: 899px) {
  .auth-aside { padding: 26px 24px; border-right: none; border-bottom: 1px solid var(--border-soft); }
  .auth-aside .auth-points, .auth-aside .auth-quote { display: none; }
  .auth-main { padding: 26px 22px 24px; }
}

/* ==========================================================================
   首页
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 76px;
  background:
    radial-gradient(900px 420px at 12% -8%, #e4ecff 0%, transparent 62%),
    radial-gradient(760px 380px at 88% -4%, #f0e7ff 0%, transparent 58%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 380px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 380px at 50% 0%, #000 0%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.14; margin-bottom: 18px; letter-spacing: -.035em; }
.hero .lead { font-size: 16.5px; color: var(--muted); max-width: 640px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .n { font-size: 24px; font-weight: 750; letter-spacing: -.03em; }
.hero-stats .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gradient-text {
  background: linear-gradient(100deg, #2f6bff 0%, #7c5cff 48%, #b45cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 首页：中心上传区 */
.hero-center { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: #3d4a63; box-shadow: var(--shadow-xs);
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(18, 161, 80, .14); }

.upload-hero {
  margin: 36px auto 0; max-width: 760px; position: relative;
  background: #fff; border-radius: var(--radius-lg); padding: 10px;
  box-shadow: 0 40px 80px -46px rgba(16, 24, 40, .45), 0 2px 6px rgba(16, 24, 40, .04);
  border: 1px solid rgba(255, 255, 255, .8);
}
.upload-hero .inner {
  border: 2px dashed #d3ddf0; border-radius: 16px; padding: 42px 26px; text-align: center;
  background: linear-gradient(180deg, #fbfdff, #f7faff); transition: .18s ease; cursor: pointer;
}
.upload-hero .inner:hover { border-color: #9db9ff; background: linear-gradient(180deg, #f8fbff, #f1f6ff); }
.upload-hero .inner.drag { border-color: var(--brand); background: var(--brand-soft); transform: scale(1.005); }
.upload-hero .up-ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eaf1ff, #f3ecff); color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .08);
}
.upload-hero h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -.02em; }
.upload-hero p { margin: 0; color: var(--muted); font-size: 13.5px; }
.upload-hero .pick { margin-top: 18px; display: inline-flex; gap: 10px; }
.hero-perks { display: flex; gap: 22px; justify-content: center; margin-top: 22px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.hero-perks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-perks svg { color: #2f9e63; }

/* 首页：指标条 */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; margin-top: 48px;
}
.stat-strip .item { padding: 20px 24px; border-right: 1px solid var(--border-soft); }
.stat-strip .item:last-child { border-right: none; }
.stat-strip .n { font-size: 23px; font-weight: 750; letter-spacing: -.03em; }
.stat-strip .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* 首页：区块标题 */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; }

/* 特性卡 */
.feature {
  padding: 24px; border-radius: var(--radius); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dbe4f4; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.feature:nth-child(3n+2) .ico { background: var(--violet-soft); color: #7c3aed; }
.feature:nth-child(3n+3) .ico { background: #e8f8f0; color: #0f9d58; }
.feature h3 { margin-bottom: 7px; font-size: 15.5px; }
.feature p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.7; }

/* 套餐卡 */
.price-card { padding: 26px; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card .price { font-size: 34px; font-weight: 750; letter-spacing: -.035em; margin: 6px 0 4px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.price-card li { padding: 9px 0; border-bottom: 1px dashed var(--border-soft); display: flex; justify-content: space-between; gap: 10px; }
.price-card li:last-child { border-bottom: none; }
.price-card li b { color: var(--text); font-weight: 600; }
.price-card.hot { border-color: #bcd0ff; box-shadow: 0 26px 50px -30px rgba(47, 107, 255, .7); }
.price-card .ribbon { position: absolute; top: 18px; right: 18px; }

/* ---------- 文件列表 ---------- */
.file-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); transition: background .14s ease; }
.file-row:hover { background: #f8faff; }
.file-row:last-child { border-bottom: none; }
.file-ico {
  width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2);
  display: grid; place-items: center; font-size: 17px; flex: none; box-shadow: inset 0 0 0 1px var(--border-soft);
  color: #7c8aa5;
}
/* 文件类型线性图标 */
.fi { width: 21px; height: 21px; display: block; }
.fi-image { color: #7c5cff; }
.fi-video { color: #e8557f; }
.fi-audio { color: #12a594; }
.fi-zip { color: #b07a00; }
.fi-doc { color: #2f6bff; }
.fi-sheet { color: #0d7a3e; }
.fi-ppt { color: #d9480f; }
.fi-pdf { color: #c22c31; }
.fi-text { color: #55617a; }
.fi-exe { color: #6d28d9; }
.fi-code { color: #0b7285; }
.fi-folder { color: #d99a2b; }
.fi-other { color: #7c8aa5; }
.file-name { flex: 1; min-width: 0; }
.file-name a { color: var(--text); font-weight: 600; }
.file-name a:hover { color: var(--brand); }
.file-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.file-actions { display: flex; gap: 4px; flex: none; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .45; }

.progress { height: 8px; border-radius: 99px; background: #eaeff8; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #4b83ff, #8b5cf6); border-radius: 99px; transition: width .2s ease; }
.dropzone {
  border: 2px dashed #d3ddf0; border-radius: var(--radius); padding: 30px; text-align: center;
  color: var(--muted); background: #fbfcff; transition: .18s ease; cursor: pointer;
}
.dropzone:hover { border-color: #a9c1ff; background: #f8fbff; }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.upload-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; }
.upload-item .bar { flex: 1; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 13px; font-weight: 550;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================================
   分享页（奶牛式：居中大卡 + 预览 + 二维码）
   ========================================================================== */
.share-shell {
  min-height: calc(100vh - 66px); padding: 56px 20px 80px;
  background:
    radial-gradient(760px 360px at 50% -10%, #e6edff 0%, transparent 62%),
    radial-gradient(620px 320px at 92% 4%, #f4e9ff 0%, transparent 58%),
    var(--bg);
}
.share-card {
  width: 100%; max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 46px 90px -50px rgba(16, 24, 40, .5), 0 2px 8px rgba(16, 24, 40, .04);
  overflow: hidden;
}
.share-card .card-head { border-bottom: none; padding: 22px 26px 0; }
.share-card .card-head h3 { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.share-file { display: flex; gap: 16px; align-items: center; padding: 20px 26px 8px; }
.share-file .big-ico {
  width: 62px; height: 62px; border-radius: 18px; flex: none; display: grid; place-items: center;
  font-size: 28px; background: linear-gradient(150deg, #eef4ff, #f6efff);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .08);
}
.share-preview { padding: 10px 26px 0; }
.share-preview img {
  width: 100%; max-height: 380px; object-fit: contain; border-radius: 16px;
  background: #f7f9fc; border: 1px solid var(--border-soft);
}
.share-actions { padding: 20px 26px 24px; }
.share-meta-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 16px 26px 4px;
}
.share-meta-grid .m {
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 10px 12px;
}
.share-meta-grid .m .k { font-size: 11.5px; color: var(--muted); }
.share-meta-grid .m .v { font-size: 13px; font-weight: 650; margin-top: 2px; }
.qr-box {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
}
.qr-box .qr-canvas { width: 96px; height: 96px; flex: none; background: #fff; border-radius: 10px; padding: 4px; }
.qr-box .qr-canvas img, .qr-box .qr-canvas canvas { width: 88px !important; height: 88px !important; }

/* ==========================================================================
   后台
   ========================================================================== */
/* 隐藏页面纵向滚动条，滚动行为不变 */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; }

.admin-body { background: #f7f8fb; }
.admin-shell { display: flex; min-height: 100vh; }

.admin-side {
  width: 254px; flex: none; display: flex; flex-direction: column;
  background: var(--side-bg-1);
  border-right: 1px solid var(--side-line);
  position: sticky; top: 0; height: 100vh; z-index: 50;
}
.admin-side .brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px clamp(14px, 7%, 20px) 17px;
  color: var(--text); font-weight: 750; font-size: 15px; letter-spacing: -.02em;
  border-bottom: 1px solid var(--side-line);
}
.admin-side .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-side .brand .logo-mark {
  width: 33px; height: 33px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-size: 15.5px; color: #fff;
  background: linear-gradient(140deg, #4b83ff, #7c5cff 60%, #a855f7);
  box-shadow: 0 8px 18px -10px rgba(76, 110, 255, .95);
}
.admin-side .brand small {
  display: block; font-size: 11.5px; font-weight: 600; color: #9aa4b8; letter-spacing: .05em; margin-top: 0;
}

.admin-nav { flex: 1; overflow-y: auto; padding: 6px clamp(14px, 7%, 20px) 24px; scrollbar-width: none; -ms-overflow-style: none; }
.admin-nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.admin-nav .group-label {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 13px 7px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--side-label); font-weight: 700;
}
.admin-nav .group-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, #e9eef7, rgba(233, 238, 247, 0));
}
.admin-nav a {
  position: relative;
  display: flex; align-items: center; gap: 11px; padding: 9px 13px; border-radius: 10px;
  color: #4f5b73; font-size: 13.5px; font-weight: 550; margin-bottom: 3px;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.admin-nav a svg {
  width: 18px; height: 18px; flex: none; opacity: .7;
  transition: opacity .16s ease, color .16s ease, transform .16s ease;
}
.admin-nav a:hover { background: #f3f7ff; color: #16233c; }
.admin-nav a:hover svg { opacity: 1; color: var(--brand); transform: translateX(1px); }
.admin-nav a.active {
  background: linear-gradient(90deg, #eaf1ff 0%, #f5f9ff 100%);
  color: var(--brand-dark); font-weight: 650;
  box-shadow: inset 0 0 0 1px #dde8ff;
}
.admin-nav a.active svg { opacity: 1; color: var(--brand); }
.admin-nav a.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.admin-nav .nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: #ffe8e6; color: #c22c31; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 侧栏底部版权框 */
.admin-side .side-copy {
  margin: 6px clamp(14px, 7%, 20px) 14px; padding: 11px 13px 12px; border-radius: 12px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f8ff 100%);
  border: 1px solid #e9eff9;
  font-size: 11.5px; line-height: 1.6; color: #8b95a8;
  position: relative; overflow: hidden;
}
.admin-side .side-copy::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #6f9bff, #a78bfa);
  opacity: .8;
}
.admin-side .side-copy-main { font-size: 12.5px; font-weight: 700; color: #3f4c66; letter-spacing: -.01em; }
.admin-side .side-copy-sub { margin-top: 2px; }
.admin-side .side-copy-links { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 5px; }
.admin-side .side-copy-links a, .admin-side .side-copy-links span {
  color: #8b95a8; text-decoration: none; border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s;
}
.admin-side .side-copy-links a { border-bottom-color: #cdd8ea; }
.admin-side .side-copy-links a:hover { color: var(--brand); border-color: var(--brand); }
.admin-side .side-copy-ver { margin-top: 5px; font-size: 10.5px; opacity: .75; letter-spacing: .01em; }
.admin-side .side-copy-icp {
  display: inline-block; margin-top: 5px; color: #8b95a8; text-decoration: none;
  border-bottom: 1px dashed #cdd8ea; transition: color .15s, border-color .15s;
}
.admin-side .side-copy-icp:hover { color: var(--brand); border-color: var(--brand); }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  height: 60px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 clamp(14px, 2vw, 26px);
  position: sticky; top: 0; z-index: 30;
}
.admin-top .title { font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.admin-top .crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.admin-top .crumb .sep { opacity: .45; }
.admin-top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-top [data-toggle-sidebar] { display: none; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px;
  border-radius: 999px; background: #f5f7fb; border: 1px solid var(--border); font-size: 12.5px;
}
.user-chip .ava {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #4b83ff, #8b5cf6); color: #fff; font-size: 11px; font-weight: 700;
}

.admin-content { padding: clamp(16px, 1.8vw, 28px); padding-bottom: 48px; }
.admin-content .card + .card { margin-top: 16px; }

/* 统计卡：自适应 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat .l { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.stat .v { font-size: 26px; font-weight: 750; margin-top: 5px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .09), transparent 68%);
}

/* 图表 */
.bar-chart { display: flex; align-items: stretch; gap: 10px; height: 170px; padding-top: 10px; }
.bar-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar-chart .bars { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; }
.bar-chart .bar {
  width: 11px; border-radius: 4px 4px 0 0; min-height: 3px;
  background: linear-gradient(180deg, #60a5fa, #2563eb); transition: filter .15s ease;
}
.bar-chart .col:hover .bar { filter: brightness(1.06); }
.bar-chart .bar.v2 { background: linear-gradient(180deg, #c4b5fd, #7c3aed); }
.bar-chart .cap { font-size: 11px; color: var(--muted); margin-top: 8px; white-space: nowrap; }

/* ==========================================================================
   弹层 / 提示条 / 空状态 / 页脚 / 广告
   ========================================================================== */
dialog.modal {
  border: none; border-radius: 20px; padding: 0; box-shadow: var(--shadow-lg);
  width: min(540px, 92vw); max-height: 88vh; overflow: auto;
}
dialog.modal::backdrop { background: rgba(15, 23, 42, .42); backdrop-filter: blur(3px); }
dialog.modal .modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; }
dialog.modal .modal-head h3 { margin: 0; }
dialog.modal .modal-body { padding: 20px 24px; }
dialog.modal .modal-foot { padding: 16px 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; gap: 10px; }

.toast-wrap { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 220px; padding: 12px 16px; border-radius: 13px; font-size: 13.5px; font-weight: 550;
  background: #111827; color: #fff; box-shadow: var(--shadow-lg);
  animation: toastIn .22s ease both;
}
.toast.error { background: #b42318; }
.toast.success { background: #0d7a3e; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .ico { font-size: 34px; margin-bottom: 10px; opacity: .8; }

.code-list { display: flex; flex-wrap: wrap; gap: 8px; }
.code-chip {
  font-family: var(--font-mono); font-size: 12.5px; padding: 6px 11px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #d9e5ff;
}
.code-chip.used { background: #f4f6fa; color: #8b95a8; border-color: #e6eaf2; }

/* 领取码：整块可点，点一下即复制 */
button.code-chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; line-height: 1.5;
  -webkit-appearance: none; appearance: none; font-weight: 600; letter-spacing: .01em;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
button.code-chip:hover { background: #e2ecff; border-color: #b9cffb; box-shadow: 0 2px 8px -4px rgba(47, 107, 255, .45); }
button.code-chip:active { transform: scale(.97); }
button.code-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.code-chip-text { user-select: all; }
.code-chip-ico { width: 13px; height: 13px; flex: none; opacity: .45; transition: opacity .15s; }
button.code-chip:hover .code-chip-ico { opacity: .85; }
button.code-chip.used .code-chip-ico { opacity: .3; }
/* 复制成功：图标变对勾 */
button.code-chip.is-copied { background: #e6f8ee; border-color: #b7e6cb; color: #0d7a3e; }
button.code-chip.is-copied .code-chip-ico { display: none; }
button.code-chip.is-copied::after { content: '✓'; font-size: 12.5px; line-height: 1; font-weight: 700; }
/* 普通按钮复制成功时的绿色反馈 */
.btn.is-copied, .btn.is-copied:hover {
  background: #e6f8ee; border-color: #b7e6cb; color: #0d7a3e;
}

/* 仅屏幕阅读器/脚本可见 */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site-footer {
  border-top: 1px solid var(--border); background: #fff;
  padding: 44px 0 34px; margin-top: 72px; color: var(--muted); font-size: 13px;
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .links a { color: var(--muted); }
.site-footer .links a:hover { color: var(--brand); }

/* 前台页脚版权框 */
.copy-box {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: linear-gradient(180deg, #fbfcff, #f7faff);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #7b879c; line-height: 1.7;
}
.copy-box-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.copy-box-brand { font-weight: 700; color: #45516b; }
.copy-box-text { color: #7b879c; }
.copy-box-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-box-extra { color: #7b879c; }
.copy-box-link, .copy-box-icp {
  color: #7b879c; text-decoration: none; border-bottom: 1px dashed #cdd8ea;
  transition: color .15s, border-color .15s;
}
.copy-box-link:hover, .copy-box-icp:hover { color: var(--brand); border-color: var(--brand); }
.copy-box-link.is-plain { border-bottom: 0; }
.copy-box-ver { opacity: .85; }
@media (max-width: 720px) {
  .copy-box { flex-direction: column; align-items: flex-start; gap: 8px; }
  .copy-box-left, .copy-box-right { gap: 8px; }
}

.ad-wrap { margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.ad-slot img { display: block; }
.ad-text { padding: 13px 16px; background: #fffbeb; border: 1px solid #fde9b8; border-radius: 12px; color: #8a5300; font-size: 13px; }

/* 广告富文本正文 */
.ad-slot-rich { text-align: left; }
.ad-slot-rich .ad-att { margin-top: 12px; }
.ad-rich { margin-top: 10px; text-align: left; font-size: 13.5px; line-height: 1.8; color: #3b465c; }
.ad-rich:first-child { margin-top: 0; }
.ad-rich h2 { font-size: 17px; margin: 8px 0 6px; color: #1b2437; }
.ad-rich h3 { font-size: 15px; margin: 8px 0 4px; color: #1b2437; }
.ad-rich p { margin: 0 0 8px; }
.ad-rich p:last-child { margin-bottom: 0; }
.ad-rich ul, .ad-rich ol { margin: 0 0 8px; padding-left: 20px; }
.ad-rich img { max-width: 100%; border-radius: 10px; margin: 6px 0; }
.ad-rich blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #d7e3ff; background: #f7f9ff; border-radius: 0 8px 8px 0; color: #55617a; }
.ad-rich a { color: var(--brand); text-decoration: underline; }
.ad-rich hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }

/* 广告附件下载按钮 */
.ad-att {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 14px 7px 10px;
  border: 1px solid #dbe4f7; border-radius: 999px; background: #f7faff; color: #1f55e0;
  font-size: 12.5px; font-weight: 600; text-decoration: none; max-width: 100%;
}
.ad-att:hover { background: #eef3ff; border-color: #c3d5fb; text-decoration: none; }
.ad-att-ico {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none;
}
.ad-att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ad-att-tip { color: #8494b4; font-weight: 500; flex: none; }
.ad-float .ad-att, .ad-float-left-rail .ad-att, .ad-float-right-rail .ad-att { font-size: 12px; }
.ad-float-left-rail .ad-att-name, .ad-float-right-rail .ad-att-name { max-width: 110px; }

/* 后台：广告预览 */
.ad-preview { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ad-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 14px; background: #fafbfe; border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px; font-weight: 650; color: #55617a;
}
.ad-preview-body { padding: 16px; background: #fff; }

/* 后台：已有附件行 */
.ad-att-existing {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe;
}
.ad-att-existing-name { font-size: 12.5px; font-weight: 600; color: #33405a; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   响应式
   ========================================================================== */
/* 矮屏：压缩侧栏，让 19 个菜单尽量一屏放下 */
@media (max-height: 920px) {
  .admin-side .brand { padding: 13px clamp(14px, 7%, 20px) 11px; font-size: 14px; }
  .admin-side .brand .logo-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 13.5px; }
  .admin-nav { padding: 2px clamp(14px, 7%, 20px) 12px; }
  .admin-nav .group-label { padding: 11px 13px 4px; font-size: 10.5px; }
  .admin-nav a { padding: 6px 13px; font-size: 13px; margin-bottom: 2px; }
  .admin-nav a svg { width: 17px; height: 17px; }
}

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

@media (max-width: 1024px) {
  .admin-side { position: fixed; left: -264px; transition: left .24s cubic-bezier(.32, .72, 0, 1); box-shadow: none; }
  .admin-side.open { left: 0; box-shadow: 24px 0 60px -30px rgba(15, 23, 42, .45); }
  .admin-top [data-toggle-sidebar] { display: inline-flex; }
  .admin-scrim {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .38); z-index: 45;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .admin-scrim.show { opacity: 1; pointer-events: auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero { padding: 56px 0 56px; }
  .hero-stats { gap: 26px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip .item:nth-child(2n) { border-right: none; }
  .stat-strip .item:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .share-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .admin-content { padding: 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  /* 窄屏表格横向滚动，避免列被挤成竖排 */
  .table { min-width: 620px; }
  .upload-hero .inner { padding: 30px 18px; }
  .share-shell { padding: 28px 14px 56px; }
  .share-file { padding: 16px 18px 6px; }
  .share-actions { padding: 16px 18px 20px; }
  .share-meta-grid { padding: 12px 18px 4px; }
  .card-head, .card-body, .card-pad { padding-left: 16px; padding-right: 16px; }
}

/* ==========================================================================
   社区 / 发帖
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 16px; }
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: .18s ease; color: inherit;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -32px rgba(16, 24, 40, .55); border-color: #d7e3ff; }
.post-cover { height: 132px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #eef3ff, #f8faff 60%, #f3f0ff); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover-mark { font-size: 36px; font-weight: 800; color: #c9d7f7; letter-spacing: -.02em; }
.post-top { position: absolute; top: 10px; left: 10px; }
.post-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.post-title { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-summary { font-size: 12.5px; color: var(--muted); line-height: 1.62; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #98a2b3; padding-top: 4px; }
.post-meta-right { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }

.post-h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.02em; margin: 4px 0 14px; }
.post-byline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); margin-bottom: 20px; font-size: 13px; }
.post-byline-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.avatar-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, #4b83ff, #7c5cff); color: #fff; font-size: 12.5px; font-weight: 700;
}

.rich-content { font-size: 15px; line-height: 1.85; color: #2b3648; word-break: break-word; }
.rich-content > *:first-child { margin-top: 0; }
.rich-content p { margin: 0 0 14px; }
.rich-content h2 { font-size: 20px; margin: 26px 0 12px; }
.rich-content h3 { font-size: 17px; margin: 22px 0 10px; }
.rich-content blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--brand); background: #f7f9ff; border-radius: 0 10px 10px 0; color: #4a5568; }
.rich-content ul, .rich-content ol { margin: 0 0 14px; padding-left: 22px; }
.rich-content li { margin: 4px 0; }
.rich-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; display: block; }
.rich-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.rich-content hr { border: 0; border-top: 1px dashed var(--border); margin: 22px 0; }
.rich-content code { background: #f2f5fa; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.rich-content pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 12px; overflow: auto; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: 8px 10px; font-size: 13.5px; }

.post-atts { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.post-atts-head { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; color: #5b6779; margin-bottom: 10px; }
.post-att { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.post-att-icon { width: 34px; height: 34px; border-radius: 9px; background: #f4f7fd; display: grid; place-items: center; flex: none; }
.post-att-main { flex: 1; min-width: 0; }
.post-att-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.comment-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--border-soft); }
.comment-item:last-child { border-bottom: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.comment-text { font-size: 13.5px; line-height: 1.7; color: #3a465c; }

/* 富文本编辑器 */
.editor { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.editor:focus-within { border-color: #bcd0ff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .1); }
.editor-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 7px 8px; background: #fafbfe; border-bottom: 1px solid var(--border-soft); }
.editor-btn {
  min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #4a5568; font-size: 13px; cursor: pointer; font-family: inherit; line-height: 1;
}
.editor-btn:hover { background: #eef3ff; color: var(--brand-dark); }
.editor-btn.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.editor-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.editor-area {
  min-height: 280px; max-height: 720px; overflow-y: auto; padding: 16px 18px;
  font-size: 14.5px; line-height: 1.85; outline: none;
}
.editor-area:empty::before { content: attr(data-placeholder); color: #a8b2c4; }
.editor-area img { max-width: 100%; border-radius: 10px; }
.editor-ph { color: #a8b2c4; }
.editor-attbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.editor-attlist { display: flex; flex-direction: column; gap: 8px; }
.editor-att { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe; }
.editor-att-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-att-del {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: #8b95a8; cursor: pointer; line-height: 1; font-size: 14px; font-family: inherit;
}
.editor-att-del:hover { color: #b42318; border-color: #f6d3d4; }

/* 编辑器：源码模式 / 状态条 */
.editor-source {
  display: block; width: 100%; border: 0; outline: none; resize: vertical;
  padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; color: #24304a; background: #fbfcfe;
}
.editor-btn-ghost { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #6b778c; }
.editor-status {
  padding: 7px 14px; font-size: 12.5px; color: #0d7a3e; background: #f2fbf6;
  border-top: 1px solid #dff3e8;
}
.editor-status.is-error { color: #b42318; background: #fef4f4; border-top-color: #fadcdc; }

@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-h1 { font-size: 21px; }
  .editor-area { min-height: 220px; padding: 12px 14px; }
}

/* 会员到期提示条 */
.expire-bar {
  background: linear-gradient(90deg, #fff8ec 0%, #fffdf7 60%, #f7f9ff 100%);
  border-bottom: 1px solid #f6e3c2;
  color: #8a5300;
}
.expire-bar-inner {
  display: flex; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px;
  font-size: 13px; line-height: 1.5;
}
.expire-bar-inner > svg { flex: none; opacity: .8; }
.expire-bar-inner > span { flex: 1; min-width: 0; }
.expire-bar-inner b { color: #b42318; font-weight: 700; }
.expire-bar .btn { flex: none; height: 30px; padding: 0 12px; font-size: 12.5px; }
.expire-bar-close {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #eccf9d;
  background: rgba(255, 255, 255, .7); color: #a5762a; cursor: pointer; line-height: 1; font-size: 14px;
  font-family: inherit;
}
.expire-bar-close:hover { background: #fff; color: #b42318; }
@media (max-width: 720px) {
  .expire-bar-inner { font-size: 12px; gap: 8px; }
  .expire-bar-inner > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== 版权框密码锁 ===== */
.cp-lock {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 16px; border-radius: 12px; margin-bottom: 18px;
  border: 1px solid var(--border); background: #fbfcfe;
}
.cp-lock.is-locked { border-color: #f3ddb5; background: linear-gradient(180deg, #fffaf1, #fffdf8); }
.cp-lock.is-open { border-color: #cfe0ff; background: linear-gradient(180deg, #f5f9ff, #fbfdff); }
.cp-lock-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #eef3fb; color: var(--muted); border: 1px solid #e3eaf6;
}
.cp-lock.is-locked .cp-lock-ico { background: #fff3dd; color: #b0740a; border-color: #f4e0bb; }
.cp-lock.is-open .cp-lock-ico { background: #e8f1ff; color: var(--brand); border-color: #d3e2ff; }
.cp-lock-main { flex: 1; min-width: 0; }
.cp-lock-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cp-lock-desc { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.cp-lock-desc b { color: var(--text); }
.cp-lock-desc .btn { vertical-align: middle; margin-left: 6px; }
.cp-lock-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cp-lock-row .input { flex: 1 1 160px; min-width: 0; height: 38px; }
.cp-lock-row .btn { flex: none; height: 38px; }
.cp-lock .hint { margin-top: 2px; }
.cp-pass-more { margin-top: 4px; }
.cp-pass-more > summary {
  cursor: pointer; font-size: 12.5px; color: var(--brand); font-weight: 600;
  padding: 4px 0; list-style: none; user-select: none;
}
.cp-pass-more > summary::-webkit-details-marker { display: none; }
.cp-pass-more > summary::before { content: "＋ "; font-weight: 700; }
.cp-pass-more[open] > summary::before { content: "－ "; }
.cp-pass-more[open] { padding-top: 6px; }
.cp-locked-note {
  font-size: 12.5px; color: #a45c00; background: #fff8ec; border: 1px dashed #f0dcb8;
  border-radius: 9px; padding: 8px 12px; margin-bottom: 16px;
}
.check.is-disabled { opacity: .55; cursor: not-allowed; }
.field .input:disabled, .field .select:disabled, .field .textarea:disabled {
  background: #f6f8fb; color: #8b96a9; cursor: not-allowed;
}
@media (max-width: 720px) {
  .cp-lock { padding: 13px; gap: 10px; }
  .cp-lock-ico { width: 32px; height: 32px; }
  .cp-lock-row .input { flex: 1 1 100%; }
  .cp-lock-row .btn { width: 100%; }
}
