/* ============================================================
   星河 · 光遇攻略社区 —— 全局样式（天空 / 云海 / 星光主题）
   ============================================================ */
:root {
  --sky-1: #7fb0ff;
  --sky-2: #b6c9ff;
  --sky-3: #e3d7ff;
  --dawn: #ffe3cf;
  --ink: #33405c;
  --ink-soft: #66738f;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --line: rgba(90, 120, 190, 0.16);
  --accent: #5b7df2;
  --accent-deep: #4560d8;
  --gold: #e9a23b;
  --rose: #e86d7f;
  --green: #4fae7e;
  --shadow: 0 10px 30px rgba(70, 95, 160, 0.14);
  --shadow-sm: 0 4px 14px rgba(70, 95, 160, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -8%, rgba(255, 214, 165, 0.55), transparent 60%),
    radial-gradient(900px 460px at -10% 12%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(168deg, #a9c6ff 0%, #cfd8ff 38%, #efe4ff 68%, #ffe9d8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
}
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(70px); opacity: 0.5; pointer-events: none;
}
body::before { width: 460px; height: 460px; background: #fff3d8; top: 38%; left: -160px; }
body::after  { width: 520px; height: 520px; background: #c9e0ff; bottom: -180px; right: -150px; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ---------- 顶部导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.55));
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 4px; height: 62px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; margin-right: 8px; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6f9bff, #a58bff 60%, #ffc27a);
  color: #fff; font-size: 19px; box-shadow: 0 4px 12px rgba(91,125,242,.4);
}
.brand small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-soft); letter-spacing: 2px; line-height: 1; }
.nav-link {
  color: var(--ink); font-weight: 600; font-size: 14.5px;
  padding: 7px 12px; border-radius: 999px; transition: .15s;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.85); color: var(--accent-deep); box-shadow: var(--shadow-sm); opacity: 1; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #6f9bff, #7f7df2); color: #fff;
  box-shadow: 0 6px 16px rgba(91,125,242,.35); transition: .15s; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91,125,242,.45); opacity: 1; }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(255,255,255,.85); color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.btn.gold { background: linear-gradient(135deg, #ffb85c, #f3903f); box-shadow: 0 6px 16px rgba(233,162,59,.4); }
.btn.danger { background: linear-gradient(135deg, #ff8d9a, #ef5f74); box-shadow: 0 6px 16px rgba(232,109,127,.35); }
.btn.mini { padding: 4px 12px; font-size: 12.5px; box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: 13px; box-shadow: var(--shadow-sm); }
.btn.block { width: 100%; justify-content: center; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm); }
.user-chip .av { font-size: 21px; }
.user-chip b { font-size: 14px; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 34px 0 16px; }
.section-title h2 { font-size: 22px; letter-spacing: .5px; }
.section-title h2::before { content: "✦ "; color: var(--gold); font-size: .85em; }
.section-title .more { margin-left: auto; font-size: 13.5px; font-weight: 600; }
.muted { color: var(--ink-soft); font-size: 13px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2,1fr); } .g3 { grid-template-columns: repeat(2,1fr); } .g2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } }

/* ---------- 帖子卡片 ---------- */
.post-card { display: block; padding: 18px 20px; transition: .18s; position: relative; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.badge.cat { background: #e7eeff; color: var(--accent-deep); }
.badge.ch { background: #fff0dc; color: #b5731b; }
.badge.pin { background: linear-gradient(90deg,#ffe9c2,#ffd9a0); color: #a8680a; }
.badge.role-admin { background: linear-gradient(90deg,#ffe9c2,#ffcf9e); color: #9a6208; }
.badge.role-user { background: #eef1f7; color: #7a86a0; }
.badge.kind-常驻 { background: #e7f7ee; color: #2f8f63; }
.badge.kind-季节 { background: #f3e8ff; color: #8b5fe0; }
.badge.res { background: #e7f7ee; color: #2f8f63; }
.badge.pend { background: #fff0dc; color: #b5731b; }
.badge.ban { background: #ffe7ea; color: #d24b60; }
.post-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.post-card h3 .pin-mark { color: var(--gold); margin-right: 4px; }
.post-excerpt { color: var(--ink-soft); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.meta .who { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); }
.meta .who .av { font-size: 16px; }
.meta i { font-style: normal; }
.dot { opacity: .45; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; text-align: center; padding: 62px 16px 46px; overflow: hidden; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(120deg, #3f63d8 10%, #8a5fe0 55%, #e08a3e 110%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .slogan { margin-top: 10px; color: var(--ink-soft); font-size: 16px; letter-spacing: 3px; }
.hero .clouds { position: absolute; inset: 0; pointer-events: none; }
.hero .clouds span { position: absolute; background: rgba(255,255,255,.55); border-radius: 999px; filter: blur(6px); }
.hero .clouds span:nth-child(1) { width: 160px; height: 34px; left: 6%; top: 22%; opacity: .5; }
.hero .clouds span:nth-child(2) { width: 220px; height: 40px; right: 8%; top: 14%; opacity: .6; }
.hero .clouds span:nth-child(3) { width: 120px; height: 26px; left: 18%; bottom: 8%; opacity: .45; }
.stats-row { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.stat-chip { background: rgba(255,255,255,.8); border-radius: 999px; padding: 8px 20px; box-shadow: var(--shadow-sm); display: flex; gap: 8px; align-items: baseline; }
.stat-chip b { font-size: 19px; color: var(--accent-deep); }
.stat-chip span { font-size: 13px; color: var(--ink-soft); }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 34px; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: repeat(2,1fr); } }
.quick-tile {
  background: rgba(255,255,255,.8); border-radius: var(--radius-sm); padding: 16px 10px;
  text-align: center; box-shadow: var(--shadow-sm); transition: .18s; border: 1px solid rgba(255,255,255,.8);
}
.quick-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-tile .ic { font-size: 27px; }
.quick-tile .nm { font-weight: 700; font-size: 14px; margin-top: 6px; color: var(--ink); }
.quick-tile .ds { font-size: 11.5px; color: var(--ink-soft); }

/* ---------- 筛选 chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.7); color: var(--ink); box-shadow: var(--shadow-sm);
  border: 1px solid transparent; transition: .15s; display: inline-flex; align-items: center; gap: 5px;
}
.chip:hover { opacity: 1; box-shadow: var(--shadow); }
.chip.on { background: linear-gradient(135deg, #6f9bff, #8a6df0); color: #fff; }
.chip.plain { background: transparent; box-shadow: none; border: 1px solid var(--line); }

/* ---------- 表单 ---------- */
.form-card { max-width: 760px; margin: 30px auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field label .req { color: var(--rose); }
.field input[type=text], .field input[type=password], .field input[type=date],
.field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: rgba(255,255,255,.9);
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14.5px; font-family: inherit;
  color: var(--ink); outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,125,242,.15); }
.field textarea { resize: vertical; min-height: 200px; line-height: 1.7; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.field .count { float: right; font-size: 12px; color: var(--ink-soft); }
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; background: rgba(255,255,255,.9); font-size: 14px; outline: none; font-family: inherit; }
.searchbar input:focus { border-color: var(--accent); }
.auth-card { max-width: 400px; margin: 60px auto; padding: 30px; text-align: center; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 20px; }
.auth-card .field { text-align: left; }
.auth-switch { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 闪存消息 ---------- */
.flashes { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 99; display: grid; gap: 8px; width: min(92vw, 480px); }
.flash { padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center; box-shadow: var(--shadow); animation: drop .3s ease; }
.flash.ok { background: #e3f6ec; color: #23835a; border: 1px solid #b7e8cd; }
.flash.warn { background: #fff3dc; color: #a06a10; border: 1px solid #ffe1a8; }
.flash.error { background: #ffe9ec; color: #c23b52; border: 1px solid #ffc6cf; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- 详情页 ---------- */
.article { max-width: 860px; margin: 26px auto; padding: 30px 34px; }
.article h1 { font-size: 27px; line-height: 1.4; margin-bottom: 14px; }
.article .content { margin-top: 20px; font-size: 15.5px; line-height: 2; white-space: pre-line; overflow-wrap: break-word; }
.article .content::first-line { } 
.byline { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.55); border-radius: 999px; width: fit-content; }
.byline .av { font-size: 24px; }
.actionbar { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.like-btn.on { background: linear-gradient(135deg, #ff9db0, #f06d84); box-shadow: 0 6px 16px rgba(232,109,127,.35); }
.fav-btn.on { background: linear-gradient(135deg, #ffd27a, #f3a24b); box-shadow: 0 6px 16px rgba(233,162,59,.35); }
.comment-box { margin-top: 30px; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.comment-item .av { font-size: 26px; flex-shrink: 0; }
.comment-item .cb { min-width: 0; }
.comment-item .cm { font-size: 14.5px; margin-top: 3px; overflow-wrap: break-word; white-space: pre-line; }
.side-list { position: sticky; top: 90px; }

/* ---------- 社区 ---------- */
.channel-tabs { display: flex; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.posting-bar { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding: 16px 20px; }
.posting-bar .txt { flex: 1; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 先祖卡片 ---------- */
.ancestor-card { text-align: left; }
.ancestor-card .big { font-size: 34px; display: block; text-align: center; margin-bottom: 8px; }
.ancestor-card h3 { font-size: 15.5px; margin-bottom: 6px; text-align: center; }
.ancestor-card .info { font-size: 12.8px; color: var(--ink-soft); line-height: 1.9; }
.ancestor-card .info b { color: var(--ink); }
.group-label { margin: 26px 0 4px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.group-label small { font-weight: 600; color: var(--ink-soft); font-size: 12.5px; }

/* ---------- 日历 ---------- */
.cal-head { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.cal-head h2 { font-size: 24px; }
.cal-nav { padding: 6px 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); padding: 4px 0; }
.cal-day { min-height: 86px; background: rgba(255,255,255,.72); border-radius: 12px; padding: 7px 8px; box-shadow: var(--shadow-sm); position: relative; font-size: 13px; transition: .15s; }
.cal-day:hover { box-shadow: var(--shadow); }
.cal-day.empty { background: transparent; box-shadow: none; }
.cal-day .d { font-weight: 800; }
.cal-day.today { outline: 2px solid var(--gold); }
.cal-day .ev { margin-top: 4px; font-size: 11px; border-radius: 7px; padding: 1px 6px; color: #fff; font-weight: 600; line-height: 1.55; overflow: hidden; display: block; white-space: nowrap; text-overflow: ellipsis; }
.ev-revisit { background: #7f9cf5; }
.ev-event { background: #59b58b; }
.ev-festival { background: #e8934e; }
.cal-side .ev-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cal-side .date-badge { min-width: 46px; text-align: center; background: #eef2ff; border-radius: 10px; padding: 4px 2px; font-size: 11px; font-weight: 800; color: var(--accent-deep); }

/* ---------- 个人主页 ---------- */
.profile-head { text-align: center; padding: 36px 20px 28px; }
.profile-head .av { font-size: 58px; }
.profile-head h2 { margin-top: 8px; font-size: 24px; }
.profile-head .bio { color: var(--ink-soft); margin-top: 6px; }
.pstats { display: flex; justify-content: center; gap: 34px; margin-top: 20px; flex-wrap: wrap; }
.pstats .pn { font-size: 22px; font-weight: 900; color: var(--accent-deep); }
.pstats .pl { font-size: 12.5px; color: var(--ink-soft); }
.profile-tabs { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }

/* ---------- 表格（管理后台） ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 12px; color: var(--ink-soft); letter-spacing: .5px; }
.tbl tr:hover td { background: rgba(255,255,255,.55); }
.admin-sec { scroll-margin-top: 80px; }
.admin-sec h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-tile { background: var(--card-solid); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); text-align: center; }
.stat-tile b { font-size: 26px; color: var(--accent-deep); display: block; }
.stat-tile span { font-size: 12.5px; color: var(--ink-soft); }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.inline-form { display: inline; }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mini-input { width: 130px; }
.row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) { .row-2col { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.footer { margin-top: 60px; padding: 26px 0 34px; text-align: center; color: var(--ink-soft); font-size: 13px; letter-spacing: 1px; }
.footer .heart { color: var(--rose); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0 6px; flex-wrap: wrap; }
.page-link { min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.75); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.page-link.on { background: linear-gradient(135deg, #6f9bff, #8a6df0); color: #fff; }
.empty-state { text-align: center; padding: 46px 20px; color: var(--ink-soft); }
.empty-state .ic { font-size: 42px; }
.empty-state p { margin-top: 8px; }
.error-hero { text-align: center; padding: 80px 20px; }
.error-hero .code { font-size: 80px; font-weight: 900; background: linear-gradient(120deg,#3f63d8,#8a5fe0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv b { color: var(--ink); text-align: right; }

/* ---------- 图片 / 表情 / 反应（v1.1 新增） ---------- */
.rich-img { max-width: 100%; border-radius: 14px; display: block; margin: 8px 0; box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.9); }
.comment-item .cm .rich-img { margin: 4px 0; border-radius: 10px; max-height: 340px; width: auto; }
.react-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.react-btn { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: rgba(255,255,255,.85); border-radius: 999px; padding: 3px 11px; cursor: pointer; font-size: 14px; font-family: inherit; transition: .15s; }
.react-btn span { font-size: 12px; color: var(--ink-soft); font-weight: 800; margin-left: 1px; }
.react-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.react-btn.on { background: #fff0dc; border-color: #f0c078; }
.react-btn.on span { color: #a8680a; }
.react-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.emoji-quick { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.eq-btn { border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; padding: 3px 4px; border-radius: 8px; transition: .12s; font-family: inherit; }
.eq-btn:hover { background: #eef2ff; transform: scale(1.25); }
.up-btn { cursor: pointer; }
.up-status { font-size: 12.5px; color: var(--ink-soft); margin-left: 8px; }
.up-status.err { color: var(--rose); }
.up-status.ok { color: var(--green); }
.emoji-pick { display: flex; gap: 5px; flex-wrap: wrap; }
.emoji-pick .pick span { font-size: 23px; padding: 3px 7px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; display: inline-block; transition: .12s; }
.emoji-pick .pick span:hover { border-color: #f0c078; background: #fff6e8; }
.emoji-pick .pick.on span { border-color: #f0c078; background: #fff0dc; box-shadow: var(--shadow-sm); }

/* ---------- v1.2：公告横幅 / 复刻倒计时 / 富文本排版 / 移动端 ---------- */
.banner { display: flex; align-items: center; gap: 12px; margin: -10px 0 4px; padding: 13px 20px; border-left: 4px solid var(--gold); transition: .18s; }
.banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.banner-ic { font-size: 22px; flex-shrink: 0; }
.banner-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-txt b { font-size: 14.5px; }
.banner-go { color: var(--accent); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.cd-card { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,241,222,.9)); border-color: rgba(240,192,120,.5); }
.cd-head { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #a8680a; }
.cd-title { font-size: 17px; font-weight: 800; margin-top: 6px; line-height: 1.45; }
.cd-date { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap; }
.cd-detail { margin-top: 8px; font-size: 12.5px; line-height: 1.6; }
.article .content { font-size: 15.5px; line-height: 1.95; }
.article .content h3, .article .content h4, .article .content h5 { margin: 18px 0 8px; line-height: 1.5; }
.article .content h3 { font-size: 19px; }
.article .content h4 { font-size: 17px; }
.article .content h5 { font-size: 15.5px; color: var(--accent-deep); }
.article .content h3::before, .article .content h4::before { content: "✦ "; color: var(--gold); font-size: .8em; }
.article .content code { background: rgba(91,125,242,.08); border: 1px solid rgba(91,125,242,.15); padding: 1px 7px; border-radius: 6px; font-size: 13px; font-family: ui-monospace, Consolas, monospace; }
.article .content b { color: var(--accent-deep); }
.rich-quote { border-left: 4px solid var(--accent); background: rgba(255,255,255,.5); margin: 10px 0; padding: 8px 14px; color: var(--ink-soft); }
.rich-li { position: relative; padding-left: 16px; }
.rich-li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 900; }
.comment-item .cm { white-space: pre-line; overflow-wrap: break-word; }
.comment-item .cm b { color: var(--accent-deep); }
.comment-item .cm code { background: rgba(91,125,242,.08); padding: 0 5px; border-radius: 5px; font-size: 12.5px; }
.comment-item .cm .rich-li { display: block; }
/* 评论区富文本无需 pre-line 折叠块级标签间的空行 */
.comment-item .cm .rich-li, .comment-item .cm h4, .comment-item .cm .rich-quote { white-space: normal; }
@media (max-width: 760px) {
  .nav-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 7px 10px; font-size: 14px; }
  .brand { margin-right: 2px; }
  .banner-txt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .hero { padding: 40px 6px 30px; }
}

/* ---------- v1.3：@提及 / 私信 / 楼中楼 / 画廊 / 周报 ---------- */
.badge.cnt { background: #e86d7f; color: #fff; padding: 0 6px; border-radius: 999px; font-size: 11px; line-height: 1.6; margin-left: 3px; }
.msg-btn { position: relative; }
a.mention { color: #4560d8; font-weight: 700; text-decoration: underline dashed; text-underline-offset: 3px; }
.comment-item .cm a.mention { font-size: inherit; }
.mini-btn { border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--accent-deep); border-radius: 999px; padding: 1px 10px; font-size: 12px; cursor: pointer; transition: .12s; }
.mini-btn:hover { background: #e7eeff; }
.reply-form { margin: 4px 0 14px; }
.reply-form .reply-ta { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-family: inherit; color: var(--ink); background: rgba(255,255,255,.9); outline: none; resize: vertical; }
.reply-form .reply-ta:focus { border-color: var(--accent); }
.msg-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; transition: .15s; }
.msg-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cv-wrap { scrollbar-width: thin; }
.bubble { max-width: 82%; padding: 9px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.7; margin-bottom: 8px; white-space: pre-line; overflow-wrap: break-word; }
.bubble .rich-img { max-height: 260px; border-radius: 10px; margin: 4px 0; }
.bubble.mine { align-self: flex-end; margin-left: auto; background: linear-gradient(135deg, #6f9bff, #8a6df0); color: #fff; border-bottom-right-radius: 5px; }
.bubble.mine a { color: #ffe9a8; }
.bubble.theirs { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.8); border-bottom-left-radius: 5px; }
.bubble .chip-k { font-size: 10.5px; font-weight: 800; color: var(--gold); letter-spacing: 1px; margin-bottom: 2px; }
.gallery { columns: 3 210px; column-gap: 14px; margin-top: 4px; }
.g-item { position: relative; display: block; margin-bottom: 14px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); break-inside: avoid; transition: .2s; background: rgba(255,255,255,.6); }
.g-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.g-item img { width: 100%; display: block; }
.g-item .g-tag { position: absolute; top: 8px; left: 8px; background: rgba(20,30,60,.55); color: #fff; font-size: 10.5px; padding: 1px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.g-item .g-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; color: #fff; font-size: 12.5px; font-weight: 700; background: linear-gradient(transparent, rgba(15,25,55,.72)); text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.rep-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.rep-row:last-child { border-bottom: 0; }
.c-node > .comment-item { border-bottom: 1px dashed var(--line); }
