/* 从index-yshweb.php提取的内联样式 */

/* 活动区域样式 */
.activity-section {
    width: 1480px;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}

.activity-section .section-title {
    text-align: center;
    margin-bottom: 35px;
}

.activity-section .section-title h2 {
    color: #2d3748;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.activity-section .section-title .title-line {
    width: 80px;
    height: 3px;
    background: #e63946;
    margin: 15px auto 0;
    border-radius: 3px;
}

.activity-section .activity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.activity-section .activity-card {
    width: calc(25% - 15px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-section .activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.activity-section .activity-img {
    height: 220px;
    overflow: hidden;
}

.activity-section .activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.activity-section .activity-card:hover .activity-img img {
    transform: scale(1.1);
}

.activity-section .activity-content {
    padding: 20px;
}

.activity-section .activity-content h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 600;
}

.activity-section .activity-content p {
    color: #718096;
    line-height: 1.6;
    margin: 0 0 15px;
    font-size: 14px;
}

.activity-section .activity-meta {
    display: flex;
    justify-content: space-between;
    color: #a0aec0;
    font-size: 13px;
    margin-bottom: 18px;
}

.activity-section .activity-btn {
    width: 100%;
    border: none;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* 核心内容块样式 */
.core-section {
    width: 1480px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.core-section .image-grid {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.core-section .image-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.core-section .image-item:hover {
    transform: scale(1.05);
}

.core-section .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.core-section .text-content {
    width: 48%;
    margin-left: 2%;
}

.core-section .text-content h2 {
    color: #2d3748;
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.3;
}

.core-section .text-content p {
    color: #4a5568;
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.core-section .join-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #4299e1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.core-section .join-btn:hover {
    background-color: #3182ce;
}

/* 精华帖子图片样式 */
.essence-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* 活动图片样式 */
.post-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

/* 侧边栏用户头像样式 */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

/* 侧边栏照片墙样式 */
.photo-item {
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 1480px) {
    .activity-section,
    .core-section {
        width: 100%;
        max-width: 1480px;
        padding: 20px;
    }
    
    .activity-section .activity-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .activity-section .activity-card {
        width: 100%;
    }
    
    .core-section {
        flex-direction: column;
        text-align: center;
    }
    
    .core-section .image-grid,
    .core-section .text-content {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
}
