/* 主要内容容器 */
.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 主要内容区域 */
.main-content {
    display: grid;
    /*grid-template-columns: 2fr 1fr;*/
    gap: 30px;
    margin-bottom: 40px;
}

/* 图片展示区域 */
.image-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.showcase-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.showcase-content p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
}

/* 新闻区域 */
.news-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #2a5298;
}

.news-section h3 {
    color: #2a5298;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.news-date {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.news-type-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    text-align: center;
    min-width: 40px;
}

.news-type-label.normal {
    background-color: #007bff;
}

.news-type-label.job {
    background-color: #28a745;
}

.news-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #2a5298;
}

.loading-message {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.error-message {
    text-align: center;
    color: #dc3545;
    padding: 20px;
    font-style: italic;
}

/* 底部内容区域 */
.bottom-content {
    display: grid;
    /*grid-template-columns: 2fr 1fr;*/
    gap: 30px;
    align-items: stretch;
}

.homepage-container > * {
    animation: fadeInUp 0.6s ease-out;
}

.main-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.bottom-content > * {
    animation-delay: 0.4s;
}

.bottom-content > *:nth-child(2) {
    animation-delay: 0.6s;
}

/* 轮播图样式 */
.carousel-section {
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-wrapper {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    width: 20%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 600;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 轮播图响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-slide .placeholder {
        font-size: 16px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content,
    .bottom-content {
        grid-template-columns: 1fr;
    }
    
    .homepage-container {
        padding: 20px 15px;
    }
    
    .image-showcase {
        padding: 25px;
        min-height: 200px;
    }
    
    .showcase-content p {
        font-size: 16px;
    }
}
