/* ==================== 论坛专用样式 ==================== */

/* ====== 全局字体与字重优化 ====== */
.forum-main {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

.forum-main *,
.modal-overlay,
.modal-overlay * {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-overlay {
    font-weight: 400;
}

/* ====== 导航栏扩展 ====== */
.navbar .nav-menu a {
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border: none;
    font-weight: 500;
}

.btn-ghost-sm {
    background: transparent;
    color: var(--ice);
    border: 1px solid rgba(78, 110, 242, 0.2);
}

.btn-ghost-sm:hover {
    background: rgba(78, 110, 242, 0.06);
    border-color: rgba(78, 110, 242, 0.35);
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-deep);
    font-weight: bold;
}

.btn-primary-sm:hover {
    box-shadow: 0 4px 16px rgba(97, 77, 232, 0.2);
}

.nav-forum-link {
    color: var(--gold) !important;
    font-weight: bold;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-avatar-wrapper:hover {
    background: rgba(78, 110, 242, 0.05);
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1.5px solid rgba(78, 110, 242, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ice);
    font-weight: bold;
}

.user-nickname {
    font-size: 14px;
    color: var(--text-bright);
    letter-spacing: 1px;
    font-weight: 600;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 8px;
    background: transparent;
    z-index: 100;
}

.user-dropdown::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.user-dropdown-inner {
    background: var(--modal-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.user-avatar-wrapper:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-bright);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s;
    font-weight: 500;
}

.user-dropdown a:hover {
    background: rgba(78, 110, 242, 0.05);
    color: var(--ice);
}

/* ====== 论坛头部 ====== */
.forum-main {
    padding-top: 70px;
    min-height: 100vh;
}

.forum-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.forum-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 400px 200px at 20% 50%, rgba(78, 110, 242, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 300px 200px at 80% 50%, rgba(97, 77, 232, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.forum-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.forum-title-area h1 {
    font-size: 32px;
    color: var(--ice);
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-shadow: none;
}

.forum-title-area p {
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 4px;
    font-weight: 400;
}

.forum-stats {
    display: flex;
    gap: 36px;
    align-items: center;
}

.forum-stat {
    text-align: center;
    padding: 8px 12px;
}

.forum-stat-num {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--ice);
    text-shadow: none;
    line-height: 1.2;
}

.forum-stat-label {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 3px;
    font-weight: 500;
}

/* 可点击的统计项 */
.forum-stat-clickable {
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.forum-stat-clickable:hover {
    background: rgba(78, 110, 242, 0.1);
    transform: translateY(-2px);
}

.forum-stat-clickable:hover .forum-stat-num {
    color: var(--ice-bright, #6b8cff);
}

/* ====== 成员列表样式 ====== */
.members-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.members-search {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.members-search input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--text-bright);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.members-search input:focus {
    border-color: var(--ice);
}

.members-search button {
    padding: 8px 16px;
    background: var(--ice);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
}

.members-search button:hover {
    opacity: 0.85;
}

.members-filter select {
    padding: 8px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--text-bright);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.member-item:hover {
    border-color: rgba(78, 110, 242, 0.3);
    background: rgba(78, 110, 242, 0.03);
}

.member-item.banned {
    opacity: 0.5;
}

.member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1.5px solid rgba(78, 110, 242, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.member-nickname {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta {
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    gap: 12px;
}

.member-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.member-action-btn {
    padding: 5px 12px;
    font-size: 13px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: transparent;
    color: var(--text-bright);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.member-action-btn:hover {
    border-color: var(--ice);
    color: var(--ice);
}

.member-action-btn.btn-danger {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.member-action-btn.btn-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.member-action-btn.btn-success {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.member-action-btn.btn-success:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.members-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.members-pagination button {
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: transparent;
    color: var(--text-bright);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.members-pagination button:hover:not(:disabled) {
    border-color: var(--ice);
    color: var(--ice);
}

.members-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.members-pagination button.active {
    background: var(--ice);
    color: #fff;
    border-color: var(--ice);
}

.members-pagination .page-info {
    font-size: 13px;
    color: var(--text-dim);
}

/* ====== 论坛布局 ====== */
.forum-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 24px 0 60px;
}

/* ====== 侧边栏 ====== */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sidebar-card h3 {
    font-size: 14px;
    color: var(--text-bright);
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    color: var(--text-mid);
    font-weight: 500;
}

.category-item:hover {
    background: rgba(78, 110, 242, 0.05);
    color: var(--text-bright);
}

.category-item.active {
    background: rgba(78, 110, 242, 0.08);
    color: var(--ice);
    border: 1px solid rgba(78, 110, 242, 0.15);
}

.cat-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.cat-name {
    flex: 1;
    letter-spacing: 1px;
}

.cat-count {
    font-size: 12.5px;
    color: var(--text-mid);
    background: rgba(78, 110, 242, 0.06);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 6px;
    align-items: center;
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-bright);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    font-weight: 400;
}

.search-box input:focus {
    border-color: rgba(78, 110, 242, 0.4);
}

.search-box input::placeholder {
    color: var(--text-dim);
    font-size: 13px;
}

.search-box button {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(78, 110, 242, 0.12);
    border: 1px solid rgba(78, 110, 242, 0.2);
    border-radius: 6px;
    color: var(--ice);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.search-box button:hover {
    background: rgba(78, 110, 242, 0.2);
    border-color: rgba(78, 110, 242, 0.35);
}

/* ====== 论坛内容区 ====== */
.forum-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.current-category {
    font-size: 16px;
    color: var(--text-bright);
    letter-spacing: 2px;
    font-weight: bold;
}

.btn-create-post {
    padding: 10px 24px;
    background: var(--ice);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-create-post:hover {
    box-shadow: 0 4px 16px rgba(78, 110, 242, 0.25);
    transform: translateY(-1px);
}

/* ====== 帖子列表 ====== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: stretch;
    gap: 0;
    cursor: pointer;
}

.post-card:hover {
    border-color: rgba(78, 110, 242, 0.15);
    background: var(--card-bg-hover);
    box-shadow: var(--card-shadow);
}

.post-card.pinned {
    border-color: rgba(78, 110, 242, 0.12);
    background: rgba(78, 110, 242, 0.02);
}

/* 左侧回复数 */
.post-reply-count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding-right: 16px;
    margin-right: 16px;
    border-right: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.post-reply-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.2;
}

.post-reply-label {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: 2px;
    font-weight: 500;
}

/* 中间内容区 */
.post-card-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.post-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-title-row .pin-tag {
    font-size: 13px;
    color: var(--pink);
    background: rgba(224, 93, 111, 0.06);
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
    border: 1px solid rgba(224, 93, 111, 0.12);
    flex-shrink: 0;
}

.post-title-row .post-title-link {
    font-size: 16px;
    color: var(--text-bright);
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.post-title-row .post-title-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1.5px solid rgba(78, 110, 242, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-size: 14px;
    color: var(--text-bright);
    letter-spacing: 1px;
    font-weight: 500;
}

.post-author .role-badge {
    font-size: 13px;
    padding: 1px 8px;
    border-radius: 3px;
    margin-left: 8px;
    letter-spacing: 1px;
}

.role-大当家 { background: rgba(224, 93, 111, 0.08); color: var(--pink); border: 1px solid rgba(224, 93, 111, 0.15); font-weight: bold; }
.role-二当家 { background: rgba(97, 77, 232, 0.07); color: var(--gold); border: 1px solid rgba(97, 77, 232, 0.15); }
.role-三当家 { background: rgba(97, 77, 232, 0.05); color: var(--gold); border: 1px solid rgba(97, 77, 232, 0.12); }
.role-四当家 { background: rgba(78, 110, 242, 0.07); color: var(--ice); border: 1px solid rgba(78, 110, 242, 0.15); }
.role-五当家 { background: rgba(78, 110, 242, 0.05); color: var(--ice); border: 1px solid rgba(78, 110, 242, 0.12); }
.role-帮众 { background: rgba(0, 0, 0, 0.03); color: var(--text-dim); border: 1px solid rgba(0, 0, 0, 0.06); }

.post-time {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 400;
}

.post-category-tag {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(78, 110, 242, 0.06);
    color: var(--ice);
    border: 1px solid rgba(78, 110, 242, 0.1);
    letter-spacing: 1px;
    flex-shrink: 0;
    font-weight: 600;
    white-space: nowrap;
}

.post-category-tag.clickable-tag {
    cursor: pointer;
    transition: all 0.3s;
}

.post-category-tag.clickable-tag:hover {
    background: rgba(78, 110, 242, 0.12);
    border-color: rgba(78, 110, 242, 0.25);
    transform: translateY(-1px);
}

.post-card-body h3 {
    font-size: 17px;
    color: var(--text-bright);
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 600;
}

.post-card-body h3.post-title-link {
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s;
}

.post-card-body h3.post-title-link:hover {
    color: var(--ice);
}

.post-card-body h3 .pin-tag {
    font-size: 13px;
    color: var(--pink);
    background: rgba(224, 93, 111, 0.06);
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
    letter-spacing: 1px;
    border: 1px solid rgba(224, 93, 111, 0.12);
}

.post-card-center .post-preview {
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.post-card-body .post-preview {
    font-size: 14.5px;
    color: var(--text-bright);
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.82;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-center .post-thumb-list,
.post-card-body .post-thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.post-thumb-list img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.post-thumb-list img:hover {
    opacity: 1;
}

/* 右侧作者和最后回复区域 */
.post-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
    max-width: 160px;
    padding-left: 16px;
    margin-left: 16px;
    border-left: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.post-author-name {
    font-size: 13px;
    color: var(--ice);
    font-weight: 600;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-author-name:hover {
    text-decoration: underline;
}

.post-last-reply {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.last-reply-icon {
    font-size: 13px;
}

.last-reply-user {
    color: var(--text-mid);
    font-size: 13px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.last-reply-user:hover {
    color: var(--ice);
}

.last-reply-time {
    color: var(--text-dim);
    font-size: 13px;
    white-space: nowrap;
}

.post-stats-mini {
    display: flex;
    gap: 10px;
}

.post-stat-mini {
    font-size: 13px;
    color: var(--text-dim);
}

.post-card-footer {
    display: flex;
    gap: 22px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.post-stat {
    font-size: 14.5px;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    font-weight: 520;
}

.post-stat.clickable {
    cursor: pointer;
    transition: all 0.3s;
    padding: 2px 8px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.post-stat.clickable:hover {
    color: var(--ice);
    background: rgba(78, 110, 242, 0.06);
    border-color: rgba(78, 110, 242, 0.15);
}

.post-stat.clickable.liked {
    color: var(--pink);
    background: rgba(224, 93, 111, 0.06);
    border-color: rgba(224, 93, 111, 0.12);
}

/* ====== 分页 ====== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 20px 0;
}

.page-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-bright);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 520;
}

.page-btn:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--text-bright);
}

.page-btn.active {
    background: rgba(78, 110, 242, 0.08);
    border-color: rgba(78, 110, 242, 0.2);
    color: var(--ice);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ====== 弹窗 ====== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: var(--modal-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--modal-shadow);
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 640px;
}

.modal-detail {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-bright);
}

.modal-card h2 {
    font-size: 24px;
    color: var(--ice);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 13.5px;
    color: var(--text-mid);
    margin-bottom: 28px;
    letter-spacing: 1px;
    font-weight: 400;
}

.modal-card .form-group {
    margin-bottom: 18px;
}

.modal-card .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-bright);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 520;
}

.modal-card .form-group input,
.modal-card .form-group select,
.modal-card .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-bright);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 400;
}

.modal-card .form-group input:focus,
.modal-card .form-group select:focus,
.modal-card .form-group textarea:focus {
    border-color: rgba(78, 110, 242, 0.4);
    box-shadow: 0 0 0 3px rgba(78, 110, 242, 0.08);
}

.modal-card .form-group input::placeholder,
.modal-card .form-group textarea::placeholder {
    color: var(--text-dim);
}

.modal-card .form-group select {
    cursor: pointer;
    appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234e6ef2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.modal-card .form-group select option {
    background: var(--bg-deep);
    color: var(--text-bright);
}

.btn-modal-submit {
    width: 100%;
    padding: 14px;
    background: var(--ice);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 8px;
}

.btn-modal-submit:hover {
    box-shadow: 0 4px 16px rgba(78, 110, 242, 0.25);
}

/* 发帖弹窗底部按钮区域 */
.post-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.post-form-actions .btn-modal-submit {
    flex: 1;
    margin-top: 0;
}
.btn-save-draft {
    padding: 14px 20px;
    background: var(--bg-deep);
    color: var(--text-bright);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}
.btn-save-draft:hover {
    background: var(--bg-card);
    border-color: var(--ice);
    color: var(--ice);
}

/* 草稿箱 */
.draft-box-list {
    max-height: 60vh;
    overflow-y: auto;
}
.draft-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.draft-count {
    font-size: 13px;
    color: var(--text-dim);
}
.btn-clear-drafts {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.btn-clear-drafts:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}
.draft-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--bg-deep);
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.draft-item:hover {
    border-color: var(--border-subtle);
    background: var(--bg-card);
}
.draft-item-main {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.draft-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.draft-item-preview {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.draft-item-time {
    font-size: 13px;
    color: var(--text-muted);
}
.draft-item-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.draft-item-delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.modal-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 400;
}

.modal-switch a {
    color: var(--ice);
    text-decoration: none;
    margin-left: 4px;
}

.modal-switch a:hover {
    color: var(--gold);
}

/* ====== 图片上传 ====== */
.image-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.upload-previews {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .remove-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.upload-btn {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dim);
    font-size: 13px;
}

.upload-btn:hover {
    border-color: rgba(78, 110, 242, 0.3);
    color: var(--ice);
    background: rgba(78, 110, 242, 0.03);
}

/* ====== 帖子详情 ====== */
.detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-header h2 {
    font-size: 22px;
    color: var(--text-bright);
    letter-spacing: 1px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-author .post-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.detail-info {
    font-size: 13.5px;
    color: var(--text-mid);
    font-weight: 460;
}

.detail-info .author-name {
    color: var(--text-bright);
    margin-right: 4px;
    font-weight: 500;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-content {
    font-size: 15.5px;
    color: var(--text-bright);
    line-height: 2;
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-break: break-word;
    font-weight: 400;
    opacity: 0.92;
}

.detail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-images img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: transform 0.3s;
}

.detail-images img:hover {
    transform: scale(1.02);
}

.detail-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-bright);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 520;
}

.action-btn:hover {
    border-color: rgba(78, 110, 242, 0.2);
    color: var(--text-bright);
}

.action-btn.active {
    background: rgba(78, 110, 242, 0.08);
    border-color: rgba(78, 110, 242, 0.18);
    color: var(--ice);
}

/* 回帖区 */
.replies-section h3 {
    font-size: 16px;
    color: var(--text-bright);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.reply-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.reply-item:last-child {
    border-bottom: none;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1px solid rgba(78, 110, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
}

.reply-body {
    flex: 1;
    min-width: 0;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.reply-author {
    font-size: 14.5px;
    color: var(--text-bright);
    letter-spacing: 1px;
    font-weight: 520;
}

.reply-time {
    font-size: 12.5px;
    color: var(--text-mid);
    font-weight: 460;
}

.reply-content {
    font-size: 14.5px;
    color: var(--text-bright);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    font-weight: 400;
    opacity: 0.9;
}

.reply-images {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.reply-images img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

/* 回帖输入框 */
.reply-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.reply-form h4 {
    font-size: 14px;
    color: var(--text-bright);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.reply-form textarea {
    width: 100%;
    padding: 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-bright);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s;
    font-weight: 450;
}

.reply-form textarea:focus {
    border-color: rgba(78, 110, 242, 0.4);
}

.reply-form textarea::placeholder {
    color: var(--text-dim);
}

.reply-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.reply-upload-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 450;
}

.reply-upload-btn:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--ice);
}

.reply-submit-btn {
    padding: 10px 28px;
    background: var(--ice);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.reply-submit-btn:hover {
    box-shadow: 0 4px 16px rgba(78, 110, 242, 0.25);
}

/* ====== 空状态 & 加载 ====== */
.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--ice);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 480;
}

.empty-hint {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 14px;
}

/* 收藏列表 */
.favorites-list .post-card {
    margin-bottom: 12px;
}

/* ====== 通知提示 ====== */
.toast {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.toast.success { background: var(--toast-success); }
.toast.error { background: var(--toast-error); }
.toast.info { background: var(--toast-info); }

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ====== 个人中心 ====== */
.modal-profile {
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 2px solid rgba(78, 110, 242, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
    text-shadow: none;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-name-row h2 {
    font-size: 22px;
    color: var(--text-bright);
    letter-spacing: 2px;
    margin: 0;
}

.profile-join-time {
    font-size: 13.5px;
    color: var(--text-mid);
    margin-bottom: 16px;
    letter-spacing: 1px;
    font-weight: 460;
}

.profile-stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-stat-item {
    text-align: center;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.profile-stat-item:hover {
    background: rgba(78, 110, 242, 0.05);
}

.profile-stat-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--ice);
    line-height: 1.3;
}

.profile-stat-label {
    font-size: 13px;
    color: var(--text-mid);
    letter-spacing: 2px;
    font-weight: 520;
}

.profile-follow-btn {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    background: var(--ice);
    color: #ffffff;
    border: none;
    font-weight: bold;
}

.profile-follow-btn:hover {
    box-shadow: 0 4px 16px rgba(78, 110, 242, 0.25);
}

.profile-follow-btn.following {
    background: var(--card-bg);
    color: var(--text-dim);
    border: 1px solid var(--border-subtle);
}

.profile-follow-btn.following:hover {
    border-color: rgba(224, 93, 111, 0.22);
    color: var(--pink);
    box-shadow: none;
}

.profile-edit-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-subtle);
    letter-spacing: 1px;
}

.profile-edit-btn:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--ice);
}

/* 封禁/解封按钮 */
.ban-btn-ban {
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}
.ban-btn-ban:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}
.ban-btn-unban {
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
}
.ban-btn-unban:hover {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: #22c55e !important;
}
.ban-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 8px 0;
    font-weight: 500;
}

/* 个人中心 Tab */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0;
}

.profile-tab {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-mid);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 520;
}

.profile-tab:hover {
    color: var(--text-bright);
}

.profile-tab.active {
    color: var(--ice);
    border-bottom-color: var(--ice);
}

.profile-tab-content {
    min-height: 200px;
}

/* 记录列表 */
.profile-record-item {
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--card-bg);
}

.profile-record-item:hover {
    border-color: rgba(78, 110, 242, 0.15);
    background: var(--card-bg-hover);
    transform: translateY(-1px);
}

.record-main h4 {
    font-size: 15px;
    color: var(--text-bright);
    margin-bottom: 6px;
    letter-spacing: 1px;
    line-height: 1.5;
    font-weight: 600;
}

.record-preview {
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 460;
}

.record-reply-to {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 6px;
    font-weight: 450;
}

.record-reply-to strong {
    color: var(--text-bright);
}

.record-meta {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--text-mid);
    flex-wrap: wrap;
    font-weight: 460;
}

.profile-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
}

/* 关注/粉丝列表 */
.follow-list {
    max-height: 60vh;
    overflow-y: auto;
}

.follow-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid transparent;
}

.follow-item:hover {
    background: rgba(78, 110, 242, 0.03);
    border-color: var(--border-subtle);
}

.follow-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1.5px solid rgba(78, 110, 242, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
}

.follow-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.follow-name {
    font-size: 15px;
    color: var(--text-bright);
    letter-spacing: 1px;
    font-weight: 500;
}

/* 可点击的用户名 */
.clickable-name {
    cursor: pointer;
    transition: color 0.2s;
}

.clickable-name:hover {
    color: var(--ice) !important;
    text-decoration: underline;
}

/* ====== 响应式 ====== */
@media (max-width: 900px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }

    .forum-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-card {
        min-width: 200px;
        flex-shrink: 0;
    }

    /* 移动端隐藏热门帖子和活跃用户侧边栏卡片，减少横向滚动 */
    .forum-sidebar .sidebar-card:nth-child(n+3) {
        min-width: 180px;
    }

    .forum-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .modal-detail {
        max-width: 100%;
    }

    .modal-profile {
        max-width: 100%;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-name-row {
        justify-content: center;
    }

    .profile-stats-row {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .forum-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .toolbar-right {
        text-align: center;
    }

    .post-card {
        padding: 12px;
        flex-direction: column;
        gap: 10px;
    }

    .post-reply-count-box {
        flex-direction: row;
        gap: 6px;
        min-width: auto;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        padding-bottom: 8px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-subtle);
        justify-content: flex-start;
    }

    .post-reply-num {
        font-size: 16px;
    }

    .post-card-right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: auto;
        max-width: none;
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        padding-top: 8px;
        border-top: 1px solid var(--border-subtle);
    }

    .modal-card {
        padding: 20px 16px;
        margin: 8px;
        max-height: 92vh;
        border-radius: 12px;
    }

    .modal-large,
    .modal-detail,
    .modal-profile {
        padding: 18px 14px;
    }

    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 移动端导航栏右侧区域隐藏（由移动端菜单接管） */
    .nav-right {
        display: none;
    }

    /* 论坛头部统计数字缩小 */
    .forum-stat-num {
        font-size: 22px;
    }

    .forum-stat-label {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .forum-stats {
        gap: 20px;
    }

    .forum-title-area h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .forum-title-area p {
        font-size: 13px;
        letter-spacing: 2px;
    }

    /* 帖子标题行 */
    .post-title-row .post-title-link {
        font-size: 14px;
    }

    /* 弹窗标题 */
    .modal-card h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    /* 回帖区域 */
    .reply-form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .reply-submit-btn {
        width: 100%;
    }

    /* 帖子详情操作按钮 */
    .detail-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .action-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* 搜索框 */
    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    /* 成员列表工具栏 */
    .members-toolbar {
        flex-direction: column;
    }

    .members-search {
        min-width: 100%;
    }
}

/* ====== 帖子审核样式 ====== */
.pending-badge {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 10px;
    padding: 0 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.review-card {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.review-card:hover {
    background: var(--card-bg-hover);
    border-color: rgba(78, 110, 242, 0.15);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.review-card-body h3 {
    font-size: 16px;
    color: var(--text-bright);
    margin-bottom: 8px;
    font-weight: 600;
}

.review-content-text {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
    font-weight: 450;
}

.review-images {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.review-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.review-btn {
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: inherit;
    letter-spacing: 1px;
}

.review-btn-approve {
    background: rgba(52, 168, 83, 0.08);
    color: #34a853;
    border-color: rgba(52, 168, 83, 0.18);
}

.review-btn-approve:hover {
    background: rgba(52, 168, 83, 0.15);
    border-color: rgba(52, 168, 83, 0.3);
}

.review-btn-reject {
    background: rgba(224, 93, 111, 0.06);
    color: var(--pink);
    border-color: rgba(224, 93, 111, 0.15);
}

.review-btn-reject:hover {
    background: rgba(224, 93, 111, 0.12);
    border-color: rgba(224, 93, 111, 0.25);
}

/* 审核设置栏 */
.review-settings-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.review-settings-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-settings-icon {
    font-size: 18px;
}

.review-settings-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}

.review-settings-desc {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 450;
}

/* Toggle Switch 开关 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-subtle);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--ice);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* ====== 批量管理模式 ====== */
.batch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(78, 110, 242, 0.06), rgba(97, 77, 232, 0.04));
    border: 1px solid rgba(78, 110, 242, 0.2);
    border-radius: 10px;
    gap: 12px;
    flex-wrap: wrap;
    animation: batchToolbarIn 0.3s ease;
}

@keyframes batchToolbarIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.batch-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-toolbar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ice);
    letter-spacing: 0.5px;
}

.batch-selected-count {
    font-size: 13px;
    color: var(--text-dim);
    padding: 2px 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    transition: all 0.3s;
}

.batch-selected-count.has-selection {
    color: var(--ice);
    background: rgba(78, 110, 242, 0.1);
    font-weight: 500;
}

.batch-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.batch-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.batch-action-btn:hover {
    border-color: rgba(78, 110, 242, 0.2);
    background: rgba(78, 110, 242, 0.04);
    color: var(--text-bright);
}

.batch-btn-delete {
    color: var(--pink);
    border-color: rgba(224, 93, 111, 0.15);
}

.batch-btn-delete:hover {
    background: rgba(224, 93, 111, 0.08);
    border-color: rgba(224, 93, 111, 0.3);
}

.batch-btn-cancel {
    color: var(--text-dim);
}

.batch-btn-cancel:hover {
    color: var(--text-bright);
}

/* 批量选择复选框 */
.batch-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding-right: 8px;
    flex-shrink: 0;
}

.batch-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.batch-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.batch-check-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-radius: 5px;
    background: var(--card-bg);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-check-mark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.batch-checkbox input:checked + .batch-check-mark {
    background: var(--ice);
    border-color: var(--ice);
}

.batch-checkbox input:checked + .batch-check-mark::after {
    transform: rotate(45deg) scale(1);
}

.batch-checkbox input:indeterminate + .batch-check-mark {
    background: var(--ice);
    border-color: var(--ice);
}

.batch-checkbox input:indeterminate + .batch-check-mark::after {
    width: 10px;
    height: 2px;
    border: none;
    background: #fff;
    transform: none;
    border-radius: 1px;
    margin-top: 0;
}

.batch-check-mark:hover {
    border-color: var(--ice);
}

.batch-select-all-wrap {
    margin-right: 0;
}

/* 帖子卡片批量模式 */
.post-card.batch-mode {
    cursor: pointer;
    user-select: none;
}

.post-card.batch-mode:hover {
    border-color: rgba(78, 110, 242, 0.25);
}

.post-card.batch-selected {
    border-color: rgba(78, 110, 242, 0.35) !important;
    background: rgba(78, 110, 242, 0.04) !important;
    box-shadow: 0 0 0 1px rgba(78, 110, 242, 0.15);
}

/* 批量移动面板 */
.batch-move-panel {
    background: var(--card-bg);
    border: 1px solid rgba(78, 110, 242, 0.2);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    animation: batchToolbarIn 0.25s ease;
}

.batch-move-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}

.batch-move-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.batch-move-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-bright);
}

.batch-move-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 12px 16px;
}

.batch-move-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(0, 0, 0, 0.01);
}

.batch-move-item:hover {
    border-color: rgba(78, 110, 242, 0.25);
    background: rgba(78, 110, 242, 0.04);
    box-shadow: 0 2px 6px rgba(78, 110, 242, 0.08);
}

.batch-move-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.batch-move-name {
    font-size: 13px;
    color: var(--text-bright);
    font-weight: 500;
}

/* ====== 帖子详情页（贴吧风格楼层） ====== */
.post-detail-page {
    padding-top: 80px;
    min-height: 100vh;
    padding-bottom: 40px;
}

.post-detail-back {
    margin-bottom: 16px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-mid);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 500;
}

.back-btn:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--ice);
    background: var(--card-bg-hover);
}

/* 楼层列表 */
.floor-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 楼层卡片 */
.floor-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    padding: 24px 28px;
    transition: background 0.2s;
}

.floor-card:first-child {
    border-radius: 10px 10px 0 0;
}

.floor-card:last-child {
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0 0 10px 10px;
}

.floor-card:only-child {
    border-radius: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.floor-card:hover {
    background: var(--card-bg-hover);
}

.floor-card.floor-main {
    background: var(--card-bg);
}

/* 楼层头部 */
.floor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.floor-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1.5px solid rgba(78, 110, 242, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.3s;
}

.floor-avatar:hover {
    border-color: rgba(78, 110, 242, 0.35);
}

.floor-user-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.floor-nickname {
    font-size: 15px;
    color: var(--text-bright);
    letter-spacing: 1px;
    font-weight: 700;
}

.op-tag {
    font-size: 13px;
    padding: 1px 8px;
    border-radius: 3px;
    background: rgba(78, 110, 242, 0.08);
    color: var(--ice);
    border: 1px solid rgba(78, 110, 242, 0.15);
    letter-spacing: 1px;
    font-weight: 500;
}

.floor-number {
    font-size: 13.5px;
    color: var(--text-mid);
    letter-spacing: 1px;
    flex-shrink: 0;
    font-weight: 520;
}

/* 楼层标题（仅主帖） */
.floor-title {
    margin-bottom: 16px;
}

.floor-title h2 {
    font-size: 22px;
    color: var(--text-bright);
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 700;
}

.floor-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 楼层内容 */
.floor-content {
    font-size: 15.5px;
    color: var(--text-bright);
    line-height: 2;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 16px;
    font-weight: 400;
    opacity: 0.92;
}

/* 引用块 */
.floor-quote {
    background: rgba(78, 110, 242, 0.03);
    border-left: 3px solid rgba(78, 110, 242, 0.25);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.6;
    font-weight: 460;
}

.floor-quote-ref {
    color: var(--ice);
    font-weight: 600;
    margin-right: 8px;
}

.floor-quote-content {
    color: var(--text-mid);
    font-weight: 460;
}

/* 楼层底部 */
.floor-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.floor-time {
    font-size: 13px;
    color: var(--text-mid);
    letter-spacing: 1px;
    font-weight: 460;
}

.floor-stat {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 460;
}

.floor-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.floor-reply-btn {
    padding: 5px 16px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    color: var(--text-mid);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 500;
}

.floor-reply-btn:hover {
    border-color: rgba(78, 110, 242, 0.3);
    color: var(--ice);
    background: rgba(78, 110, 242, 0.05);
}

/* 回复数量栏 */
.reply-count-bar {
    padding: 14px 20px;
    margin-top: 16px;
    font-size: 14.5px;
    color: var(--text-bright);
    letter-spacing: 1px;
    font-weight: 520;
}

/* 回复表单容器 */
.reply-form-container {
    margin-top: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
}

/* 引用提示栏 */
.reply-quote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(78, 110, 242, 0.04);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--ice);
    letter-spacing: 1px;
    font-weight: 500;
}

.reply-quote-cancel {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.reply-quote-cancel:hover {
    color: var(--pink);
    background: rgba(224, 93, 111, 0.06);
}

.reply-form-container .reply-form {
    margin-top: 0;
    padding: 20px;
    border-top: none;
}

/* ====== 响应式补充 ====== */
@media (max-width: 900px) {
    .floor-card {
        padding: 18px 16px;
    }

    .floor-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .floor-title h2 {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .post-detail-page {
        padding-top: 70px;
    }

    .floor-card {
        padding: 14px 12px;
    }

    .floor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .floor-number {
        align-self: flex-end;
        margin-top: -28px;
    }

    .floor-footer {
        flex-wrap: wrap;
    }
}

/* ====== 排序按钮 ====== */
.sort-buttons {
    display: flex;
    gap: 4px;
    margin-left: 16px;
}

.sort-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-mid);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 1px;
    font-weight: 500;
}

.sort-btn:hover {
    color: var(--text-bright);
    background: rgba(78, 110, 242, 0.04);
}

.sort-btn.active {
    color: var(--ice);
    background: rgba(78, 110, 242, 0.08);
    border-color: rgba(78, 110, 242, 0.15);
}

.toolbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* ====== 热门帖子 ====== */
.hot-posts-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 13.5px;
}

.hot-item:hover {
    background: rgba(78, 110, 242, 0.05);
}

.hot-rank {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.hot-rank.top {
    background: rgba(224, 93, 111, 0.08);
    color: var(--pink);
}

.hot-title {
    flex: 1;
    color: var(--text-bright);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.88;
}

.hot-item:hover .hot-title {
    color: var(--text-bright);
}

.hot-stat {
    font-size: 13px;
    color: var(--text-mid);
    flex-shrink: 0;
    font-weight: 480;
}

/* ====== 活跃用户 ====== */
.active-users-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.active-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
}

.active-user-item:hover {
    background: rgba(78, 110, 242, 0.05);
}

.active-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1px solid rgba(78, 110, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
}

.active-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.active-user-name {
    font-size: 13.5px;
    color: var(--text-bright);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.active-user-item:hover .active-user-name {
    color: var(--text-bright);
}

.active-user-stat {
    font-size: 13px;
    color: var(--text-mid);
    flex-shrink: 0;
    font-weight: 480;
}

/* ====== 个人签名 ====== */
.profile-bio {
    font-size: 14px;
    color: var(--text-bright);
    font-style: italic;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 460;
    line-height: 1.6;
    opacity: 0.82;
}

.profile-bio.profile-bio-empty {
    color: var(--text-dim);
    cursor: pointer;
    font-style: normal;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.profile-bio.profile-bio-empty:hover {
    opacity: 1;
    color: var(--ice);
}

/* ====== 回帖点赞按钮激活状态 ====== */
.floor-reply-btn.active {
    background: rgba(78, 110, 242, 0.08);
    border-color: rgba(78, 110, 242, 0.2);
    color: var(--ice);
}

/* ====== 响应式补充（排序按钮） ====== */
@media (max-width: 900px) {
    .sort-buttons {
        margin-left: 0;
        margin-top: 8px;
    }

    .toolbar-left {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .sort-buttons {
        flex-wrap: wrap;
    }

    .sort-btn {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* ====== 通知按钮 ====== */
.notif-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s;
    line-height: 1;
}

.notif-btn:hover {
    background: rgba(78, 110, 242, 0.06);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--pink);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
}

/* ====== 通知弹窗 ====== */
.notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.notif-modal-header h2 {
    margin: 0;
}

.notif-read-all-btn {
    background: transparent;
    border: 1px solid rgba(78, 110, 242, 0.15);
    color: var(--ice);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
}

.notif-read-all-btn:hover {
    background: rgba(78, 110, 242, 0.06);
}

.notifications-list {
    max-height: 500px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: rgba(78, 110, 242, 0.04);
}

.notif-item.unread {
    background: rgba(78, 110, 242, 0.03);
}

.notif-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 110, 242, 0.05);
    border-radius: 50%;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-content {
    font-size: 14px;
    color: var(--text-bright);
    line-height: 1.5;
    margin: 0 0 4px 0;
    font-weight: 460;
    opacity: 0.82;
}

.notif-item.unread .notif-content {
    color: var(--text-bright);
    font-weight: 500;
}

.notif-time {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 460;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ice);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ====== 回复分页 ====== */
.reply-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    margin: 8px 0;
}

.reply-page-info {
    font-size: 13.5px;
    color: var(--text-mid);
    font-weight: 480;
}

/* ====== 内容链接 ====== */
.content-link {
    color: var(--ice);
    text-decoration: none;
    word-break: break-all;
    font-weight: 450;
}

.content-link:hover {
    text-decoration: underline;
}

/* ====== 帖子内容换行 ====== */
.floor-content {
    white-space: normal;
    word-break: break-word;
    line-height: 1.8;
}

/* ====== 用户空间页面 ====== */
.user-space-page {
    padding-top: 80px;
    min-height: 100vh;
    padding-bottom: 40px;
}

.user-space-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.user-space-card .profile-header {
    padding: 30px;
    background: linear-gradient(135deg, rgba(var(--ice-rgb, 100, 200, 255), 0.08), rgba(var(--pink-rgb, 255, 100, 150), 0.05));
    border-bottom: 1px solid var(--border-subtle);
}

.user-space-card .profile-tabs {
    padding: 0 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-subtle);
}

.user-space-card .profile-tab-content {
    padding: 16px 20px;
    min-height: 300px;
}

/* 可点击头像 */
.clickable-avatar {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(var(--ice-rgb, 100, 200, 255), 0.4);
}

/* 帖子列表卡片中的可点击名字 */
.post-card-header .clickable-name {
    cursor: pointer;
    transition: color 0.2s;
}

.post-card-header .clickable-name:hover {
    color: var(--ice);
}

/* ====== 签到按钮 ====== */
.checkin-nav-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(78, 110, 242, 0.08), rgba(97, 77, 232, 0.08));
    border: 1px solid rgba(78, 110, 242, 0.18);
    border-radius: 20px;
    color: var(--ice);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 1px;
}

.checkin-nav-btn:hover {
    background: linear-gradient(135deg, rgba(78, 110, 242, 0.15), rgba(97, 77, 232, 0.15));
    box-shadow: 0 2px 12px rgba(78, 110, 242, 0.15);
}

.checkin-nav-btn:disabled {
    opacity: 0.6;
    cursor: default;
    background: rgba(78, 110, 242, 0.04);
}

/* ====== 签到面板 ====== */
.checkin-info {
    text-align: center;
}

.checkin-status {
    padding: 30px;
    border-radius: 12px;
    background: rgba(78, 110, 242, 0.04);
    border: 1px solid rgba(78, 110, 242, 0.1);
    margin-bottom: 20px;
}

.checkin-status.checked {
    background: rgba(52, 168, 83, 0.04);
    border-color: rgba(52, 168, 83, 0.15);
}

.checkin-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.checkin-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.checkin-stat-item {
    text-align: center;
}

.checkin-stat-num {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--ice);
}

.checkin-stat-label {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ====== 等级系统 ====== */
.level-info {
    padding: 18px;
    background: linear-gradient(135deg, rgba(97, 77, 232, 0.03), rgba(78, 110, 242, 0.05));
    border: 1px solid rgba(97, 77, 232, 0.1);
    border-radius: 12px;
    margin-top: 16px;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.level-icon {
    font-size: 24px;
    line-height: 1;
}

.level-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.level-exp {
    font-size: 13px;
    color: var(--text-mid);
    margin-left: auto;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.level-exp-text {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* 进度条 + 下一级目标 */
.level-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.level-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.level-progress-bar-sm {
    height: 4px;
    width: 60px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ice), var(--gold));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.level-next-target {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.level-next {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 0;
}

.level-next strong {
    color: var(--ice);
    font-weight: 600;
}

.level-next.level-max {
    color: var(--gold);
    font-weight: 500;
}

/* 用户空间等级徽章 */
.user-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(97, 77, 232, 0.06);
    border: 1px solid rgba(97, 77, 232, 0.12);
    border-radius: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.level-next-badge-sm {
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
    white-space: nowrap;
}

.level-max-badge-sm {
    font-size: 13px;
    color: var(--pink);
    font-weight: 500;
    white-space: nowrap;
}

/* 等级一览列表 */
.level-all-list {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(97, 77, 232, 0.08);
}

.level-all-title {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.level-all-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.level-all-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-subtle);
    opacity: 0.45;
    transition: all 0.3s;
    position: relative;
}

.level-all-item.achieved {
    opacity: 0.75;
    background: rgba(78, 110, 242, 0.04);
    border-color: rgba(78, 110, 242, 0.12);
}

.level-all-item.current {
    opacity: 1;
    background: linear-gradient(135deg, rgba(97, 77, 232, 0.08), rgba(78, 110, 242, 0.06));
    border-color: rgba(97, 77, 232, 0.25);
    box-shadow: 0 2px 8px rgba(97, 77, 232, 0.1);
}

.level-all-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.level-all-detail {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.level-all-name {
    font-size: 13px;
    color: var(--text-bright);
    font-weight: 600;
    line-height: 1.3;
}

.level-all-exp {
    font-size: 13px;
    color: var(--text-dim);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.level-all-current-tag {
    font-size: 12px;
    color: #fff;
    background: var(--gold);
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.level-all-check {
    font-size: 13px;
    color: var(--ice);
    font-weight: 700;
    flex-shrink: 0;
}

/* ====== 私信 ====== */
.messages-content {
    max-height: 500px;
    overflow-y: auto;
}

.msg-conversation {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.msg-conversation:hover {
    background: rgba(78, 110, 242, 0.04);
}

.msg-conversation.unread {
    background: rgba(78, 110, 242, 0.03);
}

.msg-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1.5px solid rgba(78, 110, 242, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
}

.msg-info {
    flex: 1;
    min-width: 0;
}

.msg-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.msg-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-bright);
}

.msg-time {
    font-size: 13px;
    color: var(--text-dim);
}

.msg-preview {
    font-size: 13px;
    color: var(--text-mid);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.msg-unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--pink);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 聊天界面 */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 12px;
}

.back-btn-sm {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-mid);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.back-btn-sm:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--ice);
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-msg.mine {
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(78, 110, 242, 0.06);
    border: 1px solid rgba(78, 110, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ice);
    font-weight: bold;
    flex-shrink: 0;
}

.chat-msg-bubble {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    font-weight: 450;
}

.chat-msg.theirs .chat-msg-bubble {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-bright);
    border-bottom-left-radius: 4px;
}

.chat-msg.mine .chat-msg-bubble {
    background: rgba(78, 110, 242, 0.1);
    border: 1px solid rgba(78, 110, 242, 0.15);
    color: var(--text-bright);
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.chat-input-area textarea {
    flex: 1;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-bright);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    transition: border-color 0.3s;
    font-weight: 450;
}

.chat-input-area textarea:focus {
    border-color: rgba(78, 110, 242, 0.4);
}

/* ====== 投票 ====== */
.poll-container {
    margin: 16px 0;
    padding: 16px;
    background: rgba(78, 110, 242, 0.03);
    border: 1px solid rgba(78, 110, 242, 0.1);
    border-radius: 10px;
}

.poll-question {
    font-size: 15px;
    color: var(--text-bright);
    margin-bottom: 12px;
    font-weight: 600;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option {
    position: relative;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    overflow: hidden;
    transition: all 0.3s;
}

.poll-option.clickable {
    cursor: pointer;
}

.poll-option.clickable:hover {
    border-color: rgba(78, 110, 242, 0.3);
    background: rgba(78, 110, 242, 0.04);
}

.poll-option.voted {
    cursor: default;
}

.poll-option.selected {
    border-color: rgba(78, 110, 242, 0.3);
}

.poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(78, 110, 242, 0.06);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.poll-option-text {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--text-bright);
    font-weight: 480;
}

.poll-option-pct {
    position: relative;
    z-index: 1;
    float: right;
    font-size: 13px;
    color: var(--ice);
    font-weight: 600;
}

.poll-total {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 10px;
    text-align: right;
}

/* ====== Markdown内联样式 ====== */
.inline-code {
    background: rgba(78, 110, 242, 0.06);
    border: 1px solid rgba(78, 110, 242, 0.1);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--pink);
}

.mention-tag {
    color: var(--ice);
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.mention-tag:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ====== 楼层高亮（跳转时） ====== */
.floor-highlight {
    animation: floorFlash 2s ease;
}

@keyframes floorFlash {
    0%, 100% { background: var(--card-bg); }
    25% { background: rgba(78, 110, 242, 0.08); }
    50% { background: rgba(78, 110, 242, 0.04); }
    75% { background: rgba(78, 110, 242, 0.06); }
}

/* ====== 数据看板 ====== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dash-card {
    text-align: center;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.dash-num {
    font-size: 28px;
    font-weight: bold;
    color: var(--ice);
    line-height: 1.2;
}

.dash-label {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: 4px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--ice), var(--gold));
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 4px;
}

.chart-label {
    font-size: 13px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ====== 投票表单 ====== */
.poll-option-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-bright);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    font-weight: 450;
}

.poll-option-input:focus {
    border-color: rgba(78, 110, 242, 0.4);
}

/* ====== 响应式补充（新功能） ====== */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkin-stats {
        gap: 16px;
    }

    .chat-msg-bubble {
        max-width: 85%;
    }
}

/* ====== 表情选择器 ====== */

/* ====== 帖子标签 ====== */
.post-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.post-tag-item {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(97, 77, 232, 0.06);
    border: 1px solid rgba(97, 77, 232, 0.12);
    border-radius: 12px;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.emoji-bar {
    position: relative;
    margin-top: 8px;
}

.emoji-toggle-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    color: var(--text-mid);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 500;
}

.emoji-toggle-btn:hover {
    border-color: rgba(78, 110, 242, 0.25);
    color: var(--ice);
    background: rgba(78, 110, 242, 0.04);
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    background: var(--modal-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    max-width: 320px;
}

.emoji-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.emoji-item:hover {
    background: rgba(78, 110, 242, 0.08);
    transform: scale(1.2);
}

/* ====== 用户悬浮卡片 ====== */
.user-hover-card {
    display: none;
    position: absolute;
    z-index: 9999;
    width: 320px;
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    overflow: hidden;
    animation: uhcFadeIn 0.2s ease;
    font-weight: 450;
}

@keyframes uhcFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-hover-card .uhc-loading,
.user-hover-card .uhc-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--text-dim, #9aa0a6);
    font-size: 13px;
}

.user-hover-card .uhc-header {
    display: flex;
    gap: 14px;
    padding: 18px 18px 12px;
    align-items: flex-start;
}

.user-hover-card .uhc-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ice, #4e6ef2), var(--gold, #614de8));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-hover-card .uhc-avatar:hover {
    transform: scale(1.08);
}

.user-hover-card .uhc-info {
    flex: 1;
    min-width: 0;
}

.user-hover-card .uhc-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.user-hover-card .uhc-nickname {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright, #222226);
    cursor: pointer;
    transition: color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-hover-card .uhc-nickname:hover {
    color: var(--ice, #4e6ef2);
}

.user-hover-card .uhc-bio {
    font-size: 13px;
    color: var(--text-dim, #9aa0a6);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-hover-card .uhc-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px 18px;
    border-top: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
    border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
}

.user-hover-card .uhc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.user-hover-card .uhc-stat-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright, #222226);
}

.user-hover-card .uhc-stat-label {
    font-size: 13px;
    color: var(--text-dim, #9aa0a6);
}

.user-hover-card .uhc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
}

.user-hover-card .uhc-reg-time {
    font-size: 13px;
    color: var(--text-dim, #9aa0a6);
}

.user-hover-card .uhc-actions {
    display: flex;
    gap: 8px;
}

.user-hover-card .uhc-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.user-hover-card .uhc-btn-follow {
    background: var(--ice, #4e6ef2);
    color: #fff;
}

.user-hover-card .uhc-btn-follow:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.user-hover-card .uhc-btn-follow.following {
    background: var(--bg-dark, #eef0f3);
    color: var(--text-mid, #5f6368);
}

.user-hover-card .uhc-btn-follow.following:hover {
    background: var(--pink, #e05d6f);
    color: #fff;
}

.user-hover-card .uhc-btn-msg {
    background: var(--bg-dark, #eef0f3);
    color: var(--text-mid, #5f6368);
}

.user-hover-card .uhc-btn-msg:hover {
    background: var(--bg-mid, #e8eaee);
    color: var(--text-bright, #222226);
}

/* ==================== 按钮加载状态 ==================== */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ==================== 用户批量管理 ==================== */
.um-batch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-mid, #f0f1f3);
    border-radius: 10px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.um-batch-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.um-batch-count {
    font-size: 13px;
    color: var(--text-dim, #888);
    transition: color 0.2s;
}

.um-batch-count.has-selection {
    color: var(--accent, #5b7fff);
    font-weight: 600;
}

.um-batch-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.um-batch-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    background: var(--bg-card, #fff);
    color: var(--text-main, #333);
    transition: all 0.2s;
    white-space: nowrap;
}

.um-batch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.um-btn-ban {
    color: #e67e22;
}

.um-btn-ban:hover {
    background: #fff3e0;
    color: #d35400;
}

.um-btn-unban {
    color: #27ae60;
}

.um-btn-unban:hover {
    background: #e8f8f0;
    color: #1e8449;
}

.um-btn-delete {
    color: #e74c3c;
}

.um-btn-delete:hover {
    background: #fdecea;
    color: #c0392b;
}

.um-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.um-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card, #fff);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.um-item:hover {
    background: var(--bg-mid, #f5f6f8);
}

.um-item-selected {
    border-color: var(--accent, #5b7fff);
    background: rgba(91, 127, 255, 0.04);
}

.um-check-wrap {
    flex-shrink: 0;
}

.um-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #5b7fff), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.um-info {
    flex: 1;
    min-width: 0;
}

.um-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright, #222);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.um-meta {
    font-size: 13px;
    color: var(--text-dim, #999);
    margin-top: 3px;
}

.um-banned-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: #fdecea;
    color: #e74c3c;
}

.um-me-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(91, 127, 255, 0.1);
    color: var(--accent, #5b7fff);
}

.um-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.um-action-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    background: var(--bg-mid, #f0f1f3);
    color: var(--text-main, #555);
    transition: all 0.2s;
    white-space: nowrap;
}

.um-action-btn:hover {
    transform: translateY(-1px);
}

.um-act-ban:hover {
    background: #fff3e0;
    color: #d35400;
}

.um-act-unban:hover {
    background: #e8f8f0;
    color: #1e8449;
}

.um-select-all-wrap {
    margin-right: 4px;
}

/* 暗色模式适配 */
[data-theme="dark"] .um-batch-bar {
    background: var(--bg-mid, #23252b);
}

[data-theme="dark"] .um-batch-btn {
    background: var(--bg-card, #2a2d35);
}

[data-theme="dark"] .um-item {
    background: var(--bg-card, #2a2d35);
}

[data-theme="dark"] .um-item:hover {
    background: var(--bg-mid, #32353d);
}

[data-theme="dark"] .um-banned-tag {
    background: rgba(231, 76, 60, 0.15);
}

[data-theme="dark"] .um-me-tag {
    background: rgba(91, 127, 255, 0.15);
}

[data-theme="dark"] .um-action-btn {
    background: var(--bg-mid, #32353d);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .um-batch-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .um-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .um-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}

/* ====== 移动端全面适配 ====== */

/* 移动端导航栏菜单展开样式 */
.mobile-nav-actions {
    display: none;
}

@media (max-width: 600px) {
    /* 移动端菜单展开时显示用户操作区 */
    .nav-menu.active .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--border-subtle);
    }

    .mobile-nav-actions .mobile-auth-btns {
        display: flex;
        gap: 10px;
    }

    .mobile-nav-actions .mobile-auth-btns .btn-sm {
        flex: 1;
        text-align: center;
    }

    .mobile-nav-actions .mobile-user-section {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-user-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
    }

    .mobile-user-header .user-avatar-sm {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .mobile-user-header .user-nickname {
        font-size: 14px;
    }

    .mobile-user-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .mobile-user-links a {
        display: block;
        padding: 10px 14px;
        color: var(--text-bright);
        text-decoration: none;
        font-size: 13px;
        letter-spacing: 1px;
        border-radius: 8px;
        background: rgba(78, 110, 242, 0.04);
        border: 1px solid var(--border-subtle);
        text-align: center;
        transition: all 0.2s;
    }

    .mobile-user-links a:hover {
        background: rgba(78, 110, 242, 0.08);
        border-color: rgba(78, 110, 242, 0.2);
    }

    .mobile-quick-actions {
        display: flex;
        gap: 8px;
    }

    .mobile-quick-actions button {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        font-size: 13px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.3s;
    }

    /* 汉堡菜单按钮样式优化 */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    /* 主题切换按钮在移动端缩小 */
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    /* 导航栏内部间距 */
    .nav-container {
        padding: 12px 16px;
    }

    /* logo缩小 */
    .logo-text {
        font-size: 18px;
        letter-spacing: 4px;
    }

    /* 论坛主体顶部间距 */
    .forum-main {
        padding-top: 60px;
    }

    /* 论坛头部 */
    .forum-header {
        padding: 24px 0;
    }

    /* 容器内边距 */
    .container {
        padding: 0 12px;
    }

    /* 侧边栏在移动端可折叠 */
    .forum-sidebar {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .forum-sidebar::-webkit-scrollbar {
        display: none;
    }

    /* 分页按钮 */
    .pagination {
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 帖子详情页 */
    .post-detail-page {
        padding-top: 65px;
    }

    .floor-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .floor-title h2 {
        font-size: 17px;
    }

    /* 回复表单 */
    .reply-form-container .reply-form {
        padding: 14px;
    }

    /* 签到面板 */
    .checkin-stats {
        gap: 16px;
    }

    .checkin-stat-num {
        font-size: 20px;
    }

    /* 个人中心Tab */
    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-tab {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* 等级一览 */
    .level-all-grid {
        grid-template-columns: 1fr;
    }

    /* 数据看板 */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 聊天气泡 */
    .chat-msg-bubble {
        max-width: 85%;
    }

    /* 投票 */
    .poll-container {
        padding: 12px;
    }

    /* 用户悬浮卡片在移动端禁用 */
    .user-hover-card {
        display: none !important;
    }

    /* 图片预览 */
    .detail-images img {
        max-height: 250px;
    }

    .reply-images img {
        max-width: 150px;
        max-height: 100px;
    }

    /* 批量管理工具栏 */
    .batch-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .batch-toolbar-right {
        width: 100%;
    }

    /* Toast通知位置 */
    .toast {
        top: 70px;
        right: 12px;
        left: 12px;
        max-width: none;
    }

    /* 用户空间页面 */
    .user-space-page {
        padding-top: 65px;
    }

    .user-space-card .profile-header {
        padding: 20px 16px;
    }

    .user-space-card .profile-tab-content {
        padding: 12px 14px;
    }

    .profile-avatar-large {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .profile-name-row h2 {
        font-size: 18px;
    }

    .profile-stat-num {
        font-size: 18px;
    }

    /* 批量移动面板 */
    .batch-move-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 审核设置栏 */
    .review-settings-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* 超小屏幕（<400px） */
@media (max-width: 400px) {
    .forum-title-area h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .forum-stats {
        gap: 12px;
    }

    .forum-stat-num {
        font-size: 18px;
    }

    .modal-card {
        padding: 16px 12px;
        margin: 4px;
    }

    .btn-create-post {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mobile-user-links {
        grid-template-columns: 1fr;
    }

    .post-title-row .post-title-link {
        font-size: 13px;
    }

    .floor-card {
        padding: 12px 10px;
    }

    .floor-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .floor-nickname {
        font-size: 13px;
    }

    .floor-content {
        font-size: 13px;
    }

    .profile-stats-row {
        gap: 12px;
    }

    .checkin-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大可点击区域 */
    .category-item {
        padding: 12px 14px;
        min-height: 44px;
    }

    .sort-btn {
        padding: 8px 14px;
        min-height: 40px;
    }

    .page-btn {
        min-height: 40px;
        min-width: 40px;
    }

    .action-btn {
        min-height: 40px;
    }

    .floor-reply-btn {
        padding: 8px 18px;
        min-height: 36px;
    }

    /* 禁用悬浮效果（触摸设备不需要） */
    .user-hover-card {
        display: none !important;
    }

    .post-card:hover {
        transform: none;
    }

    .member-card:hover {
        transform: none;
    }

    /* 下拉菜单改为点击触发 */
    .user-avatar-wrapper:hover .user-dropdown {
        display: none;
    }
}

/* ====== 图片预览灯箱 ====== */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.image-lightbox.show {
    display: flex;
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-img-container {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-img-container img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-toolbar {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.lightbox-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

/* 灯箱导航按钮（多图切换） */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav-prev {
    left: 24px;
}

.lightbox-nav-next {
    right: 24px;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 2px;
}

/* 灯箱下载按钮 */
.lightbox-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
}

.lightbox-download-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* 批量下载按钮样式 */
.sticker-action-download {
    background: linear-gradient(135deg, var(--ice), var(--gold)) !important;
    color: #fff !important;
    border-color: transparent !important;
    font-weight: 500;
}

.sticker-action-download:hover {
    box-shadow: 0 4px 14px rgba(78, 110, 242, 0.3);
    transform: translateY(-1px);
    color: #fff !important;
    border-color: transparent !important;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .lightbox-nav-prev {
        left: 8px;
    }

    .lightbox-nav-next {
        right: 8px;
    }

    .lightbox-toolbar {
        gap: 8px;
    }

    .lightbox-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

