/* css/forum.css */
/* 社区论坛 - 高端重制版美化样式 */

:root {
    --color-bg: #070504;
    --color-surface: #14100e;
    --color-surface-light: #1f1a16;
    --color-border: #4d2307;
    --color-border-light: rgba(77, 35, 7, 0.3);
    --color-gold: #eab308;
    --color-gold-light: #fde047;
    --color-gold-dark: #a16207;
    --color-text: #e4e4e7;
    --color-text-muted: #9e9e9e;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Outfit', "Microsoft YaHei", -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1250px;
    margin: 110px auto 50px;
    padding: 0 25px;
}

/* 导航栏适配度 */
.header-nav {
    background: linear-gradient(180deg, rgba(7, 5, 4, 0.98) 0%, rgba(20, 16, 14, 0.96) 100%);
    border-bottom: 1px solid var(--color-border);
}

/* 论坛看板与面板 */
.forum-header {
    background: linear-gradient(135deg, rgba(31, 26, 22, 0.9) 0%, rgba(20, 16, 14, 0.95) 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(77, 35, 7, 0.2);
    position: relative;
    overflow: hidden;
}
.forum-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-gold-light), var(--color-border));
    box-shadow: 0 0 10px var(--color-gold);
}
.forum-info h1 {
    margin: 0 0 8px 0;
    color: var(--color-gold-light);
    font-family: var(--font-heading);
    font-size: 26px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.forum-info p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* 论坛网格主布局 */
.forum-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* 版块卡片 */
.board-card {
    background: rgba(20, 16, 14, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
    overflow: hidden;
}
.board-header {
    background: linear-gradient(90deg, rgba(77, 35, 7, 0.25) 0%, transparent 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 22px;
    font-weight: 700;
    color: var(--color-gold-light);
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.board-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--color-gold);
    box-shadow: 0 0 8px var(--color-gold);
}
.board-body {
    padding: 5px 0;
}

/* 帖子行重新设计 */
.thread-row {
    display: grid;
    grid-template-columns: 1fr 140px 110px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(77, 35, 7, 0.15);
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.thread-row:last-child {
    border-bottom: none;
}
.thread-row:hover {
    background: rgba(77, 35, 7, 0.05);
    padding-left: 30px;
}
.thread-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.thread-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    word-break: break-all;
}
.thread-title:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 8px rgba(254, 224, 71, 0.2);
}
.thread-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    gap: 20px;
    align-items: center;
}
.thread-author {
    color: var(--color-gold);
    font-weight: 600;
}
.thread-stats {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    border-left: 1px solid rgba(255,255,255,0.03);
    border-right: 1px solid rgba(255,255,255,0.03);
}
.thread-stats span {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}
.thread-lastpost {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: right;
}

/* 置顶与精华徽章 */
.badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    display: inline-block;
}
.badge-sticky { background: rgba(220, 38, 38, 0.25); border: 1px solid #dc2626; color: #fca5a5; }
.badge-digest { background: rgba(5, 150, 105, 0.25); border: 1px solid #059669; color: #a7f3d0; }

.badge-sticky-1 { background: rgba(234, 179, 8, 0.15); border: 1px solid #eab308; color: #fde047; }
.badge-sticky-2 { background: rgba(249, 115, 22, 0.15); border: 1px solid #f97316; color: #fdba74; }
.badge-sticky-3 { background: rgba(239, 68, 68, 0.25); border: 1px solid #ef4444; color: #fee2e2; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); animation: badge-pulse-red 1.5s infinite alternate; }

.badge-digest-1 { background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #6ee7b7; }
.badge-digest-2 { background: rgba(59, 130, 246, 0.15); border: 1px solid #3b82f6; color: #93c5fd; }
.badge-digest-3 { background: rgba(168, 85, 247, 0.25); border: 1px solid #a855f7; color: #f3e8ff; box-shadow: 0 0 8px rgba(168, 85, 247, 0.5); animation: badge-pulse-purple 1.5s infinite alternate; }

@keyframes badge-pulse-red {
    0% { box-shadow: 0 0 2px rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }
}
@keyframes badge-pulse-purple {
    0% { box-shadow: 0 0 2px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.7); }
}

/* 侧边栏用户卡片 */
.sidebar-box {
    background: rgba(20, 16, 14, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}
.user-panel-info {
    text-align: center;
    border-bottom: 1px dashed rgba(77, 35, 7, 0.3);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.user-panel-info .username {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-gold-light);
    margin-bottom: 8px;
}
.user-panel-info .role {
    font-size: 12px;
    background: #231c19;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 3px 12px;
    border-radius: 12px;
    display: inline-block;
}
.points-box {
    background: #0d0a09;
    border: 1px solid rgba(77,35,7,0.2);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
}
.points-box span {
    color: var(--color-gold);
    font-weight: bold;
    font-size: 18px;
    margin-left: 5px;
}

/* 详情帖子回帖展示 */
.post-detail-card {
    background: rgba(20, 16, 14, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 200px 1fr;
    box-shadow: 0 8px 25px rgba(0,0,0,0.8);
    overflow: hidden;
}
.post-user {
    background: rgba(77, 35, 7, 0.04);
    border-right: 1px solid rgba(77, 35, 7, 0.2);
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.post-user .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2a160a;
    border: 2px solid var(--color-border);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--color-gold);
    box-shadow: 0 0 10px rgba(77,35,7,0.5);
    transition: transform 0.3s;
}
.post-user:hover .avatar {
    transform: rotate(360deg);
}

/* 会员专属角色徽章 */
.badge-role {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 5px;
    display: inline-block;
}
.badge-role-admin { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #fca5a5; }
.badge-role-moderator { background: rgba(234, 179, 8, 0.2); border: 1px solid #eab308; color: #fde047; }
.badge-role-user { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--color-text-muted); }

.post-body {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}
.post-content {
    line-height: 1.9;
    font-size: 15px;
    color: #d4d4d8;
    word-break: break-all;
}
.post-meta {
    border-top: 1px dashed rgba(77, 35, 7, 0.2);
    padding-top: 15px;
    margin-top: 25px;
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 帖子回复输入框 */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-gold-light);
    font-size: 14px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #0a0807;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(234,179,8,0.3);
}
textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* 横向板块导航 */
.forum-nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.forum-nav-tab {
    background: rgba(20, 16, 14, 0.95);
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s;
}
.forum-nav-tab.active, .forum-nav-tab:hover {
    color: var(--color-gold-light);
    background: rgba(77, 35, 7, 0.2);
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(234,179,8,0.1);
}

/* 管理操作区 */
.moderator-actions {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid #ef4444;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    font-size: 13px;
    align-items: center;
    box-shadow: 0 0 15px rgba(239,68,68,0.1);
}
.moderator-actions a {
    color: #fca5a5;
    background: rgba(239,68,68,0.15);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(239,68,68,0.3);
}
.moderator-actions a:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}
.page-link {
    padding: 8px 16px;
    background: rgba(20, 16, 14, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
    font-size: 14px;
    transition: all 0.3s;
}
.page-link.active, .page-link:hover {
    background: rgba(77, 35, 7, 0.2);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    box-shadow: 0 0 8px rgba(234,179,8,0.1);
}

/* 论坛交互操作按钮 */
.btn-action {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    border: 1px solid var(--color-gold-light);
    border-radius: 6px;
    color: #070504 !important;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.15);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.3), 0 0 10px rgba(254, 224, 71, 0.5);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
}
.btn-action:active {
    transform: translateY(1px);
}
.btn-action.disabled, .btn-action:disabled {
    background: #27272a !important;
    border-color: #3f3f46 !important;
    color: #71717a !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    text-shadow: none;
}

/* 醒目发帖按钮(橙红色扫光脉冲) */
.btn-post-new {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 50%, #ea580c 100%) !important;
    border-color: #ffedd5 !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4), 0 0 15px rgba(249, 115, 22, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    animation: pulse-glow 2.5s infinite alternate;
}
.btn-post-new:hover {
    background: linear-gradient(135deg, #f97316 0%, #fdba74 50%, #f97316 100%) !important;
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.6), 0 0 25px rgba(249, 115, 22, 0.4) !important;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3), 0 0 5px rgba(249, 115, 22, 0.2);
    }
    100% {
        box-shadow: 0 4px 25px rgba(249, 115, 22, 0.7), 0 0 25px rgba(249, 115, 22, 0.5);
    }
}

