/* 品牌视觉识别页面专用样式 */

/* ===== 页面容器 ===== */
.brand-visual-page {
    width: 100%;
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* ===== 页面标题区域 ===== */
.page-title-section {
    padding: 150px 0 35px 0;
    background: #fff;
    flex-shrink: 0;
}

.title-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 标题左侧紫色竖线 */
.title-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7028aa;
}

.page-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 15px;
    font-family: 'Swei Spring CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 0 15px;
    letter-spacing: 2px;
    font-family: 'RobotoEnglish', 'SourceHanSans', sans-serif;
}

/* ===== Banner区域 ===== */
.banner-section {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #7028aa 0%, #512587 100%);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== 分类筛选区域 ===== */
.category-section {
    padding: 40px 0 20px 0;
    background: #fff;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.category-buttons {
    display: flex;
    gap: 46.75px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6.8px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    color: #4c4c4c;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Han Sans SC', 'SourceHanSans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    text-align: left;
    letter-spacing: 0;
    white-space: nowrap;
}

.category-line {
    display: block;
    width: 0.75px;
    height: 14.72px;
    background-color: #7028aa !important;
    flex: 0 0 0.75px;
}

.category-btn:hover .category-line,
.category-btn.active .category-line {
    background-color: #7028aa !important;
}

.category-label {
    color: #4c4c4c;
    transition: color 0.3s ease;
}

.category-btn:hover .category-label {
    color: #7028aa;
}

.category-btn.active .category-label {
    color: #7028aa;
}

/* ===== 案例展示区域 ===== */
.cases-section {
    padding: 40px 0 20px 0;
    background: #fff;
    display: block;
    height: auto;
    align-items: initial;
    justify-content: initial;
    scroll-snap-align: none;
    flex: 1;
    min-height: calc(100vh - 600px);
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
    align-items: start; /* 确保卡片顶部对齐 */
}

.brand-visual-page .case-card {
    background: transparent;
    overflow: visible;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transform: none !important;
    gap: 0;
    margin: 0;
    padding: 0;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.brand-visual-page .case-card:hover {
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.15);
}

.brand-visual-page .case-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    position: relative;
    transform: none !important;
    margin: 0;
    padding: 0;
}

.brand-visual-page .case-card:hover .case-image-wrapper {
    box-shadow: 0 8px 24px rgba(112, 40, 170, 0.15);
    transform: none !important;
}

.brand-visual-page .case-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 0;
}

.brand-visual-page .case-card:hover .case-image {
    transform: scale(1.1);
}

.case-info {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    padding-left: 25px; /* 为左侧竖线留出空间 */
    width: 100%;
    box-sizing: border-box;
}

/* 左侧紫色竖线 */
.case-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #7028aa;
}

.case-title {
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    text-align: left;
}

.case-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
}

.case-more-link {
    color: #7028aa; /* 紫色 */
    font-size: 0.85rem;
    text-decoration: none;
    text-align: right;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end; /* 居右对齐 */
    align-self: flex-end; /* 自身也居右 */
}

/* 左侧横线 */
.case-more-link::before {
    content: '';
    width: 30px;
    height: 2px;
    background: #7028aa;
    transition: width 0.3s ease;
}

.case-more-link:hover {
    color: #8B5CF6;
}

.case-more-link:hover::before {
    width: 40px;
}

.no-cases {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #999;
}

/* ===== 加载更多按钮 ===== */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.load-more-btn:hover {
    color: #7028aa;
    transform: translateY(3px);
}

.arrow-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.load-more-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn.loading .arrow-icon {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ===== 底部联系信息区域 - 使用公共底部CSS ===== */
/* 所有底部样式由common-footer.css控制 */

@media (max-width: 1240px) {
    .title-container {
        padding: 0 20px;
    }
    .title-container::before {
        left: 20px;
    }
    .category-container {
        padding: 0 20px;
    }
    .cases-container {
        padding: 0 20px;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .banner-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-title-section {
        padding: 100px 0 30px 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .banner-section {
        height: 250px;
    }
    
    .category-section {
        padding: 30px 0 15px 0;
    }
    
    .category-buttons {
        gap: 46.75px;
    }
    
    .category-btn {
        font-size: 16px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.3rem;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
    }
    
    .banner-section {
        height: 200px;
    }
    
    .category-btn {
        font-size: 16px;
    }
    
    .case-title {
        font-size: 0.9rem;
    }
}

/* ===== 导航菜单选中状态 ===== */
.brand-visual-page .nav-item.active .nav-link {
    color: #7028aa !important;
}

.brand-visual-page .nav-item.active .nav-underline {
    width: 100% !important;
    background-color: #7028aa !important;
}
