/* ==========================================
   板块详情页专属样式 - plate.css
   所有类名都以 .plate- 开头
   ========================================== */

/* CSS变量定义 */
:root {
    --plate-primary-color: #3b82f6;
    --plate-text-color: #333;
    --plate-border-radius: 8px;  /* 改为 8px,与首页一致 */
    --plate-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --plate-transition: all 0.3s ease;
}

/* ==========================================
   板块横幅头部样式
   ========================================== */
.plate-banner-header {
    position: relative;
    background: #f8f9fa;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: var(--plate-border-radius);
    box-shadow: var(--plate-box-shadow);
}

/* 背景图 */
.plate-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.plate-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.1);
}

/* 渐变遮罩 */
.plate-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

/* 板块内容区 */
.plate-banner-content {
    position: relative;
    z-index: 3;
    padding: 40px 30px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 板块图标 */
.plate-banner-icon {
    flex-shrink: 0;
}

.plate-banner-icon img {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.plate-banner-icon-text {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 板块信息 */
.plate-banner-info {
    flex: 1;
    min-width: 0;
}

.plate-banner-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0 0 12px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.plate-banner-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* 板块统计 */
.plate-banner-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.plate-stat-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.plate-stat-item i {
    margin-right: 4px;
}

.plate-stat-separator {
    color: rgba(255, 255, 255, 0.6);
}

/* 操作按钮 - 修改尺寸 */
.plate-banner-actions {
    flex-shrink: 0;
}

.plate-btn-create {
    display: inline-block;
    padding: 8px 16px;  /* 从 12px 24px 改为 8px 16px */
    font-size: 14px;  /* 从 16px 改为 14px */
    border-radius: var(--plate-border-radius);
    background: var(--plate-primary-color);
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);  /* 减小阴影 */
    transition: var(--plate-transition);
}

.plate-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);  /* 减小悬停阴影 */
    color: white;
}

/* 板块公告 */
.plate-banner-notice {
    position: relative;
    z-index: 3;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.plate-banner-notice i {
    color: #ffd700;
    margin-right: 8px;
}

/* 版主信息 */
.plate-banner-moderators {
    position: relative;
    z-index: 3;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.plate-moderators-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.plate-moderators-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plate-moderator-item {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--plate-transition);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.plate-moderator-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
}

/* ==========================================
   卡片组件 - 修改阴影与首页一致
   ========================================== */
.plate-card,
.plate-top-posts,
.plate-pending-posts-section,
.plate-posts-list {
    background: white;
    border-radius: var(--plate-border-radius);
    box-shadow: var(--plate-box-shadow);  /* 与首页一致的阴影 */
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;  /* 添加过渡效果 */
}

.plate-card:hover,
.plate-top-posts:hover,
.plate-pending-posts-section:hover,
.plate-posts-list:hover {
    transform: translateY(-5px);  /* 添加悬停上浮效果 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);  /* 悬停时增强阴影 */
}

.plate-card-header {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plate-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--plate-text-color);
}

.plate-card-header h3 i {
    margin-right: 8px;
}

/* 帖子卡片背景 */
.plate-card-body {
    background: white;
}

/* ==========================================
   置顶帖子样式
   ========================================== */
.plate-top-posts-simple {
    display: flex;
    flex-direction: column;
}

.plate-top-post-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.plate-top-post-item:last-child {
    border-bottom: none;
}

.plate-top-post-item:hover {
    background-color: #f8f9fa;
}

.plate-top-post-item a {
    text-decoration: none;
    color: inherit;
}

.plate-top-post-item a:hover .plate-post-title {
    color: var(--plate-primary-color);
}

/* ==========================================
   待审核帖子/评论样式
   ========================================== */
.plate-pending-posts-section .plate-card-header {
    background-color: #fff3e0;
}

.plate-pending-post {
    background-color: #fffaf3;
    border: 1px solid #f0e0c0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.plate-pending-post:last-child {
    margin-bottom: 0;
}

.plate-comment-content {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.plate-pending-badge {
    display: inline-block;
    background-color: #f39c12;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.plate-post-title-section,
.plate-comment-text {
    padding: 5px 0;
    margin-bottom: 8px;
}

.plate-post-title-link {
    text-decoration: none;
    font-weight: 500;
    color: #337ab7;
}

.plate-post-title-link:hover {
    text-decoration: underline;
}

.plate-comment-text {
    margin: 8px 0;
    padding: 8px;
    background: #fff;
    border-radius: 3px;
    border-left: 3px solid #f0ad4e;
    line-height: 1.5;
}

.plate-comment-author {
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
}

.plate-comment-author span {
    margin-left: 10px;
}

.plate-post-actions {
    display: flex;
    margin-top: 10px;
    gap: 8px;
}

/* ==========================================
   按钮样式
   ========================================== */
.plate-btn {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--plate-transition);
    border: none;
    cursor: pointer;
}

.plate-btn i {
    margin-right: 4px;
}

.plate-btn-sm {
    font-size: 12px;
    padding: 5px 10px;
}

.plate-btn-edit,
.plate-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.plate-btn-edit:hover,
.plate-btn-primary:hover {
    background-color: #2563eb;
}

.plate-btn-success {
    background-color: #28a745;
    color: white;
}

.plate-btn-success:hover {
    background-color: #218838;
}

.plate-btn-danger {
    background-color: #dc3545;
    color: white;
}

.plate-btn-danger:hover {
    background-color: #c82333;
}

/* ==========================================
   帖子筛选
   ========================================== */
.plate-post-filters {
    display: flex;
    gap: 15px;
}

.plate-filter-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 3px 0;
    position: relative;
    transition: var(--plate-transition);
}

.plate-filter-link.plate-active,
.plate-filter-link:hover {
    color: var(--plate-primary-color);
}

.plate-filter-link.plate-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--plate-primary-color);
}

/* ==========================================
   帖子列表 - 添加悬停效果
   ========================================== */
.plate-post-list {
    display: flex;
    flex-direction: column;
}

.plate-post-item {
    display: flex;
    padding: 15px;

}

.plate-post-item:hover {
    background-color: #f2f4f7;
}

/* 帖子缩略图 */
.plate-post-thumbnail {
    width: 160px;
    height: 120px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: block;
}

.plate-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plate-image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 帖子右侧内容 */
.plate-post-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

/* 用户信息 */
/* 用户信息 - 防止标签和勋章换行 */
.plate-post-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    overflow: hidden;
    white-space: nowrap;        /* 新增：强制单行 */
    flex-wrap: nowrap;          /* 新增：禁止换行 */
}

.plate-post-user-avatar {
    flex-shrink: 0;
    margin-right: 8px;
}

.plate-post-user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.plate-post-user-name {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 14px;
    color: var(--plate-text-color);
    margin-right: 8px;
    flex-shrink: 1;              /* 允许用户名压缩 */
}


/* 帖子标题 */
.plate-post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--plate-text-color);
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-word;
    display: block;  /* 新增 */
}

/* 标题内的链接样式 - 新增整个样式块 */
.plate-post-title a {
    color: var(--plate-text-color);
    text-decoration: none;
    font-weight: 600;
    display: inline;
    vertical-align: top;
    white-space: normal;
    word-break: break-all;
}

/* 帖子标签 */
.plate-post-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 5px;  /* 改为与首页一致 */
    color: white;
    font-size: 0.7rem;  /* 改为与首页一致 */
    border-radius: 3px;
    line-height: 1;  /* 新增 */
    vertical-align: top;  /* 改为与首页一致 */
    margin-bottom: 0;  /* 新增 */
}

/* 标签图标间距 - 新增 */
.plate-post-tag i {
    margin-right: 2px;
}


.plate-post-tag.essence-tag {
    background-color: #FFCC00;
}

.plate-post-tag.admin-verify-tag {
    background-color: #9C27B0;
}

.plate-post-tag.hot-tag {
    background-color: #ff6b6b;
}

.plate-post-tag.top-tag {
    background-color: #FF0000;
}

.plate-post-tag.new-tag {
    background-color: #4CAF50;
}

.plate-post-tag.reward-tag {
    background-color: #ff9800;
}

.plate-post-tag.recommend-tag {
    background-color: #17a2b8;
}

.plate-post-tag.original-tag {
    background-color: #6f42c1;
}

/* 帖子摘要 */
.plate-post-excerpt {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 帖子元数据 */
.plate-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    font-size: 12px;
    color: #777;
    margin-top: auto;
}

.plate-post-meta-item {
    display: flex;
    align-items: center;
}

.plate-post-meta-item i {
    margin-right: 3px;
}

/* ==========================================
   空状态
   ========================================== */
.plate-empty-posts-container {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: #fafafa;
    border-radius: var(--plate-border-radius);
}

.plate-empty-posts-content {
    text-align: center;
    max-width: 500px;
}

.plate-empty-posts-icon {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
    animation: plate-float 3s ease-in-out infinite;
}

@keyframes plate-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.plate-empty-posts-text h4 {
    font-size: 24px;
    color: var(--plate-text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.plate-empty-posts-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.plate-empty-posts-action {
    margin-top: 15px;
}

.plate-empty-posts-action .plate-btn {
    padding: 10px 25px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
    width: auto;
}

.plate-empty-posts-action .plate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ==========================================
   分页导航
   ========================================== */
.plate-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.plate-pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #f0f7ff;
    color: var(--plate-primary-color);
    border-radius: var(--plate-border-radius);
    text-decoration: none;
    transition: var(--plate-transition);
}

.plate-pagination-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.plate-pagination-info {
    color: #666;
    font-size: 14px;
}

.plate-prev-btn i {
    margin-right: 5px;
}

.plate-next-btn i {
    margin-left: 5px;
}

/* ==========================================
   响应式适配
   ========================================== */
@media (max-width: 768px) {
    /* 横幅适配 */
    .plate-banner-content {
        flex-direction: column;
        padding: 30px 20px 20px;
    }
    
    .plate-banner-icon img,
    .plate-banner-icon-text {
        width: 80px;
        height: 80px;
    }
    
    .plate-banner-icon-text {
        font-size: 36px;
    }
    
    .plate-banner-title {
        font-size: 24px;
    }
    
    .plate-banner-desc {
        font-size: 14px;
    }
    
    .plate-banner-stats {
        font-size: 13px;
    }
    
    .plate-btn-create {
        width: 100%;
        text-align: center;
        padding: 10px 16px;  /* 移动端稍大一点 */
    }
    
    .plate-banner-notice,
    .plate-banner-moderators {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .plate-banner-moderators {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* 帖子列表适配 */
    .plate-post-item {
        flex-direction: column;
        padding: 12px 10px;
    }
    
    .plate-post-thumbnail {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .plate-post-right-content {
        width: 100%;
    }
    
    .plate-post-title {
        font-size: 15px;
    }
    
    .plate-post-excerpt {
        font-size: 13px;
    }
    
    .plate-post-meta {
        font-size: 11px;
        gap: 8px;
    }
    
    /* 分页适配 */
    .plate-pagination-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .plate-pagination-info {
        width: 100%;
        text-align: center;
        order: -1;
    }
    
    /* 待审核操作按钮适配 */
    .plate-post-actions {
        gap: 5px;
    }
    
    .plate-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    /* 卡片适配 */
    .plate-card-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .plate-post-filters {
        width: 100%;
        justify-content: space-between;
    }
}
