/* 新闻列表页面样式 - 重写版 */

/* 新闻主体区域 */
.news-main {
    padding: 40px 0 80px;
    background: #ffffff;
    margin-top: 70px;
}

.news-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.page-title {
    font-size: 32px;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #bf9f46;
}

.breadcrumb span {
    margin: 0 8px;
}

.breadcrumb span:last-child {
    color: #bf9f46;
    font-weight: 500;
}

/* 新闻列表 - 强制水平布局 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: row !important;
    border: 1px solid #f0f0f0;
    min-height: 140px;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 新闻图片 - 左侧固定 */
.news-image {
    width: 180px !important;
    height: 140px !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

/* 新闻内容 - 右侧填充 */
.news-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    margin-bottom: 8px;
}

.news-title a {
    font-size: 18px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.news-title a:hover {
    color: #bf9f46;
}

.news-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.news-date {
    color: #999;
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-main .container {
        padding: 0 15px;
    }
    
    .news-image {
        width: 160px !important;
        height: 120px !important;
    }
    
    .news-item {
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .news-main {
        padding: 30px 0 60px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 25px;
    }

    .page-title {
        font-size: 26px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .news-item {
        flex-direction: column !important;
        min-height: auto;
    }

    .news-image {
        width: 100% !important;
        height: 180px !important;
    }

    .news-content {
        padding: 18px 20px;
    }

    .news-title a {
        font-size: 16px;
    }

    .news-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .news-date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .news-main .container {
        padding: 0 10px;
    }

    .page-title {
        font-size: 22px;
    }

    .news-content {
        padding: 15px;
    }

    .news-title a {
        font-size: 15px;
    }

    .news-subtitle {
        font-size: 12px;
    }

    .news-date {
        font-size: 11px;
    }
}

/* 加载动画 */
.news-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }
.news-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 