/* ============================================================
   合作品牌模块 - 前端样式
   ============================================================ */

/* === 容器 === */
.brands-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 面包屑导航 === */
.brands-breadcrumbs {
    margin: 20px 0 30px;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.brands-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}

.brands-breadcrumb-item {
    display: flex;
    align-items: center;
    color: #666;
}

.brands-breadcrumb-link {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.brands-breadcrumb-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

.brands-breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}

.brands-breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* === 版块标题 === */
.brands-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.brands-section-desc {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

/* === 品牌卡片网格 === */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
}

/* === 品牌卡片 === */
.brand-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

.brand-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 24px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.brand-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.brand-card-icon .brand-icon-img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.brand-card-icon .brand-icon-letter {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
    text-align: center;
}

.brand-card-excerpt {
    font-size: 14px;
    color: #777;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.brand-card-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.brand-card:hover .brand-card-btn {
    background: #005a87;
}

/* ============================================================
   品牌详情页
   ============================================================ */

.brand-single-page {
    padding: 0 0 60px;
}

/* === 封面图 === */
.brand-cover {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.brand-cover-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* === 头部元信息 === */
.brand-header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-logo-wrap {
    flex-shrink: 0;
}

.brand-logo-wrap .brand-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-logo-wrap .brand-icon-letter {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-category-tag {
    display: inline-block;
    padding: 4px 14px;
    background: #f0f6fc;
    color: #0073aa;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.brand-category-tag:hover {
    background: #0073aa;
    color: #fff;
}

/* === 文章标题 === */
.brand-entry-header {
    margin-bottom: 30px;
}

.brand-entry-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.brand-entry-meta {
    font-size: 14px;
    color: #999;
}

/* === 内容 + 侧边栏布局 === */
.brand-content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.brand-content-main {
    flex: 1;
    min-width: 0;
}

.brand-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .brand-content-wrapper {
        flex-direction: column;
    }

    .brand-sidebar {
        width: 100%;
    }
}

/* === 正文 === */
.brand-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.brand-entry-content p {
    margin-bottom: 20px;
}

.brand-entry-content h2,
.brand-entry-content h3,
.brand-entry-content h4 {
    color: #1a1a1a;
    margin-top: 28px;
    margin-bottom: 14px;
}

.brand-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.brand-entry-content ul,
.brand-entry-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.brand-entry-content blockquote {
    border-left: 4px solid #0073aa;
    margin: 20px 0;
    padding: 12px 20px;
    background: #f9f9f9;
    color: #555;
    font-style: italic;
}

/* ============================================================
   推荐客户区域（正文下方）
   ============================================================ */

.brand-customer-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.brand-customer-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.brand-customer-card {
    display: flex;
    gap: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    align-items: flex-start;
}

.brand-customer-avatar {
    flex-shrink: 0;
}

.brand-customer-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-customer-details {
    flex: 1;
}

.brand-customer-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.brand-customer-title {
    font-size: 14px;
    color: #888;
    margin: 0 0 12px;
}

.brand-customer-testimonial {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.brand-customer-testimonial p {
    font-size: 15px;
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .brand-customer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================================
   上一篇 / 下一篇导航
   ============================================================ */

.brands-post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.brands-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.brands-nav-prev,
.brands-nav-next {
    flex: 1;
    max-width: 48%;
}

.brands-nav-empty {
    flex: 1;
    max-width: 48%;
}

.brands-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.brands-nav-link:hover {
    background: #eef6fb;
    border-color: #0073aa;
}

.brands-next-link {
    justify-content: flex-end;
    text-align: right;
}

.brands-nav-arrow {
    font-size: 20px;
    color: #0073aa;
    flex-shrink: 0;
}

.brands-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brands-nav-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brands-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.brands-nav-link:hover .brands-nav-title {
    color: #0073aa;
}

/* ============================================================
   侧边栏小工具样式
   ============================================================ */

.brand-sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.brand-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

/* 客户信息小工具 */
.customer-widget-avatar {
    text-align: center;
    margin-bottom: 12px;
}

.customer-widget-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.customer-widget-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 2px;
    color: #1a1a1a;
}

.customer-widget-title {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 0 0 12px;
}

.customer-widget-testimonial {
    margin: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    border: none;
}

/* 品牌信息小工具 */
.brand-info-logo {
    text-align: center;
    margin-bottom: 16px;
}

.brand-info-logo .brand-icon-img {
    max-width: 100px;
    max-height: 100px;
}

.brand-info-categories {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.brand-info-categories a {
    color: #0073aa;
    text-decoration: none;
}

.brand-info-categories a:hover {
    text-decoration: underline;
}

.brand-info-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

.brand-badge-recommended {
    background: #fff9e6;
    color: #b8860b;
}

.brand-badge-featured {
    background: #e6f7ed;
    color: #1a7a3a;
}

/* 推荐品牌列表小工具 */
.brand-recommended-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-recommended-item {
    border-bottom: 1px solid #f5f5f5;
}

.brand-recommended-item:last-child {
    border-bottom: none;
}

.brand-recommended-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
}

.brand-recommended-link:hover {
    color: #0073aa;
}

.brand-recommended-icon .brand-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-recommended-icon .brand-icon-letter {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #0073aa;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-recommended-name {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================================
   WHY CUSTOMERS CHOOSE US 推荐客户网格
   ============================================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card-inner {
    padding: 30px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-avatar {
    margin-bottom: 16px;
}

.testimonial-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.testimonial-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-quote {
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: none;
}

.testimonial-quote p {
    font-size: 15px;
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

.testimonial-author {
    margin-bottom: 8px;
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.testimonial-position {
    font-size: 13px;
    color: #999;
}

.testimonial-brand-link {
    margin-bottom: 16px;
    font-size: 14px;
    color: #888;
}

.testimonial-brand-link span {
    color: #aaa;
}

.testimonial-brand-link strong {
    color: #0073aa;
}

.testimonial-read-more {
    display: inline-block;
    padding: 8px 24px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.testimonial-read-more:hover {
    background: #005a87;
}

/* ============================================================
   存档页
   ============================================================ */

.brand-archive-page {
    padding: 0 0 60px;
}

.brand-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.brand-archive-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.brand-archive-description {
    font-size: 16px;
    color: #888;
}

.brands-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

/* 分页 */
.nav-links,
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.page-numbers:hover:not(.current) {
    background: #f0f6fc;
    border-color: #0073aa;
    color: #0073aa;
}

/* ============================================================
   BRANDS WE COOPERATE 首页版块
   ============================================================ */

.brands-cooperate-section {
    padding: 60px 0;
    background: #fafafa;
}

.why-choose-us-section {
    padding: 60px 0;
}
