/* ========================================
   威菲格斯数字建站有限公司 - 内页通用样式
   ======================================== */

/* 页面头部 Banner */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.3), transparent);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 136, 166, 0.2), transparent);
    border-radius: 50%;
}

.page-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* 面包屑导航 */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text);
}

.breadcrumb a {
    color: var(--color-heading);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-button-hover);
}

.breadcrumb span {
    color: var(--color-text);
    opacity: 0.6;
}

/* 内容区域 */
.main-content {
    padding: 4rem 0;
}

/* 网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 列表项样式 */
.list-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 2px solid transparent;
}

.list-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-button);
    box-shadow: 0 16px 40px rgba(168, 230, 207, 0.25);
}

.list-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.list-item-title {
    color: var(--color-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.list-item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
}

.list-item-excerpt {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.list-item-link {
    display: inline-block;
    color: var(--color-heading);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    background: rgba(212, 136, 166, 0.1);
}

.list-item-link:hover {
    background: var(--color-heading);
    color: white;
    transform: translateX(5px);
}

/* 详情页面样式 */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-title {
    font-size: 2.5rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--color-text);
    opacity: 0.7;
    font-size: 0.95rem;
}

.detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.detail-content {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    line-height: 1.8;
    color: var(--color-text);
}

.detail-content p {
    margin-bottom: 1.5rem;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 2rem 0;
}

/* 侧边栏布局 */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sidebar {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: var(--color-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--color-secondary);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 0.75rem;
}

.sidebar-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: rgba(168, 230, 207, 0.1);
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background: var(--color-heading);
    color: white;
    transform: translateX(5px);
}

/* 相关资讯 */
.related-news {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px dashed var(--color-secondary);
}

.related-news h3 {
    color: var(--color-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .detail-content {
        padding: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        flex-wrap: wrap;
    }

    .detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
