/* brand页面独立样式 */
.brand-page-wrap {
    padding: 120px 20px 50px;
    background: linear-gradient(135deg, #4a0a0a 0%, #140404 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.brand-page-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23c92a2a;stop-opacity:0.25' /%3E%3Cstop offset='100%25' style='stop-color:%23000;stop-opacity:0.1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23grad)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    opacity: 0.7;
    z-index: 0;
}

.brand-page-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* 弹性布局垂直排列 */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px - 50px);
}

.section-title-wrap {
    /* 新增：往上移动，数值越小越靠上，-40代表向上偏移40px，按需调整 */
    margin-top: -20px;
}

/* 返回首页按钮 */
.back-home-btn {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 15px;
    transition: 0.3s all ease;
}
.back-home-btn:hover {
    color: #fff;
}
.back-home-btn span {
    margin-right: 6px;
}

/* 品牌内容盒子：自动填充剩余高度，撑出空白 */
.brand-content-box {
    flex: 1;
}

.brand-full-wrap {
    position: relative;
}

/* 品牌网格 */
.brand-full-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 10px;
}

/* 分页列表显示隐藏控制 */
.page-list {
    display: none;
}
.page-list.page-active {
    display: grid;
}

/* 分页外层容器，固定在底部 */
.brand-pagination-wrap {
    margin-top: auto;
    padding-top: 60px;
}

/* 分页组件 */
.brand-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.page-item {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.page-item.active {
    background: #9B182F;
    border-color: #9B182F;
}
.page-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .brand-full-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .brand-full-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .brand-page-wrap {
        padding: 110px 15px 60px;
    }
    .brand-page-container {
        min-height: calc(100vh - 110px - 60px);
    }
}
@media (max-width: 480px) {
    .brand-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}