/* ============================================================
 * 品牌展示模块样式 - brand.css（重新设计）
 * 与全站橙色主题(#f26a1b)统一，布局更精致
 * ============================================================ */

/* 面包屑 */
.breadcrumb { background: #fff; border-bottom: 1px solid #f0f0f0; }
.breadcrumb .container { padding: 12px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #f26a1b; }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }
.breadcrumb .cur { color: #999; }

/* 主体布局 */
.main { padding: 20px 0 40px; background: #f5f6f8; min-height: 500px; }
.brand-main { float: left; width: 860px; }
.brand-side { float: right; width: 320px; }

/* ====== 品牌顶部横幅 ====== */
.brand-banner {
    background: linear-gradient(135deg, #f26a1b 0%, #ff8c42 50%, #f26a1b 100%);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.brand-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.brand-banner::after {
    content: '';
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.brand-banner h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}
.brand-banner p {
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin: 0;
    position: relative;
    z-index: 1;
}
.brand-banner-stats {
    display: flex;
    gap: 28px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}
.brand-banner-stat {
    text-align: center;
}
.brand-banner-stat .num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.brand-banner-stat .label {
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

/* ====== 搜索栏 ====== */
.brand-search-bar {
    margin-bottom: 16px;
}
.brand-search-form {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f26a1b;
}
.brand-search-form input {
    flex: 1;
    padding: 11px 18px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}
.brand-search-form input::placeholder { color: #bbb; }
.brand-search-form button {
    padding: 11px 28px;
    background: linear-gradient(135deg, #ff7a1a, #f05212);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    letter-spacing: 1px;
}
.brand-search-form button:hover { background: linear-gradient(135deg, #f05212, #d4440e); }

/* ====== 筛选条 ====== */
.filter-bar {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 10px;
    font-size: 13px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
    color: #999;
    width: 56px;
    flex-shrink: 0;
    padding-top: 4px;
    font-size: 13px;
}
.filter-opts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.filter-opts a {
    padding: 4px 14px;
    color: #555;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    transition: .2s;
    font-size: 13px;
    background: #fafafa;
}
.filter-opts a:hover {
    color: #f26a1b;
    border-color: #f26a1b;
    background: #fff7f2;
}
.filter-opts a.on {
    color: #fff;
    background: #f26a1b;
    border-color: #f26a1b;
}
.filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
    padding-top: 4px;
}
.filter-summary em {
    color: #f26a1b;
    font-style: normal;
    font-weight: 700;
}

/* ====== 品牌卡片网格 ====== */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    width: calc((100% - 32px) / 3);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all .25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.brand-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f26a1b;
    opacity: 0;
    transition: opacity .25s;
}
.brand-card:hover {
    border-color: #f26a1b;
    box-shadow: 0 6px 20px rgba(242,106,27,.12);
    transform: translateY(-2px);
}
.brand-card:hover::before { opacity: 1; }

/* Logo 区域 */
.brand-card-logo {
    height: 120px;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.brand-card-logo img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    display: block;
}
.brand-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f26a1b 0%, #ff8c42 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(242,106,27,.25);
    letter-spacing: 2px;
}

/* 卡片内容 */
.brand-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.brand-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 5px;
    line-height: 1.3;
}
.brand-card:hover .brand-card-name { color: #f26a1b; }

.brand-card-slogan {
    font-size: 12px;
    color: #999;
    margin: 0 0 12px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #aaa;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
}
.brand-card-company {
    color: #666;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
.brand-card-company i { color: #f26a1b; margin-right: 4px; }
.brand-card-views i { color: #5cb85c; margin-right: 3px; }

/* ====== 分页 ====== */
.pagination {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 7px 15px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    color: #666;
    text-decoration: none;
    transition: .2s;
    background: #fff;
}
.pagination a:hover {
    border-color: #f26a1b;
    color: #f26a1b;
    background: #fff7f2;
}
.pagination a.active {
    background: #f26a1b;
    color: #fff;
    border-color: #f26a1b;
}
.pagination .page-dots {
    border: none;
    color: #999;
    background: transparent;
}

/* 空状态 */
.empty-box {
    padding: 60px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    color: #999;
    font-size: 15px;
}

/* ====== 侧边栏 ====== */
.side-box {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 16px;
}
.side-title {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: relative;
    padding-left: 28px;
}
.side-title::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #f26a1b;
    border-radius: 4px;
}

.side-brand-list { list-style: none; margin: 0; padding: 0; }
.side-brand-list li { border-bottom: 1px solid #f5f5f5; }
.side-brand-list li:last-child { border-bottom: none; }

.side-brand-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background .2s;
}
.side-brand-item:hover { background: #fff7f2; }
.side-brand-item.active { background: #fff7f2; }

.side-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 24px;
    flex-shrink: 0;
}
.side-brand-list li:nth-child(1) .side-rank { background: linear-gradient(135deg,#f26a1b,#ff8c42); color: #fff; }
.side-brand-list li:nth-child(2) .side-rank { background: linear-gradient(135deg,#e8590c,#f26a1b); color: #fff; }
.side-brand-list li:nth-child(3) .side-rank { background: linear-gradient(135deg,#ff8c42,#ffab6b); color: #fff; }

.side-brand-info { flex: 1; min-width: 0; }
.side-brand-name {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}
.side-brand-item:hover .side-brand-name { color: #f26a1b; }
.side-brand-company {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-brand-views {
    font-size: 12px;
    color: #bbb;
    flex-shrink: 0;
}
.side-brand-views i { margin-right: 2px; color: #5cb85c; }

/* ============================================================
 * 详情页样式
 * ============================================================ */
.brand-detail-main { float: left; width: 860px; }

/* 品牌详情顶部横幅 */
.brand-detail-banner {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 60%, #1a1f36 100%);
    border-radius: 12px;
    padding: 36px 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.brand-detail-banner::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    background: rgba(242,106,27,.12);
    border-radius: 50%;
}
.brand-detail-banner::after {
    content: '';
    position: absolute;
    right: 80px;
    bottom: -80px;
    width: 200px;
    height: 200px;
    background: rgba(242,106,27,.06);
    border-radius: 50%;
}

.brand-detail-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    position: relative;
    z-index: 1;
}
.brand-detail-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}
.brand-detail-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f26a1b 0%, #ff8c42 100%);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

.brand-detail-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.brand-detail-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}
.brand-detail-slogan {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    margin: 0 0 16px;
    font-style: italic;
}
.brand-detail-slogan::before { content: '「'; color: #f26a1b; }
.brand-detail-slogan::after { content: '」'; color: #f26a1b; }

.brand-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.brand-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.8);
    backdrop-filter: blur(4px);
}
.brand-detail-tag i { font-size: 12px; }
.brand-detail-tag .fa-building { color: #ff8c42; }
.brand-detail-tag .fa-calendar { color: #5cb85c; }
.brand-detail-tag .fa-eye { color: #5bc0de; }

.brand-detail-website-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(242,106,27,.15);
    border: 1px solid rgba(242,106,27,.3);
    border-radius: 20px;
    font-size: 13px;
}
.brand-detail-website-bar i { color: #f26a1b; }
.brand-detail-website-bar a {
    color: #ff8c42;
    text-decoration: none;
}
.brand-detail-website-bar a:hover { text-decoration: underline; }

/* 详情内容区块 */
.brand-detail-section {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 14px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 14px;
    width: 4px;
    background: #f26a1b;
    border-radius: 4px;
}

.brand-detail-desc {
    font-size: 14px;
    color: #555;
    line-height: 2;
}

/* 联系方式 - 网格卡片 */
.brand-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.contact-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px 18px;
    border: 1px solid #f0f0f0;
    transition: .2s;
}
.contact-card:hover {
    border-color: #f26a1b;
    background: #fff7f2;
}
.contact-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f26a1b, #ff8c42);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 10px;
}
.contact-card-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.contact-card-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    word-break: break-all;
}
.contact-card-value a {
    color: #f26a1b;
    text-decoration: none;
}
.contact-card-value a:hover { text-decoration: underline; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1220px) {
    .container { width: 96%; }
    .brand-main, .brand-detail-main { width: calc(100% - 340px); }
    .brand-side { width: 300px; }
}

@media (max-width: 900px) {
    .brand-main, .brand-detail-main { float: none; width: 100%; margin-bottom: 20px; }
    .brand-side { float: none; width: 100%; }
    .brand-card { width: calc((100% - 16px) / 2); }
    .brand-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .brand-detail-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }
    .brand-detail-logo { width: 90px; height: 90px; }
    .brand-detail-placeholder { width: 56px; height: 56px; font-size: 22px; }
    .brand-detail-name { font-size: 22px; }
    .brand-detail-tags { justify-content: center; }

    .brand-card { width: 100%; }
    .brand-card-logo { height: 100px; }

    .brand-banner { padding: 20px; }
    .brand-banner h1 { font-size: 20px; }
    .brand-banner-stats { gap: 16px; }

    .brand-search-form button { padding: 11px 18px; }
}

@media (max-width: 480px) {
    .brand-detail-name { font-size: 18px; }
    .brand-card-name { font-size: 14px; }
    .filter-opts a { padding: 3px 8px; font-size: 12px; }
    .brand-contact-grid { gap: 10px; }
}
