/* ========== 品牌列表页 ========== */

@import url("topheader.css"); 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
}

.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

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

.sidebar-right {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

/* 头部横幅区域 */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #f0f9ff 100%);
}
.hero-badge {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin-bottom: 0.8rem;
}
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}
.subhead {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 90%;
    margin: 0 auto;
    background: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
}
.update-date {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-banner {
    margin-top: 1rem;
}
.hero-banner img {
    width: 100%;
    max-width: 800px;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* 简化的统计块 */
.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 0.8rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 0.5rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
}

.stat-divider {
    width: 1px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

/* 品牌卡片 */
.brands-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.brand-card {
    background: #ffffff;
    border-radius: 1.2rem;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05), 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid #dbeafe;
    display: flex;
}
.brand-card:hover {
    transform: translateX(2px);
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
}
.brand-logo {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 1.5rem;
    display: none;
}
.brand-logo img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
}
.brand-content {
    flex: 1;
    padding: 1rem 1.2rem;
    min-width: 0;
}
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.5rem;
}
.brand-name {
    text-decoration: none !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.2px;
}
.brand-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.badge {
    font-size: 0.65rem;
    background: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-weight: 500;
    color: #3b82f6;
}
.badge.highlight {
    background: #dbeafe;
    color: #2563eb;
}
.brand-index {
    font-weight: 600;
    background: #eff6ff;
    padding: 0.15rem 0.6rem;
    border-radius: 30px;
    color: #2563eb;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.brand-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
    margin-bottom: 0.8rem;
}
.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.brand-tags a {
    font-size: 0.7rem;
    background: #eff6ff;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.2s ease;
}
.brand-tags a:hover {
    background: #dbeafe;
    color: #2563eb;
}

/* 右侧边栏卡片 */
.sidebar-card {
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dbeafe;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.03);
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dbeafe;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
}

/* logo 网格 */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
}

.logo-item {
    flex: 0 0 calc(50% - 0.4rem);
    text-align: center;
    background: #f8fafc;
    border-radius: 0.8rem;
    padding: 0.8rem 0.2rem;
    border: 1px solid #dbeafe;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    border-color: #93c5fd;
}

.char-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    letter-spacing: 0;
    line-height: 1;
    position: relative;
}

.char-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    pointer-events: none;
}

.logo-name {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 词云 */
.wordcloud-area {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 0.8rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
}
.word-item {
    display: inline-block;
    transition: all 0.15s ease;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
}
.word-item:hover {
    transform: scale(1.05);
    color: #2563eb;
}
.size-xl { font-size: 1.4rem; font-weight: 700; color: #2563eb; }
.size-lg { font-size: 1.2rem; font-weight: 600; color: #3b82f6; }
.size-md { font-size: 1rem; font-weight: 500; color: #60a5fa; }
.size-sm { font-size: 0.85rem; font-weight: 500; color: #3b82f6; }
.size-xs { font-size: 0.75rem; font-weight: 400; color: #64748b; }

/* 简易排行榜 */
.simple-rank {
    list-style: none;
    margin-top: 0.2rem;
}
.simple-rank li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.8rem;
}
.simple-rank li:last-child {
    border-bottom: none;
}
.rank-number {
    width: 26px;
    height: 26px;
    background: #eff6ff;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #2563eb;
    margin-right: 10px;
}
.rank-name {
    flex: 1;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
}
.rank-name:hover {
    text-decoration: none;
    color: #2563eb;
}
.rank-score {
    font-size: 0.7rem;
    background: #eff6ff;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    color: #3b82f6;
}

/* 新闻列表 */
.news-list {
    list-style: none;
}
.news-list li {
    margin-bottom: 0.9rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #e2e8f0;
}
.news-list li:last-child {
    border-bottom: none;
}
.news-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #3b82f6;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}
.news-title:hover {
    color: #2563eb;
    text-decoration: underline;
}
.news-date {
    font-size: 0.65rem;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}
.hot-tag {
    background: #eff6ff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 500;
    color: #2563eb;
    display: inline-block;
    margin-top: 5px;
}

/* 行业聚焦 */
.focus-list {
    list-style: none;
}
.focus-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.7rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.8rem;
}
.focus-list li:last-child {
    border-bottom: none;
}
.focus-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    display: none;
}
.focus-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.focus-icon svg {
    width: 14px;
    height: 14px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}
.focus-content {
    flex: 1;
    min-width: 0;
}
.focus-title {
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 2px;
    text-decoration: none;
}
.focus-title:hover {
    text-decoration: none;
    color: #2563eb;
}
.focus-date {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* 选购小贴士 */
.tips-list {
    list-style: none;
}
.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.75rem;
}
.tips-list li:last-child {
    border-bottom: none;
}
.tips-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    display: none;
}
.tips-badge {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.tips-text {
    color: #64748b;
    line-height: 1.5;
    text-decoration: none;
}
.tips-text:hover {
    text-decoration: none;
    color: #2563eb;
}

/* 榜单说明 */
.description-section {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid #dbeafe;
}
.description-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.description-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #2563eb;
    border-radius: 2px;
}
.description-text {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.description-text b {
    color: #3b82f6;
}
.description-text a {
    color: #60a5fa;
    text-decoration: none;
}
.description-text a:hover {
    text-decoration: none;
    color: #2563eb;
}
.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}
.guide-item {
    background: #ffffff;
    border-radius: 0.8rem;
    overflow: hidden;
    border: 1px solid #dbeafe;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}
.guide-item a {
    text-decoration: none;
}
.guide-item a:hover {
    text-decoration: none;
}
.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.guide-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: none;
}
.guide-item-text {
    padding: 0.6rem;
}
.guide-item-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.2rem;
    text-decoration: none;
}
.guide-item-desc {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.4;
    text-decoration: none;
}
.guide-item-title:hover,
.guide-item-desc:hover {
    text-decoration: none;
    color: #1e3a8a;
}

/* 相关榜单 */
.related-section {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid #dbeafe;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}
.related-item {
    background: #ffffff;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    border: 1px solid #dbeafe;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    border-color: #93c5fd;
}
.related-icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #2563eb;
}
.related-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* 行业新闻模块 */
.news-section {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 20px;
}
.news-more {
    margin-left: auto;
    color: #2563eb;
    font-size: 14px;
    text-decoration: none;
    font-weight: normal;
}
.news-more:hover {
    text-decoration: underline;
}
.news-item {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
    height: 100px;
}
.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.news-item-image {
    position: relative;
    width: 130px;
    min-width: 130px;
    height: 100%;
    overflow: hidden;
    display: none;
}
.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #2563eb;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 3px;
}
.news-item-content {
    padding: 10px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-item-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.news-item-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

/* 底部 */
.footer {
    max-width: 1352px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    padding-top: 15px;
    border-top: 2px solid #2563eb;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-col p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.8rem;
}
.footer-links a:hover {
    color: #2563eb;
}

hr {
    margin: 1rem 0 0.5rem;
    border: none;
    border-top: 1px solid #e2e8f0;
}
.footer-note {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

/* 响应式 */
@media (max-width: 880px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar-right {
        width: 100%;
        position: static;
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .content-left {
        order: 1;
    }
    .brand-card {
        flex-direction: column;
    }
    .brand-logo {
        width: 100%;
        padding: 1.5rem;
        border-bottom: 1px solid #dbeafe;
    }
    .brand-logo img {
        max-width: 160px;
        max-height: 160px;
    }
    .stats-grid {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .stat-item {
        min-width: calc(50% - 0.5rem);
    }
    .stat-divider {
        display: none;
    }
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .navbar-link {
        padding: 8px 14px;
        font-size: 14px;
    }
    .news-item {
        flex-direction: column;
        height: auto;
    }
    .news-item-image {
        width: 100%;
        min-width: unset;
        height: 120px;
    }
    .news-item-content {
        padding: 10px;
    }
    .news-item-title {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .news-item-desc {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .stat-item {
        min-width: auto;
        padding: 0.4rem;
    }
    .stat-value {
        font-size: 1rem;
    }
    .sidebar-right {
        grid-template-columns: 1fr;
    }
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .brand-logo {
        width: 100%;
        padding: 1.5rem;
    }
    .brand-logo img {
        max-width: 180px;
        max-height: 180px;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 12px 18px;
        justify-content: center;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }
    .navbar {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        cursor: pointer;
        background: rgba(255,255,255,0.9);
        border-radius: 8px;
        border: 1px solid #dbeafe;
    }
    .mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: #64748b;
        border-radius: 2px;
    }
    .main-layout {
        padding: 12px;
        gap: 16px;
    }
}