/* ========================================
   开源顺风建站 - 内页通用样式
   ======================================== */

/* 页面头部区域 */
.page-header {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #e8f4fc 0%, #f8fafc 100%);
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/page-header-bg.jpg') center/cover no-repeat;
    opacity: 0.05;
}

.page-header-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb .separator {
    color: var(--medium-gray);
}

.breadcrumb .current {
    color: var(--primary-blue);
    font-weight: 500;
}

/* 内容区域 */
.content-section {
    padding: 80px 0;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 详情卡片 */
.detail-card {
    background: var(--pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.detail-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.detail-card-body {
    padding: 28px;
}

.detail-card-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.4;
}

.detail-card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.detail-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--medium-gray);
}

/* 侧边栏布局 */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-list li {
    margin-bottom: 14px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.sidebar-list a:hover {
    color: var(--primary-blue);
}

.sidebar-list a::before {
    content: '›';
    font-size: 18px;
    color: var(--primary-blue);
}

/* 联系卡片 */
.contact-card {
    background: linear-gradient(135deg, var(--primary-blue), #7ebaff);
    border-radius: 16px;
    padding: 32px;
    color: var(--pure-white);
}

.contact-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    opacity: 0.95;
}

/* 新闻详情页样式 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--medium-gray);
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow-medium);
}

.article-tags {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.tag {
    padding: 6px 16px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 相关新闻 */
.related-news {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.related-news h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 28px;
    }

    .article-meta {
        flex-direction: column;
        gap: 12px;
    }
}
