/* ============================================
   树洞网站 全局样式
   风格：简约治愈、干净清爽
   适配：电脑端 + 手机端（响应式）
   ============================================ */

/* ---------- CSS变量：统一管理颜色主题 ---------- */
:root {
    --primary: #5B8C5A;          /* 主色调：治愈绿色 */
    --primary-light: #7DB87C;    /* 浅绿色 */
    --primary-dark: #3D6B3C;     /* 深绿色 */
    --bg: #F5F7F5;               /* 页面背景 */
    --card-bg: #FFFFFF;          /* 卡片背景 */
    --text: #333333;             /* 正文颜色 */
    --text-light: #888888;       /* 辅助文字颜色 */
    --border: #E8ECE8;           /* 边框颜色 */
    --danger: #E74C3C;           /* 危险操作颜色 */
    --shadow: 0 2px 12px rgba(0,0,0,0.06);  /* 卡片阴影 */
    --radius: 12px;              /* 圆角大小 */
}

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ---------- 页面切换 ---------- */
.page {
    display: none;
    min-height: 100vh;
}
.page.active {
    display: block;
}
.view {
    display: none;
}
.view.active {
    display: block;
}

/* ============================================
   登录/注册页面样式
   ============================================ */
#page-auth {
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 50%, #FFF8E1 100%);
    min-height: 100vh;
}
#page-auth.active {
    display: flex;
}

.auth-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

/* Logo区域 */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.logo-icon {
    font-size: 48px;
    margin-bottom: 8px;
}
.auth-logo h1 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 600;
}
.logo-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 4px;
}

/* 表单样式 */
.auth-form h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text);
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #FAFAFA;
}
.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--primary);
    background: #FFF;
}

/* 链接区域 */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
}

/* 管理员入口 */
.admin-entry {
    text-align: right;
    margin-top: 20px;
}
.admin-link {
    font-size: 11px !important;
    color: #CCCCCC !important;
    cursor: pointer;
}
.admin-link:hover {
    color: var(--text-light) !important;
}

/* 密保问题标签 */
.security-question-label {
    background: #F0F7F0;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 14px;
}

/* ============================================
   按钮样式
   ============================================ */
.btn-primary {
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-primary:active {
    transform: scale(0.98);
}

.btn-small {
    padding: 6px 16px;
    font-size: 13px;
    width: auto;
    border-radius: 6px;
    background: var(--primary);
    color: #FFF;
    border: none;
    cursor: pointer;
}
.btn-small:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}
.btn-outline:hover {
    background: var(--primary) !important;
    color: #FFF !important;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
}
.btn-back:hover {
    color: var(--primary-dark);
}

.btn-danger {
    background: var(--danger) !important;
}
.btn-danger:hover {
    background: #C0392B !important;
}

.btn-warning {
    background: #F39C12 !important;
}
.btn-warning:hover {
    background: #D68910 !important;
}

/* ============================================
   顶部导航栏
   ============================================ */
.top-bar {
    background: var(--card-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-bar-inner {
    max-width: 80%;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary) !important;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-user-name {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
    margin: 30px 0 20px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.page-header h2 {
    flex: 1;
    font-size: 20px;
}

/* ============================================
   板块列表样式
   ============================================ */
.board-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.board-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}
.board-card:last-child {
    border-bottom: none;
}
.board-card:hover {
    background: #F0F7F0;
}
.board-card .board-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 10px;
    flex-shrink: 0;
}
.board-card .board-info {
    flex: 1;
}
.board-card .board-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.board-card .board-desc {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   横向板块标签栏
   ============================================ */
.board-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.board-tabs::-webkit-scrollbar { display: none; }

.board-tab {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card-bg);
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
    flex-shrink: 0;
}
.board-tab:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.board-tab.active {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

/* ============================================
   排序栏
   ============================================ */
.sort-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.sort-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    font-size: 13px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}
.sort-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.sort-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
}

/* ============================================
   点赞按钮
   ============================================ */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.like-btn:hover {
    background: #FFF0F0;
    color: #E74C3C;
}
.like-btn.liked {
    color: #E74C3C;
    background: #FFF0F0;
}
.like-btn.small {
    font-size: 12px;
    padding: 2px 8px;
}

/* 帖子详情点赞区域 */
.post-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ============================================
   帖子列表样式
   ============================================ */
.post-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.post-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.post-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.post-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    background: var(--primary-light);
}
.post-item-meta {
    flex: 1;
}
.post-item-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.post-item-time {
    font-size: 12px;
    color: var(--text-light);
}
.post-item-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.post-item-content {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-item-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.anonymous-badge {
    background: #FFF3E0;
    color: #E65100;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* ============================================
   帖子详情样式
   ============================================ */
.post-detail-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.post-detail-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}
.post-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
    gap: 12px;
}
.post-detail-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================
   评论区样式
   ============================================ */
.comment-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.comment-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text);
}

.comment-item {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}
.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    background: var(--primary-light);
}
.comment-author {
    font-weight: 500;
    color: var(--text);
}
.comment-time {
    color: var(--text-light);
    margin-left: 12px;
}
.comment-body {
    font-size: 14px;
    color: var(--text);
    margin-left: 36px;
    line-height: 1.6;
}
.comment-actions {
    margin-left: 36px;
    margin-top: 6px;
}
.comment-reply-btn {
    font-size: 12px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* 楼中楼回复 */
.comment-replies {
    margin-left: 36px;
    border-left: 2px solid var(--border);
    padding-left: 12px;
}
.reply-form {
    margin-left: 36px;
    margin-top: 8px;
    display: flex;
    gap: 8px;
}
.reply-form textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    resize: none;
    outline: none;
}
.reply-form textarea:focus {
    border-color: var(--primary);
}
.reply-form button {
    padding: 8px 14px;
    font-size: 12px;
    align-self: flex-end;
}

/* 发表评论表单 */
.comment-form {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    margin-bottom: 10px;
}
.comment-form textarea:focus {
    border-color: var(--primary);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.form-row .btn-primary {
    width: auto;
    padding: 8px 20px;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}

/* ============================================
   发帖表单
   ============================================ */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.form-card input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 14px;
    outline: none;
    font-family: inherit;
}
.form-card input:focus {
    border-color: var(--primary);
}
.form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    margin-bottom: 14px;
}
.form-card textarea:focus {
    border-color: var(--primary);
}

/* ============================================
   个人中心样式
   ============================================ */
.user-center-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.profile-card h3 {
    margin-bottom: 16px;
    font-size: 16px;
}
.profile-card input,
.profile-card textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    font-family: inherit;
}
.profile-card input:focus,
.profile-card textarea:focus {
    border-color: var(--primary);
}
.profile-card .btn-primary {
    width: auto;
}

.avatar-wrapper {
    text-align: center;
    margin-bottom: 20px;
}
.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    background: var(--bg);
}
.avatar-upload-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
}
.avatar-upload-btn:hover {
    text-decoration: underline;
}

.profile-info label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* ============================================
   管理员后台样式
   ============================================ */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}
.tab-btn.active {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

.admin-panel {
    display: none;
}
.admin-panel.active {
    display: block;
}

.admin-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}
.admin-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th {
    background: #F0F7F0;
    padding: 12px 14px;
    text-align: left;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.admin-table tr:hover {
    background: #FAFFFE;
}

.status-banned {
    color: var(--danger);
    font-weight: 500;
}
.status-normal {
    color: var(--primary);
}

.admin-link-item {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}
.admin-link-item:hover {
    text-decoration: underline;
}

/* ============================================
   分页样式
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.pagination button {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}
.pagination button.active {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}
.pagination button:hover:not(.active) {
    border-color: var(--primary);
}

/* ============================================
   Toast提示
   ============================================ */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0,0,0,0.75);
    color: #FFF;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    transition: transform 0.3s ease;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}
.toast.error {
    background: rgba(231,76,60,0.9);
}
.toast.success {
    background: rgba(91,140,90,0.9);
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   公告通知样式
   ============================================ */
.announcement-area {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.announcement-header {
    background: #FFF8E1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #F57F17;
    border-bottom: 1px solid var(--border);
}
.announcement-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}
.announcement-item.pinned {
    background: #FFF9F0;
    border-bottom: 1px solid #FFE0B2;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-item:hover {
    background: #FAFAFA;
}
.announcement-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}
.announcement-item-time {
    font-size: 12px;
    color: var(--text-light);
}
.announcement-item-content {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.5;
}

/* ============================================
   管理员统计卡片
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}
.stat-card.clickable {
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.stat-card.clickable:hover {
    background: #F0F8FF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================
   批量操作栏
   ============================================ */
.batch-bar {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

/* ============================================
   文字提示
   ============================================ */
.text-hint {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   意见箱列表
   ============================================ */
.suggestion-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.suggestion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.suggestion-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    gap: 10px;
}
.suggestion-item-body {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.suggestion-item-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.suggestion-detail-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.suggestion-detail-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 12px;
}

/* ============================================
   图片展示
   ============================================ */
.content-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 10px;
    object-fit: cover;
    cursor: pointer;
}
.image-upload-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    border: 1px dashed var(--primary-light);
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.image-upload-btn:hover {
    background: #F0F7F0;
}
.image-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    margin-bottom: 10px;
    object-fit: cover;
}

/* ============================================
   用户资料弹窗
   ============================================ */
.user-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.user-profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-height: 80vh;
    overflow-y: auto;
}
.user-profile-card .profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.user-profile-card .profile-header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-light);
}
.user-profile-card .profile-nickname {
    font-size: 20px;
    font-weight: 600;
}
.user-profile-card .profile-bio {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}
.user-profile-card .profile-join {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}
.user-profile-card .profile-section {
    margin-bottom: 16px;
}
.user-profile-card .profile-section h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}
.user-profile-card .profile-post-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    cursor: pointer;
}
.user-profile-card .profile-post-item:hover {
    color: var(--primary);
}
.user-profile-card .profile-close {
    text-align: center;
    margin-top: 16px;
}

/* ============================================
   可点击的头像
   ============================================ */
.clickable-avatar {
    cursor: pointer;
    transition: opacity 0.2s;
}
.clickable-avatar:hover {
    opacity: 0.8;
}

/* ============================================
   禁言提示
   ============================================ */
.ban-notice {
    background: #FFF3E0;
    color: #E65100;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .auth-container {
        padding: 24px;
        margin: 16px;
    }
    .auth-logo h1 {
        font-size: 22px;
    }
    .top-bar-inner {
        padding: 10px 14px;
    }
    .logo-text {
        font-size: 16px;
    }
    .nav-user-name {
        display: none;
    }
    .main-content {
        padding: 12px;
    }
    .board-grid {
        border-radius: 10px;
    }
    .board-card {
        padding: 14px 16px;
        gap: 12px;
    }
    .board-card .board-icon {
        font-size: 24px;
        width: 38px;
        height: 38px;
    }
    .board-card .board-name {
        font-size: 15px;
    }
    .page-header {
        flex-wrap: wrap;
    }
    .post-detail-title {
        font-size: 18px;
    }
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-table {
        font-size: 12px;
    }
    .admin-tabs {
        flex-wrap: wrap;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
