/* 品牌视觉识别页面专用样式 */

/* ===== 页面容器 ===== */
.brand-visual-identity-page {
    width: 100%;
    height: 100vh; /* 固定高度为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;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    gap: 60px;
    width: 100%;
    align-items: stretch; /* 改为stretch,让子元素高度一致 */
}

/* ===== 左侧文字区域 ===== */
.text-area {
    flex: 0 0 35%;
    position: relative;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 移除整体竖线 */
.text-area::before {
    display: none;
}

/* 标题容器 */
.page-main-title {
    position: relative;
    padding-left: 20px; /* 为竖线留出空间 */
}

.page-sub-title {
    padding-left: 20px; /* 和主标题对齐 */
}

/* 只在标题前面显示紫色竖线 - 覆盖两行 */
.page-main-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: calc(100% + 1rem + 5px); /* 主标题高度 + 副标题高度 + 一点额外空间 */
    width: 4px;
    background: #7028aa;
}

.page-main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0; /* 去掉下边距 */
    font-family: 'SweiSpring', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-sub-title {
    font-size: 1rem;
    color: #999;
    margin: 0 0 30px 0; /* 去掉上边距 */
    letter-spacing: 2px;
    font-family: 'SweiSpring', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-description {
    margin-bottom: 40px;
}

.page-description p {
    font-size: 0.9rem;
    line-height: 2;
    color: #666;
    margin: 0;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

/* 覆盖首页CSS中的::before样式 */
.brand-visual-identity-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%;
}

/* ===== 右侧图片区域 ===== */
.image-area {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

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

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

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

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

/* 平板设备 */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .text-area {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .image-area {
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
    }
    
    .page-main-title {
        font-size: 2rem;
    }
    
    .page-sub-title {
        font-size: 0.9rem;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .content-section {
        padding: 30px 0;
    }
    
    .content-container {
        gap: 30px;
    }
    
    .page-main-title {
        font-size: 1.8rem;
    }
    
    .page-sub-title {
        font-size: 0.85rem;
    }
    
    .page-description p {
        font-size: 0.85rem;
    }
    
    .more-cases-button {
        float: none;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }
    
    .case-image {
        max-height: 40vh;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .page-main-title {
        font-size: 1.5rem;
    }
    
    .page-sub-title {
        font-size: 0.8rem;
    }
    
    .page-description p {
        font-size: 0.8rem;
        line-height: 1.8;
    }
    
    .more-cases-button {
        font-size: 1rem;
    }
    
    .more-cases-button::before {
        width: 50px;
    }
    
    .more-cases-button:hover::before {
        width: 70px;
    }
}
