/* ===== 企业动态页面样式 ===== */

/* 页面头部 */
.news-header {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
    color: var(--text-primary);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

/* 页面头部背景图 */
.news-header.has-bg-image {
    background-image: url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
}

.news-header.has-bg-image::before {
    display: none;
}

/* 装饰性背景元素 */
.news-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 112, 83, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.news-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #4D490C;
    position: relative;
}

.news-header p {
    font-size: 16px;
    color: #303133;
}

/* 在news-header内的consult-btn统一使用首页样式 */
.news-header .consult-btn {
    background: #303133 !important;
    color: white !important;
    border: 2px solid #303133 !important;
    box-shadow: 0 4px 12px rgba(48, 49, 51, 0.2) !important;
}

.news-header .consult-btn:hover {
    background: #4a4a4a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(48, 49, 51, 0.3) !important;
}

/* 内容布局 */
.news-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
}

/* 文章列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 文章卡片 */
.news-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    overflow: hidden;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-color);
    transform: translateY(-2px);
}

/* 文章日期区域 - 左侧 */
.news-card-date-wrapper {
    flex-shrink: 0;
    width: 80px;
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-align: center;
}

.news-card-date-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.news-card-date-month {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 4px;
}

.news-card-date-year {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

/* 文章内容区域 */
.news-card-content-wrapper {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

/* 内容区域头部 */
.news-card-content-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.news-card-content-header .news-category {
    padding: 4px 12px;
    background: var(--brand-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.news-card-content-header .news-date {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}


.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: var(--transition);
    line-height: 1.4;
}

.news-card:hover .news-card-title {
    color: var(--brand-color);
}

.news-card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-views::before {
    content: '👁';
    font-size: 14px;
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag {
    font-size: 12px;
    color: var(--brand-color);
    background: rgba(114, 112, 83, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-color);
}

/* 热门文章列表 */
.hot-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hot-article-item {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.hot-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-article-item:hover {
    padding-left: 8px;
}

.hot-article-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.5;
    transition: var(--transition);
}

.hot-article-item:hover .hot-article-title {
    color: var(--brand-color);
}

.hot-article-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 1024px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 40px 0 30px;
    }

    .news-header h1 {
        font-size: 28px;
    }

    /* 移动端文章卡片布局 */
    .news-card {
        flex-direction: column;
    }

    .news-card-date-wrapper {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
    }

    .news-card-date-day {
        font-size: 24px;
    }

    .news-card-date-month {
        font-size: 12px;
        margin-top: 0;
    }

    .news-card-date-year {
        margin-top: 0;
        margin-left: 4px;
    }

    .news-card-content-wrapper {
        padding: 16px;
    }

    .news-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .news-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
