/* ========================================
   文章中心页面专用样式
   ======================================== */

/* 幻灯片容器 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide:nth-child(1) {
    background-color: #667eea;
}

.slide:nth-child(2) {
    background-color: #764ba2;
}

.slide:nth-child(3) {
    background-color: #667eea;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 75vw;
    width: 75%;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.slide-content .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slide-content .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    border-color: #667eea;
    transform: scale(1.2);
}

/* Banner区域（保留兼容） */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-section p {
    font-size: 20px;
    opacity: 0.9;
}

/* 页面标题和面包屑导航 */
.page-header-section {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-header-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-icon {
    display: flex;
    align-items: center;
}

.breadcrumb-icon svg {
    width: 20px;
    height: 20px;
}

.breadcrumb-text {
    color: #999;
}

.breadcrumb-link {
    color: #0052cc;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #0066ff;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 文章列表区域 */
.articles-page-section {
    background: white;
    padding: 60px 20px;
}

.articles-page-container {
    max-width: 75vw;
    width: 75%;
    margin: 0 auto;
}

.articles-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.articles-page-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.articles-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.articles-page-content {
    padding: 25px;
}

.articles-page-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.articles-page-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.articles-page-title a:hover {
    color: #667eea;
}

.articles-page-summary {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.8em * 2);
}

.articles-page-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.articles-page-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.articles-page-read-more:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 20px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .page-header-section {
        padding: 30px 0;
    }

    .page-header-container {
        width: 95%;
        max-width: 95%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .breadcrumb-icon svg {
        width: 16px;
        height: 16px;
    }

    .articles-page-section {
        padding: 40px 20px;
    }

    .articles-page-container {
        max-width: none;
        width: 95%;
    }

    .articles-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .articles-page-title {
        font-size: 20px;
    }

    .articles-page-summary {
        font-size: 15px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination a {
        padding: 8px 14px;
        font-size: 14px;
    }
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .slider-arrow.prev {
        left: 10px;
    }
    
    .slider-arrow.next {
        right: 10px;
    }
    
    .hero-section {
        padding: 50px 20px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }
}