/* 案例详情页面样式 */

/* 页面头部 */
.case-header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/banner/5.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.case-tag {
    display: inline-block;
    background: #FF6B00;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.case-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.meta-item {
    font-size: 1rem;
    color: #ddd;
}

.meta-item i {
    margin-right: 8px;
    color: #FF6B00;
}

/* 内容部分 */
.case-content-section {
    padding: 60px 0;
    background: #fff;
}

.case-content-wrap {
    display: flex;
    gap: 40px;
}

.case-main-content {
    flex: 2;
    background: #fff;
}

.case-sidebar {
    flex: 1;
}

/* 主要内容样式 - 文章式布局 */
.case-main-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
}

.case-main-content h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #FF6B00;
    margin-top: 10px;
}

.case-main-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.case-main-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.case-summary,
.case-detail,
.case-timeline,
.case-experience {
    margin-bottom: 40px;
}

/* 图片样式 */
.case-image-full {
    margin: 30px 0;
}

.case-image-full img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* 列表样式 */
.case-main-content ul,
.case-main-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.case-main-content li {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}

.case-main-content strong {
    color: #333;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 30px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #FF6B00;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #FF6B00;
}

.timeline-date {
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}


/* 分隔线 */
.section-divider {
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* 标签 */
.case-tags {
    margin: 40px 0;
}

.tag {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background 0.3s;
}

.tag:hover {
    background: #e0e0e0;
}

/* 案例导航 */
.case-nav {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.back-btn,
.next-case {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s;
}

.back-btn:hover,
.next-case:hover {
    background: #e0e0e0;
}

.back-btn i,
.next-case i {
    margin: 0 5px;
}

/* 侧边栏样式 */
.sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-card h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #FF6B00;
    margin-top: 10px;
}

.contact-card {
    background: linear-gradient(135deg, #FF6B00, #b388ff);
    color: #fff;
    text-align: center;
}

.contact-card h3 {
    color: #fff;
}

.contact-card h3:after {
    background: #fff;
    margin: 10px auto 0;
}

.contact-card p {
    margin-bottom: 20px;
}

.sidebar-btn {
    display: inline-block;
    background: #fff;
    color: #FF6B00;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.sidebar-btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 12px;
}

.sidebar-links a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.sidebar-links a:hover {
    color: #FF6B00;
}

.related-cases {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-case {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.related-case:hover {
    transform: translateX(5px);
}

.related-case img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.related-case-title {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

/* 联系部分 */
.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/banner/6.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
}

.primary-btn {
    display: inline-block;
    background: #FF6B00;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}

.primary-btn:hover {
    background: #FF6B00;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .case-content-wrap {
        flex-direction: column;
    }

    .case-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .case-header {
        padding: 60px 0;
    }

    .case-header h1 {
        font-size: 2rem;
    }

    .case-meta {
        flex-direction: column;
        gap: 10px;
    }

    .case-sidebar {
        flex-direction: column;
    }

    .sidebar-card {
        width: 100%;
    }

    .case-main-content h2 {
        font-size: 1.5rem;
    }

    .case-main-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .case-header h1 {
        font-size: 1.7rem;
    }

    .case-nav {
        flex-direction: column;
        gap: 15px;
    }
}