/* 首页三栏布局样式 */
.home-three-column {
    display: grid;
    grid-template-columns: 380px 1fr 420px;
    gap: 50px;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    padding: 0;
    align-items: start;
    box-sizing: border-box;
}

/* 首页特殊样式 - 只影响首页 */
.home-three-column .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* 左侧板块列表 */
.home-left-column {
    min-width: 0;
    padding-left: 15px;
}

/* 右侧公告统计 */
.home-right-column {
    min-width: 0;
    padding-right: 15px;
}

/* 左侧板块列表 */
.home-left-column {
    min-width: 0;
    position: sticky;
    top: 90px;
    align-self: start;
}

.left-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-title {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #4CAF50;
}

.category-small-list {
    padding: 15px;
}

.category-small-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 6px;
    color: #333;
    font-size: 15px;
    transition: all 0.2s;
}

.cat-icon-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-icon-name i {
    color: #4CAF50;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.category-small-item:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.category-small-item .cat-name-small {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-small-item .cat-count-small {
    font-size: 13px;
    color: #666;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
}

/* 中间最新帖子 */
.home-center-column {
    min-width: 0;
}

.center-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border-top: 3px solid #fff;
}

.post-small-list {
    padding: 15px;
}

.post-small-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.post-small-row:hover {
    background: #fafafa;
}

.post-small-avatar {
    flex-shrink: 0;
}

.post-small-avatar a {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

.post-small-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-small-avatar .default-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

.post-small-content {
    flex: 1;
    min-width: 0;
}

.post-small-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.tag-small {
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

.tag-small.tag-top {
    background: #f44336;
    color: #fff;
}

.tag-small.tag-essence {
    background: #ff9800;
    color: #fff;
}

.title-text-small {
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-small-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.post-small-meta a {
    color: #666;
}

.post-small-meta a:hover {
    color: #4CAF50;
}

.dot-small {
    color: #ccc;
}

.post-small-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.post-small-stats i {
    margin-right: 3px;
}

.btn-post-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #4CAF50;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    margin-left: auto;
    font-weight: 600;
}

.btn-post-small i {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-post-small:hover {
    background: #45a049;
    text-decoration: none;
    color: #fff;
}

.empty-small {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-small i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

/* 右侧公告和统计 */
.home-right-column {
    min-width: 0;
    position: sticky;
    top: 90px;
    align-self: start;
}

.right-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 15px;
    border-top: 3px solid #fff;
}

.right-section .section-title {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.right-section .section-title i {
    color: #4CAF50;
}

.more-small {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.more-small:hover {
    color: #4CAF50;
}

.announcement-small-list {
    padding: 12px;
}

.announcement-small-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
}

.announcement-small-item:hover {
    background: #fafafa;
    text-decoration: none;
}

.ann-small-tag {
    font-size: 11px;
    padding: 2px 6px;
    background: #f44336;
    color: #fff;
    border-radius: 3px;
    flex-shrink: 0;
}

.ann-small-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ann-arrow {
    font-size: 12px;
    color: #ccc;
    flex-shrink: 0;
}

.announcement-small-item:hover .ann-arrow {
    color: #4CAF50;
}

/* 站长统计 */
.stats-section .section-title {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.stats-section .section-title i {
    color: #4CAF50;
}

.stats-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e0e0e0;
}

.stats-small-cell {
    background: #fff;
    padding: 15px;
    text-align: center;
}

.stats-small-num {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.stats-small-name {
    font-size: 12px;
    color: #999;
}

/* 响应式 */
@media (max-width: 992px) {
    .home-three-column {
        grid-template-columns: 1fr;
    }
    
    .home-left-column,
    .home-right-column {
        order: 2;
    }
    
    .home-center-column {
        order: 1;
    }
}

@media (max-width: 768px) {
    .home-three-column {
        padding: 10px;
        margin: 10px auto;
    }
    
    .post-small-row {
        flex-wrap: wrap;
    }
    
    .post-small-stats {
        width: 100%;
        margin-top: 8px;
        padding-left: 52px;
    }
}