/* 详情页样式 */
.detail-page {
    padding: 120px 0 80px;
    background: #0f1420;
}

.breadcrumb {
    padding: 15px 0 30px;
    color: var(--gray);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.article-detail {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px;
}

.article-detail img {
    max-width: 100%; /* 图片最大宽度为其父容器的100% */
    max-height: 100%; /* 图片最大高度为其父容器的100% */
    object-fit: cover; /* 保持图片的宽高比，并裁剪多余部分 */
}

.article-detail header {
    margin-bottom: 30px;
    text-align: center;
}

.article-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--gray);
    font-size: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 18px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
    color: var(--primary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.article-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.article-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags a {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.tags a:hover {
    background: rgba(255, 107, 107, 0.3);
}

.share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.share a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* 相关文章 */
.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.related-articles h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-item {
    display: block;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.related-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-item span {
    display: block;
    padding: 15px;
    color: var(--light);
    font-weight: 500;
    transition: var(--transition);
}

.related-item:hover span {
    color: var(--primary);
}