/* ========================================
   搜优学建站 - 通用页面样式
   ======================================== */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--deep-sea-blue) 0%, var(--ocean-blue) 100%);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('../images/page-header-bg.jpg') center/cover no-repeat;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%);
    opacity: 0.2;
}

.page-title {
    font-size: 48px;
    color: var(--snow-white);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--bright-red);
}

.breadcrumb span {
    color: var(--bright-red);
}

/* 内页内容区 */
.page-content {
    padding: 80px 0;
}

/* 侧边栏布局 */
.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
}

.sidebar {
    background: var(--snow-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 20px;
    color: var(--deep-sea-blue);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bright-red);
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--bright-red);
    color: var(--snow-white);
}

/* 新闻列表页 */
.news-list {
    display: grid;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: var(--snow-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.news-item-image {
    height: 200px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.1);
}

.news-item-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-title {
    font-size: 24px;
    color: var(--deep-sea-blue);
    margin-bottom: 15px;
}

.news-item-excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-item-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 新闻详情页 */
.article-detail {
    background: var(--snow-white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.article-title {
    font-size: 36px;
    color: var(--deep-sea-blue);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 14px;
}

.article-content {
    line-height: 2;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

.article-content h2 {
    font-size: 28px;
    color: var(--deep-sea-blue);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 22px;
    color: var(--ocean-blue);
    margin: 30px 0 15px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

/* 相关新闻 */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-light);
}

.related-news-title {
    font-size: 28px;
    color: var(--deep-sea-blue);
    margin-bottom: 30px;
}

/* 服务详情页 */
.service-detail {
    text-align: center;
    padding: 60px 40px;
    background: var(--snow-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.service-detail-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--bright-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon img {
    width: 50px;
    height: 50px;
}

.service-detail-title {
    font-size: 32px;
    color: var(--deep-sea-blue);
    margin-bottom: 20px;
}

.service-detail-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* 案例展示 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.case-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 35, 66, 0.95), transparent);
    color: var(--snow-white);
}

.case-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.case-category {
    font-size: 14px;
    opacity: 0.8;
}

/* 联系表单 */
.contact-form {
    background: var(--snow-white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--deep-sea-blue);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--bright-red);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 响应式 */
@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-item-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .article-detail {
        padding: 30px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
}
