/* 品牌包装设计页面专用样式 */

/* ===== 页面容器 ===== */
.brand-packaging-design-page {
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== 中间内容区域 ===== */
.content-section {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

/* ===== 上方标题区域 ===== */
.title-section {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    position: relative;
}

.title-container {
    position: relative;
    padding-right: 20px;
}

/* 右侧紫色竖线 */
.title-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7028aa;
}

.page-main-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    font-family: 'SweiSpring', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    text-align: right;
}

.page-sub-title {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    letter-spacing: 2px;
    font-family: 'SweiSpring', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    text-align: right;
}

/* 更多案例按钮 - 参考其他页面样式 */
.more-cases-button {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    text-decoration: none;
    color: #333;
    position: relative;
    gap: 15px;
    flex-shrink: 0;
}

/* 覆盖首页CSS中的::before样式 */
.brand-packaging-design-page .more-cases-button::before {
    display: none !important;
}

.more-dot {
    font-size: 1.5rem;
    color: #7028aa;
    line-height: 1;
    flex-shrink: 0;
}

.more-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 7px;
    line-height: 1;
}

/* 下划线 */
.more-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 130%;
    height: 2px;
    background: #7028aa;
    transition: width 0.3s ease;
}

.more-cases-button:hover .more-text {
    color: #7028aa;
}

.more-cases-button:hover .more-text::after {
    width: 150%;
}

/* ===== 三图展示区域 ===== */
.images-section {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    gap: 0;
    position: relative;
}

.image-container {
    flex: 0 0 auto;
    display: flex;
    overflow: hidden;
    position: relative;
}

.image-left {
    width: 28%;
    justify-content: flex-start;
    align-items: flex-start;
}

.image-right {
    width: 28%;
    justify-content: flex-end;
    align-items: flex-end;
}

.image-center {
    width: 32%;
    margin-top: 100px;
    justify-content: center;
}

.case-image {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 55vh;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.image-container:hover .case-image {
    transform: scale(1.05);
}

/* 更多案例按钮 - 在图3右下角，下划线底边与图2底边对齐 */
.more-cases-button-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
}

/* ===== 导航菜单二级菜单选中状态 ===== */
.brand-packaging-design-page .nav-submenu a.active,
.brand-packaging-design-page .nav-submenu a[href*="brandPackagingDesign"] {
    color: #7028aa !important;
    background: #f8f4ff !important;
    font-weight: 600 !important;
}

/* ===== 响应式设计 ===== */

/* 平板设备 */
@media (max-width: 1024px) {
    .title-section {
        position: static;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .title-container {
        text-align: center;
        padding-right: 0;
        padding-left: 20px;
    }
    
    .title-container::after {
        left: 0;
        right: auto;
    }
    
    .page-main-title,
    .page-sub-title {
        text-align: center;
    }
    
    .images-section {
        flex-direction: column;
        align-items: center;
    }
    
    .image-left,
    .image-center,
    .image-right {
        width: 100%;
        max-width: 600px;
        margin-bottom: 0;
    }
    
    .more-cases-button-wrapper {
        position: static;
        margin-top: 20px;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .content-section {
        padding: 30px 0;
    }
    
    .page-main-title {
        font-size: 1.5rem;
    }
    
    .page-sub-title {
        font-size: 0.75rem;
    }
    
    .case-image {
        max-height: 50vh;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .page-main-title {
        font-size: 1.3rem;
    }
    
    .page-sub-title {
        font-size: 0.7rem;
    }
    
    .more-text {
        font-size: 0.9rem;
    }
    
    .case-image {
        max-height: 40vh;
    }
}
