/* ========================================
   品拓创科 - 内页通用样式
   ======================================== */

/* 页面标题区 */
.page-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 93, 58, 0.85), rgba(44, 62, 42, 0.9)), url('../images/page-header-bg.jpg') center/cover no-repeat;
    margin-top: 80px;
}

.page-header-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--sand);
}

.breadcrumb a {
    color: var(--light-brown);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    opacity: 0.6;
}

/* 内容区块 */
.content-block {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.content-block h3 {
    color: var(--dark-green);
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.content-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--light-brown);
}

.content-block p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}

.content-block ul {
    list-style: none;
    margin: 20px 0;
}

.content-block ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
}

.content-block ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--light-brown);
    font-size: 18px;
}

/* 侧边栏布局 */
.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.sidebar {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 14px 20px;
    border-radius: 10px;
    color: var(--dark-green);
    font-size: 15px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--army-green);
    color: var(--white);
    padding-left: 28px;
}

.sidebar-menu a::before {
    content: '›';
    margin-right: 8px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
    opacity: 1;
}

/* 资讯列表页样式 */
.news-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.news-list-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-list-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.news-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-title {
    font-size: 24px;
    color: var(--dark-green);
    margin-bottom: 12px;
    font-weight: 700;
}

.news-list-excerpt {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.news-list-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-list-more {
    color: var(--light-brown);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-list-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-list-more::after {
    transform: translateX(5px);
}

/* 新闻详情页样式 */
.news-detail {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.news-detail-header {
    border-bottom: 2px solid var(--beige);
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.news-detail-title {
    font-size: 36px;
    color: var(--dark-green);
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail-meta {
    display: flex;
    gap: 30px;
    color: var(--text-gray);
    font-size: 14px;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
}

.news-detail-content {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 2;
}

.news-detail-content p {
    margin-bottom: 25px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

/* 相关新闻 */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--beige);
}

.related-news h4 {
    font-size: 24px;
    color: var(--dark-green);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-item {
    background: var(--beige);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: var(--army-green);
    transform: translateY(-5px);
}

.related-item:hover .related-title,
.related-item:hover .related-date {
    color: var(--white);
}

.related-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-title {
    font-size: 16px;
    color: var(--dark-green);
    margin-bottom: 10px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: var(--text-gray);
}

/* 响应式 */
@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-image {
        height: 200px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-block {
        padding: 30px;
    }

    .page-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .news-detail {
        padding: 30px 20px;
    }

    .news-detail-title {
        font-size: 26px;
    }

    .page-header {
        min-height: 300px;
    }
}
