/* ============================================================
   东方智学 · 前台主题（亮色清新）
   配色：主蓝 #3d6df6 / 背景渐变浅蓝 / 卡片白 / 圆角柔和阴影
   ============================================================ */

:root {
  --primary: #3d6df6;
  --primary-2: #6f95ff;
  --primary-soft: #eaf0ff;
  --teal: #0ea5a0;
  --orange: #f59e0b;
  --pink: #ec4899;
  --green: #22a06b;
  --red: #e5484d;
  --bg: #f2f5fd;
  --card: #ffffff;
  --text: #232a3d;
  --text-2: #5b6685;
  --text-3: #97a1ba;
  --line: #e6ebf6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(55, 80, 160, 0.08);
  --shadow-lg: 0 14px 44px rgba(55, 80, 160, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(109, 143, 255, .14), transparent 60%),
    radial-gradient(900px 380px at -10% 8%, rgba(14, 165, 160, .10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

main { flex: 1; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 228, 245, .9);
}
.navbar-inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #3d6df6, #7aa2ff);
  color: #fff; font-weight: 800; font-size: 18px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(61, 109, 246, .35);
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand-name small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 1px; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 7px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: .15s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a.on { color: var(--primary); background: var(--primary-soft); font-weight: 700; }

.nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search form { display: flex; align-items: center; background: #f1f4fc; border-radius: 999px; padding: 2px 4px 2px 14px; border: 1.5px solid transparent; transition: .15s; }
.nav-search form:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(61,109,246,.12); }
.nav-search input { border: none; outline: none; background: transparent; width: 150px; font-size: 13.5px; color: var(--text); }
.nav-search button { border: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 14px; }

.nav-user { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--primary), #5b89ff);
  color: #fff !important; font-weight: 600; font-size: 14px;
  padding: 8px 18px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(61, 109, 246, .30); transition: .15s;
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); color: #fff !important; }
.btn-ghost { color: var(--text-2); font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }

/* 头像（首字彩色圆形） */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px;
  background: hsl(var(--hue, 222) 65% 55%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.xs { width: 26px; height: 26px; font-size: 12px; }

.user-drop { position: relative; }
.user-drop-btn { display: flex; align-items: center; gap: 9px; border: none; background: none; cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.user-drop-btn:hover { background: var(--primary-soft); }
.user-drop .name { font-size: 14px; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 90;
}
.user-drop.open .user-menu { display: block; animation: drop .14s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.user-menu a, .user-menu form button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2);
  border: none; background: none; cursor: pointer; font-family: inherit;
}
.user-menu a:hover, .user-menu form button:hover { background: #f2f6ff; color: var(--primary); }
.user-menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- Flash 提示 ---------- */
.flash-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 300; width: min(92vw, 460px); }
.flash { padding: 12px 18px; border-radius: 12px; margin-bottom: 8px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow-lg); animation: drop .2s ease; }
.flash.success { background: #ecfdf3; color: #0a7d45; border: 1px solid #b7ecd0; }
.flash.warning { background: #fff8e8; color: #a05c00; border: 1px solid #ffe3ae; }
.flash.error   { background: #fff0f1; color: #c02b40; border: 1px solid #ffd2d6; }
.flash.info    { background: #eef4ff; color: #2b54c9; border: 1px solid #cfe0ff; }

/* ---------- 首页 Hero ---------- */
.hero {
  margin-top: 22px;
  background: linear-gradient(120deg, #3d6df6 0%, #5b8cff 55%, #7aa2ff 100%);
  border-radius: 20px; color: #fff; padding: 34px 38px; position: relative; overflow: hidden;
  box-shadow: 0 16px 44px rgba(61, 109, 246, .28);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -100px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.hero::before {
  content: ""; position: absolute; right: 70px; bottom: -140px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.hero .slogan { margin-top: 6px; font-size: 15px; opacity: .94; }
.hero-actions { margin-top: 20px; display: flex; gap: 12px; position: relative; z-index: 1; }
.hero-actions .btn-hero { background: #fff; color: var(--primary); font-weight: 700; padding: 10px 24px; border-radius: 999px; font-size: 14.5px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.hero-actions .btn-hero.ghost { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.hero-stats { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); display: flex; gap: 26px; z-index: 1; text-align: center; }
.hero-stats .n { font-size: 26px; font-weight: 800; }
.hero-stats .t { font-size: 12.5px; opacity: .85; }

/* ---------- Banner 轮播 ---------- */
.banner-wrap { margin-top: 20px; }
.banner { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 8 / 2.6; background: #dfe7fb; }
.banner .slides { display: flex; height: 100%; transition: transform .5s ease; }
.banner .slide { min-width: 100%; height: 100%; position: relative; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .slide .cap { position: absolute; left: 34px; bottom: 26px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.banner .slide .cap b { font-size: 22px; display: block; }
.banner-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; }
.banner-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: .2s; }
.banner-dots i.on { background: #fff; width: 22px; border-radius: 6px; }
.banner:empty { display: none; }

/* ---------- 通用区块 ---------- */
.sec { margin-top: 24px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-head h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sec-head h2::before { content: ""; width: 5px; height: 19px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary-2)); }
.sec-head .more { font-size: 13px; color: var(--text-3); }
.sec-head .more:hover { color: var(--primary); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(225,232,248,.75); }

/* 模块（板块）导航 */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mod-card { padding: 18px; transition: .18s; }
.mod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(109,143,255,.5); }
.mod-card .mod-top { display: flex; gap: 12px; align-items: center; }
.mod-icon { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 23px; background: linear-gradient(135deg, var(--sc1,#eaf0ff), var(--sc2,#eaf0ff)); }
.mod-card h3 { font-size: 16px; font-weight: 700; }
.mod-card .mod-sub { font-size: 12px; color: var(--text-3); }
.mod-card p { font-size: 13px; color: var(--text-2); margin: 10px 0 4px; height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mod-card .mod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.mod-card .enter { font-size: 12.5px; color: var(--primary); font-weight: 600; }

/* ---------- 布局：帖子流 + 侧栏 ---------- */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.sticky-side { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 18px; }

/* 帖子流 */
.stream .tabs { display: flex; gap: 6px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.stream .tabs a { padding: 10px 16px; font-size: 14.5px; color: var(--text-2); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.stream .tabs a.on { color: var(--primary); border-color: var(--primary); font-weight: 700; }
.stream-body { padding: 6px 4px; }
.stream-body.empty { padding: 56px 20px; text-align: center; color: var(--text-3); }
.empty-ico { font-size: 44px; margin-bottom: 10px; }

/* 帖子列表行 */
.topic { display: flex; gap: 14px; padding: 15px 14px; border-radius: 12px; transition: .13s; }
.topic:hover { background: #f7faff; }
.topic + .topic { border-top: 1px solid #f1f4fb; }
.topic .t-cover { width: 116px; height: 74px; border-radius: 10px; object-fit: cover; flex: none; background: #eef2fd; }
.topic-main { flex: 1; min-width: 0; }
.topic-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.topic:hover .topic-title { color: var(--primary); }
.topic-title .badge { vertical-align: 2px; }
.topic .t-summary { font-size: 13px; color: var(--text-2); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.topic .t-meta { margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.topic .t-meta .who { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.topic .t-meta .split { width: 1px; height: 12px; background: #d9e0f0; }
.topic .t-nums { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-3); flex: none; }
.topic .t-nums b { color: var(--text-2); font-weight: 600; }

.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600; margin-left: 6px; line-height: 1.5; }
.badge.top { background: #ffe9d6; color: #d76a00; }
.badge.essence { background: #fff0c2; color: #b07c00; }
.badge.anon { background: #f3e8ff; color: #9333ea; }
.badge.hot { background: #ffe1e3; color: #d6334a; }
.badge.new { background: #e2f7ec; color: #0c8f53; }
.badge.pending { background: #fff0c2; color: #b07c00; }
.badge.hidden { background: #e8ebf2; color: #7a8398; }
.badge.owner { background: var(--primary-soft); color: var(--primary); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: #f2f5fd; border-radius: 7px; padding: 3px 9px; color: #55618a; font-weight: 500; }
.tag.wall { background: #f6edff; color: #8b2fd6; }
.tag.gallery { background: #e8f8f4; color: #0b8f6d; }

/* 侧栏小组件 */
.side-card { padding: 18px; }
.side-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.side-card h3::before { content: ""; width: 4px; height: 15px; border-radius: 4px; background: linear-gradient(var(--primary), var(--primary-2)); }
.side-announce { font-size: 13.5px; color: var(--text-2); line-height: 1.9; white-space: pre-line; }
.hot-list a { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; font-size: 14px; color: var(--text-2); border-bottom: 1px dashed #eef1f8; }
.hot-list a:last-child { border-bottom: none; }
.hot-list a .rank { font-weight: 800; color: var(--text-3); font-size: 13px; min-width: 18px; }
.hot-list a:nth-child(-n+3) .rank { color: var(--orange); }
.hot-list a span.ht { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list a em { font-style: normal; margin-left: auto; font-size: 12px; color: var(--text-3); flex: none; }

/* 帖子详情 */
.crumb { font-size: 13px; color: var(--text-3); margin: 20px 0 4px; }
.crumb a:hover { color: var(--primary); }
.thread-card { padding: 26px 28px 18px; }
.thread-head .t-title { font-size: 22px; font-weight: 800; line-height: 1.5; }
.thread-author { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.thread-author .who { font-weight: 700; }
.thread-author .meta { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.thread-content { padding: 20px 2px 8px; font-size: 15.5px; line-height: 2; white-space: pre-line; word-break: break-word; color: #2b3349; }
.thread-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.thread-imgs img { width: 100%; border-radius: 12px; cursor: zoom-in; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; transition: .18s; }
.thread-imgs img:hover { transform: scale(1.02); }
.thread-tools { display: flex; gap: 10px; align-items: center; margin: 20px 0 4px; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--text-2); transition: .15s; }
.like-btn:hover { border-color: var(--pink); color: var(--pink); }
.like-btn.liked { background: #fdeef2; border-color: var(--pink); color: var(--pink); font-weight: 600; }
.thread-tools .stats { margin-left: auto; color: var(--text-3); font-size: 13px; display: flex; gap: 14px; }

.replies { margin-top: 20px; }
.replies .sec-head { margin-bottom: 6px; }
.reply-item { display: flex; gap: 13px; padding: 17px 6px; border-bottom: 1px solid #f1f4fb; }
.reply-body { flex: 1; min-width: 0; }
.reply-body .r-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.reply-body .r-top .name { font-weight: 700; }
.reply-body .r-top .floor { color: var(--text-3); font-size: 12px; margin-left: auto; }
.reply-body .r-text { margin-top: 7px; font-size: 14.5px; line-height: 1.9; white-space: pre-line; word-break: break-word; }

.reply-box { margin-top: 20px; }
.reply-box textarea, .form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; resize: vertical; outline: none; font-family: inherit; background: #fbfcff; min-height: 92px; transition: .15s; }
.reply-box textarea:focus, .form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(61,109,246,.10); }
.reply-box .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* ---------- 表单（登录注册发帖等） ---------- */
.auth-wrap { max-width: 430px; margin: 6vh auto 0; }
.auth-card { padding: 34px 36px; }
.auth-card h1 { font-size: 22px; text-align: center; font-weight: 800; }
.auth-card .lead { text-align: center; color: var(--text-3); font-size: 13.5px; margin: 6px 0 20px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 14px 0 6px; }
.form input[type="text"], .form input[type="password"], .form input[type="email"], .form input[type="number"], .form select, .form input:not([type]) {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 14.5px;
  outline: none; background: #fbfcff; transition: .15s; color: var(--text);
}
.form input:focus, .form select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(61,109,246,.10); }
.form .hint { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.form .check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin-top: 14px; cursor: pointer; }
.form .check input { width: auto; }
.btn-block { width: 100%; justify-content: center; margin-top: 20px; padding: 11px; font-size: 15px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--text-3); }

/* 发帖 */
.editor-card { padding: 24px 28px; }
.editor-card .row2 { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
.uploader { margin-top: 14px; }
.uploader .up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.up-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #f0f3fc; }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }
.up-add { aspect-ratio: 1; border: 1.8px dashed #c6d2f0; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); font-size: 24px; cursor: pointer; background: #fbfcff; }
.up-add:hover { border-color: var(--primary); color: var(--primary); }
.editor-tools { display: flex; align-items: center; gap: 12px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; row-gap: 10px; }
.editor-tools .spacer { flex: 1; }
.anon-switch, label.anon-switch {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2); cursor: pointer;
  flex: 0 1 auto; min-width: 0; margin: 0; font-weight: 600;
}
.anon-switch .txt {
  display: inline-flex; flex-direction: column; line-height: 1.45; min-width: 0;
}
.anon-switch .txt small {
  font-size: 12px; color: var(--text-3); font-weight: 400; white-space: normal;
}
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; margin: 0; padding: 0; border: none; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #d6ddec; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { left: 21px; }

/* ---------- 校园墙 ---------- */
.wall-banner { border-radius: 16px; padding: 18px 22px; color: #fff; background: linear-gradient(120deg, #8b2fd6, #c55ce8); display: flex; align-items: center; gap: 14px; }
.wall-banner .big { font-size: 20px; font-weight: 800; }
.wall-tip { background: #faf6ff; border: 1px dashed #d9baf2; color: #7c4aa8; padding: 12px 16px; border-radius: 12px; font-size: 13px; margin-top: 14px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 16px; }
.wall-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: .16s; }
.wall-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wall-card .w-head { display: flex; align-items: center; gap: 10px; }
.wall-card .w-body { font-size: 14.5px; line-height: 1.85; white-space: pre-line; color: #2e3550; max-height: 200px; overflow: hidden; }
.wall-card .w-foot { display: flex; align-items: center; font-size: 12.5px; color: var(--text-3); }
.wall-card .w-foot .lv { margin-left: auto; display: inline-flex; gap: 8px; }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.gal-card { overflow: hidden; display: flex; flex-direction: column; transition: .16s; }
.gal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gal-card .g-img { aspect-ratio: 4/3; width: 100%; object-fit: cover; display: block; cursor: zoom-in; background: #eef2fd; }
.gal-card .g-body { padding: 13px 15px 15px; }
.gal-card .g-title { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-card .g-meta { font-size: 12.5px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 8px; }

/* ---------- 板块页内页头 ---------- */
.board-hero { padding: 22px 26px; display: flex; gap: 16px; align-items: center; }
.board-hero .b-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; font-size: 32px; background: linear-gradient(135deg, var(--primary-soft), #f1e8ff); flex: none; }
.board-hero h1 { font-size: 21px; font-weight: 800; }
.board-hero p { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.board-hero .spacer { flex: 1; }
.board-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin-top: 16px; flex-wrap: wrap; }
.board-bar .sort a { font-size: 13.5px; padding: 6px 13px; border-radius: 999px; color: var(--text-2); }
.board-bar .sort a.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.board-bar .cnt { font-size: 13px; color: var(--text-3); }

/* 子板块 chips（分区页） */
.sub-board { padding: 12px 14px; border-radius: 12px; display: flex; align-items: center; gap: 10px; transition: .13s; }
.sub-board:hover { background: #f6f9ff; }
.sub-board .sb-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--primary-soft); flex: none; }
.sub-board .sb-name { font-weight: 700; font-size: 14.5px; }
.sub-board .sb-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.sub-board .sb-right { margin-left: auto; font-size: 12.5px; color: var(--text-3); display: flex; gap: 12px; align-items: center; flex: none; }
.sub-board .enter { background: var(--primary); color: #fff !important; font-size: 12.5px; padding: 4px 13px; border-radius: 999px; }
.sub-list { display: flex; flex-direction: column; padding: 8px; }
.sub-list > * + * { border-top: 1px solid #f1f4fb; }

/* ---------- 个人中心 ---------- */
.profile-head { padding: 26px; display: flex; gap: 18px; align-items: center; }
.profile-head .info h1 { font-size: 22px; font-weight: 800; }
.profile-head .info .tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 30px; padding: 14px 30px; border-top: 1px solid var(--line); }
.profile-stats .n { font-size: 20px; font-weight: 800; color: var(--primary); }
.profile-stats .t { font-size: 12.5px; color: var(--text-3); }
.profile-tabs { display: flex; gap: 8px; margin: 18px 0; }
.profile-tabs a { padding: 8px 18px; border-radius: 999px; background: #eef1fb; color: var(--text-2); font-size: 14px; }
.profile-tabs a.on { background: var(--primary); color: #fff; font-weight: 700; }

/* ---------- 搜索 / 结果 ---------- */
.search-hero { padding: 26px 28px; text-align: center; }
.search-hero .big-input { display: flex; max-width: 560px; margin: 14px auto 0; background: #f1f4fc; border-radius: 999px; padding: 4px 4px 4px 20px; border: 1.5px solid transparent; }
.search-hero .big-input:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(61,109,246,.12); }
.search-hero .big-input input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; }
.search-hero .big-input button { border: none; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 15px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 0 6px; flex-wrap: wrap; }
.pager-info { font-size: 12.5px; color: var(--text-3); margin-right: 6px; }
.pager-btn { min-width: 34px; text-align: center; padding: 6px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.pager-btn:hover { border-color: var(--primary); color: var(--primary); }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pager-btn.disabled { opacity: .45; cursor: not-allowed; }
.pager-omit { color: var(--text-3); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 44px; border-top: 1px solid rgba(220,228,245,.9); background: rgba(255,255,255,.6); }
.footer-inner { padding: 26px 18px 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-brand .mini { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; display: grid; place-items: center; font-size: 13px; }
.footer-links { display: flex; gap: 16px; font-size: 13px; color: var(--text-3); }
.footer-links a:hover { color: var(--primary); }
.copyright { font-size: 12.5px; color: var(--text-3); }

/* ---------- 轻量提示条 ---------- */
.muted-empty { text-align: center; padding: 40px 0; color: var(--text-3); }
.muted-empty .e { font-size: 40px; margin-bottom: 8px; }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(12,16,32,.82); z-index: 500; display: none; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,.5); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .layout-2col { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .nav-search input { width: 90px; }
  .nav-links a { padding: 7px 9px; font-size: 13.5px; }
  .hero-stats { display: none; }
  .editor-card .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .brand-name small { display: none; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .topic .t-cover { width: 92px; height: 64px; }
  .topic .t-nums { display: none; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 24px; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 通用网页内卡片弹层（图形验证码 / 测试邮件） ---------- */
.v-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(15, 22, 44, .45);
  backdrop-filter: blur(2px);
  display: none;              /* 默认隐藏；由 .open 类控制显示 */
}
.v-overlay.open {
  display: grid; place-items: center; padding: 18px;
}
.v-card {
  width: min(430px, 96vw); background: #fff; border-radius: 18px;
  box-shadow: 0 24px 80px rgba(20, 40, 100, .28); overflow: hidden;
  animation: drop .16s ease;
}
.v-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; background: linear-gradient(120deg, #f0f5ff, #f4f9ff);
  font-size: 15.5px; border-bottom: 1px solid var(--line);
}
.v-close { border: none; background: none; font-size: 15px; cursor: pointer; color: var(--text-3); padding: 4px 8px; border-radius: 8px; }
.v-close:hover { background: #fff; color: var(--text); }
.v-card-body { padding: 18px 20px; }
.v-desc { font-size: 13.5px; color: var(--text-2); margin: 14px 20px 4px; line-height: 1.8; }
.v-captcha-row { display: flex; gap: 10px; padding: 12px 20px 2px; }
.v-captcha-row img { width: auto; height: 48px; border-radius: 10px; cursor: pointer; border: 1.5px solid var(--line); flex: none; background: #fff; object-fit: contain; }
.v-captcha-row .v-refresh-hint { display: none; }
.v-captcha-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 16px; letter-spacing: 3px; text-align: center; outline: none; background: #fbfcff; text-transform: uppercase;
}
.v-captcha-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(61,109,246,.1); }
.v-msg { margin: 10px 20px 0; border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.7; }
.v-msg.ok { background: #ecfdf3; color: #0a7d45; border: 1px solid #b7ecd0; }
.v-msg.err { background: #fff0f1; color: #c02b40; border: 1px solid #ffd2d6; }
.v-card-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 20px; }
.v-card-actions .btn-primary { padding: 8px 22px; }
.v-card-actions .btn-ghost { padding: 8px 14px; }
.v-test-form { padding: 16px 20px; }
.v-test-form label { font-size: 12.5px; color: var(--text-2); display: block; margin-bottom: 6px; }
.v-test-form .v-row { display: flex; gap: 8px; }
.v-test-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }
.v-test-form input:focus { border-color: var(--primary); }


/* ---------- 危险操作确认弹层（页面内，替代浏览器原生 confirm） ---------- */
.pop-overlay { position: fixed; inset: 0; z-index: 700; background: rgba(15,22,44,.5); backdrop-filter: blur(2px); display: none; place-items: center; padding: 18px; }
.pop-overlay.open { display: grid; }
.pop-card { width: min(430px, 94vw); background: #fff; border-radius: 16px; box-shadow: 0 24px 80px rgba(20,40,100,.3); overflow: hidden; animation: drop .16s ease; }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(120deg, #fff2f0, #fff7f2); color: #b3382f; border-bottom: 1px solid #ffe0d8; font-size: 15px; }
.pop-close { border: none; background: none; font-size: 15px; cursor: pointer; color: #c99; padding: 3px 8px; border-radius: 8px; }
.pop-close:hover { background: #fff; }
.pop-body { padding: 16px 20px; }
.pop-msg { font-size: 14px; color: #333b52; line-height: 1.9; }
.pop-tip { font-size: 13px; color: #7a5b2a; margin-top: 12px; line-height: 1.8; }
.pop-tip b { color: #d6334a; }
.pop-input { width: 100%; margin-top: 8px; border: 1.5px solid #ffc9c4; border-radius: 10px; padding: 9px 12px; font-size: 15px; text-align: center; outline: none; background: #fff; box-sizing: border-box; }
.pop-input:focus { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.pop-err { background: #fff0f1; color: #c02b40; border: 1px solid #ffd2d6; border-radius: 8px; padding: 7px 11px; font-size: 12.5px; margin-top: 8px; }
.pop-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid #f2f2f2; }
.pop-cancel { border: 1.5px solid #e2e7f2; background: #fff; color: #5b6685; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.pop-cancel:hover { border-color: #c9d2e6; }
.pop-ok { background: linear-gradient(135deg, #e5484d, #ff6a6e); color: #fff; border: none; padding: 8px 24px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 16px rgba(229,72,77,.3); }
.pop-ok:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

