/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:  HarmonyOS_Sans_SC,"PingFang SC","微软雅黑","Microsoft YaHei",Arial,sans-serif;
    --bs-body-font-family: HarmonyOS_Sans_SC,"PingFang SC","微软雅黑","Microsoft YaHei",Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #000000;
    background-color: #f9fafb;
}

/* 主容器，限制PC端最大宽度 */
.main-container {
    max-width: 1024px;
    margin: 0 auto;
}

/* 顶部横幅 */
.header-banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* 516/1290 = 0.4 = 40% */
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/casebanner.jpg') no-repeat center center;
    background-size: cover;
}

.banner-logo {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 80px;
    z-index: 2;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* 通用部分样式 */
.section-title {
    text-align: center;
    margin: 20px 0 25px;
    font-size: 24px;
    color: #333;
    font-weight: 300;
}

.section-title span {
    color: #d80027;
    margin-right: 10px;
    font-weight: normal;
}

.catalog-item .category-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.catalog-item .category-text span {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.catalog-item .category-text .alias {
    font-size: 11px;
    /*font-weight: lighter;*/
    font-weight: 400;
    color: #d80027;
    margin-top: 2px;
}

/* 作品分类 */
.catalog-section {
    padding: 0 20px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    /* max-width: 800px; */
    margin: 0 auto;
}

.catalog-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    border: 1px solid #dcdcdc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.catalog-item .icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 精选案例 */
.cases-section {
    padding: 0 20px;
}

.cases-section .section-title {
    text-align: left;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 15px;
    /* margin-bottom: 30px; */
}

.case-item {
    width: 100%;
    margin: 0 auto 20px;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.case-image {
    width: 100%;
    aspect-ratio: 1000 / 580;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.case-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #4b5462;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-banner {
        height: 0;
    padding-bottom: 40%; /* 516/1290 = 0.4 = 40% */
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 20px;
        margin: 20px 0 20px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .catalog-item {
        padding: 15px;
    }

    .case-item {
        border-radius: 30px;
    }
    
    .case-info h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-banner {
       height: 0;
    padding-bottom: 40%; /* 516/1290 = 0.4 = 40% */
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .catalog-item {
        padding: 10px;
    }
    
    .catalog-item .icon {
        width: 30px;
        height: 30px;
    }
     
    .case-item {
        border-radius: 20px;
    }

    .case-info {
        padding: 15px;
    }
    
    .case-info h3 {
        font-size: 14px;
    }
}

/* 微信适配 */
@media screen and (max-width: 768px) {
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    .catalog-item:active {
        background-color: #f0f0f0;
    }
}