/* ==================== 品牌页面样式 ==================== */

/* 页面标题横幅 */
.page-banner {
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

/* 仅图片的 banner */
.page-banner--image {
    padding: 0;
    background: none;
    height: auto;
}

.page-banner__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern-bg.png') repeat;
    opacity: 0.03;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-red);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.page-description {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    max-width: 1000px;
    margin: 0;
}

/* 品牌区块 */
.brand-section {
    padding: 80px 0;

}

/* 带MORE按钮的标题 */
.section-header-with-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.section-header-with-more .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--grey-dark);
    margin: 0;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-more:hover {
    background: var(--red-hover);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-more:hover i {
    transform: translateX(3px);
}

/* 产品网格 - 4列2行 */
.products-grid-8 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.product-card-brand {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.product-card-brand:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red);
}

.product-image-brand {
    width: 100%;
    height: 200px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-brand:hover .product-image-brand img {
    transform: scale(1.1);
}

.product-info-brand {
    padding: 20px 15px;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.product-info-brand h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--grey-dark);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.product-card-brand:hover .product-info-brand h3 {
    color: var(--primary-red);
}

.product-info-brand p {
    font-size: 14px;
    color: var(--grey-medium);
    margin: 0;
    line-height: 1.5;
}

/* 技术支持 + Modbus 一行两列 */
.brand-two-col-section {
    background: var(--grey-bg);
}

.brand-two-col-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.brand-col .section-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.brand-col .text-list-section {
    max-width: 100%;
}

/* 文字列表区块 */
.text-list-section {
    max-width: 900px;
}

/* DSE软件区域占整行 */
.brand-section-full .text-list-section-full {
    max-width: 100%;
}

/* DSE软件列表：一行一条，标签 + 文件图标 + 文字 */
.dse-software-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dse-software-list li {
    border-bottom: 1px solid var(--border-color);
}

.dse-software-list li:last-child {
    border-bottom: none;
}

.dse-software-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.dse-software-item::before {
    content: none;
}

.dse-software-item .dse-tag {
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--primary-red);
    background: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.25);
    border-radius: 4px;
    font-weight: 500;
}

.dse-software-item i[class^="icon-file-"] {
    flex-shrink: 0;
    font-size: 1.1em;
}

.dse-software-item:hover {
    background: #fafafa;
    color: var(--primary-red);
    padding-left: 30px;
}

.dse-software-item:hover .dse-tag {
    background: rgba(200, 16, 46, 0.12);
    border-color: rgba(200, 16, 46, 0.4);
}

.text-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-list li {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.text-list li:last-child {
    border-bottom: none;
}

.text-list-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    font-size: 15px;
    color: var(--grey-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
    gap: 10px;
}

.text-list-item::before {
    content: '›';
    font-size: 24px;
    color: var(--primary-red);
    margin-right: 15px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.text-list-item:hover {
    background: #fafafa;
    color: var(--primary-red);
    padding-left: 30px;
}

.text-list-item:hover::before {
    transform: translateX(5px);
}

/* 背景浅色区块 */
.bg-light {
    background: var(--grey-bg);
    padding-bottom: 0px;
}

/* 导航激活状态 */
.nav-item > a.active {
    color: var(--primary-red);
}

.nav-item > a.active::after {
    width: 100%;
}

/* ==================== 响应式设计 ==================== */

/* 平板尺寸 */
@media (max-width: 1400px) {
    .products-grid-8 {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .product-image-brand {
        height: 190px;
    }
}

@media (max-width: 1200px) {
    .products-grid-8 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-image-brand {
        height: 180px;
    }
    
    .product-info-brand h3 {
        font-size: 17px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .products-grid-8 {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-image-brand {
        height: 150px;
        padding: 15px;
    }
    
    .product-info-brand {
        padding: 15px 12px;
    }
    
    .product-info-brand h3 {
        font-size: 16px;
    }
    
    .product-info-brand p {
        font-size: 13px;
    }
    
    .section-header-with-more .section-title {
        font-size: 28px;
    }
}

/* 移动端 */
@media (max-width: 768px) {

    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .page-description {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .brand-section {
        padding: 50px 0;
    }
    
    .section-header-with-more {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .section-header-with-more .section-title {
        font-size: 24px;
    }
    
    .btn-more {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image-brand {
        height: 120px;
        padding: 12px;
    }
    
    .product-info-brand {
        padding: 15px 10px;
    }
    
    .product-info-brand h3 {
        font-size: 14px;
    }
    
    .product-info-brand p {
        font-size: 12px;
    }
    
    .text-list-section {
        max-width: 100%;
    }
    
    .text-list-item {
        font-size: 14px;
        padding: 15px 15px;
    }
    
    .text-list-item::before {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .dse-software-item {
        padding: 14px 15px;
        gap: 12px;
        font-size: 14px;
    }
    
    .dse-software-item .dse-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    /* 两列区域移动端改为单列 */
    .brand-two-col-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .brand-col .section-title {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .page-description {
        font-size: 13px;
    }
    
    .section-header-with-more .section-title {
        font-size: 20px;
    }
    
    .products-grid-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image-brand {
        height: 100px;
        padding: 10px;
    }
    
    .product-info-brand {
        padding: 12px 8px;
    }
    
    .product-info-brand h3 {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .product-info-brand p {
        font-size: 11px;
    }
    
    .text-list-item {
        font-size: 13px;
        padding: 12px 10px;
    }
}

/* 打印样式 */
@media print {
    .page-banner {
        background: none;
        color: var(--grey-dark);
        padding: 30px 0 20px;
    }
    
    .page-title,
    .page-subtitle {
        color: var(--grey-dark);
    }
    
    .btn-more {
        display: none;
    }
    
    .product-card-brand {
        page-break-inside: avoid;
    }
}
