/* ========================================
   尧图网络科技 - 内页通用样式
   ======================================== */

/* 页面头部 */
.page-header {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    margin-top: 70px;
    overflow: hidden;
}

.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.08;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-list a {
    color: #666;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #4a90e2;
}

.breadcrumb-list .current {
    color: #4a90e2;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #ccc;
}

/* 侧边栏布局 */
.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 18px;
    border-radius: 6px;
    color: #555;
    font-size: 15px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: linear-gradient(135deg, #4a90e2, #6fb3f2);
    color: #fff;
    padding-left: 25px;
}

.main-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.content-body h2 {
    font-size: 28px;
    color: #1a3a5c;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.content-body h3 {
    font-size: 22px;
    color: #1a3a5c;
    margin: 30px 0 15px;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-body ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-body li {
    margin-bottom: 10px;
}

/* 新闻列表页 */
.news-list {
    display: grid;
    gap: 25px;
}

.news-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.news-item-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.news-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
    color: #4a90e2;
}

.news-item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 新闻详情页 */
.article-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 25px 0;
}

.article-content p {
    margin-bottom: 20px;
}

/* 相关文章 */
.related-news {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.related-news-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-item-img {
        height: 200px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 32px;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* 服务详情页 */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.service-feature {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.service-feature h4 {
    font-size: 18px;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.service-feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 案例展示 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.case-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.case-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(26, 58, 92, 0.95), transparent);
    color: #fff;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-category {
    font-size: 13px;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}
