:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-soft: #fdf0ee;
  --ink: #1f2430;
  --ink-2: #4b5364;
  --muted: #8a92a3;
  --line: #e8ebf0;
  --bg: #f4f5f8;
  --card: #ffffff;
  --accent: #2c7fb8;
  --gold: #d68910;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(28, 36, 52, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header { background: var(--card); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { display: block; height: 46px; width: auto; max-width: 260px; object-fit: contain; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #e05a45); color: #fff;
  font-weight: 800; font-size: 17px; letter-spacing: -.5px; box-shadow: 0 4px 12px rgba(192,57,43,.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; letter-spacing: .5px; }
.brand-text small { color: var(--muted); font-size: 11px; margin-top: 3px; }

.search-box { display: flex; flex: 1; max-width: 420px; margin-left: auto; }
.search-box input {
  flex: 1; padding: 9px 14px; border: 1px solid var(--line); border-right: none;
  border-radius: 8px 0 0 8px; font-size: 14px; outline: none; background: #fafbfc;
}
.search-box input:focus { border-color: var(--primary); background: #fff; }
.search-box button {
  padding: 9px 18px; border: none; background: var(--primary); color: #fff;
  border-radius: 0 8px 8px 0; font-size: 14px; font-weight: 600;
}
.search-box button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: var(--primary-soft); color: var(--primary); display: grid; place-items: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip .uname { font-size: 14px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }

.site-nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  padding: 11px 14px; font-size: 14px; color: var(--ink-2); white-space: nowrap;
  border-bottom: 2px solid transparent; font-weight: 500;
}
.nav-inner a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Hero & ads ---------- */
main { padding: 22px 0 60px; min-height: calc(100vh - 240px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.slideshow { position: relative; border-radius: var(--radius); overflow: hidden; height: 300px; box-shadow: var(--shadow); background: #ddd; }
.slide { position: absolute; inset: 0; padding: 46px; display: flex; flex-direction: column; justify-content: center; color: #fff; opacity: 0; transition: opacity .6s; }
.slide.active { opacity: 1; }
.slide .tag { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 14px; backdrop-filter: blur(4px); }
.slide h2 { font-size: 34px; margin: 0 0 8px; letter-spacing: 1px; }
.slide p { font-size: 16px; opacity: .92; margin: 0; }
.slide-dots { position: absolute; bottom: 16px; left: 46px; display: flex; gap: 8px; z-index: 2; }
.slide-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); padding: 0; }
.slide-dots button.active { background: #fff; width: 22px; border-radius: 4px; }

.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; height: 300px; overflow: auto; }
.side-card h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.side-card h3::before { content: ""; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.notice-item { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.notice-item:last-child { border-bottom: none; }

.ad-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.ad-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius); color: #fff; min-height: 84px;
  background: linear-gradient(120deg, #34495e, #2c3e50);
}
.ad-box:nth-child(2) { background: linear-gradient(120deg, #7d3c98, #57236f); }
.ad-box h4 { margin: 0 0 4px; font-size: 17px; }
.ad-box p { margin: 0; font-size: 13px; opacity: .85; }
.ad-badge { background: rgba(255,255,255,.18); border-radius: 6px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }

/* ---------- Cards / sections ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.section-head h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 5px; height: 20px; background: var(--primary); border-radius: 3px; }
.section-head .sub { color: var(--muted); font-size: 13px; }

.forum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.forum-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; transition: .2s; border: 1px solid transparent;
}
.forum-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28,36,52,.10); border-color: var(--primary-soft); }
.forum-card h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.forum-card .icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); font-size: 15px; }
.forum-card .subforums { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.forum-card .subforums a {
  font-size: 12px; color: var(--ink-2); background: #f5f6f8; padding: 3px 9px; border-radius: 5px;
}
.forum-card .subforums a:hover { color: var(--primary); background: var(--primary-soft); }
.forum-card .more { font-size: 12px; color: var(--muted); }

/* ---------- Thread list ---------- */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 18px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--primary); }
.crumb span { margin: 0 6px; }

.thread-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: #fafbfc; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-size: 15px; font-weight: 600; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-title:hover { color: var(--primary); }
.thread-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.badge-sticky { color: var(--primary); font-weight: 700; }
.badge-gold { color: var(--gold); font-weight: 700; }
.thread-stat { display: flex; gap: 18px; font-size: 12px; color: var(--muted); flex-shrink: 0; text-align: center; }
.thread-stat b { display: block; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.subforum-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; }
.subforum-pill { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.subforum-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.subforum-pill small { color: var(--muted); margin-left: 6px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 42px; margin-bottom: 10px; }
.loading { text-align: center; padding: 50px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Thread detail ---------- */
.thread-view { padding: 24px; }
.thread-view h1 { font-size: 24px; margin: 0 0 12px; line-height: 1.4; }
.thread-byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.thread-content { padding: 22px 0; font-size: 15px; color: var(--ink); white-space: pre-wrap; word-break: break-word; min-height: 120px; }
.tool-row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.reply-head { padding: 16px 24px; background: #fafbfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.reply-item { display: flex; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.reply-item:last-child { border-bottom: none; }
.reply-body { flex: 1; min-width: 0; }
.reply-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.reply-meta b { color: var(--ink-2); }
.reply-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.reply-box { padding: 20px 24px; background: #fafbfc; border-top: 1px solid var(--line); }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 720px; margin: 0 auto; }
.form-card h2 { margin: 0 0 6px; font-size: 22px; }
.form-card .lead { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; outline: none; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-row { display: flex; gap: 10px; }
.form-row input { flex: 1; }
.code-btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
.error-text { color: var(--primary); font-size: 13px; margin-top: 6px; }

/* ---------- Auth modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,24,34,.5); display: grid; place-items: center; z-index: 100; padding: 16px; backdrop-filter: blur(3px); }
.modal { background: #fff; border-radius: 16px; width: min(420px, 100%); padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; }
.modal-close { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 22px; color: var(--muted); }
.modal h2 { margin: 0 0 4px; font-size: 21px; }
.modal .lead { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wechat-btn { background: #07c160; color: #fff; }
.wechat-btn:hover { background: #06ad56; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: #2c3e50; color: #cbd5e0; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-size: 16px; }
.site-footer p { margin: 4px 0 0; font-size: 12px; }
.footer-note { max-width: 560px; }
.footer-note p { opacity: .75; }
.beian-link { color: #e2e8f0; text-decoration: none; }
.beian-link:hover { color: #fff; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .side-card { height: auto; }
  .forum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 20px, 1200px); }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .brand-text small { display: none; }
  .brand-logo { height: 36px; max-width: 190px; }
  .search-box { order: 3; width: 100%; max-width: none; margin: 0; }
  .site-nav { overflow: hidden; }
  .nav-inner { -webkit-overflow-scrolling: touch; }
  .slideshow { height: 220px; }
  .slide { padding: 24px; }
  .slide h2 { font-size: 24px; }
  .slide-dots { left: 24px; }
  .ad-strip { grid-template-columns: 1fr; }
  .forum-grid { grid-template-columns: 1fr; }
  .thread-stat { display: none; }
  .thread-view { padding: 16px; }
  .thread-view h1 { font-size: 20px; }
  .reply-item, .reply-box, .reply-head { padding-left: 16px; padding-right: 16px; }
  .form-card { padding: 20px; }
  .footer-inner { flex-direction: column; }
  .user-chip .uname { max-width: 70px; }
}

/* ---------- 微信投票 / 公众号互通 / 后台 ---------- */
.lead-block { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.badge-pending { color: var(--gold); font-weight: 700; }
.review-notice { background: #fff8e6; border: 1px solid #f5d78a; color: #8a6212; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.video-embed { position: relative; width: 100%; padding-top: 56.25%; margin: 14px 0; border-radius: 10px; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: inline-block; color: var(--accent); font-weight: 600; margin: 8px 0; }

.vote-feature { background: linear-gradient(180deg, #fff7f5, #fff); border: 1px solid #f7d9d4; border-radius: var(--radius); padding: 6px 18px 18px; margin-bottom: 8px; }
.vote-feature .section-head { margin-top: 18px; }
.vote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vote-mini { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: .18s; }
.vote-mini:hover { border-color: var(--primary); transform: translateY(-2px); }
.vote-mini-icon { font-size: 24px; }
.vote-mini div { min-width: 0; flex: 1; }
.vote-mini h4 { margin: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-mini p { margin: 3px 0 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-mini-arrow { color: var(--primary); font-weight: 700; }
.wechat-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(120deg, #eaf6f0, #d5edf9); }
.wechat-cta h3 { margin: 0 0 4px; font-size: 17px; }
.wechat-cta p { margin: 0; font-size: 13px; color: var(--ink-2); }
.oa-qr-mini { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: #fff; padding: 4px; box-shadow: var(--shadow); }
.oa-qr-mini img { width: 100%; height: 100%; object-fit: contain; }

.vote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vote-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; cursor: pointer; border: 1px solid transparent; transition: .2s; }
.vote-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.vote-card-top { display: flex; align-items: center; justify-content: space-between; }
.vote-icon { font-size: 26px; }
.vote-status { background: #eaf7ef; color: #16803c; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.vote-status.closed { background: #f0f1f4; color: var(--muted); }
.vote-card h3 { font-size: 17px; margin: 12px 0 6px; }
.vote-card p { font-size: 13px; color: var(--ink-2); margin: 0 0 16px; min-height: 40px; }
.vote-card-foot { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.vote-card-foot b { color: var(--primary); }
.vote-card-foot .arrow { margin-left: auto; color: var(--primary); font-weight: 600; }
.vote-detail { max-width: 860px; margin: 0 auto; }
.vote-hero { background: linear-gradient(120deg, #fff4f2, #fdece9); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.vote-hero h1 { font-size: 24px; margin: 12px 0 8px; }
.vote-hero p { margin: 0 0 12px; color: var(--ink-2); }
.vote-meta { font-size: 12px; color: var(--muted); }
.vote-panel { padding: 22px 26px; }
.vote-panel h3 { margin: 0 0 16px; font-size: 17px; }
.vote-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: .15s; }
.vote-option:hover, .vote-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.vote-option input { width: 17px; height: 17px; accent-color: var(--primary); }
.vote-option b { display: block; font-size: 14px; }
.vote-option small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.vote-done { background: #eaf7ef; color: #16803c; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 18px; }
.vote-result-row { margin-bottom: 18px; }
.vote-result-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.vote-result-label b { color: var(--primary); }
.vote-bar { height: 10px; background: #f0f2f5; border-radius: 6px; overflow: hidden; }
.vote-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #e6735f); border-radius: 6px; transition: width .4s; }
.vote-result-row small { color: var(--muted); font-size: 12px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; margin: 8px 0; color: var(--ink-2); }
.check-line input { width: 16px; height: 16px; accent-color: var(--primary); }

.oa-hero { display: flex; align-items: center; gap: 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }
.oa-hero img { max-width: 320px; width: 45%; height: auto; object-fit: contain; }
.oa-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--primary); }
.oa-hero h1 { font-size: 25px; margin: 6px 0 8px; }
.oa-hero p { color: var(--ink-2); margin: 0; font-size: 14px; }
.oa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.oa-card { padding-bottom: 18px; }
.oa-follow { display: flex; gap: 18px; padding: 18px 20px; }
.oa-follow h3 { margin: 0 0 6px; font-size: 16px; }
.oa-follow p { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.oa-qr { width: 110px; height: 110px; flex-shrink: 0; border: 1px dashed var(--line); border-radius: 10px; background: #fafbfc; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; }
.oa-qr img { width: 100%; height: 100%; object-fit: contain; }
.oa-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.oa-menu-row:last-child { border-bottom: none; }
.oa-menu-row b { display: block; font-size: 14px; }
.oa-menu-row small { display: block; font-size: 11px; color: var(--muted); word-break: break-all; }
.oa-card > p.lead, .oa-card > .bound-info { margin: 18px 20px 12px; }
.bound-info { background: #eaf7ef; color: #16803c; border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.8; }
.bound-info + button { margin-left: 20px; }
.oa-card .field { margin: 14px 20px; }
.oa-card > .btn { margin: 0 20px; }
.sync-note { margin: 14px 20px 0; padding: 12px 14px; background: #fafbfc; border-radius: 8px; font-size: 12px; color: var(--muted); }
.vote-wx-note { margin-top: 10px; font-size: 12px; color: #16803c; background: #eaf7ef; border-radius: 8px; padding: 8px 12px; }
.wx-identity { display: flex; align-items: center; gap: 12px; margin: 18px 20px 12px; padding: 12px 14px; background: #f7f9fc; border-radius: 10px; }
.wx-identity img, .wx-identity .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; font-size: 18px; }
.wx-identity b { font-size: 14px; display: block; }
.wx-identity small { font-size: 11px; color: var(--muted); word-break: break-all; }
.attachment-item { display: block; margin: 12px 0; }
.attachment-item video { width: 100%; max-width: 640px; border-radius: 10px; background: #000; }
.attachment-item img { max-width: 100%; border-radius: 10px; }
.attachment-item a { color: var(--primary); font-weight: 600; }
.attach-note { font-size: 11px; color: var(--muted); margin-top: 4px; }
input[type=file] { font-size: 13px; max-width: 100%; }

.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: none; }
.word-list, .user-list { padding: 6px 20px; max-height: 260px; overflow: auto; }
.word-row, .user-row, .log-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.word-row:last-child, .user-row:last-child, .log-row:last-child { border-bottom: none; }
.word-row span, .user-row small, .log-row small { color: var(--muted); font-size: 12px; }
.user-row b { display: block; }
.log-row b { color: var(--primary); }
.admin-form { display: flex; gap: 8px; padding: 14px 20px 0; }
.admin-form input, .admin-form select { min-width: 0; flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.oa-card > .form-row { margin: 16px 20px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 20px 0; }
.config-grid textarea { min-height: 130px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.oa-card > .tool-row { margin: 0 20px; }
.popup-modal { text-align: center; }
.popup-kicker { display: inline-block; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px; }
.grid-ads { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.grid-ad { width: 220px; height: 110px; flex-shrink: 0; border: 1px dashed var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; justify-content: center; background: #fafbfc; }
.grid-ad:hover { border-color: var(--primary); background: var(--primary-soft); }
.grid-ad b { font-size: 14px; }
.grid-ad small { color: var(--muted); font-size: 12px; margin-top: 4px; }

@media (max-width: 900px) {
  .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vote-grid, .vote-list, .oa-grid, .config-grid { grid-template-columns: 1fr; }
  .grid-ads { flex-wrap: wrap; }
  .grid-ad { width: 100%; height: auto; min-height: 90px; }
  .wechat-cta { flex-direction: column; align-items: flex-start; }
  .oa-hero { flex-direction: column; align-items: flex-start; }
  .oa-hero img { width: 100%; max-width: 100%; }
  .vote-card-foot { flex-wrap: wrap; }
  .admin-form { flex-wrap: wrap; }
}
