/* 软件厂商库页面样式 */
.brand-library-page {
    padding: 20px 0;
}

.brand-library-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.brand-library-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* 字母导航栏 */
.brand-nav-bar {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
}

.brand-nav-link {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.brand-nav-link:hover {
    background: #0073aa;
    color: #fff;
}

/* 品牌分类区域 */
.brand-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.brand-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffbb13;
}

/* 品牌网格 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.brand-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.brand-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.brand-link {
    display: block;
    text-decoration: none;
    color: #333;
}

/* Logo容器 - 宽高比3:2 */
.brand-logo-container {
    width: 100%;
    padding-top: 66.67%; /* 3:2比例 */
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.brand-logo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: #999;
}

.brand-name {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid #e0e0e0;
    color: #323333;
}

/* 软件厂商详情页样式 */
.brand-single-page {
    padding: 20px 0;
}

.brand-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.brand-single-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

/* 左侧栏 */
.brand-sidebar {
    position: sticky;
    top: 20px;
}

.brand-info-section {
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}

.brand-logo-large {
    text-align: center;
    margin-bottom: 20px;
}

.brand-logo-img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.brand-contact-info {
    margin-top: 20px;
    flex: 1;
}

.brand-contact-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.brand-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.brand-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
    transition: all 0.3s;
}

.brand-contact-item:hover .brand-contact-icon {
    background: #0073aa;
    color: #fff;
}

.brand-contact-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.brand-contact-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.brand-contact-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
    line-height: 1.4;
}

.brand-contact-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.brand-contact-value a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-contact-value a:hover {
    color: #0073aa;
}

/* 其他品牌小工具 */
.brand-widget-section {
    margin-top: 20px;
}

.brand-other-brands-widget {
    padding: 20px;
    background: #fff;
}

.brand-other-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.brand-other-item {
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.brand-other-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.brand-other-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.brand-other-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.brand-other-placeholder {
    font-size: 24px;
    font-weight: 700;
    color: #999;
}

/* 右侧内容区 */
.brand-main-content {
    min-width: 0;
}

.brand-intro-section {
    padding: 30px;
    margin-bottom: 30px;
    background: #fff;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.brand-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.brand-content p {
    margin-bottom: 15px;
}
/* 块编辑器内容样式 */
.brand-content h1,
.brand-content h2,
.brand-content h3,
.brand-content h4,
.brand-content h5,
.brand-content h6 {
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.4;
    color: #333;
}

.brand-content h1 {
    font-size: 30px;
}

.brand-content h2 {
    font-size: 22px;
}

.brand-content h3 {
    font-size: 20px;
}

.brand-content h4 {
    font-size: 18px;
}

.brand-content h5 {
    font-size: 18px;
}

.brand-content h6 {
    font-size: 16px;
}

/* WordPress块编辑器样式 */
.brand-content .wp-block-heading {
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.4;
    color: #333;
}

.brand-content .wp-block-heading h1 {
    font-size: 32px;
}

.brand-content .wp-block-heading h2 {
    font-size: 28px;
}

.brand-content .wp-block-heading h3 {
    font-size: 24px;
}

.brand-content .wp-block-heading h4 {
    font-size: 20px;
}

.brand-content .wp-block-heading h5 {
    font-size: 18px;
}

.brand-content .wp-block-heading h6 {
    font-size: 16px;
}

/* 列表样式 */
.brand-content ul,
.brand-content ol {
    margin: 16px 0;
    padding-left: 30px;
    color: #666;
}

.brand-content ul {
    list-style-type: disc;
}

.brand-content ol {
    list-style-type: decimal;
}

.brand-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.brand-content .wp-block-list {
    margin: 16px 0;
    padding-left: 30px;
}

.brand-content .wp-block-list li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 段落样式 */
.brand-content .wp-block-paragraph {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* 引用样式 */
.brand-content blockquote,
.brand-content .wp-block-quote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #0073aa;
    background: #f5f5f5;
    font-style: italic;
    color: #555;
}

/* 代码样式 */
.brand-content code,
.brand-content .wp-block-code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d63384;
}

.brand-content pre,
.brand-content .wp-block-code pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
}

.brand-content pre code,
.brand-content .wp-block-code code {
    background: transparent;
    padding: 0;
    color: #333;
}

/* 表格样式 */
.brand-content table,
.brand-content .wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.brand-content table th,
.brand-content table td,
.brand-content .wp-block-table th,
.brand-content .wp-block-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.brand-content table th,
.brand-content .wp-block-table th {
    background: #f5f5f5;
    font-weight: 700;
}

/* 图片样式 */
.brand-content img,
.brand-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* 分隔线样式 */
.brand-content hr,
.brand-content .wp-block-separator {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* 链接样式 */
.brand-content a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-content a:hover {
    color: #005a87;
    text-decoration: underline;
}
/* 文章列表区域 */
.brand-posts-section {
    margin-top: 30px;
}

.brand-posts-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.brand-posts-list {
    padding: 20px;
    background: #fff;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.brand-posts-empty {
    padding: 40px;
    text-align: center;
    background: #fff;
    color: #999;
}

.brand-posts-pagination {
    margin-top: 30px;
    text-align: center;
}

.brand-posts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.brand-posts-pagination .page-numbers:hover,
.brand-posts-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* 移动端响应式 */
@media screen and (max-width: 768px) {
    .brand-library-title {
        font-size: 24px;
    }
    
    .brand-nav-bar {
        padding: 10px;
        gap: 6px;
    }
    
    .brand-nav-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .brand-single-layout {
        grid-template-columns: 1fr;
    }
    
    .brand-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .brand-other-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .brand-logo-large {
        margin-bottom: 15px;
    }
    
    .brand-logo-img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .brand-contact-info {
        margin-top: 15px;
    }
    
    .brand-contact-title {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .brand-contact-list {
        gap: 12px;
    }
    
    .brand-contact-icon {
        width: 28px;
        height: 28px;
    }
    
    .brand-contact-icon i {
        font-size: 12px;
    }
    
    .brand-contact-label {
        font-size: 11px;
    }
    
    .brand-contact-value {
        font-size: 13px;
    }
    
    .brand-intro-section {
        padding: 20px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .brand-posts-section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 480px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .brand-other-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .brand-nav-link {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* 小工具样式 */
.brand-widget {
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
}

.brand-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

