/* 企业动态css */
@import 'reset.css';
@import 'index.css';
@import 'common.css';

.news-header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/banner/3.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.news-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.news-header .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.news-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-header-title {
    text-align: center;
    margin-bottom: 50px;
}

.news-header-title h2 {
    color: #ff6a00;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 20px;
}

.news-description {
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 16px;
}

/* 新的创意列表样式 */
.news-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 30px;
    min-height: 140px; /* 增加卡片最小高度 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #ff6a00;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.1);
    border-left-width: 6px;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6a00, #f2af7c, transparent);
}

.card-image {
    width: 180px; 
    height: 180px; 
    object-fit: cover;
    border-radius: 8px;
    margin-right: 30px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #2d3748;
}

.card-title span {
    display: inline-block;
    background: linear-gradient(135deg, #ff6a00, #f2af7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    font-weight: 700;
    margin-right: 8px;
    position: relative;
}

.card-title span::after {
    content: '|';
    color: #ff6a00;
    margin-left: 8px;
}

.card-text {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.card-link {
    margin-top: 32px;
    /* 居右 */
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6a00, #f2af7c);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.card-link i {
    margin-right: 6px;
    font-size: 12px;
}

/* 添加序号样式 */
.news-card {
    counter-increment: news-counter;
}

.news-cards {
    counter-reset: news-counter;
}

.news-card::after {
    content: counter(news-counter, decimal-leading-zero);
    position: absolute;
    right: 10px;
    top: 15%;
    transform: translateY(-50%);
    font-size: 38px;
    font-weight: 700;
    color: rgba(255, 106, 0, 0.1);
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-header-title h2 {
        font-size: 24px;
    }

    .news-description {
        font-size: 15px;
        padding: 0 20px;
    }

    .news-container {
        padding: 0 15px;
    }

    .news-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        min-height: auto;
    }

    .card-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 16px;
        text-align: left;
    }

    .card-title span {
        font-size: 14px;
    }

    .card-text {
        text-align: left;
        font-size: 13px;
    }

    .news-card::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-card {
        padding: 20px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .card-image {
        width: 70px;
        height: 70px;
    }
}