/* ============ 排夯榜 RankPal 全站样式 ============ */
/* 视觉风格：方案A「墨韵鎏金」——米纸底 + 墨绿 + 鎏金 + 朱红印章 */
:root {
  /* 主色（墨绿） */
  --primary: #1e3d33;
  --primary-dark: #152e26;
  --gradient: linear-gradient(135deg, #2c5747 0%, #1e3d33 60%, #3f7a63 100%);

  /* 中国风点缀色（印章/强调/装饰） */
  --cinnabar: #b03a2e;      /* 朱红（印章） */
  --cinnabar-dark: #8e2f26;
  --gold: #b8892d;          /* 鎏金 */
  --gold-light: #d8b25c;
  --bamboo: #3f7a63;        /* 竹青 */
  --indigo-cn: #2a2620;     /* 墨黑 */
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;

  /* 中性（米纸暖调） */
  --bg: #f5efe3;
  --card: #fffdf7;
  --beige: #efe7d3;          /* 浅驼卡片底 */
  --hover-bg: #e9e0cc;
  --text: #2a2620;
  --muted: #6b6252;
  --text-3: #a89f92;
  --border: #e3d9c4;
  --separator: rgba(107, 98, 82, .16);

  /* 语义色（保留功能色：赞同绿/不赞同红） */
  --agree: #5f8a3e;
  --agree-strong: #4c722f;
  --disagree: #c4665c;
  --warn: #d9a441;
  --info: #8b9faf;

  /* 圆角（国风折中：方正而不失柔和） */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* 阴影（墨色柔和投影） */
  --shadow-sm: 0 1px 3px rgba(42, 38, 32, .10);
  --shadow: 0 2px 12px rgba(42, 38, 32, .14);
  --shadow-md: 0 6px 20px rgba(42, 38, 32, .16);
  --shadow-lg: 0 12px 32px rgba(42, 38, 32, .18);

  /* 字体：微软雅黑优先 */
  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.main { min-height: calc(100vh - 170px); padding-top: 20px; padding-bottom: 48px; }
h1 { font-size: 26px; margin: 8px 0; }
h2 { font-size: 20px; margin: 8px 0; }
h3 { font-size: 16px; margin: 6px 0; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.inline { display: inline; }

/* ---- 顶栏 ---- */
.topbar { background: rgba(250, 246, 238, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(184, 137, 45, .12); }
.topbar-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
.brand-wrap { display: flex; align-items: center; gap: 10px; }
/* PC 主导航（方案C：标志 首页 排行榜 加号 消息 搜索 地区 用户） */
.nav-links { display: none; }
.nav-extra { display: none; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  font-family: var(--font-serif); letter-spacing: 1px;
}
.nav-links a:hover { color: var(--primary); background: var(--beige); text-decoration: none; }
.nav-links a.on { color: var(--gold); background: rgba(184, 137, 45, .12); }
.nav-fab-mini {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #a97e28, #caa04e); color: #fff !important;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; padding: 0 !important;
  box-shadow: 0 3px 8px rgba(184, 137, 45, .35);
}
.nav-fab-mini:hover { transform: translateY(-1px); background: linear-gradient(135deg, #b8892d, #d8b25c); }
.nav-bell { position: relative; }
.nav-bell-dot {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--cinnabar); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
/* 子页面左上角返回键（带「返回」二字标识） */
.back-btn {
  height: 32px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--beige); color: var(--text);
  font-size: 13px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; gap: 2px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.back-btn:hover { background: var(--hover-bg); border-color: var(--primary); }
.back-btn:active { transform: scale(.96); }
.brand { font-size: 20px; font-weight: 800; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.nav { display: flex; align-items: center; gap: 12px; justify-self: end; flex-wrap: nowrap; }
.nav > a { color: var(--text); font-weight: 500; }
.nav > a:hover { color: var(--primary); text-decoration: none; }
.search { display: flex; align-items: center; justify-self: center; width: 100%; max-width: 560px; padding: 0 4px; }
.search input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; outline: none; background: var(--bg); min-width: 0; }
.search input:focus { border-color: var(--primary); background: #fff; }
.search button { border: none; background: transparent; margin-left: -36px; cursor: pointer; font-size: 14px; }
.user-chip { background: var(--bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }

/* ---- 按钮（知味甜斋胶囊风格） ---- */
.btn { display: inline-block; border: none; border-radius: 30px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { text-decoration: none; filter: brightness(.97); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, #a97e28, #caa04e); color: #fff; box-shadow: 0 4px 12px rgba(184, 137, 45, .32); }
.btn-primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, #a97e28, #caa04e); }
.btn-outline { background: var(--card); color: var(--primary); border: 1px solid var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 20px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--cinnabar); color: #fff; box-shadow: 0 3px 10px rgba(180, 70, 60, .25); }
.btn-danger:hover { background: var(--cinnabar-dark); }
.btn-warn { background: var(--gold); color: #fff; box-shadow: 0 3px 10px rgba(180, 130, 50, .25); }
.btn-warn:hover { background: var(--gold-light); color: #2a2620; }
.linklike { border: none; background: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 0; }
.linklike:hover { text-decoration: underline; }
.linklike.danger { color: var(--disagree); }
.linklike.liked { color: var(--agree); font-weight: 700; }

/* ---- 卡片（知味甜斋玻璃拟态：半透明白 + 毛玻璃 + 暖边） ---- */
.card { background: rgba(255,255,255,.72); border: 1px solid rgba(228,217,200,.85); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
a.card { color: var(--text); display: block; }
a.card:hover { text-decoration: none; border-color: var(--primary); }

/* ---- 提示消息 ---- */
.flashes { margin-bottom: 14px; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.flash-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- 区块（方案A 墨韵鎏金：标题两侧横线 + 宋体） ---- */
.section { margin: 26px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-serif); letter-spacing: 2px; font-size: 19px; }
.section-head h2::before, .section-head h2::after { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .6; }
.more { font-size: 14px; }
.sub-h { font-size: 18px; margin: 4px 0 10px; font-family: var(--font-serif); letter-spacing: 2px; }
.sub-h::before { content: "❖ "; color: var(--gold); font-size: 14px; }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---- 徽章与标签 ---- */
.badge { display: inline-block; font-size: 12px; border-radius: 999px; padding: 2px 10px; font-weight: 600; vertical-align: middle; }
.badge-official { background: #efe7d3; color: #1e3d33; }
.badge-custom { background: #fdf1e4; color: #a9713a; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag-chip { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.tag-chip i { font-style: normal; opacity: .75; margin-left: 2px; }
.tag-chip:hover { text-decoration: none; filter: brightness(.95); }
.c-school { background: #efe7d3; color: #1e3d33; }
.c-type { background: #eef4e8; color: #5f8a3e; }
.c-place { background: #fdf1e4; color: #a9713a; }
.c-city { background: #eaf2f4; color: #5f7d8a; }
.c-other { background: #f3ede4; color: #776f63; }
.chip-mini { font-size: 12px; background: #f3ede4; color: #776f63; border-radius: 999px; padding: 2px 8px; }

/* ---- 排行榜卡片 / 列表 ---- */
.ranking-card h3 { margin: 6px 0 4px; }
.top-items { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.top-items li { margin: 2px 0; }
.ranking-list { display: flex; flex-direction: column; gap: 10px; }
.ranking-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ranking-row-main { flex: 1; min-width: 0; }
.ranking-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ranking-row-title h3 { margin: 0; }
.ranking-row-side { text-align: right; font-size: 14px; white-space: nowrap; }

/* ---- 排行榜详情 ---- */
.ranking-head h1 { margin: 4px 0 6px; }
.ranking-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.sort-form select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; }
.explain { margin-top: 12px; }

/* ---- 排名列表（行式布局，无大卡片） ---- */
.rank-list { list-style: none; margin: 14px 0; padding: 0; }
.rank-list.compact { margin: 14px 0; }
.rank-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  border-bottom: .5px solid var(--separator);
  cursor: pointer;
  transition: background .15s ease;
}
.rank-row:hover { background: rgba(0, 0, 0, .02); }
.rank-row:last-child { border-bottom: none; }
.rank-num { width: 30px; height: 30px; border-radius: 50%; background: var(--beige); color: var(--muted); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 1px rgba(148,124,100,.18); }
.rank-num.top-1 { background: linear-gradient(135deg, #b8892d, #d8b25c); color: #fff; }
.rank-num.top-2 { background: linear-gradient(135deg, #d8cdbd, #b5a892); color: #fff; }
.rank-num.top-3 { background: linear-gradient(135deg, #d6a06a, #a9713a); color: #fff; }
.rank-main { flex: 1; min-width: 0; }
.rank-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rank-name { font-size: 17px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.rank-avatar { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.rank-meta-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rank-tags-display { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.rank-tags-display .chip-mini { font-size: 11px; }
.rank-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 220px; }
.rank-meta { color: var(--muted); }
.approval { color: var(--agree); font-weight: 700; }

/* ---- 投票按钮 ---- */
.vote-group { display: flex; gap: 6px; }
.vote-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--text); font-weight: 600; white-space: nowrap; }
.vote-btn:hover { border-color: var(--primary); }
.vote-btn b { font-weight: 800; }
.vote-btn.agree.active { background: var(--agree); border-color: var(--agree); color: #fff; }
.vote-btn.disagree.active { background: var(--disagree); border-color: var(--disagree); color: #fff; }
.vote-big .vote-btn { font-size: 15px; padding: 8px 20px; }

@media (max-width: 720px) {
  .rank-row { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .rank-side { align-items: flex-start; min-width: 0; width: 100%; }
  .rank-row .vote-group { width: 100%; justify-content: flex-end; }
}

/* ---- 好评率条 ---- */
.bar { width: 160px; height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.bar.big { width: 100%; max-width: 420px; height: 10px; margin-top: 8px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #34d399, #16a34a); border-radius: 999px; }

/* ---- 条目页 ---- */
.item-head { display: flex; gap: 20px; }
.item-image { width: 180px; height: 180px; object-fit: contain; border-radius: 12px; flex: none; background: var(--beige); }
.item-image.placeholder { display: flex; align-items: center; justify-content: center; font-size: 64px; background: linear-gradient(135deg, #eef2ff, #fdf2f8); }
.item-info { flex: 1; min-width: 0; }
.rank-link { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px; font-size: 13px; margin: 2px 4px 2px 0; }

/* ---- 点评 ---- */
.comment-form textarea, .reply-form textarea, .form-card textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; resize: vertical; margin: 8px 0;
  background: #fff; transition: border-color .2s ease;
}
textarea:focus, input:focus, select:focus { outline: 2px solid #d8c9b4; }
.stance-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; align-items: center; }
.stance-row label { cursor: pointer; }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 8px; }
.row-end select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; }
.comment-tree, .comment-children { list-style: none; margin: 0; padding: 0; }
.comment-tree { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.comment { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.comment-children { margin: 10px 0 0 14px; padding-left: 14px; border-left: 3px solid #eef2ff; display: flex; flex-direction: column; gap: 10px; }
.comment-children .comment { padding: 10px 12px; }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-author { font-size: 14px; }
.comment-content { margin: 6px 0; white-space: pre-wrap; }
.comment-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stance { font-size: 12px; border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.stance-agree { background: #ecfdf5; color: #047857; }
.stance-disagree { background: #fef2f2; color: #b91c1c; }
.stance-neutral { background: #f3f4f6; color: #4b5563; }
.reply-form { margin-top: 8px; }
.empty-comments { list-style: none; }
.login-hint code { background: #f3f4f6; padding: 2px 6px; border-radius: 6px; }

/* ---- 表单 ---- */
.form-card { max-width: 760px; }
.auth-card { max-width: 460px; margin: 30px auto; }
.auth-card h1 { text-align: center; }
.field { display: block; margin: 14px 0; font-size: 14px; font-weight: 600; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 400; font-family: inherit; background: #fff; transition: border-color .2s ease; }
fieldset.field { border: 1px solid var(--border); border-radius: 12px; }
fieldset.field legend { font-weight: 600; padding: 0 8px; }
.picker-cat { font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 500; }
.chip-check span i { font-style: normal; opacity: .6; margin-left: 4px; font-size: 12px; }
.chip-check input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-check input:checked + span i { opacity: .8; }

/* ---- 创建排行榜双栏 ---- */
.create-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.preview-panel { position: sticky; top: 76px; }
.preview-items { margin: 10px 0; max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.preview-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 13px; }

/* ---- 工具条 / 标签广场 ---- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.tab { padding: 5px 14px; border-radius: 999px; font-size: 14px; color: var(--text); }
.tab.active { background: var(--primary); color: #fff; }
.tab:hover { text-decoration: none; }
.sort-links a { margin-left: 8px; color: var(--muted); }
.sort-links a.active { color: var(--primary); font-weight: 700; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-card { margin-top: 12px; background: #eef2ff; border-color: #c7d2fe; }
.empty-box { text-align: center; padding: 40px 20px; }
.page-head { margin-bottom: 14px; }
.page-head h1 { margin: 0 0 4px; position: relative; padding-left: 14px; }
.page-head h1::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 24px; border-radius: 3px; background: var(--primary); opacity: .7; }

/* ---- 页脚 ---- */
.footer { border-top: 1px solid var(--border); background: #fff; padding: 18px 0; color: var(--muted); font-size: 13px; }

/* ---- 审核 / 管理后台 ---- */
.badge-approved { background: #ecfdf5; color: #047857; }
.badge-pending { background: #fffbeb; color: #b45309; }
.badge-rejected { background: #fef2f2; color: #b91c1c; }
.banner { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.banner-pending { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.banner-rejected { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.chip-pending { border: 1px dashed #f59e0b; opacity: .8; }
.nav-admin { color: #a9713a; font-weight: 700; }
.admin-nav { margin: 10px 0 16px; }
.review-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: #fff; margin-bottom: 8px; }
.review-main { flex: 1; min-width: 240px; }
.review-reject { display: inline-flex; gap: 6px; align-items: center; }
.review-note-input { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 13px; width: 170px; }
.my-note { font-size: 13px; color: #991b1b; background: #fef2f2; border-radius: 8px; padding: 4px 10px; display: inline-block; margin-top: 4px; }

/* ---- 排行榜页快捷点评 ---- */
.quick-comment { margin-top: 6px; }
.quick-comment summary { cursor: pointer; color: var(--primary); font-size: 13px; font-weight: 600; user-select: none; }
.quick-comment[open] summary { margin-bottom: 6px; }
.qc-body { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--bg); border-radius: 8px; }
.qc-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qc-form input[type="text"] { flex: 1; min-width: 200px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: inherit; }
.qc-form select { border: 1px solid var(--border); border-radius: 8px; padding: 7px 6px; background: #fff; font-size: 13px; }
.qc-more { color: var(--muted); }

/* ---- 评论区操作按钮（更显眼） ---- */
.comment-actions { gap: 10px; }
.cbtn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; padding: 5px 15px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; line-height: 1.5;
  transition: all .15s ease;
}
.cbtn b { font-weight: 800; }
.cbtn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.cbtn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cbtn-primary:hover { background: var(--primary-dark); color: #fff; }
.cbtn-liked { background: var(--agree); border-color: var(--agree); color: #fff; }
.cbtn-liked:hover { color: #fff; filter: brightness(1.05); }
.cbtn-danger:hover { border-color: var(--disagree); color: var(--disagree); }

/* ---- 顶栏铃铛 ---- */
.nav-bell { position: relative; font-size: 17px; padding: 4px 6px; }
.nav-bell:hover { text-decoration: none; }
.bell-dot {
  position: absolute; top: -4px; right: -6px;
  background: var(--disagree); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.nav-me { font-weight: 600; }

/* ---- 消息通知页 ---- */
.notif-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notif-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.notif-item.notif-unread { background: #eef2ff; border-color: #c7d2fe; }
.notif-main { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; color: var(--text); }
.notif-main:hover { text-decoration: none; background: rgba(79,70,229,.04); }
.notif-icon { font-size: 20px; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.notif-unread .notif-icon { background: #fff; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { display: block; }
.notif-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.notif-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--disagree); margin-top: 6px; }

/* ---- 个人中心 ---- */
.me-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.me-info { flex: 1; min-width: 0; }
.me-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.me-stats .stat b { font-size: 20px; }

/* ---- 管理后台 ---- */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.admin-stat:hover { text-decoration: none; border-color: var(--primary); }
.admin-stat b { font-size: 26px; color: var(--primary); }
.admin-stat span { font-size: 13px; color: var(--muted); }
.review-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.review-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.review-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 10px 14px; background: var(--bg); color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #f1f2f7; vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbff; }

/* ---- 分页 ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 4px; flex-wrap: wrap; }
.pagination-info { font-size: 13px; color: var(--muted); }

/* ---- 榜单删除申请 ---- */
.delete-req { margin-top: 12px; }
.delete-req summary { cursor: pointer; color: var(--disagree); font-size: 13px; font-weight: 600; user-select: none; }
.delete-req[open] summary { margin-bottom: 6px; }
.delete-req-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.delete-req-form input { flex: 1; min-width: 220px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-family: inherit; }

/* ---- 排行榜封面图 ---- */
.ranking-cover { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; margin: 0 0 10px; background: var(--beige); }

/* ---- 移动优先：更大的触摸目标与舒适间距 ---- */
@media (max-width: 860px) {
  .admin-stats { grid-template-columns: 1fr; }
  .me-stats { gap: 16px; }
  .review-card { align-items: stretch; }
  .review-actions { justify-content: flex-end; }
  .vote-btn { padding: 8px 18px; font-size: 14px; }
  .cbtn { padding: 6px 14px; }
  .rank-row { gap: 10px; padding: 12px 14px; }
  .card { padding: 14px 14px; }
  .hero h1 { font-size: 24px; }
  .nav { gap: 8px; }
  .nav .btn { padding: 7px 12px; }
  .comment { padding: 10px 12px; }
  .topbar-inner { gap: 10px; }
  .pagination { gap: 8px; }
}

/* ---- 响应式 ---- */
@media (max-width: 860px) {
  .create-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  /* 移动端顶栏：logo + 地区/用户 一行，搜索栏整行换到下一行 */
  .topbar-inner {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas:
      "brand nav"
      "search search";
    gap: 6px 10px;
  }
  .topbar-inner .brand-wrap { grid-area: brand; }
  .topbar-inner .nav { grid-area: nav; justify-self: end; flex-wrap: nowrap; min-width: 0; }
  .topbar-inner .search { grid-area: search; max-width: 100%; width: 100%; }
  .search { order: 3; }
  /* 移动端右上角只显示头像，不显示名字（防止与地区/站名重叠） */
  .nav-uname, .nav-user summary .bell-dot { display: none; }
  .nav-user summary { display: flex; align-items: center; }
  /* 移动端 hero：文字居中 + 轮播点居中 */
  .hero-content { text-align: center; align-items: center; padding-right: 6%; }
  .hero-content .hero-kicker { align-self: center; }
  .hero-stats { justify-content: center; margin: 0 auto; }
  .hero-dots { left: 50%; transform: translateX(-50%); bottom: 10px; }
  /* 移动端三大功能键：缩小并排同一水平线 */
  .quick-item { padding: 12px 8px 10px; gap: 3px; }
  .qi-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; margin-bottom: 4px; }
  .qi-name { font-size: 13px; }
  .qi-desc { font-size: 10px; }
  .quick-grid { gap: 8px; }
  /* 移动端消息通知：四个 tab 纵向长条 */
  .notif-tabs { display: flex; flex-direction: column; gap: 8px; padding: 0; }
  .notif-tabs .tab {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--card); color: var(--text); text-decoration: none;
    font-size: 14px;
  }
  .notif-tabs .tab::after { content: "展开 ›"; font-size: 12px; color: var(--muted); }
  .notif-tabs .tab.active { border-color: var(--gold); background: rgba(184,137,45,.08); color: var(--gold); }
  /* 移动端个人中心：顶栏数据缩小同一水平线 */
  .me-profile { flex-wrap: wrap; }
  .me-stats { width: 100%; display: flex; justify-content: space-around; margin-top: 6px; }
  .me-stats .stat b { font-size: 15px; }
  .me-stats .stat span { font-size: 10px; }
  /* 移动端我的投票：标题与筛选居中 */
  .section-head .sort-links { margin: 0 auto; }
  .comment-children { margin-left: 8px; padding-left: 10px; }
  .item-head { flex-direction: column; }
  .item-image { width: 100%; height: 200px; }
  .rank-row { flex-wrap: wrap; }
  .rank-side { align-items: flex-start; }
  .ranking-row { flex-direction: column; align-items: flex-start; }
  .ranking-row-side { text-align: left; }
  .hero-stats .stat b { font-size: 18px; }
  .me-avatar { width: 52px; height: 52px; font-size: 22px; }
}

/* ============ 阶段5：视觉与动效 ============ */
.main { animation: pageIn .32s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.btn, .vote-btn, .cbtn, .tab, .tag-chip, .linklike {
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(42, 38, 32, .16); }
.rank-row, .comment, .review-card { transition: border-color .15s ease, box-shadow .15s ease; }
.rank-row:hover, .comment:hover, .review-card:hover { border-color: #d8c9b4; }

.topbar { box-shadow: 0 1px 0 rgba(184, 137, 45, .10); }

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============ iOS + 中国风 组件 ============ */

/* 品牌印章 logo */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-seal {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: var(--cinnabar);
  color: #fff; font-family: var(--font-serif); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), 1.5px 1.5px 0 rgba(176, 58, 46, .25);
  transform: rotate(-4deg);
}
.brand-text { font-size: 18px; font-weight: 700; line-height: 1.15; font-family: var(--font-serif); letter-spacing: 3px; }
.brand-text small { display: block; font-size: 9px; color: var(--muted); font-weight: 500; letter-spacing: .22em; font-family: var(--font); }

/* 底部 Tab 栏：全端（移动/平板/桌面）固定显示，全宽平铺 */
.tabbar {
  display: flex !important;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #ffffff;                           /* Edge/国产浏览器兜底（不依赖 backdrop-filter） */
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--separator);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
  padding: 8px 24px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  height: 60px;
  align-items: center; justify-content: center;
  gap: 12px;                                    /* 功能键之间留空隙（桌面/移动一致） */
  /* Edge/旧 Chromium 兼容：固定层用 transform 触发独立合成层，避免 fixed 失效 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.main { padding-bottom: 80px; }

.tabbar-item {
  flex: 1 1 0; max-width: 160px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: var(--muted); text-decoration: none;
  padding: 4px 6px; border-radius: 12px;
  transition: color .15s ease, background .15s ease;
}
.tabbar-item .ti-icon { font-size: 22px; line-height: 1; position: relative; }
.tabbar-item .ti-icon svg { width: 22px; height: 22px; display: block; }
.tabbar-item.active { color: var(--primary); font-weight: 600; }
.tabbar-item:hover { text-decoration: none; color: var(--primary); background: var(--hover-bg); }
.tabbar-item:active { background: rgba(42, 38, 32, .10); }
.ti-dot {
  position: absolute; top: -4px; right: -10px;
  background: var(--disagree); color: #fff; font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; box-shadow: 0 0 0 2px #fff;
}
.tabbar-fab {
  flex: 0 0 56px; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 44px; border-radius: 22px;
  background: var(--gradient); color: #fff; font-size: 26px; font-weight: 300; line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(184, 137, 45, .40);
  transition: transform .15s ease;
}
.tabbar-fab svg { width: 24px; height: 24px; display: block; }
.tabbar-fab:hover { text-decoration: none; transform: scale(1.04); color: #fff; }
.tabbar-fab:active { transform: scale(.96); }

/* ---- 首页：Hero 轮播（方案A 墨韵鎏金：墨绿渐变 + 鎏金双线框 + 远山 + 朱红印章） ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 300px at 88% -20%, #3a6b58 0%, transparent 60%),
    radial-gradient(700px 260px at -5% 115%, rgba(63, 122, 99, .30), transparent 55%),
    linear-gradient(135deg, #2c5747 0%, #1e3d33 62%, #152e26 100%);
  border-radius: 10px;
  color: #f3ecd9;
  padding: 0;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px rgba(30, 61, 51, .32), inset 0 1px 0 rgba(255,255,255,.10);
  min-height: 180px;
}
.hero::before {  /* 鎏金双线内框 */
  content: ""; position: absolute; inset: 8px; z-index: 2;
  border: 1px solid rgba(216, 178, 92, .55); pointer-events: none; border-radius: 6px;
}
.hero::after {  /* 底部柔和过渡 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,.10)); pointer-events: none; z-index: 1;
}
/* 轮播：Grid 堆叠——所有片叠在同一格，容器高度自动等于最高一张片，内容永不被裁 */
.hero-carousel { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  display: flex; align-items: stretch;
  opacity: 0; visibility: hidden;
  transform: translateX(30px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
  padding: 26px 44px;
}
.hero-slide.active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s ease, transform .5s ease, visibility 0s;
}
.hero-content { flex: 1; max-width: 640px; position: relative; z-index: 3; min-width: 0; align-self: center; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding-right: 12%; }  /* 右侧留白防遮挡竖排题字 */
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .28em; font-weight: 600;
  color: var(--gold-light);
  background: rgba(216, 178, 92, .08); border: 1px solid rgba(216, 178, 92, .5);
  padding: 3px 12px; border-radius: 999px; align-self: flex-start;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);   /* 高度自适应后回调字号 */
  font-weight: 700; line-height: 1.4; margin: 0;
  letter-spacing: .06em;
  text-shadow: 0 2px 10px rgba(10, 30, 22, .30);
}
.hero h1.hero-title-long { font-size: clamp(16px, 1.9vw, 22px); line-height: 1.45; }  /* 长标题再降一档 */
.hero-sub { max-width: 560px; opacity: .85; margin: 0; line-height: 1.7; font-size: clamp(12.5px, 1.2vw, 14px); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero-btn-main {
  background: linear-gradient(135deg, #a97e28, #caa04e); color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(20, 40, 30, .35);
  padding: 8px 20px;
}
.hero-btn-main:hover { background: linear-gradient(135deg, #b8892d, #d8b25c); transform: translateY(-1px); color: #fff; }
.hero-btn-ghost {
  background: rgba(243, 236, 217, .10); color: #f3ecd9;
  border: 1px solid rgba(243, 236, 217, .5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 8px 20px;
}
.hero-btn-ghost:hover { background: rgba(243, 236, 217, .2); color: #fff; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 6px; }
.hero-stats .stat b { font-size: 20px; display: block; font-weight: 800; line-height: 1.15; font-family: Georgia, serif; color: var(--gold-light); }
.hero-stats .stat span { font-size: 11px; opacity: .78; letter-spacing: .12em; }

/* 右侧装饰：远山云纹 + 竖排题字 + 印章 */
.hero-deco {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
  pointer-events: none; user-select: none;
  z-index: 0;
}
.hero-svg { position: absolute; right: 56px; top: 6px; width: 260px; height: auto; opacity: .85; max-width: 50%; }
.hero-deco::before {  /* 竖排题字（PC 专属） */
  content: "大家一起来排名";
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-serif);
  font-size: 15px; letter-spacing: .6em; color: rgba(243, 236, 217, .55);
  border-left: 1px solid rgba(216, 178, 92, .4); padding-right: 8px;
}
.hero-glass-card { display: none; }   /* 缩小后隐藏玻璃卡，保证画面协调 */
.hero-seal {
  position: absolute; right: 34px; bottom: 26px;
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--cinnabar);
  color: #fff; font-family: var(--font-serif); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 2px 2px 0 rgba(0,0,0,.25);
  transform: rotate(6deg);
}
.hero-dots {
  position: absolute; bottom: 12px; left: 40px; z-index: 3;
  display: flex; gap: 7px; align-items: center;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(0,0,0,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: width .2s ease, background .2s ease;
  cursor: pointer;
}
.hero-dot.active { width: 22px; background: var(--gold-light); border-radius: 4px; }

@media (max-width: 860px) {
  .hero { min-height: 240px; border-radius: 12px; }
  .hero-carousel { min-height: 240px; }
  .hero-slide { padding: 22px 20px 44px; }  /* 上下留白 + 底部 dots 空间 */
  .hero-content { gap: 8px; align-self: center; padding-top: 0; padding-right: 8%; }  /* 移动端给印章留位 */
  .hero h1 { font-size: 16px; line-height: 1.5; }
  .hero h1.hero-title-long { font-size: 15px; line-height: 1.55; }
  .hero-sub { font-size: 11.5px; line-height: 1.7; max-width: 100%; opacity: .9; }
  .hero-kicker { font-size: 9.5px; padding: 3px 10px; letter-spacing: .2em; }
  .hero-deco { width: 46%; opacity: .35; }
  .hero-svg { right: 0; top: 4px; width: 150px; }
  .hero-glass-card { display: none; }
  .hero-deco::before { display: none; }   /* 小屏隐藏竖排题字 */
  .hero-seal { width: 28px; height: 28px; font-size: 15px; right: 14px; bottom: 40px; }
  .hero-dots { left: 20px; bottom: 12px; }
  .hero-actions { gap: 8px; flex-direction: column; width: 100%; max-width: 240px; margin: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 7px 14px; font-size: 12.5px; }
  .hero-btn-main { box-shadow: 0 4px 10px rgba(10, 30, 22, .3); }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; padding-top: 2px; width: 100%; max-width: 280px; }
  .hero-stats .stat b { font-size: 14px; }
  .hero-stats .stat span { font-size: 9.5px; letter-spacing: .04em; }
}

@media (max-width: 480px) {
  .hero-slide { padding: 20px 16px 40px; }
  .hero-content { gap: 7px; }
  .hero h1 { font-size: 15px; }
  .hero h1.hero-title-long { font-size: 14px; }
  .hero-sub { font-size: 11px; }
  .hero-stats { gap: 7px 14px; }
  .hero-stats .stat b { font-size: 13px; }
  .hero-actions .btn { padding: 7px 12px; font-size: 12px; }
}

/* ---- 首页：3 宫格入口 ---- */
.quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  background: var(--card); border-radius: var(--radius);
  padding: 18px 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.quick-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.qi-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; margin-bottom: 6px;
  box-shadow: 0 6px 14px -6px rgba(42, 38, 32, .35);
}
.qi-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.qi-desc { font-size: 11px; color: var(--muted); }
.qi-1 { background: linear-gradient(135deg, #2c5747, #3f7a63); }
.qi-2 { background: linear-gradient(135deg, #a97e28, #d8b25c); }
.qi-3 { background: linear-gradient(135deg, #b03a2e, #cf5a4c); }
.qi-4 { background: linear-gradient(135deg, #b03a2e, #cf5a4c); }

/* ---- 登录/注册页品牌头 ---- */
.auth-brand { text-align: center; margin: 24px 0 18px; }
.auth-brand .brand-seal { margin: 0 auto 12px; transform: rotate(-5deg); }
.auth-brand h1 { font-family: var(--font-serif); font-size: 24px; margin: 0 0 4px; letter-spacing: .04em; }

/* ---- 发布引导页 /publish ---- */
.publish-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0;
}
.publish-card {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.publish-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(99, 102, 241, .4); }
.publish-card .pc-icon { font-size: 44px; line-height: 1; }
.publish-card h2 { margin: 0; font-size: 19px; font-weight: 700; }
.publish-card p { margin: 0; line-height: 1.55; }
.publish-card .pc-arrow { margin-top: auto; font-size: 14px; color: var(--primary); font-weight: 600; }
.publish-tag { background: linear-gradient(135deg, #fdf6ed 0%, #ffffff 60%); }
.publish-ranking { background: linear-gradient(135deg, #f0eaff 0%, #ffffff 60%); }
@media (max-width: 640px) {
  .publish-grid { grid-template-columns: 1fr; }
  .publish-card { padding: 22px 20px; }
  .publish-card .pc-icon { font-size: 36px; }
}

/* ---- 排行榜列表卡片（参考图 2：左大缩略 + 右标题/标签/统计/进度条） ---- */
.ranking-list-cards { gap: 12px; }
.ranking-card {
  display: flex; align-items: stretch; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ranking-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: rgba(99, 102, 241, .35); }
.ranking-card .rc-thumb {
  width: 84px; height: 84px; flex: none;
  border-radius: 14px; overflow: hidden; position: relative;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(255, 255, 255, .95);
}
.ranking-card .rc-thumb img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; background: rgba(0,0,0,.15); }
.ranking-card .rc-thumb-emoji { position: relative; z-index: 1; }
.ranking-card .rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ranking-card .rc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ranking-card .rc-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; }
.ranking-card .rc-desc { margin: 0; line-height: 1.5; }
.ranking-card .rc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ranking-card .rc-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ranking-card .rc-stats b { color: var(--text); font-weight: 700; }
.ranking-card .rc-rate b { color: var(--agree); }
.ranking-card .rc-bar { margin-top: 4px; }
@media (max-width: 540px) {
  .ranking-card { padding: 14px; gap: 12px; }
  .ranking-card .rc-thumb { width: 64px; height: 64px; font-size: 28px; }
  .ranking-card .rc-title { font-size: 15px; }
  .ranking-card .rc-stats { font-size: 12px; gap: 10px; }
}

/* ---- 首页：热门榜横滑卡片 ---- */
.rank-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 8px; margin: 0 -4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rank-scroll::-webkit-scrollbar { display: none; }
.rank-card {
  flex: 0 0 250px; scroll-snap-align: start;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rank-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rc-thumb {
  height: 92px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: rgba(255,255,255,.9);
}
.rc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.rc-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.rc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-tags .chip-mini { font-size: 11px; }
.rc-meta { font-size: 11px; color: var(--muted); }
.rc-rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.rc-rate b { font-size: 12px; color: var(--agree); font-weight: 700; }
.rc-rate .bar { flex: 1; height: 5px; }
.rc-rank {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  min-width: 26px; height: 26px; border-radius: 9px;
  background: rgba(255,255,255,.92); color: var(--text);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
  box-shadow: var(--shadow-sm);
}
.rc-rank.r1 { background: var(--cinnabar); color: #fff; }
.rc-rank.r2 { background: #4a6a9e; color: #fff; }
.rc-rank.r3 { background: var(--bamboo); color: #fff; }

/* 首页热门榜：PC 4 列网格（方案A）/ 移动端 C 风格滑动卡片 */
@media (min-width: 861px) {
  .rank-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
  .rank-card { flex: none; scroll-snap-align: none; }
  .rc-thumb { height: 96px; font-size: 40px; }
  .rc-title { font-family: var(--font-serif); font-size: 16.5px; letter-spacing: .5px; font-weight: 700; }
  .rc-rate b { color: var(--gold); }
  .rc-rate .bar .bar-fill { background: linear-gradient(90deg, #b8892d, #d8b25c); }
  .rc-rate .bar { background: #eee5cf; }
  .rc-rank { border-radius: 50%; min-width: 30px; height: 30px; font-size: 14px; }
  /* PC 顶栏：标志|首页|排行榜|搜索|＋|🔔|地区|用户 */
  .topbar-inner { grid-template-columns: auto auto 1fr auto auto; }
  .nav-links { display: flex; align-items: center; gap: 4px; }
  .topbar-inner .search { max-width: 340px; justify-self: center; width: 100%; }
  .nav-extra { display: flex; align-items: center; gap: 10px; justify-self: end; }
  /* PC 不需要底部导航栏 */
  .tabbar { display: none !important; }
  .main { padding-bottom: 24px; }
  /* Hero：文字居中 + 轮播点底部居中 + 装饰淡化防遮挡 */
  .hero-content { text-align: center; align-items: center; padding-right: 0; }
  .hero-content .hero-kicker { align-self: center; }
  .hero-stats { justify-content: center; }
  .hero-deco { opacity: .32; }
  .hero-deco::before { opacity: .55; }
  .hero-svg { right: 80px; }
  .hero-seal { right: 30px; bottom: 22px; }
  .hero-dots { left: 50%; transform: translateX(-50%); bottom: 8px; }
  /* 主题设置：三块放宽间距，视觉更舒展 */
  .theme-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 640px; margin: 0 auto; }
  .theme-opt { width: auto; }
  .theme-swatch { width: 60px; height: 60px; }
  .theme-apply { width: auto; height: auto; padding: 18px 0; }
}
@media (max-width: 860px) {
  .rank-card { flex: 0 0 196px; position: relative; border-radius: 14px; }
  .rank-card::before {  /* C 风格顶部渐变条 */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; z-index: 2;
    background: linear-gradient(90deg, #2c5747, #3f7a63);
  }
  .rc-thumb { height: 64px; font-size: 27px; }
  .rc-rank { top: 6px; left: 6px; min-width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
  .rc-body { padding: 10px 12px 12px; gap: 5px; }
  .rc-title { font-size: 14px; line-height: 1.4; }
  .rc-tags .chip-mini { background: var(--beige); border: 1px solid var(--border); color: var(--primary); }
  .rc-rate b { color: var(--gold); }
  .rc-rate .bar .bar-fill { background: linear-gradient(90deg, #b8892d, #d8b25c); }
  .rc-rate .bar { background: #eee5cf; }
}

/* ---- 首页：标签网格 ---- */
.tag-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.tag-cell {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.tag-cell:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--primary); }
.tag-cell .tc-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.tag-cell .tc-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.tag-cell .tc-count { font-size: 11px; color: var(--muted); }

/* 首页热门标签：方案A pill 云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud .tg {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #d8c9a3; background: #fbf6e8; border-radius: 999px;
  padding: 7px 15px; font-size: 13px; color: #5c5140; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tag-cloud .tg:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tag-cloud .tg-name::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--tg, #b8892d); margin-right: 7px; vertical-align: 1px;
}
.tag-cloud .tg b { font-family: Georgia, serif; color: var(--gold); font-size: 11px; }

/* ---- 首页：最新动态 ---- */
.activity-list { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: .5px solid var(--separator);
  color: var(--text);
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { text-decoration: none; }
.act-body { flex: 1; min-width: 0; }
.act-line { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-line b { font-weight: 600; }
.act-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 860px) {
  /* 移动端三宫格保持 3 列：三个功能键同一水平线（配合上方紧凑字号） */
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ---- 客服中心 / 用户反馈 ---- */
.feedback-form { max-width: 720px; }
.feedback-item, .feedback-admin { margin-bottom: 12px; padding: 16px 18px; }
.feedback-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.feedback-subject { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.feedback-body { color: var(--text); white-space: pre-wrap; margin: 0 0 10px; }
.feedback-reply {
  background: #f5f3ff; border-left: 3px solid var(--primary);
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 8px 0;
}
.feedback-reply p { margin: 4px 0 0; white-space: pre-wrap; }
.feedback-reply-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: inherit; resize: vertical;
  margin: 8px 0;
}
.fb-cat, .fb-status { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.fb-cat { background: #f0f0f5; color: var(--text); }
.fb-cat-bug { background: #fde8e8; color: #b91c1c; }
.fb-cat-feature { background: #e0f2fe; color: #075985; }
.fb-cat-question { background: #fef3c7; color: #92400e; }
.fb-cat-other { background: #f3f4f6; color: var(--muted); }
.fb-status-open { background: #fef3c7; color: #92400e; }
.fb-status-closed { background: #d1fae5; color: #065f46; }

/* ---- 折叠列表的展开按钮 ---- */
.expand-btn { display: block; margin: 12px auto 0; }

/* ---- 等级系统 ---- */
.lvl-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 999px;
  background: var(--bg); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap;
  vertical-align: middle;
}
.lvl-badge.big { font-size: 16px; padding: 6px 12px; }
.lvl-0 { background: #f2f2f7; color: #8e8e93; }
.lvl-1 { background: #e8f5e9; color: #2e7d32; }
.lvl-2 { background: #e3f2fd; color: #1565c0; }
.lvl-3 { background: #e0f7fa; color: #00695c; }
.lvl-4 { background: #ede7f6; color: #4527a0; }
.lvl-5 { background: #fce4ec; color: #ad1457; }
.lvl-6 { background: #fff3e0; color: #e65100; }
.lvl-7 { background: #ffebee; color: #c62828; }
.lvl-8 { background: linear-gradient(135deg, #fff7e6, #ffe4b5); color: #b45309; border-color: #fcd34d; }
.lvl-9 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border-color: #f59e0b; }
.lvl-10 { background: linear-gradient(135deg, #fde8d7, #f5d0a9); color: #7c2d12; border-color: #f59e0b; box-shadow: 0 0 0 1px rgba(245, 158, 11, .3); }
.honor-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; white-space: nowrap; vertical-align: middle;
  box-shadow: 0 1px 4px rgba(239, 68, 68, .35);
}
.comment-head .lvl-badge, .comment-head .honor-badge { margin-right: 2px; }
.me-level-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.level-card { padding: 18px 20px; }
.level-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.level-now { display: flex; align-items: center; gap: 10px; }
.level-now b { display: block; font-size: 15px; }
.level-now span { display: block; }
.level-score { margin-left: auto; text-align: right; }
.level-score b { display: block; font-size: 22px; }
.level-score span { display: block; }
.level-strategy { margin-top: 12px; }
.level-strategy summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--primary); user-select: none; }
.level-strategy[open] summary { margin-bottom: 8px; }
.level-rules ul { margin: 6px 0 8px; padding-left: 20px; }
.level-rules li { margin: 4px 0; font-size: 14px; }
.level-rules li b { color: var(--agree); }
.level-wear { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .level-score { margin-left: 0; text-align: left; }
}

/* ---- 头像（emoji + 底色）---- */
.av-base, .me-avatar, .act-avatar, .comment-avatar, .nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: none; line-height: 1;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
}
/* 图片头像：铺满圆形容器 */
.me-avatar.img, .act-avatar.img, .comment-avatar.img, .nav-avatar.img, .avatar-preview.img {
  overflow: hidden; padding: 0; background: var(--bg);
}
.me-avatar.img img, .act-avatar.img img, .comment-avatar.img img, .nav-avatar.img img, .avatar-preview.img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.me-avatar { width: 64px; height: 64px; font-size: 30px; color: #fff; }
.act-avatar { width: 36px; height: 36px; font-size: 18px; color: #fff; }
.comment-avatar { width: 32px; height: 32px; font-size: 16px; color: #fff; margin-right: 8px; }
.nav-avatar { width: 26px; height: 26px; font-size: 14px; color: #fff; }
.nav-user > summary { display: inline-flex; align-items: center; gap: 6px; }
.nav-uname { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 头像选择器 ---- */
.field-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.avatar-preview {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 2px 8px rgba(0,0,0,.15);
  transition: background .2s ease;
}
.avatar-upload { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar-preview.av-c1 { background: #6366f1; } .avatar-preview.av-c2 { background: #ec4899; }
.avatar-preview.av-c3 { background: #10b981; } .avatar-preview.av-c4 { background: #f59e0b; }
.avatar-preview.av-c5 { background: #ef4444; } .avatar-preview.av-c6 { background: #0ea5e9; }
.avatar-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-bottom: 10px; }
.avatar-opt {
  width: 44px; height: 44px; border-radius: 12px; font-size: 22px;
  border: 2px solid var(--border); background: var(--card); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.avatar-opt:hover { transform: scale(1.08); border-color: var(--primary); }
.avatar-opt.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); transform: scale(1.05); background: #eef0ff; }
.avatar-opt:disabled { opacity: .4; cursor: not-allowed; transform: none; }
/* 六底色选择行 */
.avatar-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-color {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--border);
  transition: transform .12s ease, box-shadow .12s ease;
}
.avatar-color:hover { transform: scale(1.12); }
.avatar-color.selected { box-shadow: 0 0 0 3px var(--primary), 0 0 0 5px #fff, 0 0 0 6px var(--primary); transform: scale(1.05); }
.avatar-color:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---- 商家入驻占位页 ---- */
.merchant-coming { text-align: center; padding: 60px 20px; }
.mc-seal {
  width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 18px;
  background: var(--primary); color: #fff;
  font-family: var(--font-serif); font-size: 42px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 8px 24px rgba(148,124,100,.35);
  transform: rotate(-5deg);
}
.merchant-coming h1 { margin: 0 0 10px; }

/* ---- 个人中心快捷操作 ---- */
.me-quicklinks { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; }

/* ---- 顶栏：地区 + 用户菜单 ---- */
.nav-region {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
  font-size: 13px; color: var(--text); font-weight: 600;
  white-space: nowrap; max-width: 200px; overflow: hidden;
}
.nav-region:hover { border-color: var(--primary); text-decoration: none; }
.nav-region .region-text { overflow: hidden; text-overflow: ellipsis; }

.nav-user { position: relative; }
.nav-user > summary {
  list-style: none; cursor: pointer; padding: 6px 10px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border);
}
.nav-user > summary::-webkit-details-marker { display: none; }
.nav-user[open] > summary { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-user-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--separator);
  min-width: 200px; padding: 6px 0; z-index: 100;
}
.nav-user-menu a, .nav-user-menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 14px; font-size: 13px; color: var(--text); background: none; border: none;
  cursor: pointer; text-decoration: none;
}
.nav-user-menu a:hover, .nav-user-menu button:hover { background: var(--bg); text-decoration: none; }

@media (max-width: 720px) {
  .nav-region { max-width: 110px; padding: 5px 8px; font-size: 12px; }
  .nav-user > summary { padding: 5px 8px; font-size: 12px; }
  .nav-user-menu { right: -10px; }
}

/* ---- 地区选择页 ---- */
.region-current { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; }
.region-current .rc-name { font-size: 17px; font-weight: 700; color: var(--primary); }
.region-form select { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; background: #fff; margin-top: 6px; }

/* ============ 深色主题（html.theme-mono）============ */
/* 用户可在个人中心选择：浅色主题(彩色,默认) / 深色主题(黑白) */
html.theme-mono {
  --primary: #e0b98a;
  --primary-dark: #f0d0a8;
  --gradient: linear-gradient(135deg, #4a3f35 0%, #3a3028 45%, #57493c 100%);
  --cinnabar: #d8b089; --cinnabar-dark: #e0c0a0;
  --gold: #d8b089; --gold-light: #e9d7ac;
  --bamboo: #8fb3a5; --indigo-cn: #c8b8a8;
  --bg: #1a1815;
  --card: #24211d;
  --beige: #2e2a25;
  --hover-bg: #38332c;
  --text: #e8e2d8;
  --muted: #9a9188;
  --text-3: #6d665f;
  --border: #3a342d;
  --separator: rgba(255,255,255,.10);
  --agree: #7db26a; --disagree: #d0877d;
  --warn: #d9a441; --info: #8ba3b5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow: 0 2px 12px rgba(0,0,0,.45);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
}
/* 深色主题：深底浅字的组件兜底（覆盖硬编码浅色） */
html.theme-mono body { background: #1a1815; color: #e8e2d8; }
html.theme-mono .topbar { background: rgba(36,33,29,.92); border-bottom-color: #3a342d; }
html.theme-mono .tabbar { background: rgba(36,33,29,.96); border-top-color: #3a342d; }
html.theme-mono .card { background: rgba(36,33,29,.85); border-color: #3a342d; }
html.theme-mono .search input,
html.theme-mono .field input, html.theme-mono .field textarea,
html.theme-mono .comment-form textarea, html.theme-mono .reply-form textarea,
html.theme-mono .form-card textarea, html.theme-mono .region-form select {
  background: #2e2a25; border-color: #4a4238; color: #e8e2d8;
}
html.theme-mono .btn-outline { background: transparent; }
html.theme-mono .btn-light { background: #f0e8dc; color: #3a3028; }
html.theme-mono .back-btn { background: #2e2a25; color: #e8e2d8; }
html.theme-mono .back-btn:hover { background: #38332c; }
html.theme-mono .vote-btn { background: #2e2a25; border-color: #4a4238; color: #e8e2d8; }
html.theme-mono .avatar-opt { background: #2e2a25; border-color: #4a4238; }
html.theme-mono .avatar-opt.selected { background: #403a32; }
html.theme-mono .theme-opt { border-color: #4a4238; }
html.theme-mono .theme-swatch-color { background: linear-gradient(135deg, #f5efe3, #1e3d33); }
html.theme-mono .theme-swatch-mono { background: linear-gradient(135deg, #2e2a25, #e8e2d8); }
html.theme-mono .hero { box-shadow: 0 14px 34px rgba(0,0,0,.5); }
html.theme-mono .lvl-badge, html.theme-mono .honor-badge,
html.theme-mono .badge-official, html.theme-mono .badge-custom,
html.theme-mono .badge-approved, html.theme-mono .badge-pending, html.theme-mono .badge-rejected,
html.theme-mono .stance-agree, html.theme-mono .stance-disagree,
html.theme-mono .c-school, html.theme-mono .c-type, html.theme-mono .c-place,
html.theme-mono .c-city, html.theme-mono .c-other, html.theme-mono .chip-mini,
html.theme-mono .admin-stat, html.theme-mono .review-card, html.theme-mono .rank-row,
html.theme-mono .comment {
  background: #2e2a25;
  color: #e8e2d8;
  border-color: #4a4238;
  background-image: none;
}
html.theme-mono .flash-error { background: #4a2525; color: #f0b8b0; border-color: #6a3535; }
html.theme-mono .flash-ok { background: #24331f; color: #b8e0a8; border-color: #3a5030; }
html.theme-mono .tabs, html.theme-mono .sort-form select, html.theme-mono .row-end select,
html.theme-mono .rank-link, html.theme-mono .chip-check span,
html.theme-mono .stance-neutral, html.theme-mono .login-hint code {
  background: #2e2a25; color: #e8e2d8; border-color: #4a4238;
}
html.theme-mono .tab { color: var(--muted); }
html.theme-mono .tab.active { background: var(--primary); color: #fff; }
html.theme-mono .search input:focus { background: #2e2a25; border-color: var(--primary); }
html.theme-mono .tip-card { background: #2e2a25; border-color: #4a4238; }
html.theme-mono .lvl-badge.lvl-0, html.theme-mono .lvl-badge.lvl-1,
html.theme-mono .lvl-badge.lvl-2, html.theme-mono .lvl-badge.lvl-3,
html.theme-mono .lvl-badge.lvl-4, html.theme-mono .lvl-badge.lvl-5,
html.theme-mono .lvl-badge.lvl-6, html.theme-mono .lvl-badge.lvl-7,
html.theme-mono .lvl-badge.lvl-8, html.theme-mono .lvl-badge.lvl-9,
html.theme-mono .lvl-badge.lvl-10 {
  background: #2e2a25; color: #e8e2d8; border: 1px solid #4a4238; box-shadow: none;
}

/* 主题选择卡片 */
.theme-switch { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.theme-opt {
  flex: none; width: 84px; cursor: pointer; position: relative;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  border: 2px solid var(--border); border-radius: 12px; padding: 10px 8px 8px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.theme-opt:hover { border-color: var(--primary); transform: translateY(-2px); }
.theme-opt.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,137,45,.25), 0 4px 12px rgba(42,38,32,.12);
  background: rgba(184,137,45,.06);
  transform: translateY(-2px);
}
.theme-opt input { display: none; }
.theme-opt .theme-check {
  position: absolute; top: 6px; right: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; line-height: 1;
  opacity: 0; transform: scale(.4);
  transition: opacity .18s ease, transform .18s ease;
}
.theme-opt.selected .theme-check { opacity: 1; transform: scale(1); }
.theme-swatch { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 4px; }
.theme-swatch-color { background: linear-gradient(135deg, #f5efe3, #1e3d33); }
.theme-swatch-mono { background: linear-gradient(135deg, #2e2a25, #e8e2d8); }
.theme-opt b { font-size: 12.5px; color: var(--text); }
/* 应用主题 方形按钮 */
.theme-apply {
  flex: none; width: 84px; height: 84px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px solid var(--gold); border-radius: 12px;
  background: linear-gradient(135deg, #a97e28, #caa04e); color: #fff;
  font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(184,137,45,.3);
  transition: transform .15s ease, filter .15s ease;
}
.theme-apply:hover { transform: translateY(-2px); filter: brightness(1.06); cursor: pointer; }
.theme-apply span { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; }
/* 个人中心：等级徽章按钮 */
.me-lvl-btn { box-shadow: none; background: transparent; padding: 0; }
.me-lvl-btn:hover { filter: brightness(.94); }
/* 个人中心：注销按钮（危险色） */
.me-quicklinks .cbtn-danger { color: var(--disagree); border-color: var(--disagree); }
.me-quicklinks .cbtn-danger:hover { background: var(--disagree); color: #fff; }

/* Hero 展示图片（管理端上传） */
.hero-image {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  width: 42%; max-width: 420px; z-index: 2; pointer-events: none;
}
.hero-image img {
  width: 100%; max-height: 320px; object-fit: contain; border-radius: 20px;
  box-shadow: 0 14px 34px rgba(60,40,20,.35), inset 0 0 0 1px rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.3);
}
.hero-slide:has(.hero-image) .hero-content { max-width: 52%; }
@media (max-width: 860px) {
  .hero-image { display: none; }
  .hero-slide:has(.hero-image) .hero-content { max-width: 100%; }
}

/* ---- 悬浮窗（Modal）---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(30, 22, 15, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal-card {
  width: 100%; max-width: 400px;
  background: var(--bg, #fffbf6);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(60, 40, 20, .35);
  padding: 22px 24px 24px;
  animation: modal-in .22s ease;
}
@keyframes modal-in {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(120, 90, 60, .12); color: #6b563f;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: rgba(120, 90, 60, .22); }
.modal-msg { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; }
.modal-msg.ok { background: rgba(46, 125, 107, .12); color: #2e7d6b; }
.modal-msg.err { background: rgba(180, 70, 60, .12); color: #b4463c; }

/* 确保 hidden 属性真正隐藏悬浮窗（display:flex 会覆盖默认 hidden） */
.modal-mask[hidden] { display: none !important; }

/* 个人中心三大板块（我的投票/我发布的观点/我收藏的排行榜）：标题+筛选 整体居中，三块同一轴线 */
.me-votes-head { flex-direction: column; align-items: center; text-align: center; border-bottom: none; justify-content: center; }
.me-votes-head h2 { margin-bottom: 8px; }
.me-votes-head .sort-links { gap: 14px; }
@media (max-width: 860px) {
  .me-votes-head { flex-direction: column; }
}

/* 页脚 ICP 备案号（合规要求） */
.footer-icp { margin: 6px 0 0; font-size: 12px; }
.footer-icp a { color: var(--muted); text-decoration: none; opacity: .85; }
.footer-icp a:hover { color: var(--gold); text-decoration: underline; }

/* ---- 管理端：条目调榜 ---- */
.move-picker { margin-bottom: 14px; }
.move-picker .field { max-width: 520px; }
.move-picker-row { display: flex; flex-wrap: wrap; gap: 12px; }
.move-picker-row .field { flex: 1 1 260px; max-width: 360px; margin: 0; }
.move-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; padding-bottom: 8px; }
.move-check input { width: auto; }
.move-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.move-actions .field { flex: 1 1 320px; max-width: 520px; margin: 0; }
.move-form .data-table { margin-top: 4px; }
@media (max-width: 860px) {
  .move-actions { flex-direction: column; align-items: stretch; }
  .move-actions .field { max-width: 100%; }
}

/* ---- 管理端：标签分类管理 ---- */
.cat-add-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.cat-add-form .field { max-width: 320px; margin: 0; }
.cat-order-btns { display: inline-flex; gap: 4px; }
.cat-rename { display: flex; gap: 6px; align-items: center; }
.cat-rename input { max-width: 180px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================
   暗色主题：选中/激活态强化
   目的：深色底上「已选 / 未选」对比不明显，这里统一提升辨识度
   做法：未选项给可见的胶囊边界；选中项用「半透明亮金底 + 亮金描边 + 亮字加粗」
   ============================================================ */

/* ---- 排序筛选（全部 / 只看夯 / 只看拉）---- */
html.theme-mono .sort-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
html.theme-mono .sort-links a {
  margin-left: 0; padding: 3px 11px; border-radius: 999px;
  border: 1px solid #4a4238; background: #2e2a25; color: #b8b0a6;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
html.theme-mono .sort-links a:hover { border-color: var(--primary); color: var(--text); }
html.theme-mono .sort-links a.active {
  background: rgba(224, 185, 138, .22); color: #f5d9ad;
  border-color: var(--primary); font-weight: 700;
  box-shadow: 0 0 0 1px rgba(224, 185, 138, .35) inset, 0 0 10px rgba(224, 185, 138, .12);
}

/* ---- 顶部 Tab / 移动端通知长条 ---- */
html.theme-mono .tab { color: #b8b0a6; }
html.theme-mono .tab:hover { background: #3a342d; color: var(--text); }
html.theme-mono .tab.active {
  background: rgba(224, 185, 138, .22); color: #f5d9ad; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(224, 185, 138, .35) inset;
}
html.theme-mono .notif-tabs .tab { background: #2e2a25; border-color: #4a4238; color: #b8b0a6; }
html.theme-mono .notif-tabs .tab.active {
  background: rgba(224, 185, 138, .20); border-color: var(--primary); color: #f5d9ad;
}

/* ---- 标签选择（新建榜单/标签时的 chip）---- */
html.theme-mono .chip-check span {
  background: #2e2a25; border-color: #4a4238; color: #b8b0a6;
}
html.theme-mono .chip-check input:checked + span {
  background: rgba(224, 185, 138, .24) !important;
  border-color: var(--primary) !important;
  color: #f5d9ad !important;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(224, 185, 138, .4) inset;
}

/* ---- 投票按钮（夯 / 拉）---- */
html.theme-mono .vote-btn { background: #2e2a25; border-color: #4a4238; color: #b8b0a6; }
html.theme-mono .vote-btn:hover { border-color: var(--primary); color: var(--text); }
html.theme-mono .vote-btn.agree.active {
  background: #3d6b30; border-color: #8fc47a; color: #fff;
  box-shadow: 0 0 0 2px rgba(143, 196, 122, .35);
}
html.theme-mono .vote-btn.disagree.active {
  background: #6e392f; border-color: #e0a196; color: #fff;
  box-shadow: 0 0 0 2px rgba(224, 161, 150, .35);
}

/* ---- 底部导航当前项 ---- */
html.theme-mono .tabbar-item { color: #8d857c; }
html.theme-mono .tabbar-item.active { color: #f5d9ad; font-weight: 700; }
html.theme-mono .tabbar-item.active .ti-icon {
  background: rgba(224, 185, 138, .18); border-radius: 10px;
}

/* ---- PC 顶栏当前页 ---- */
html.theme-mono .nav-links a { color: #b8b0a6; }
html.theme-mono .nav-links a.on {
  background: rgba(224, 185, 138, .20); color: #f5d9ad; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(224, 185, 138, .3) inset;
}

/* ---- 头像 emoji / 底色选择 ---- */
html.theme-mono .avatar-opt { background: #2e2a25; border-color: #4a4238; color: #cfc7bd; }
html.theme-mono .avatar-opt:hover { border-color: var(--primary); }
html.theme-mono .avatar-opt.selected {
  background: rgba(224, 185, 138, .24); border-color: var(--primary); color: #fff;
  box-shadow: 0 0 0 2px rgba(224, 185, 138, .4);
}
html.theme-mono .avatar-color.selected {
  box-shadow: 0 0 0 3px #f5d9ad, 0 0 0 5px #1a1815, 0 0 0 6px #f5d9ad;
}

/* ---- 主题选择块 ---- */
html.theme-mono .theme-opt { border: 2px solid #4a4238; }
html.theme-mono .theme-opt:hover { border-color: var(--primary); }
html.theme-mono .theme-opt.selected {
  border-color: var(--primary);
  background: rgba(224, 185, 138, .16);
  box-shadow: 0 0 0 3px rgba(224, 185, 138, .30);
}
html.theme-mono .theme-check { background: var(--primary); color: #241d14; }

/* ---- 输入框聚焦 ---- */
html.theme-mono .field input:focus, html.theme-mono .field textarea:focus,
html.theme-mono .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 185, 138, .18);
}

/* ---- 通用按压反馈：点击瞬间缩小 + 变亮，明确「已点中」---- */
.btn:active, .cbtn:active, .tab:active, .sort-links a:active,
.vote-btn:active, .avatar-opt:active, .theme-opt:active,
.tabbar-item:active, .nav-links a:active, .tg:active, .tag-cell:active,
.quick-item:active, .rc-rate:active, .rank-name:active {
  transform: scale(.96) !important;
  transition: transform .06s ease;
}
html.theme-mono .btn:active, html.theme-mono .cbtn:active,
html.theme-mono .tab:active, html.theme-mono .rank-row:active {
  filter: brightness(1.18);
}

/* ---- 文件上传增强（提示 + 已选文件 + 取消）---- */
.upload-enh { margin-top: 6px; }
.upload-hint { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.upload-picked {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 10px; border-radius: 8px; font-size: 13px;
  background: var(--beige); border: 1px solid var(--border);
}
.upload-enh.has-file .upload-picked { border-color: var(--primary); }
.upload-enh .up-name { color: var(--text); word-break: break-all; }
.upload-enh .up-size { flex: none; }
.upload-cancel {
  flex: none; cursor: pointer; border: 1px solid var(--border);
  background: var(--card); color: var(--disagree);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; line-height: 1.5;
}
.upload-cancel:hover { border-color: var(--disagree); background: var(--disagree); color: #fff; }
html.theme-mono .upload-picked { background: #2e2a25; border-color: #4a4238; }
html.theme-mono .upload-cancel { background: #2e2a25; border-color: #4a4238; }

/* 图片完整性：contain 后留白处用主题底色填充，深色主题同步适配 */
html.theme-mono .item-image,
html.theme-mono .ranking-cover { background: #2e2a25; }
html.theme-mono .ranking-card .rc-thumb img { background: rgba(255,255,255,.06); }

/* 条目主图：单图时放大展示，尽量完整呈现用户上传的图片 */
.item-image:only-of-type { width: 220px; height: 220px; }
@media (max-width: 860px) {
  .item-image:only-of-type { width: 100%; height: auto; max-height: 420px; }
}

/* 编辑页：当前图片预览（完整显示，不裁剪） */
.edit-preview {
  max-width: 320px; width: 100%; max-height: 220px;
  object-fit: contain; border-radius: 10px;
  background: var(--beige); border: 1px solid var(--border); display: block;
}
html.theme-mono .edit-preview { background: #2e2a25; border-color: #4a4238; }

/* 标签内联编辑（详情页/管理端） */
.tag-inline-edit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag-inline-edit input, .tag-inline-edit select { max-width: 160px; }
