/* 详情样式 */
.detail-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.detail-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    padding: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.detail-title {
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.3;
}

.detail-meta {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.detail-image {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.01);
}

.detail-content {
    font-size: 16px;
    line-height: 2.1;
    color: #555;
    font-family: "Microsoft YaHei", sans-serif;
}

.detail-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.detail-content h2, .detail-content h3, .detail-content h4 {
    color: #2c3e50;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.detail-content h2 {
    font-size: 28px;
}

.detail-content h3 {
    font-size: 24px;
}

.detail-content h4 {
    font-size: 20px;
}

.detail-content ul, .detail-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.detail-content li {
    margin-bottom: 10px;
}

.detail-content span {
    display: block;
    margin-bottom: 20px;
    text-wrap-mode: wrap !important;
}

.back-to-list {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: #0075cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.back-to-list:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 117, 204, 0.3);
}

/* 上一条下一条导航样式 */
.prev-next-nav {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.prev-next-row {
    margin-bottom: 15px;
}

.prev-next-row:last-child {
    margin-bottom: 0;
}

.prev-link, .next-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
}

.prev-link:hover, .next-link:hover {
    color: #0075cc;
    transform: translateX(5px);
}

.nav-label {
    color: #999;
    margin-right: 8px;
}

.nav-title {
    color: #555;
    font-weight: 500;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: top;
}

.prev-link:hover .nav-title,
.next-link:hover .nav-title {
    color: #0075cc;
}

.back-to-list-container {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 1024px) {
    .detail-container {
        padding: 40px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-image {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .detail-section {
        padding: 40px 0;
    }
    
    .detail-container {
        padding: 25px;
        width: 95%;
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .detail-image {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .detail-content {
        font-size: 15px;
        line-height: 2;
    }
    
    .detail-content p {
        margin-bottom: 20px;
    }
    
    .back-to-list {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .detail-container {
        padding: 20px;
    }
    
    .detail-title {
        font-size: 20px;
        margin-bottom: 0px;
    }
    
    .detail-meta {
        margin-bottom: 20px;
        font-size: 13px;
    }
    
    .detail-image {
        height: 250px;
    }
}