/* ==========================================================================
   猹来了 · 现代信息流设计系统
   高级感 / 大留白 / 大圆角 / 微妙阴影 / 主题色仅作点缀
   ========================================================================== */

:root {
    --primary: #FB7299;
    --primary-dark: #E45C82;
    --primary-soft: #FFF1F5;
    --accent: #00AEEC;
    --accent-soft: #E8F7FE;
    --amber: #FF8F1F;
    --green: #2AC864;
    --danger: #F04A4A;
    --text: #18191C;
    --text-2: #61666D;
    --text-muted: #9499A0;
    --border: #E3E5E7;
    --border-strong: #D0D3D6;
    --bg: #F6F7F8;
    --surface: #ffffff;
    --dark: #18191C;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, .05), 0 14px 34px rgba(0, 0, 0, .09);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .16);
}

* { box-sizing: border-box; }

/* 通用 SVG 图标 */
.ic { display: inline-block; vertical-align: -.15em; flex-shrink: 0; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: .2px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

.container {
    width: 1200px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

.page { padding: 26px 0 72px; }

/* ------------------------- 顶部导航（单条精炼） ------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 600;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo-svg {
    width: 42px; height: 42px; flex-shrink: 0; display: block;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(251, 114, 153, .32);
}
.logo-text b { font-size: 20px; letter-spacing: 2px; display: block; line-height: 1.2; color: var(--text); }
.logo-text span { font-size: 10px; color: var(--text-muted); letter-spacing: 3px; }

.header-search { flex: 1; display: flex; justify-content: center; min-width: 0; }
.search-form {
    display: flex; align-items: center; width: 100%; max-width: 420px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 4px 4px 4px 18px;
    transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 174, 236, .16); }
.search-form input {
    flex: 1; min-width: 0; border: none; background: transparent;
    padding: 7px 10px 7px 0; font-size: 13px; outline: none; color: var(--text);
}
.search-form button {
    border: none; background: var(--primary); color: #fff;
    border-radius: 999px; padding: 8px 20px; font-size: 13px; cursor: pointer;
    transition: background .15s;
}
.search-form button:hover { background: var(--primary-dark); }

.header-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 13px; }
.icon-link { position: relative; display: inline-flex; align-items: center; font-size: 18px; }
.icon-link .unread-dot { position: absolute; top: -6px; right: -9px; margin-left: 0; }

.btn-pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
    cursor: pointer; transition: all .15s;
}
.btn-pill:hover { border-color: var(--primary); color: var(--primary); }
.btn-pill.solid { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-pill.solid:hover { background: var(--primary-dark); color: #fff; }

/* ------------------------- 频道导航（横向药丸） ------------------------- */
.cat-rail { background: var(--surface); border-bottom: 1px solid var(--border); }
.cat-rail-inner {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; padding: 12px 0;
    scrollbar-width: none;
}
.cat-rail-inner::-webkit-scrollbar { display: none; }
.rail-pill {
    flex-shrink: 0; padding: 6px 16px; border-radius: 999px;
    font-size: 13px; color: var(--text-2); white-space: nowrap;
    transition: all .15s;
}
.rail-pill:hover { color: var(--primary); background: var(--primary-soft); }
.rail-pill.active { background: var(--primary); color: #fff; font-weight: 600; }
.rail-sep { width: 1px; height: 18px; background: var(--border-strong); margin: 0 8px; flex-shrink: 0; }

/* ------------------------- 通用页头 ------------------------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-head h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: .5px; }
.page-head .page-sub { margin: 0; font-size: 13px; color: var(--text-muted); }

.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.sec-title {
    margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .5px;
    display: inline-flex; align-items: center; gap: 8px;
}
.sec-title::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0;
}
.sec-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.sec-more { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.sec-more:hover { color: var(--primary); }

.home-section { margin-bottom: 34px; }

/* ------------------------- 公告条 ------------------------- */
.announce-strip {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    margin-bottom: 24px; box-shadow: var(--shadow);
}
.announce-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 22px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.announce-item:last-child { border-bottom: none; }
.announce-title { font-weight: 600; color: var(--text); white-space: nowrap; }
.announce-excerpt { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-time { margin-left: auto; color: var(--text-muted); font-size: 12px; white-space: nowrap; }

/* ------------------------- 首页布局 ------------------------- */
.home-layout { display: flex; gap: 24px; align-items: flex-start; }
.home-main { flex: 1; min-width: 0; }
.home-side { width: 300px; flex-shrink: 0; }

/* ------------------------- 版块图标卡片网格 ------------------------- */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.board-card {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.board-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.board-ic {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.board-card-body { display: flex; flex-direction: column; min-width: 0; }
.board-card-name { font-size: 15px; font-weight: 600; color: var(--text); }
.board-card-desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: 3px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.board-counts { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.board-children { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.child-chip {
    font-size: 11px; color: var(--text-2); background: var(--bg);
    border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px;
}

/* ------------------------- 编辑精选 ------------------------- */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pick-card {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pick-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.pick-board { font-size: 11px; color: var(--primary); font-weight: 600; letter-spacing: 1px; }
.pick-title {
    font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pick-meta { font-size: 12px; color: var(--text-muted); }

/* ------------------------- 信息流卡片 ------------------------- */
.feed-list { display: flex; flex-direction: column; }
.feed-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 22px; margin-bottom: 14px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feed-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.feed-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.feed-user { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.feed-user:hover { color: var(--primary); }
.feed-time {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted); white-space: nowrap;
}
.chip-sm {
    font-size: 11px; color: var(--primary); background: var(--primary-soft);
    border-radius: 999px; padding: 2px 10px; font-weight: 500;
}
.chip-sm:hover { background: var(--primary); color: #fff; }
.feed-title { margin: 0 0 12px; font-size: 16px; line-height: 1.55; font-weight: 600; }
.feed-title a { color: var(--text); }
.feed-title a:hover { color: var(--primary); }
.feed-foot {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted);
    border-top: 1px dashed var(--border); padding-top: 12px;
}
.feed-stat { white-space: nowrap; }
.feed-tags { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }

/* ------------------------- 标签徽章（柔和） ------------------------- */
.badge {
    display: inline-block; padding: 1px 8px; border-radius: 6px;
    font-size: 11px; line-height: 17px; vertical-align: middle;
    margin-right: 5px; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
}
.badge-pin { background: var(--primary); color: #fff; }
.badge-essence { background: #fdf2e0; color: #c07a00; border: 1px solid #f5e0c0; }
.badge-hot { background: #FFF3E4; color: #C2701A; border: 1px solid #F5DFC2; }
.badge-recommend { background: #e8f5e9; color: #2e7d32; border: 1px solid #d0e8d2; }
.badge-lock { background: #F3F4F4; color: #8A9090; border: 1px solid #E4E7E6; }
.badge-new { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #D7D9DE; }
.badge-demo { background: #F3F4F4; color: #8A9090; }
.badge-real { background: #e8f5e9; color: #2e7d32; }
.tag-chip {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    background: var(--bg); color: var(--text-2);
    border: 1px solid var(--border); font-size: 12px; margin-right: 4px;
    transition: all .15s;
}
.tag-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ------------------------- 版块页 ------------------------- */
.board-wrap { max-width: 900px; margin: 0 auto; }
.feed-wrap, .profile-wrap, .thread-wrap { max-width: 860px; margin: 0 auto; }

.board-hero {
    display: flex; align-items: center; gap: 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px 30px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.board-hero-ic {
    width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.board-hero-info { flex: 1; min-width: 0; }
.board-hero-info h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: .5px; }
.board-hero-info p { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.board-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-stat {
    padding: 4px 13px; border-radius: 999px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.board-hero-act { flex-shrink: 0; }
.sibling-strip {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 18px; padding: 14px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.sibling-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.sort-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.sort-tabs a {
    padding: 8px 22px; border-radius: 999px; font-size: 14px; color: var(--text-2);
    transition: all .15s; border: 1px solid transparent;
}
.sort-tabs a:hover { color: var(--primary); background: var(--primary-soft); }
.sort-tabs a.active { background: var(--primary); color: #fff; font-weight: 600; }

.crumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--primary); }
.crumb .sep { margin: 0 6px; color: #d8c7cf; }

/* ------------------------- 帖子详情（单列沉浸式） ------------------------- */
.thread-page { padding: 28px 0 110px; }
.thread-wrap { max-width: 780px; }
.thread-head { margin-bottom: 24px; }
.thread-head h1 {
    margin: 0 0 14px; font-size: 26px; line-height: 1.45;
    font-weight: 700; letter-spacing: .3px;
}
.thread-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted);
}
.author-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.author-link:hover { color: var(--primary); }
.author-link .lvl { font-size: 12px; color: var(--amber); font-weight: 500; }
.dot-sep { color: #D7D9DE; }
.thread-ops { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ghost-btn {
    background: none; border: none; color: var(--text-muted);
    font-size: 13px; cursor: pointer; padding: 3px 8px; font-family: inherit;
}
.ghost-btn:hover { color: var(--primary); }
.ghost-danger:hover { color: var(--danger); }
.thread-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; }

.content-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 36px; box-shadow: var(--shadow);
}
.content-body { font-size: 15.5px; line-height: 1.95; color: var(--text); word-break: break-word; overflow-wrap: anywhere; }
.content-body img { border-radius: 12px; margin: 10px 0; }
.content-actions {
    display: flex; gap: 10px; margin-top: 26px; padding-top: 18px;
    border-top: 1px dashed var(--border);
}
.action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 18px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: var(--surface);
    color: var(--text-2); font-size: 13px; cursor: pointer; font-family: inherit;
    transition: all .15s;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.action-btn.on.gold { border-color: var(--amber); color: #b57900; background: #fdf6e5; }

.reply-section { margin-top: 30px; }
.reply-title {
    display: flex; align-items: baseline; gap: 8px;
    margin: 0 0 16px; font-size: 17px; font-weight: 700; letter-spacing: .5px;
}
.reply-title span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.reply-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; margin-bottom: 14px;
    transition: box-shadow .2s;
}
.reply-card:hover { box-shadow: var(--shadow); }
.reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.reply-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: 14px; }
.reply-author:hover { color: var(--primary); }
.reply-author .lvl { font-size: 11px; color: var(--amber); font-weight: 500; }
.reply-time { margin-left: auto; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.reply-body { font-size: 14.5px; line-height: 1.9; color: var(--text); word-break: break-word; overflow-wrap: anywhere; }
.reply-body img { border-radius: 10px; }
.reply-actions {
    display: flex; gap: 8px; margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed var(--border);
}
.post-quote {
    background: #F3F4F6; border-left: 3px solid var(--primary);
    padding: 10px 14px; border-radius: 0 10px 10px 0;
    font-size: 13px; color: var(--text-2); margin-bottom: 12px;
}

.reply-box { margin-top: 30px; }
.reply-box-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 24px; box-shadow: var(--shadow);
}
.reply-box-ops {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; gap: 12px;
}

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 15px 18px; transition: box-shadow .2s, border-color .2s;
}
.related-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.related-title {
    font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-meta { font-size: 12px; color: var(--text-muted); }

/* ------------------------- 浮动操作胶囊 ------------------------- */
.float-bar {
    position: fixed; left: 50%; bottom: 24px;
    transform: translateX(-50%) translateY(24px);
    display: flex; gap: 6px; align-items: center;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 999px; box-shadow: var(--shadow-lg);
    padding: 6px; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; z-index: 400;
}
.float-bar.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.float-bar .action-btn { border: none; background: transparent; padding: 8px 16px; }
.float-bar .action-btn.on { background: var(--primary-soft); }
.float-bar .action-btn.on.gold { background: #fdf6e5; }
.float-reply {
    background: var(--primary); color: #fff; border-radius: 999px;
    padding: 8px 22px; font-size: 13px; font-weight: 500; transition: background .15s;
}
.float-reply:hover { background: var(--primary-dark); color: #fff; }

/* ------------------------- 面板（通用卡片） ------------------------- */
.panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.panel-head {
    padding: 14px 20px; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.panel-head .more { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.panel-head .more:hover { color: var(--primary); }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

.section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 14px; font-size: 16px; font-weight: 700;
}

/* ------------------------- 表单 ------------------------- */
.form-wrap { display: flex; gap: 24px; align-items: flex-start; max-width: 900px; margin: 0 auto; }
.form-card {
    flex: 1; min-width: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 30px 36px; box-shadow: var(--shadow);
}
.form-card-head { margin-bottom: 24px; }
.form-card-head h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: .5px; }
.form-card-head p { margin: 0; font-size: 13px; color: var(--text-muted); }
.form-side { width: 300px; flex-shrink: 0; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.form-label .req { color: var(--danger); margin-left: 3px; }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border-strong); border-radius: 14px;
    font-size: 14px; outline: none; font-family: inherit;
    background: var(--surface); color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 174, 236, .16); }
.form-control[disabled], .form-control:disabled { background: var(--bg); color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; line-height: 1.7; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 24px; border: none; border-radius: 999px;
    font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
    transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(251, 114, 153, .34); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-default { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #d23f37; color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ------------------------- 侧边小部件 ------------------------- */
.widget {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.widget-head {
    padding: 14px 18px 12px; border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--text-2);
    display: flex; justify-content: space-between; align-items: center;
}
.widget-body { padding: 14px 18px; }

.user-card { text-align: center; padding: 24px 18px 18px; }
.user-card .nick { font-size: 16px; font-weight: 600; margin-top: 8px; }
.user-card .lvl { font-size: 12px; color: var(--amber); margin-top: 2px; }
.user-card .stats { display: flex; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.user-card .stats div { flex: 1; }
.user-card .stats b { display: block; font-size: 16px; color: var(--text); }
.user-card .stats span { font-size: 12px; color: var(--text-muted); }

.checkin-box .big { font-size: 26px; font-weight: 700; color: var(--primary); }
.checkin-box .desc { font-size: 12px; color: var(--text-muted); margin: 4px 0 12px; }

.auth-suggest { text-align: center; padding: 26px 20px; }
.auth-suggest .auth-emoji { margin-bottom: 10px; color: var(--primary); }
.auth-suggest .auth-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.auth-suggest .auth-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--border);
}
.rank-list li:last-child { border-bottom: none; }
.rank-num {
    width: 20px; height: 20px; border-radius: 999px; flex-shrink: 0;
    background: var(--bg); color: var(--text-2); font-size: 11px;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.rank-list li:nth-child(1) .rank-num { background: var(--primary); color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: var(--amber); color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: #f6c34b; color: #fff; }
.rank-list .name {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text);
}
.rank-list .name:hover { color: var(--primary); }
.rank-list .val { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

/* ------------------------- 头像组件 ------------------------- */
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 24px; height: 24px; font-size: 12px; }
.avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.avatar-md { width: 48px; height: 48px; font-size: 20px; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }

/* ------------------------- 提示条 / 空状态 ------------------------- */
.flash {
    padding: 12px 18px; border-radius: 14px; margin-bottom: 18px; font-size: 14px;
    border: 1px solid transparent;
}
.flash-success { background: #eaf7ee; border-color: #bfe6cb; color: #2c7a44; }
.flash-error { background: #fdecea; border-color: #f3c0bc; color: #b93b34; }
.flash-info { background: var(--primary-soft); border-color: #D7D9DE; color: var(--primary-dark); }

.empty {
    text-align: center; padding: 56px 20px; color: var(--text-muted); font-size: 14px;
}
.empty .icon { display: block; margin-bottom: 12px; opacity: .4; color: var(--text-muted); }

/* ------------------------- 分页 ------------------------- */
.pagination-wrap { padding: 18px 0; display: flex; justify-content: center; }
.pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pagination li span, .pagination li a {
    display: inline-block; min-width: 36px; height: 36px; line-height: 34px; text-align: center;
    padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px;
    font-size: 13px; background: var(--surface); color: var(--text-2);
    transition: all .15s;
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination li.disabled span { color: #d2c4cc; }

/* ------------------------- 用户中心 ------------------------- */
.profile-wrap { max-width: 860px; }
.profile-head {
    display: flex; gap: 22px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px 30px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.profile-head .avatar-xl {
    width: 88px; height: 88px; border-radius: 26px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 600; color: var(--primary-dark);
    background: var(--primary-soft);
    border: 2px solid rgba(0, 0, 0, .10); overflow: hidden;
}
.profile-head .avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.profile-head .info { flex: 1; min-width: 0; }
.profile-head .info h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: .5px; }
.profile-head .info .bio { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.profile-head .info .meta-line { margin: 0; font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.profile-head .acts { flex-shrink: 0; }

.profile-stats {
    display: flex; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.profile-stats > div { text-align: center; flex: 1; padding: 16px 0; border-right: 1px solid var(--border); }
.profile-stats > div:last-child { border-right: none; }
.profile-stats b { display: block; font-size: 20px; color: var(--text); }
.profile-stats a:hover b { color: var(--primary); }
.profile-stats span { font-size: 12px; color: var(--text-muted); }

.tab-nav { display: flex; gap: 6px; margin-bottom: 18px; }
.tab-nav a {
    padding: 8px 22px; border-radius: 999px; font-size: 14px; color: var(--text-2);
    transition: all .15s; border: 1px solid transparent;
}
.tab-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.tab-nav a.active { background: var(--primary); color: #fff; font-weight: 600; }

.reply-list { display: flex; flex-direction: column; }
.reply-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 15px 20px; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s;
}
.reply-row:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.reply-row-text {
    flex: 1; min-width: 0; color: var(--text); font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reply-row-time { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

/* ------------------------- 用户网格 ------------------------- */
.user-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.user-card-s {
    display: block; text-align: center; padding: 22px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.user-card-s:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.user-card-s .uname { font-weight: 600; margin-top: 10px; color: var(--text); font-size: 14px; }
.user-card-s .umeta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ------------------------- 通知 / 私信 ------------------------- */
.notice-item {
    display: flex; gap: 14px; padding: 16px 22px; align-items: flex-start;
    border-bottom: 1px solid var(--border); transition: background .15s;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--bg); }
.notice-item.unread { background: var(--accent-soft); }
.notice-item .body { flex: 1; min-width: 0; font-size: 14px; }
.notice-item .time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.unread-dot {
    display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
    padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff;
    font-size: 11px; text-align: center; vertical-align: middle; margin-left: 4px;
}

.chat-card { max-width: 760px; margin: 0 auto; }
.chat-body { max-height: 520px; overflow-y: auto; padding: 24px; }
.chat-row { display: flex; gap: 10px; margin-bottom: 16px; }
.chat-row.mine { flex-direction: row-reverse; }
.chat-bubble {
    max-width: 70%; padding: 11px 16px; border-radius: 16px;
    font-size: 14px; line-height: 1.7; word-break: break-word; overflow-wrap: anywhere;
}
.chat-row .chat-bubble { background: var(--primary-soft); color: var(--text); }
.chat-row.mine .chat-bubble { background: var(--primary); color: #fff; }
.chat-time { font-size: 12px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; }
.chat-row.mine .chat-time { text-align: right; }

/* ------------------------- 登录 / 注册 ------------------------- */
.auth-page {
    min-height: calc(100vh - 68px);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 16px 64px;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px 44px; box-shadow: var(--shadow-hover);
}
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo .logo-svg { width: 56px; height: 56px; margin: 0 auto; border-radius: 17px; }
.auth-card h1 { font-size: 22px; text-align: center; margin: 0 0 6px; letter-spacing: .5px; }
.auth-card .sub { text-align: center; font-size: 13px; color: var(--text-muted); margin: 0 0 26px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }

/* ------------------------- 富文本编辑 ------------------------- */
.editor-toolbar { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.editor-toolbar button {
    border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px;
    padding: 4px 12px; font-size: 12px; cursor: pointer; color: var(--text-2); font-family: inherit;
}
.editor-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.smiley-bar { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.smiley-bar span { cursor: pointer; font-size: 18px; padding: 2px 4px; border-radius: 6px; }
.smiley-bar span:hover { background: var(--primary-soft); }

.tip-list { padding-left: 18px; margin: 0; font-size: 13px; line-height: 2.1; color: var(--text-2); }

/* ------------------------- 页脚 ------------------------- */
.site-footer {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 34px 0 42px; font-size: 13px; color: var(--text-muted);
}
.site-footer .row { text-align: center; line-height: 2.2; }
.site-footer strong { color: var(--text); font-size: 15px; }
.site-footer a { color: var(--text-muted); margin: 0 10px; }
.site-footer a:hover { color: var(--primary); }

/* ------------------------- 模态框 ------------------------- */
.modal-mask {
    display: none; position: fixed; inset: 0; background: rgba(52, 30, 40, .4);
    z-index: 900; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-box {
    background: #fff; border-radius: 20px; width: 440px; max-width: 100%;
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-box .modal-head { padding: 16px 22px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--border); }
.modal-box .modal-body { padding: 22px; font-size: 14px; color: var(--text); }
.modal-box .modal-foot { padding: 14px 22px; display: flex; justify-content: flex-end; gap: 10px; background: var(--bg); }

/* ------------------------- 下拉菜单（纯白不透明） ------------------------- */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: 100%; margin-top: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 12px 36px rgba(16, 18, 22, .12);
    min-width: 168px; z-index: 500; padding: 8px 0;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a { display: block; padding: 9px 18px; color: var(--text); font-size: 13px; }
.dropdown-menu a:hover { background: var(--primary-soft); color: var(--primary); }
.dropdown-menu .divider-line { height: 1px; background: var(--border); margin: 6px 0; }

/* ------------------------- 通用列表 / 主题表格（后台用） ------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.list li:last-child { border-bottom: none; }
.list li:hover { background: var(--bg); }
.list .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { color: var(--text-muted); font-size: 12px; flex-shrink: 0; white-space: nowrap; }

.thread-table { width: 100%; border-collapse: collapse; }
.thread-table thead th {
    background: var(--bg); color: var(--text-muted); font-weight: 600;
    font-size: 12px; text-align: left; padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.thread-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.thread-table tbody tr:hover td { background: var(--bg); }
.thread-table .col-icon { width: 48px; }
.thread-table .col-stat { width: 100px; text-align: center; color: var(--text-muted); font-size: 12px; }
.thread-table .col-last { width: 170px; color: var(--text-muted); font-size: 12px; }
.thread-title { font-size: 14px; }
.thread-title a { color: var(--text); }
.thread-title a:hover { color: var(--primary); }
.thread-sub { margin-top: 3px; font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }

.board-group-title {
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 20px; font-size: 13px; color: var(--text-muted); font-weight: 600;
}

/* ------------------------- 管理后台 ------------------------- */
.admin-body { background: var(--bg); }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side {
    width: 232px; background: var(--dark); flex-shrink: 0;
    color: #9499A0; display: flex; flex-direction: column;
}
.admin-side .brand {
    padding: 18px 22px; font-size: 15px; font-weight: 700; color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex; align-items: center; gap: 10px;
}
.admin-side .brand .logo-svg { width: 32px; height: 32px; border-radius: 9px; }
.admin-side nav { flex: 1; padding: 10px 0; }
.admin-side nav a {
    display: flex; align-items: center; gap: 10px; padding: 11px 22px; color: #9499A0; font-size: 14px;
    border-left: 3px solid transparent; transition: all .15s;
}
.admin-side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-side nav a.active { background: rgba(255, 255, 255, .12); color: #fff; border-left-color: var(--primary); }
.admin-main { flex: 1; min-width: 0; background: var(--bg); }
.admin-topbar {
    height: 56px; background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.admin-content { padding: 22px 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow);
}
.stat-card .label { font-size: 13px; color: var(--text-muted); }
.stat-card .num { font-size: 28px; font-weight: 700; color: var(--text); margin-top: 4px; }
.admin-table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.admin-table th {
    background: var(--bg); text-align: left; padding: 11px 14px;
    font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 600;
}
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg); }

/* ------------------------- 工具类 ------------------------- */
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }

/* ------------------------- 响应式 ------------------------- */

/* 平板横屏 / 小屏笔记本 */
@media (max-width: 1080px) {
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .pick-grid { grid-template-columns: 1fr; }
}

/* 平板竖屏 */
@media (max-width: 980px) {
    .header-inner { gap: 14px; height: 64px; }
    .home-layout { flex-direction: column; }
    .home-side { width: 100%; }
    .user-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .admin-side { width: 60px; }
    .admin-side .brand, .admin-side nav a { padding-left: 0; padding-right: 0; text-align: center; font-size: 0; }
    .admin-side nav a { border-left: none; justify-content: center; gap: 0; }
    .form-wrap { flex-direction: column; }
    .form-side { width: 100%; }
    .thread-head h1 { font-size: 22px; }
    .content-card { padding: 24px 22px; }
    .related-grid { grid-template-columns: 1fr; }
}

/* 手机：头部保持单行，整体收紧 */
@media (max-width: 768px) {
    .container { max-width: calc(100% - 24px); }

    .header-inner { height: 58px; gap: 10px; }
    .logo { gap: 9px; }
    .logo-svg { width: 36px; height: 36px; border-radius: 11px; }
    .logo-text b { font-size: 17px; letter-spacing: 1px; }
    .logo-text span { display: none; }
    .header-search { flex: 1; min-width: 0; }
    .search-form { max-width: 100%; padding: 3px 3px 3px 14px; }
    .search-form input { padding: 6px 8px 6px 0; }
    .search-form button { padding: 7px 15px; }
    .header-user { gap: 8px; }
    .header-user .btn-pill {
        padding: 6px 14px; max-width: 96px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }

    .cat-rail-inner { padding: 9px 0; gap: 4px; }
    .rail-pill { padding: 6px 14px; font-size: 12.5px; }
    .rail-sep { margin: 0 4px; }

    .page { padding: 16px 0 56px; }
    .home-section { margin-bottom: 24px; }
    .page-head { margin-bottom: 16px; gap: 10px; }
    .page-head h1 { font-size: 20px; }
    .sec-head { gap: 8px; margin-bottom: 12px; }
    .sec-title { font-size: 16px; }

    .announce-item { padding: 11px 16px; gap: 8px; }
    .announce-excerpt { display: none; }

    .board-grid { gap: 10px; }
    .board-card { padding: 15px; gap: 12px; }
    .board-ic { width: 42px; height: 42px; border-radius: 12px; }

    .pick-card { padding: 15px 16px; }
    .feed-card { padding: 15px 16px; margin-bottom: 10px; }
    .feed-title { font-size: 15px; margin-bottom: 10px; }
    .feed-foot { gap: 12px; padding-top: 10px; }

    .board-hero { padding: 20px 18px; gap: 14px; }
    .board-hero-ic { width: 54px; height: 54px; border-radius: 16px; }
    .board-hero-info h1 { font-size: 19px; }
    .sibling-strip { padding: 12px 14px; }
    .sort-tabs { overflow-x: auto; scrollbar-width: none; }
    .sort-tabs::-webkit-scrollbar { display: none; }
    .sort-tabs a { flex-shrink: 0; padding: 7px 16px; font-size: 13px; }

    .thread-page { padding: 18px 0 100px; }
    .thread-head { margin-bottom: 18px; }
    .content-card { padding: 20px 18px; border-radius: var(--radius); }
    .content-body { font-size: 15px; line-height: 1.9; }
    .reply-card { padding: 16px; }
    .reply-actions { flex-wrap: wrap; }
    .reply-box-card { padding: 18px 16px; }

    .form-card { padding: 22px 18px; }
    .profile-head { padding: 20px 18px; gap: 16px; }
    .reply-row { gap: 10px; padding: 12px 14px; }
    .chat-body { padding: 16px; }
    .auth-card { padding: 28px 20px; }
    .auth-page { padding: 30px 16px 48px; }

    .empty { padding: 40px 16px; }
    .site-footer { padding: 24px 0 30px; }
    .site-footer a { margin: 0 7px; }
    .modal-mask { padding: 14px; }
    .modal-box { border-radius: 16px; }

    .admin-topbar { padding: 0 14px; }
    .admin-content { padding: 16px 14px; }
    .admin-table, .thread-table { display: block; overflow-x: auto; white-space: nowrap; }
    .stat-card { padding: 16px; }
    .stat-card .num { font-size: 22px; }
}

/* 窄屏手机：头部改为两行并随页面滚动，频道药丸吸顶 */
@media (max-width: 640px) {
    .site-header { position: static; }
    .cat-rail { position: sticky; top: 0; z-index: 550; }
    .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; row-gap: 10px; }
    .header-search { order: 3; flex: 0 0 100%; }
    .header-user { margin-left: auto; }

    .sec-sub { display: none; }
    .board-grid { grid-template-columns: 1fr; }
    .user-grid { grid-template-columns: repeat(2, 1fr); }

    .board-hero, .profile-head { flex-wrap: wrap; }
    .board-hero-act { width: 100%; }
    .board-hero-act .btn { width: 100%; }
    .profile-head .avatar-xl { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
    .profile-head .info h2 { font-size: 19px; }
    .profile-stats b { font-size: 17px; }
    .profile-stats > div { padding: 12px 0; }
    .profile-stats span { font-size: 11px; }

    .feed-top { flex-wrap: wrap; row-gap: 4px; }
    .feed-tags { margin-left: 0; }
    .thread-head h1 { font-size: 19px; }
    .tab-nav { flex-wrap: wrap; }
    .tab-nav a { padding: 7px 16px; font-size: 13px; }
    .chat-bubble { max-width: 82%; }

    .float-bar { bottom: 12px; max-width: calc(100% - 24px); }
    .float-bar .action-btn { padding: 8px 12px; }
    .float-reply { padding: 8px 18px; }
}
