/* ========== 页面容器 ========== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    font-weight: 300;
    color: var(--medium-gray);
}

.breadcrumb a {
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #9ca3af;
}

.breadcrumb .current {
    color: #6b7280;
    font-weight: 500;
}

/* ========== 文章卡片容器 ========== */
.article-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
    margin-top: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ========== 文章头部 ========== */
.article-header {
    padding: 40px 40px 20px;
    /* border-bottom: 1px solid #f3f4f6; */
}

.category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    justify-content: center; /* 新增：水平居中 */
    align-items: center;     /* 新增：垂直居中 */
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 20px 0;
    /* border-top: 1px solid #f3f4f6; */
    width: 100%;             /* 新增：确保占满父容器宽度 */
    max-width: 800px;        /* 可选：限制最大宽度，避免过宽 */
    margin: 0 auto;          /* 新增：水平居中 */
    color: var(--medium-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-item i {
    width: 20px;
    text-align: center;
}

/* ========== 现代化轮播 ========== */
.gallery-section {
    padding: 40px;
    /* background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); */
    border-bottom: 1px solid #f3f4f6;
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-title::before {
    content: '📸';
    font-size: 1.2rem;
}

.gallery-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gallery-counter {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* 轮播主体 */
.slider-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #1f2937;
    height: 500px;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.02);
}

/* 控制按钮 */
.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #3b82f6;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* 缩略图 */
.thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f3f4f6;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.thumbnail.active {
    opacity: 1;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3b82f6;
}

/* ========== 简介区域 ========== */
.intro-section {
    padding: 40px 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3b82f6;
}

.intro-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.intro-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.intro-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    padding: 20px;
    border-radius: 12px;
}

/* ========== 底部信息 ========== */
.article-footer {
    padding: 30px 40px;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    border-top: 1px solid #374151;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-item {
    text-align: center;
}

.footer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 5px;
}

.footer-value {
    font-size: 16px;
    font-weight: 500;
    color: #e5e7eb;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 15px;
    }

    .article-card {
        border-radius: 15px;
    }

    .article-header,
    .gallery-section,
    .intro-section {
        padding: 25px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .gallery-nav {
        width: 100%;
        justify-content: space-between;
    }

    .slider-wrapper {
        height: 350px;
    }

    .thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }

    .slider-wrapper {
        height: 280px;
    }

    .gallery-title {
        font-size: 1.2rem;
    }

    .thumbnail {
        flex: 0 0 60px;
        height: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.6s ease-out;
}

.slide {
    animation: fadeIn 0.5s ease-out;
}