/* ============================================================
   游戏分享平台 —— 深色硬阴影风格
   ============================================================ */
:root {
  --bg-page:   #141820;
  --bg-card:   #1E242F;
  --bg-muted:  #262D3A;
  --bg-deep:   #2F3746;
  --bg-hover:  #2F3746;
  --bg-input:  #222936;
  --accent:        #25B6E9;
  --accent-ink:    #0E7FA8;
  --accent-soft:   #0E3142;
  --text:          #ECF0F5;
  --text-dim:      #A6B0BD;
  --text-tertiary: #6F7B8C;
  --border:        #2F3746;
  --border-strong: #3E4858;
  --shadow:        3px 3px 0 var(--border-strong);
  --shadow-hover:  4px 4px 0 var(--accent);
  --danger: #FF6B6B;
  --ok:     #4CC38A;
  --warn:   #FFC857;
  --radius: 10px;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, "PingFang SC", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img {
  width: 44px; height: 44px; border-radius: 10px;
  border: 2px solid var(--border-strong); object-fit: cover;
  background: var(--bg-deep);
}
.logo-fallback {
  width: 44px; height: 44px; border-radius: 10px;
  border: 2px solid var(--border-strong); background: var(--accent);
  color: #08131a; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.brand h1 { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.brand .sub { font-size: 12px; color: var(--text-tertiary); }
.top-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #08131a;
  border: 2px solid var(--accent-ink);
  box-shadow: var(--shadow);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: #3ec4f2; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border-strong); }
.btn.ghost {
  background: var(--bg-muted); color: var(--text);
  border-color: var(--border-strong);
}
.btn.ghost:hover { background: var(--bg-deep); }
.btn.danger { background: var(--danger); border-color: #b84040; color: #2a0d0d; }
.btn.sm { padding: 5px 10px; font-size: 12px; box-shadow: 2px 2px 0 var(--border-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
  position: relative; background: var(--bg-muted);
  border: 2px solid var(--border-strong); border-radius: 8px;
  padding: 7px 10px; font-size: 15px; cursor: pointer;
  box-shadow: var(--shadow);
}
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border-strong); }

/* ---------- 容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.section-title {
  font-size: 20px; font-weight: 800; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; display: block; width: 5px; height: 20px;
  background: var(--accent); border-radius: 2px;
}

/* ---------- 搜索 ---------- */
.search-bar { display: flex; gap: 10px; margin-bottom: 18px; }
.search-input {
  flex: 1; font-family: inherit; font-size: 14px;
  padding: 11px 14px; border-radius: 8px;
  background: var(--bg-input); color: var(--text);
  border: 2px solid var(--border-strong); outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-tertiary); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font: inherit; font-size: 12px; padding: 4px 12px; border-radius: 20px;
  background: var(--bg-muted); color: var(--text-dim);
  border: 1px solid var(--border-strong); cursor: pointer;
}
.chip.active, .chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ---------- 游戏网格 ---------- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  color: inherit; text-decoration: none;
  background: #fff; border: 1px solid rgba(227, 229, 231, .9); border-radius: 18px;
  box-shadow: 0 5px 18px rgba(36, 44, 65, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px); color: inherit; text-decoration: none;
  border-color: rgba(251, 114, 153, .28); box-shadow: 0 18px 38px rgba(116, 77, 102, .16);
}
/* 封面：与首页「我们的作品」保持同一套 16:9 主视觉 */
.card-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, #fff0f5, #e9f5ff);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-cover img { transform: scale(1.06); }
.card-cover-ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: var(--accent); font-size: 42px; font-weight: 800;
}
/* 画廊推荐标识跟随标题排列，不再绝对定位到封面上。 */
.card-badge {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}
.card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 15px 16px; }
.card-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-name {
  flex: 1; min-width: 0;
  color: #2d2938; font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-desc {
  margin: 0; color: #737582; font-size: 12px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.empty, .loading {
  text-align: center; padding: 60px 20px;
  color: var(--text-tertiary); font-size: 14px;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 12, 18, .78);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 480px;
  background: var(--bg-card); border: 2px solid var(--border-strong);
  border-radius: 12px; padding: 22px;
  box-shadow: 6px 6px 0 rgba(0,0,0,.5);
}
.modal h2 { font-size: 17px; margin-bottom: 14px; font-weight: 800; }
.modal .close-x {
  float: right; cursor: pointer; color: var(--text-tertiary);
  font-size: 20px; line-height: 1; border: none; background: none;
}
.modal .close-x:hover { color: var(--danger); }

/* ---------- 全站统一提示弹窗 ---------- */
body.dialog-open { overflow: hidden; }
body.modal-open { overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-button { display: inline; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; }
.text-button:hover { text-decoration: underline; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid rgba(251, 114, 153, .3); outline-offset: 2px; }
.dialog-layer { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.dialog-layer[hidden] { display: none; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(31, 29, 39, .46); backdrop-filter: blur(5px); }
.dialog-box { position: relative; width: min(420px, 100%); padding: 26px; border: 1px solid rgba(255, 255, 255, .92); border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(39, 33, 49, .24); text-align: center; animation: dialog-enter .18s ease-out; }
.dialog-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 13px; border-radius: 50%; background: #eef6ff; color: #579bd8; font-size: 22px; font-weight: 900; }
.dialog-icon.success { background: #eafaf1; color: #32a56c; }
.dialog-icon.danger { background: #fff0f3; color: #e65878; }
.dialog-box h2 { margin: 0 0 8px; color: var(--text); font-size: 19px; }
.dialog-box p { margin: 0 0 18px; color: var(--text-dim); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.dialog-input-label { display: block; margin: 0 0 6px; color: var(--text); font-size: 13px; font-weight: 700; text-align: left; }
.dialog-input { width: 100%; margin-bottom: 18px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); font: inherit; outline: none; }
.dialog-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(251, 114, 153, .13); }
.dialog-actions { display: flex; justify-content: center; gap: 10px; }
.dialog-actions .btn { min-width: 104px; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dialog-box { animation: none; } }

.field { margin-bottom: 14px; }
.field label, .field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field .req { color: var(--danger); }
.field input[type=text], .field input[type=password], .field input[type=email],
.field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 13px;
  padding: 9px 11px; border-radius: 8px;
  background: var(--bg-input); color: var(--text);
  border: 2px solid var(--border-strong); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 60px; }
.password-hold { position: relative; }
.password-hold input { padding-right: 48px !important; }
.password-hold-button {
  position: absolute; top: 50%; right: 5px; display: grid; place-items: center;
  width: 36px; height: 32px; padding: 0; transform: translateY(-50%);
  border: 0; border-radius: 8px; background: transparent; color: var(--text-tertiary);
  cursor: pointer; touch-action: none;
}
.password-hold-button[hidden] { display: none; }
.password-hold-button svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.password-hold-button:hover, .password-hold-button:focus-visible,
.password-hold-button.is-revealing { background: var(--accent-soft); color: var(--accent); }
.password-hold-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dialog-password-hold { margin-bottom: 18px; }
.dialog-password-hold .dialog-input { margin-bottom: 0; }
.hint { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }
.counter { float: right; }
.note {
  font-size: 12px; color: var(--text-dim); background: var(--bg-muted);
  border-left: 3px solid var(--accent); padding: 8px 11px;
  border-radius: 6px; margin-bottom: 16px;
}
.msg { display: none; margin-bottom: 12px; padding: 8px 11px; border-radius: 6px; font-size: 12px; }
.msg.err, .msg.ok { display: block; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-img {
  height: 40px; width: 120px; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--border-strong); background: var(--bg-input);
}

/* ---------- 公告条 / 提示 ---------- */
.owner-banner {
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent); font-size: 13px; padding: 8px 13px;
  border-radius: 8px; margin-bottom: 16px;
}

/* ---------- 站内信 ---------- */
.bell-wrap { position: relative; }
.bell-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.notif-panel {
  position: absolute; right: 0; top: 46px; width: 320px; max-height: 400px;
  overflow-y: auto; background: var(--bg-card);
  border: 2px solid var(--border-strong); border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45); display: none; z-index: 60;
}
.notif-panel.show { display: block; }
.notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 13px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 13px; position: sticky; top: 0;
  background: var(--bg-card);
}
.notif-head .text-button { font-size: 12px; font-weight: 400; }
.notif-list { padding: 6px; }
.notif-item {
  padding: 9px 10px; border-radius: 7px; margin-bottom: 4px;
  background: var(--bg-muted); cursor: pointer;
}
.notif-item.unread { border-left: 3px solid var(--accent); }
.notif-item .t { font-size: 13px; font-weight: 600; }
.notif-item .c { font-size: 12px; color: var(--text-dim); }
.notif-item .d { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }
.notif-empty { text-align: center; padding: 24px; color: var(--text-tertiary); font-size: 13px; }

/* ---------- 用户菜单 ---------- */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg-muted); border: 2px solid var(--border-strong);
  border-radius: 8px; padding: 5px 11px 5px 5px;
  box-shadow: var(--shadow); font-family: inherit; color: var(--text);
}
.user-btn img, .user-btn .av-ph {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-strong);
}
.av-ph {
  background: var(--accent); color: #08131a; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.dropdown {
  position: absolute; right: 0; top: 44px; min-width: 160px;
  background: var(--bg-card); border: 2px solid var(--border-strong);
  border-radius: 10px; padding: 6px; display: none; z-index: 60;
  box-shadow: 5px 5px 0 rgba(0,0,0,.45);
}
.dropdown.show { display: block; }
.dropdown a, .dropdown button {
  display: block; width: 100%; text-align: left; padding: 8px 11px;
  border-radius: 6px; font-size: 13px; color: var(--text);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.dropdown a:hover, .dropdown button:hover { background: var(--bg-hover); text-decoration: none; }

/* ---------- 后台管理 ---------- */
.admin-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.stat-grid {
  display: grid; gap: 12px; margin-bottom: 22px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.stat-card {
  background: var(--bg-card); border: 2px solid var(--border-strong);
  border-radius: 10px; padding: 14px; box-shadow: var(--shadow);
}
.stat-card .n { font-size: 24px; font-weight: 800; color: var(--accent); }
.stat-card .l { font-size: 12px; color: var(--text-dim); }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: none; border: none; color: var(--text-dim);
  border-bottom: 3px solid transparent; font-family: inherit;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.adm-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 2px solid var(--border-strong);
  border-radius: 9px; padding: 10px 13px; margin-bottom: 8px;
  box-shadow: 2px 2px 0 var(--border-strong);
}
.adm-icon {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  background: var(--bg-deep); border: 1px solid var(--border-strong); flex-shrink: 0;
}
.adm-icon-ph {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: var(--bg-deep); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent);
}
.adm-main { flex: 1; min-width: 0; }
.adm-name { font-size: 14px; font-weight: 700; }
.adm-desc { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-meta { font-size: 11px; color: var(--text-tertiary); }
.adm-status {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  border: 1px solid currentColor;
}
.st-approved { color: var(--ok); }
.st-pending  { color: var(--warn); }
.st-rejected { color: var(--danger); }
.st-banned   { color: var(--danger); }
.st-active   { color: var(--ok); }
.adm-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.admin-sort-control { display: inline-flex; align-items: center; gap: 5px; color: var(--text-dim); font-size: 12px; }
.admin-sort-control input { width: 68px; height: 31px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 7px; }

table.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.adm-table th, table.adm-table td {
  text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--border);
}
table.adm-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; }
table.adm-table tr:hover td { background: var(--bg-muted); }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center; padding: 30px 20px; margin-top: 40px;
  color: var(--text-tertiary); font-size: 12px;
  border-top: 1px solid var(--border);
}
.footer-links {
  display: inline-flex; gap: 14px; margin-left: 16px;
}
.footer-links a { color: inherit; }
.footer-record {
  display: block; width: fit-content; margin: 10px auto 0;
  color: inherit; text-decoration: none;
}
.footer-record:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- 隐私说明与使用规则 ---------- */
.legal-page { background: #fffafd; }
.legal-main { max-width: 860px; margin: 0 auto; padding: 48px 24px 20px; }
.legal-card {
  padding: 38px 42px; background: var(--bg-card); border: 1px solid #f0dce4;
  border-radius: 22px; box-shadow: 0 18px 45px rgba(84, 54, 67, .08);
}
.legal-card h1 { margin-bottom: 6px; font-size: 30px; color: var(--text); }
.legal-updated { margin-bottom: 28px; color: var(--text-tertiary); }
.legal-card section + section { margin-top: 26px; }
.legal-card h2 { margin-bottom: 8px; font-size: 18px; color: var(--text); }
.legal-card p, .legal-card li { color: var(--text-dim); }
.legal-card ul { padding-left: 1.4em; }
.legal-card li + li { margin-top: 7px; }
.legal-card strong { color: var(--text); }
.legal-actions { margin-top: 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .brand h1 { font-size: 16px; }
  .brand .sub { display: none; }
  .container { padding: 16px 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .notif-panel { width: calc(100vw - 28px); right: -8px; }
  .adm-row { flex-wrap: wrap; }
  .adm-actions { width: 100%; }
  .footer-links { display: flex; justify-content: center; margin: 8px 0 0; }
  .legal-main { padding: 24px 14px 0; }
  .legal-card { padding: 26px 22px; border-radius: 16px; }
}

/* ============================================================
   2026-09：明亮内容社区视觉层（前台与后台共用）
   保留原有结构和交互，仅覆盖视觉变量及组件外观。
   ============================================================ */
:root {
  --bg-page: #f7f8fc;
  --bg-card: #ffffff;
  --bg-muted: #f4f5f8;
  --bg-deep: #e9edf5;
  --bg-hover: #fff0f5;
  --bg-input: #ffffff;
  --accent: #fb7299;
  --accent-ink: #ed5d88;
  --accent-soft: #fff0f5;
  --text: #18191c;
  --text-dim: #61666d;
  --text-tertiary: #9499a0;
  --border: #e3e5e7;
  --border-strong: #e3e5e7;
  --shadow: 0 8px 28px rgba(24, 25, 28, .06);
  --shadow-hover: 0 16px 34px rgba(251, 114, 153, .18);
  --danger: #f0647c;
  --ok: #27ae74;
  --warn: #f4a644;
  --radius: 14px;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(251, 114, 153, .13), transparent 24rem),
    radial-gradient(circle at 94% 30%, rgba(97, 184, 255, .12), transparent 28rem),
    var(--bg-page);
}

a:hover { text-decoration: none; }
.topbar {
  min-height: 72px; padding: 11px max(24px, calc((100vw - 1320px) / 2));
  background: rgba(255, 255, 255, .86); border-bottom: 1px solid rgba(227, 229, 231, .8);
  box-shadow: 0 3px 18px rgba(24, 25, 28, .04); backdrop-filter: blur(18px);
}
.brand { gap: 10px; }
.logo-fallback {
  width: 42px; height: 42px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #fb7299, #ff9db6); color: #fff;
  box-shadow: 0 8px 18px rgba(251, 114, 153, .28);
}
.brand h1 { font-size: 17px; letter-spacing: .1px; }
.brand .sub { color: var(--text-tertiary); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-right: auto; margin-left: 28px; }
.site-nav a { color: var(--text-dim); font-size: 14px; font-weight: 600; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.btn {
  border: 0; border-radius: 10px; background: linear-gradient(120deg, #fb7299, #fb8eaa);
  color: #fff; box-shadow: 0 7px 16px rgba(251, 114, 153, .2);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { background: linear-gradient(120deg, #fb7299, #fb8eaa); filter: brightness(1.03); transform: translateY(-2px); box-shadow: 0 11px 22px rgba(251, 114, 153, .27); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(251, 114, 153, .18); }
.btn.ghost { background: #fff; color: var(--text-dim); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); border-color: #ffd1de; color: var(--accent); }
.btn.danger { color: #fff; border: 0; background: linear-gradient(120deg, #ed617b, #f78396); }
.icon-btn { border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: none; }
.container { max-width: 1240px; padding: 28px 24px 48px; }

/* ---------- 前台首屏 ---------- */
.home-container { padding-top: 26px; }
.home-hero {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr; min-height: 330px;
  overflow: hidden; margin-bottom: 42px; padding: 44px 52px; border-radius: 24px;
  background: linear-gradient(120deg, #fff 0%, #fff8fb 48%, #f1f8ff 100%);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 16px 42px rgba(83, 96, 120, .1);
}
.home-hero::after {
  position: absolute; right: 17%; bottom: -100px; width: 250px; height: 250px;
  border: 32px solid rgba(251, 114, 153, .08); border-radius: 50%; content: "";
}
.hero-copy { position: relative; z-index: 2; max-width: 540px; }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.hero-copy h2 { margin: 13px 0 14px; font-size: clamp(31px, 4vw, 48px); line-height: 1.2; letter-spacing: -.9px; }
.hero-copy h2 em { color: var(--accent); font-style: normal; }
.hero-copy p { max-width: 460px; color: var(--text-dim); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 25px; }
.hero-primary { padding: 11px 17px; }
.hero-primary span { display: inline-block; margin-left: 6px; transition: transform .2s; }
.hero-primary:hover span { transform: translateX(4px); }
.hero-text-btn { padding: 7px 0; border: 0; background: none; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 13px; }
.hero-text-btn:hover { color: var(--accent); }
.hero-tags { display: flex; gap: 8px; margin-top: 28px; }
.hero-tags span { padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .75); color: #7e8490; font-size: 11px; box-shadow: 0 3px 12px rgba(77, 89, 114, .06); }
.hero-visual { position: relative; min-height: 235px; }
.hero-orbit { position: absolute; border: 1px dashed rgba(251, 114, 153, .34); border-radius: 50%; animation: slow-spin 17s linear infinite; }
.orbit-one { width: 235px; height: 235px; top: 0; right: 18px; }
.orbit-two { width: 166px; height: 166px; right: 51px; top: 34px; animation-direction: reverse; animation-duration: 13s; }
.float-card { position: absolute; z-index: 1; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255, 255, 255, .9); border-radius: 20px; background: linear-gradient(145deg, #fb7299, #ffb1c4); box-shadow: 0 20px 35px rgba(251, 114, 153, .28); color: #fff; }
.card-main { right: 65px; top: 52px; width: 160px; height: 160px; padding: 20px; transform: rotate(8deg); animation: float 4.5s ease-in-out infinite; }
.card-main b { font-size: 29px; letter-spacing: 1px; }
.card-main span { margin-top: 8px; font-size: 11px; line-height: 1.45; opacity: .9; }
.card-small { align-items: center; width: 64px; height: 64px; font-size: 25px; animation: float 4s ease-in-out infinite; }
.card-small.one { top: 20px; right: 5px; background: linear-gradient(140deg, #86c9ff, #79a8ff); animation-delay: -1.2s; }
.card-small.two { right: 16px; bottom: 1px; background: linear-gradient(140deg, #ffd566, #ffae60); animation-delay: -2.5s; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.section-heading .section-title { margin: 2px 0 0; font-size: 25px; }
.section-heading .section-title::before { display: none; }
.section-heading p { color: var(--text-tertiary); font-size: 13px; }

/* ---------- 内容卡片、弹窗与消息 ---------- */
.search-bar { margin-bottom: 14px; }
.search-input, .field input[type=text], .field input[type=password], .field input[type=email], .field textarea, .field select {
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
  box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.search-input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: #ffa9c1; box-shadow: 0 0 0 3px rgba(251, 114, 153, .11); }
.chips { gap: 9px; }
.chip { border: 0; background: #fff; color: var(--text-dim); box-shadow: 0 3px 12px rgba(32, 40, 57, .05); transition: transform .2s, color .2s, background .2s; }
.chip.active, .chip:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent); transform: translateY(-1px); }
.grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
/* 卡片外观统一在基础 .card 规则里定义，这里只保留入场动画 */
.card { animation: card-rise .45s both; }
.game-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; color: var(--text-dim); font-size: 12px; }
.game-qr img { width: 118px; height: 118px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; object-fit: contain; }
.detail-cover { display: block; width: 100%; max-height: 320px; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 14px; object-fit: cover; }
.upload-image-preview { display: none; margin-top: 8px; border: 2px solid var(--border-strong); border-radius: 10px; object-fit: cover; background: #fff; }
.upload-icon-preview, .upload-qr-preview { width: 100px; height: 100px; }
.upload-cover-preview { width: min(100%, 360px); aspect-ratio: 16 / 9; }
.upload-rule-ok { color: #25885b; }
.upload-rule-error { color: #ce4663; }

/* ---------- 游戏详情：与参考站相同的整屏封面构图 ---------- */
.game-detail-page { min-height: 100%; background: #10131a; }
.detail-stage {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  min-height: 100svh; overflow: hidden; padding: 84px 28px 132px;
  background-color: #171522; background-position: center; background-repeat: no-repeat; background-size: cover;
}
.detail-stage::before {
  position: absolute; z-index: -1; inset: 0; content: "";
  background: linear-gradient(180deg, rgba(10, 12, 20, .42), rgba(10, 12, 20, .88));
}
.detail-back { position: absolute; z-index: 1; top: 20px; left: 20px; }
.detail-center {
  display: flex; z-index: 1; align-items: center; flex-direction: column; width: min(720px, 100%);
  padding: 24px; color: #fff; text-align: center;
}
.detail-icon {
  width: 150px; height: 150px; border: 3px solid rgba(255, 255, 255, .92); border-radius: 20px;
  background: #161725; box-shadow: 0 12px 35px rgba(0, 0, 0, .35); object-fit: cover;
}
.detail-center h1 { margin: 18px 0 12px; color: #fff; font-size: clamp(26px, 5vw, 34px); line-height: 1.2; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.detail-description {
  max-width: 540px; margin: 0; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; background: rgba(18, 18, 29, .56); color: rgba(255, 255, 255, .95);
  font-size: 15px; line-height: 1.7; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); backdrop-filter: blur(4px);
}
.detail-info {
  position: absolute; z-index: 1; bottom: 24px; left: 24px; display: flex; flex-direction: column; gap: 8px;
  max-width: min(55%, 560px); padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px; background: rgba(18, 18, 29, .72); backdrop-filter: blur(5px);
}
.detail-info[hidden], .detail-qr[hidden] { display: none; }
.info-row { display: flex; gap: 9px; align-items: baseline; }
.info-label { flex: 0 0 auto; color: #ff9cba; font-size: 13px; font-weight: 700; }
.info-val { overflow-wrap: anywhere; color: #fff; font-size: 13px; }
.detail-qr {
  position: absolute; z-index: 1; right: 24px; bottom: 24px; display: flex; align-items: center; flex-direction: column; gap: 6px;
  padding: 11px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 14px; background: rgba(18, 18, 29, .72); backdrop-filter: blur(5px);
}
.detail-qr img { width: 120px; height: 120px; padding: 4px; border-radius: 8px; background: #fff; object-fit: contain; }
.qr-cap { color: #fff; font-size: 12px; letter-spacing: .5px; }

/* ---------- 独立首页 ---------- */
.landing-page { min-height: 100vh; overflow-x: hidden; background: linear-gradient(180deg, #fffafd 0%, #fff 58%, #fff7fa 100%); }
.brand { color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.landing-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 36px; }
.landing-welcome {
  position: relative; display: grid; grid-template-columns: 1fr; min-height: 430px;
  overflow: hidden; border: 1px solid rgba(251, 114, 153, .18); border-radius: 30px;
  background: radial-gradient(circle at 73% 14%, rgba(211, 237, 255, .82), transparent 27%), linear-gradient(125deg, #fff2f7, #fff 48%, #fff9ec);
  box-shadow: 0 18px 52px rgba(116, 77, 102, .12);
}
.landing-welcome::before, .landing-welcome::after { position: absolute; border-radius: 50%; content: ""; pointer-events: none; }
.landing-welcome::before { top: -105px; left: -94px; width: 270px; height: 270px; border: 1px dashed rgba(251, 114, 153, .25); }
.landing-welcome::after { right: -136px; bottom: -164px; width: 390px; height: 390px; background: rgba(255, 211, 225, .31); }
.welcome-copy { position: relative; z-index: 2; width: min(760px, 100%); justify-self: center; align-self: center; padding: 74px 58px; text-align: center; }
.welcome-copy h2 { margin: 13px 0 14px; color: #2d2938; font-size: clamp(37px, 4.6vw, 56px); letter-spacing: -1.7px; line-height: 1.15; }
.welcome-copy h2 em { color: var(--accent); font-style: normal; }
.welcome-copy p { max-width: 560px; margin-right: auto; margin-left: auto; color: #737582; font-size: 15px; line-height: 1.9; }
.welcome-actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.welcome-primary { padding: 12px 19px; }
.welcome-primary span { display: inline-block; margin-left: 7px; transition: transform .22s ease; }
.welcome-primary:hover span { transform: translateX(5px); }
.welcome-link { color: #777784; font-size: 13px; font-weight: 700; }
.welcome-link:hover { color: var(--accent); text-decoration: none; }
.home-user-btn { max-width: 160px; text-decoration: none; }
.home-user-btn:hover { color: var(--text); text-decoration: none; }
.home-user-btn > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 29px; }
.welcome-points span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .76); box-shadow: 0 4px 14px rgba(72, 56, 79, .06); color: #7a7180; font-size: 11px; }
.landing-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 23px 12px 0; }
.guide-card { position: relative; display: flex; flex-direction: column; min-height: 138px; overflow: hidden; padding: 23px 26px; border-radius: 18px; color: #fff; text-decoration: none; box-shadow: 0 10px 23px rgba(63, 55, 73, .1); transition: transform .22s ease, box-shadow .22s ease; }
.guide-card:hover { transform: translateY(-5px); color: #fff; text-decoration: none; box-shadow: 0 15px 29px rgba(63, 55, 73, .17); }
.guide-card::after { position: absolute; right: -19px; bottom: -37px; width: 118px; height: 118px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; content: ""; }
.guide-pink { background: linear-gradient(135deg, #fb8aac, #fa6494); }
.guide-blue { background: linear-gradient(135deg, #74bdf0, #639bea); }
.guide-yellow { background: linear-gradient(135deg, #f6c96e, #f5a865); }
.guide-icon { margin-bottom: 8px; font-size: 24px; line-height: 1; }
.guide-card strong { position: relative; z-index: 1; font-size: 16px; }
.guide-card small { position: relative; z-index: 1; margin-top: 5px; opacity: .88; font-size: 12px; }
.gallery-container { padding-top: 42px; padding-bottom: 42px; }
.gallery-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.pagination-button { min-width: 36px; height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.pagination-button:hover:not(:disabled) { border-color: #ffa9c1; background: #fff1f5; color: var(--accent); transform: translateY(-1px); }
.pagination-button.active { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 5px 12px rgba(251, 114, 153, .25); }
.pagination-button:disabled { cursor: not-allowed; opacity: .42; }
.pagination-gap, .pagination-status { color: var(--text-tertiary); font-size: 13px; }
.pagination-gap { padding: 0 2px; }
.pagination-status { margin-left: 5px; }
.admin-pagination {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 18px; color: var(--text-tertiary); font-size: 13px;
}
.admin-pagination[hidden] { display: none; }
.admin-pagination-status { min-width: 150px; text-align: center; }

.modal-mask { background: rgba(20, 23, 30, .42); backdrop-filter: blur(5px); }
.modal { border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: 0 24px 70px rgba(20, 23, 30, .18); }
.modal .close-x { color: var(--text-tertiary); }
.note { border-left: 0; border-radius: 10px; background: #fff4f7; color: #9d4966; }
.msg.ok { background: #edfff4; color: #25885b; border: 1px solid #c6f3d9; }
.msg.err { background: #fff1f3; color: #ce4663; border: 1px solid #ffd0d9; }
.upload-progress { margin: 0 0 13px; padding: 11px 12px; border: 1px solid #ffd7e2; border-radius: 10px; background: #fff8fa; color: #9d4966; }
.upload-progress[hidden] { display: none; }
.upload-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; }
.upload-progress-meta b { color: var(--accent); font-variant-numeric: tabular-nums; }
.upload-progress-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #f3e8ed; }
.upload-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb7299, #ffb263); transition: width .16s ease; }
.user-btn, .dropdown, .notif-panel { border: 1px solid var(--border); box-shadow: 0 9px 25px rgba(24, 25, 28, .09); }
.user-btn { background: #fff; }
.av-ph { background: linear-gradient(135deg, #fb7299, #ff9db6); color: #fff; border: 0; }
.dropdown a:hover, .dropdown button:hover { background: var(--accent-soft); color: var(--accent); }
.notif-item { background: #fafafa; }
.notif-item.unread { border-left-color: var(--accent); }
.owner-banner { border: 0; background: #fff2f6; color: #b94f72; }
.footer { border: 0; color: #a4a8b0; }

/* ---------- 友好错误页 ---------- */
.error-page { display: grid; min-height: 100vh; place-content: center; justify-items: center; padding: 28px; text-align: center; }
.error-code { color: #ffd5e1; font-size: clamp(86px, 18vw, 180px); font-weight: 900; letter-spacing: -.08em; line-height: .9; }
.error-page h1 { margin: 18px 0 8px; font-size: 28px; }
.error-page p { margin: 0 0 24px; color: var(--text-dim); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- 后台 ---------- */
.admin-page .topbar { background: rgba(255, 255, 255, .93); }

/* 后台按「宽屏工作台」来排版：
   .container 默认 1240px 上限，在 1920 以上的屏幕上左右会各空出几百像素，
   整个后台被挤成中间一条，看着又窄又扁。这里放宽到 1760px，
   屏幕越宽就铺得越开。
   顶栏也跟着用同一条公式对齐，否则会出现「顶栏logo在中间、内容在左边」的错位。 */
.admin-container { padding-top: 30px; max-width: 1760px; }
.admin-page .topbar {
  padding-left: max(24px, calc((100vw - 1760px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1760px) / 2 + 24px));
}
.admin-welcome { display: flex; align-items: center; justify-content: space-between; min-height: 130px; margin-bottom: 26px; padding: 27px 30px; overflow: hidden; border-radius: 20px; background: linear-gradient(120deg, #342b48, #52589b 62%, #6e95d3); box-shadow: 0 16px 30px rgba(62, 68, 122, .18); color: #fff; }
.admin-welcome .eyebrow { color: #ffd0df; }
.admin-welcome h2 { margin: 4px 0 3px; font-size: 25px; }
.admin-welcome p { color: rgba(255, 255, 255, .74); font-size: 13px; }
.admin-welcome-mark { color: rgba(255, 255, 255, .17); font-size: 86px; transform: rotate(15deg); }
.admin-subtitle { margin-top: 34px; }
.sensitive-word-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sensitive-word-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 11px; border: 1px solid #ffd3df; border-radius: 999px; background: #fff5f8; color: #a74767; font-size: 13px; }
.sensitive-word-item button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #ffdce6; color: #a74767; cursor: pointer; font: inherit; line-height: 1; }
.compact-empty { width: 100%; padding: 22px 10px; }
/* 概览卡：给一个像样的最小宽度和高度。
   原来 120px 的下限会让 6 张卡在中等宽度下挤成 4+2、每张又宽又扁；
   放宽到 168px 后会自然分成 3 列或 2 列，比例正常得多。 */
.stat-grid { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
/* 中等宽度下 auto-fit 会排出「5 张 + 孤零零 1 张」的样子，很难看。
   这一段固定成 4 列（4+2），排得更整齐。 */
@media (min-width: 761px) and (max-width: 1150px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat-card {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 104px; overflow: hidden; border: 0; border-radius: 15px;
  box-shadow: 0 5px 20px rgba(36, 44, 65, .06);
}
.stat-card::after { position: absolute; top: -22px; right: -15px; width: 74px; height: 74px; border-radius: 50%; background: var(--accent-soft); content: ""; }
.stat-card .n { position: relative; z-index: 1; color: var(--accent); }
.tabs { gap: 8px; border-bottom: 0; margin-bottom: 20px; }
.tab { border: 0; border-radius: 9px; color: var(--text-dim); }
.tab.active { border-bottom: 0; background: var(--accent-soft); color: var(--accent); }
.tab:hover { background: #fff0f5; color: var(--accent); }
.adm-row { border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 14px rgba(36, 44, 65, .04); transition: transform .2s, box-shadow .2s; }
.adm-row:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(36, 44, 65, .09); }
.adm-icon, .adm-icon-ph { border: 0; border-radius: 11px; }
.adm-icon-ph { background: #fff0f5; color: var(--accent); }
.adm-status { border: 0; background: #f4f5f8; }
.permission-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff0f5; color: #d7577c; font-size: 11px; font-weight: 700; }
table.adm-table { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
table.adm-table th, table.adm-table td { border-bottom-color: #f0f1f3; }
table.adm-table th { background: #fafbfc; color: #717680; }
table.adm-table tr:hover td { background: #fff7fa; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes card-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 20px; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; padding: 31px 25px 20px; margin-bottom: 28px; }
  .hero-visual { min-height: 165px; margin-top: 8px; }
  .card-main { top: 10px; right: 24%; width: 130px; height: 130px; }
  .orbit-one { width: 190px; height: 190px; right: 19%; top: -18px; }
  .orbit-two { width: 130px; height: 130px; right: 27%; top: 12px; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  .section-heading p { margin-bottom: 3px; }
  .admin-welcome { min-height: 112px; padding: 22px; }
  .admin-welcome-mark { font-size: 60px; }
  table.adm-table { display: block; overflow-x: auto; white-space: nowrap; }
  .detail-stage { align-items: center; padding: 78px 16px 150px; }
  .detail-back { top: 14px; left: 14px; }
  .detail-center { padding: 18px 8px; }
  .detail-icon { width: 108px; height: 108px; border-radius: 16px; }
  .detail-info { bottom: 14px; left: 14px; max-width: calc(100% - 130px); padding: 9px 10px; }
  .detail-qr { right: 14px; bottom: 14px; padding: 8px; }
  .detail-qr img { width: 82px; height: 82px; }
  .landing-main { width: min(100% - 24px, 560px); padding-top: 20px; }
  .landing-welcome { min-height: 430px; border-radius: 23px; }
  .welcome-copy { padding: 36px 28px 8px; }
  .welcome-copy h2 { font-size: clamp(34px, 10vw, 48px); }
  .welcome-actions { gap: 15px; }
  .landing-guide { grid-template-columns: 1fr; margin: 15px 0 0; }
  .guide-card { min-height: 112px; padding: 19px 22px; }
  .gallery-pagination { gap: 5px; }
  .pagination-button { min-width: 34px; height: 34px; padding: 0 9px; }
  .pagination-status { width: 100%; margin: 3px 0 0; text-align: center; }
  .admin-pagination { justify-content: center; }
  .admin-pagination-status { min-width: 120px; }
}

/* ============================================================
   2026-09-17：官网视觉层
   首页升级为品牌官网：Hero 左文右图 + 作品展示 + 关于我们
   （追加覆盖，不改动原有组件）
   ============================================================ */

/* ---------- Hero 作品轮播 ---------- */
.hero-slider {
  position: relative; overflow: hidden; min-height: 468px;
  border: 1px solid rgba(251, 114, 153, .18); border-radius: 30px;
  background: linear-gradient(125deg, #fff2f7, #fff 48%, #fff9ec);
  box-shadow: 0 18px 52px rgba(116, 77, 102, .12);
}
.hero-track { position: relative; min-height: 468px; }
.hero-slide {
  position: absolute; inset: 0; visibility: hidden; opacity: 0;
  transition: opacity .55s ease, visibility .55s ease;
}
.hero-slide.is-active { position: relative; visibility: visible; opacity: 1; }

/* 主视觉：16:9 宣传图铺满整个轮播（object-fit 保证不变形） */
.slide-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.01); transition: transform 6s ease-out;
}
.hero-slide.is-active .slide-bg { transform: scale(1.07); }
.slide-bg-fallback { background: linear-gradient(125deg, #3a2942, #5c3a52 55%, #2d2938); }

/* 遮罩：整体轻微压暗（让箭头可见）+ 底部加深（承载作品名）。
   文字只剩左下角一行，所以把重量放到下半部，让宣传图上半部完整露出。 */
.slide-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 18, 31, .26) 0%,
    rgba(23, 18, 31, .08) 26%,
    rgba(23, 18, 31, .08) 48%,
    rgba(23, 18, 31, .54) 78%,
    rgba(23, 18, 31, .82) 100%
  );
}

.slide-inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end;
  min-height: 468px; padding: 0 72px 62px;
}
/* 拉伸链接：整块轮播都可点，但只有标题可见 */
.slide-title-link { position: relative; display: inline-block; text-decoration: none; }
.slide-title-link::after { content: ""; position: absolute; inset: 0; }
.slide-title {
  margin: 0; color: #fff; font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -1.2px; line-height: 1.2; text-shadow: 0 4px 28px rgba(0, 0, 0, .5);
}
.slide-title-link:hover .slide-title { color: #ffe3ee; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer;
  font-size: 22px; font-family: inherit; line-height: 1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s, color .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }

.hero-dots { position: absolute; right: 0; bottom: 22px; left: 0; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-dot.is-active { width: 26px; border-radius: 999px; background: #fff; }

.hero-empty { display: grid; place-content: center; gap: 10px; min-height: 420px; text-align: center; }
.hero-empty h2 { color: #2d2938; font-size: 32px; }
.hero-empty p { color: #8b8d99; font-size: 14px; }

/* 数据条 */
.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 56px;
  margin-top: 22px; padding: 22px 30px; border-radius: 20px;
  background: rgba(255, 255, 255, .72); box-shadow: 0 8px 26px rgba(116, 77, 102, .07);
}
.hero-facts > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hero-facts dt { color: var(--accent); font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.hero-facts dd { color: #8b8d99; font-size: 12px; }

/* ---------- 我们的作品 ---------- */
.works-section { margin-top: 62px; }
.section-note { color: #8b8d99; font-size: 13px; }
.section-more { color: var(--accent); font-weight: 700; }
.section-more:hover { text-decoration: none; }
.works-grid { display: grid; gap: 18px; margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.work-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid rgba(227, 229, 231, .9); border-radius: 18px; background: #fff;
  box-shadow: 0 5px 18px rgba(36, 44, 65, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-6px); color: inherit; text-decoration: none; box-shadow: 0 18px 38px rgba(116, 77, 102, .16); }
.work-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #fff0f5, #e9f5ff); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .work-cover img { transform: scale(1.06); }
.work-cover-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--accent); font-size: 48px; font-weight: 800; }
.work-title-row { display: flex; align-items: center; gap: 8px; }
.work-badge { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.work-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px 16px; }
.work-name { flex: 1; min-width: 0; color: #2d2938; font-size: 15px; font-weight: 700; }
.work-desc { overflow: hidden; color: #737582; font-size: 12px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.work-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.work-tag { padding: 2px 8px; border-radius: 999px; background: var(--bg-muted); color: #8b8d99; font-size: 11px; }
.works-empty { padding: 54px 20px; text-align: center; color: #8b8d99; }

/* ---------- 画廊卡片：与首页「我们的作品」同一套视觉 ---------- */
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.card-tag {
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-muted); color: #8b8d99; font-size: 11px;
}

/* ---------- 关于我们 ---------- */
.about-section { margin-top: 66px; }
.about-card {
  display: grid; gap: 34px; padding: 42px 46px; border-radius: 26px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  border: 1px solid rgba(251, 114, 153, .16);
  background: linear-gradient(125deg, #fff7fa, #fff 55%, #f6fbff);
  box-shadow: 0 14px 40px rgba(116, 77, 102, .09);
}
.about-copy h2 { margin: 10px 0 14px; color: #2d2938; font-size: clamp(26px, 3vw, 34px); letter-spacing: -1px; }
.about-copy p { margin-bottom: 12px; color: #737582; font-size: 14px; line-height: 1.95; }
.about-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.about-points { display: grid; gap: 14px; align-content: center; margin: 0; padding: 0; list-style: none; }
.about-points li { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .8); }
.about-points strong { color: #2d2938; font-size: 14px; }
.about-points span { color: #8b8d99; font-size: 12px; line-height: 1.6; }

/* ---------- 官网层响应式 ---------- */
@media (max-width: 980px) {
  .slide-inner { padding: 0 26px 56px; justify-content: center; text-align: center; }
  .slide-title { font-size: clamp(22px, 6vw, 30px); }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-facts { gap: 32px; }
  .about-card { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px; }
  .works-section { margin-top: 44px; }
  .about-section { margin-top: 46px; }
}
@media (max-width: 620px) {
  .works-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
  .work-body { padding: 11px 12px 13px; }
  /* 画廊网格与首页作品网格保持一致 */
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
  .card-body { padding: 11px 12px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- 布局：页脚始终贴在页面最底部 ----------
   内容不足一屏时（例如画廊只有一个作品），页脚不会浮在页面中间，
   而是被推到视口底部。备案号在 .footer 内已用 text-align/margin auto 居中。

   ⚠️ width:100% 是关键，不能省：
   body 变成 flex 容器后 <main> 成了 flex 项，而 .container 带 `margin: 0 auto`。
   交叉轴上有自动外边距的 flex 项**不会被 stretch 拉伸**，宽度改按 fit-content 计算，
   而 fit-content 会被内容的「最小宽度」顶住（min-width:0 管不了这一步）。
   于是后台里 .adm-table 的 min-width:520px 会把 main 顶到 610px，
   整页出现横向滚动条 —— 表格外层设了 overflow-x:auto 也救不回来。
   给 main 一个确定宽度（width:100%）后，内部元素才有确定的可用宽度，
   宽表格就会老老实实待在自己的滚动容器里。
   注：.landing-main 自带 width，类选择器优先级高于 `body > main`，所以首页不受影响。 */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; min-width: 0; width: 100%; }

/* ============================================================
   后台 · 埋点统计（应用列表 / 应用详情）
   ============================================================ */
.tk-doc { line-height: 2; }
.tk-doc code { color: var(--accent); }

/* ---------- 应用列表：只有头像 + 名称，点进去才看细节 ---------- */
.tk-app {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px; margin-bottom: 10px; text-align: left;
  font: inherit; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 3px 12px rgba(36, 44, 65, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tk-app:hover {
  transform: translateY(-2px); border-color: rgba(251, 114, 153, .35);
  box-shadow: 0 10px 24px rgba(116, 77, 102, .12);
}
.tk-app-name {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-app-go { color: var(--text-tertiary); font-size: 15px; transition: transform .18s ease, color .18s ease; }
.tk-app:hover .tk-app-go { color: var(--accent); transform: translateX(3px); }

/* ---------- 应用头像 ---------- */
.tk-avatar {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 44px; height: 44px; overflow: hidden;
  border-radius: 13px; background: var(--bg-muted);
}
.tk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tk-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #fb7299, #ff9db6);
  color: #fff; font-size: 19px; font-weight: 800;
}
.tk-avatar-lg { width: 62px; height: 62px; border-radius: 18px; }
.tk-avatar-lg .tk-avatar-ph { font-size: 26px; }

.tk-avatar-edit {
  position: relative; flex: 0 0 auto; padding: 0;
  border: 0; background: none; border-radius: 18px; line-height: 0; cursor: pointer;
  transition: box-shadow .18s ease;
}
.tk-avatar-edit:hover { box-shadow: 0 0 0 3px rgba(251, 114, 153, .22); }
/* 右下角一个「换」角标，提示头像可点 */
.tk-avatar-edit::after {
  content: "换"; position: absolute; right: -3px; bottom: -3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 11px; line-height: 21px; text-align: center;
  box-shadow: 0 2px 6px rgba(116, 77, 102, .3);
}

/* ---------- 详情页：累计数据条 ---------- */
.tk-totals {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  padding: 12px 16px; margin-bottom: 16px;
  background: var(--bg-muted); border-radius: 12px;
  color: var(--text-dim); font-size: 13px;
}
.tk-totals b { color: var(--text); font-weight: 700; }
.tk-totals-label {
  color: var(--text-tertiary); font-size: 12px; font-weight: 700; letter-spacing: .5px;
}

/* ---------- 应用详情：头部 ---------- */
.tk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.tk-head-main { flex: 1; min-width: 220px; }
.tk-head-main h2 { margin: 0 0 5px; font-size: 22px; color: var(--text); }
.tk-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--text-tertiary); }
.tk-head-meta code {
  padding: 3px 9px; border-radius: 6px; background: var(--bg-muted);
  font-family: var(--font-mono); font-size: 12px;
}
.tk-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-status {
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--bg-muted); color: var(--text-dim);
}
.tk-status.on { background: rgba(63, 191, 143, .16); color: #1f8a63; }
.tk-status.off { background: rgba(237, 97, 123, .16); color: #c0425c; }

.tk-filter { align-items: center; }
.tk-filter .chips { margin-bottom: 0; }

/* ---------- 数据卡片 ---------- */
/* 注意：项目里没有 .adm-card 这个类，卡片外观在这里自带，不依赖其它规则 */
.tk-card {
  margin-bottom: 16px; padding: 18px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 4px 14px rgba(36, 44, 65, .05);
}
.tk-card-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--text);
}
.tk-card-hint { margin: -8px 0 10px; }
.tk-legend { display: flex; flex-wrap: wrap; gap: 12px; font-weight: 400; }
.tk-lg { display: inline-flex; align-items: center; gap: 5px; color: var(--text-tertiary); font-size: 12px; }
.tk-lg i { width: 9px; height: 9px; border-radius: 2px; }
.tk-chart { display: block; width: 100%; height: auto; }

.tk-hint { color: var(--text-tertiary); font-size: 12px; font-weight: 400; }
.tk-sub { display: block; margin-top: 3px; color: var(--text-tertiary); font-size: 11px; font-weight: 400; }
.tk-sub-title { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.tk-mb { margin-bottom: 16px; }
.tk-mt { margin-top: 10px; }
.tk-na { color: var(--text-tertiary); }

.tk-warn {
  padding: 10px 13px; margin-bottom: 14px; border-radius: 10px;
  background: rgba(245, 166, 35, .12); border: 1px solid rgba(245, 166, 35, .3);
  color: #8a5b00; font-size: 13px; line-height: 1.7;
}

.tk-tut { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.tk-tut b { color: var(--accent); font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.tk-tut > span { color: var(--text-dim); font-size: 13px; }
.tk-tut .tk-sub { margin-top: 0; }

.tk-bar-row { display: flex; align-items: center; gap: 9px; }
.tk-bar {
  position: relative; flex: 1; min-width: 60px; height: 7px;
  border-radius: 999px; background: var(--bg-muted); overflow: hidden;
}
.tk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #fb7299, #ff9db6); }

.tk-table-wrap { overflow-x: auto; }
.tk-table-wrap .adm-table { min-width: 520px; }

/* ============================================================
   后台 · 窄屏适配
   后台原本只按桌面设计：标签栏 6 个按钮不换行、欢迎区横排，
   在手机宽度下会把整页撑出横向滚动。这里只在窄屏生效，不影响桌面。
   ============================================================ */
@media (max-width: 720px) {
  .tabs { flex-wrap: wrap; }
  .admin-welcome {
    flex-direction: column; align-items: flex-start; gap: 10px;
    min-height: 0; padding: 20px 18px;
  }
  .admin-welcome-mark { display: none; }
  .admin-welcome h2 { font-size: 21px; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 12px; min-height: 84px; }
  .stat-card .n { font-size: 20px; }
  .tk-head-actions { width: 100%; }
  .tk-head-main { min-width: 0; }
  /* 筛选栏在窄屏改成「标签换行 + 按钮靠左」，不要拉成通栏的长条 */
  .tk-filter { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tk-filter .chips { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
