* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header {
    background-color: #007bff;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.3;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.cases-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.cases-row-1 {
    grid-template-columns: repeat(3, 1fr);
}

.cases-row-2 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-image {
    height: 230px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-card h3 {
    padding: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
}

.other-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.other-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.other-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.other-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* 折叠功能样式 */
.collapsible {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.collapsible::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.collapsible.active::after {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* 案例详情页样式 */
.case-detail {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.case-detail h1 {
    color: #007bff;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
}

.case-detail .case-image-large {
    width: 100%;
    margin-bottom: 2rem;
}

.case-detail .case-image-large img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.case-detail .content {
    font-size: 1.2rem;
    line-height: 2.2;
    color: #495057;
    text-align: justify;
}

.case-detail .content p {
    text-indent: 2em;
    margin-bottom: 1.5rem;
}

.case-detail .content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 2rem 0;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-detail .content p {
    margin-bottom: 1.5rem;
}

.case-detail .content h2 {
    color: #007bff;
    margin: 2.5rem 0 1.5rem;
    font-size: 2rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #5a6268;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cases-row-1,
    .cases-row-2 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        max-width: 100%;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 2rem 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    main {
        padding: 1rem;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .cases-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .case-detail {
        padding: 2rem 1rem;
    }
    
    .case-detail h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .cases-container {
        grid-template-columns: 1fr;
    }
}