/* AI导航风格 - 品牌模块首页（整体宽 1400px，卡片 250px，一行 5 个） */
.ainav-wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1px 40px; background: #f5f6f8; min-height: 60vh; box-sizing: border-box; }

/* 顶部主导航 */
.ainav-top { background: #fff; border-bottom: 1px solid #e8e8e8; margin: 0 1px; }
.ainav-top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 12px 16px; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.ainav-top-a { padding: 6px 12px; color: #333; text-decoration: none; font-size: 14px; border-radius: 4px; white-space: nowrap; }
.ainav-top-a:hover { color: #1890ff; background: #e6f7ff; }

/* 搜索栏 */
.ainav-search-bar { padding: 24px 0; }
.ainav-search-form { display: flex; align-items: center; max-width: 720px; margin: 0 auto; height: 48px; background: #fff; border: 1px solid #e0e0e0; border-radius: 24px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ainav-search-icon { width: 48px; height: 48px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat center; flex-shrink: 0; }
.ainav-search-inp { flex: 1; height: 46px; border: 0; padding: 0 12px; font-size: 15px; outline: none; }
.ainav-search-inp::placeholder { color: #999; }
.ainav-search-btn { width: 80px; height: 46px; border: 0; background: #1890ff; color: #fff; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.ainav-search-btn:hover { background: #40a9ff; }
.ai-incoming-box{
    background:#f8fafc;
    padding:20px;
    margin:30px 0;
    border-radius:8px;
    /* 增加max-width确保大屏下不会过宽 */
    max-width: 100%;
    box-sizing: border-box;
}
.ai-incoming-box h3{
    margin-bottom:15px;
    font-size:16px;
}
.ai-incoming-box ul{
    list-style:none;
    padding:0;
    margin: 0;
}
.ai-incoming-box li{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #eee;
    /* 换行兼容，防止内容溢出 */
    flex-wrap: wrap;
    gap: 4px;
}
.ai-incoming-box a{
    color:#2563eb;
    font-weight:500;
    /* 确保链接可点击区域足够 */
    flex: 1;
}
.ai-incoming-box .time{
    color:#999;
    font-size:12px;
    /* 时间部分在小屏也保持独立 */
    white-space: nowrap;
}

/* 响应式适配 - 平板及以下 (768px) */
@media (max-width: 768px) {
    .ai-incoming-box{
        padding: 15px;
        margin: 20px 0;
    }
    .ai-incoming-box h3{
        font-size: 15px;
        margin-bottom: 12px;
    }
    .ai-incoming-box li{
        padding: 6px 0;
    }
    .ai-incoming-box a{
        font-size: 14px;
    }
    .ai-incoming-box .time{
        font-size: 11px;
    }
}

/* 响应式适配 - 手机端 (480px) */
@media (max-width: 480px) {
    .ai-incoming-box{
        padding: 12px;
        margin: 15px 0;
        border-radius: 6px;
    }
    .ai-incoming-box h3{
        font-size: 14px;
        margin-bottom: 10px;
    }
    .ai-incoming-box li{
        padding: 5px 0;
        /* 手机端让文字和时间上下排列，更易读 */
        flex-direction: column;
        gap: 2px;
    }
    .ai-incoming-box a{
        font-size: 13px;
    }
    .ai-incoming-box .time{
        font-size: 10px;
        color: #666;
    }
}

/* 入站链接模块（仅收录站） */
.ainav-referrer { background: #fff; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; border: 1px solid #eee; }
.ainav-referrer-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.ainav-referrer-list { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ainav-referrer-item { font-size: 13px; color: #1890ff; text-decoration: none; }
.ainav-referrer-item:hover { text-decoration: underline; }
/* 内容区 */
.ainav-content { padding: 0 0 32px; }

/* 每个分类区块 */
.ainav-section { margin-bottom: 36px; }/* 每个分类区块 */
.ainav-section-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.ainav-section-head .ainav-subnav-all { flex-shrink: 0; white-space: nowrap; }
.ainav-section-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin: 0; padding: 0; }

/* 二级分类导航 */
.ainav-subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 16px; }
.ainav-subnav-a { padding: 4px 12px; color: #666; text-decoration: none; font-size: 13px; border-radius: 4px; }
.ainav-subnav-a:hover { color: #1890ff; }
.ainav-subnav-a.on { color: #1890ff; background: #e6f7ff; font-weight: 500; }
.ainav-subnav-all { padding: 4px 8px; color: #1890ff; text-decoration: none; font-size: 13px; margin-left: 4px; }
.ainav-subnav-all:hover { text-decoration: underline; }

/* 卡片网格：每格 250px，一行 5 个，不溢出 */
.ainav-cards { display: grid; grid-template-columns: repeat(5, 268px); gap: 12px; justify-content: start; max-width: 100%; overflow: hidden; box-sizing: border-box; }
@media (max-width: 1360px) { .ainav-cards { grid-template-columns: repeat(4, 268px); } }
@media (max-width: 1100px) { .ainav-cards { grid-template-columns: repeat(3, 268px); } }
@media (max-width: 840px) { .ainav-cards { grid-template-columns: repeat(2, 268px); } }
@media (max-width: 560px) { .ainav-cards { grid-template-columns: 1fr; justify-content: stretch; } .ainav-cards .ai-card { width: 100% !important; max-width: none; height: auto; min-height: 75px; } }

/* 卡片样式：固定宽 250px，内容不溢出 */
.ainav-cards .ai-card { display: flex; align-items: center; width: 268px; height: 75px; min-height: 75px; max-width: 100%; min-width: 0; padding: 15px 14px; background: #fff; border-radius: 8px; text-decoration: none; color: inherit; border: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .2s, border-color .2s; box-sizing: border-box; }
.ainav-cards .ai-card:hover { border-color: #d0e8ff; box-shadow: 0 4px 12px rgba(24,144,255,.15); }
.ainav-cards .ai-card .card-icon { width: 40px; height: 40px; flex-shrink: 0; margin-right: 12px; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.ainav-cards .ai-card .card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ainav-cards .ai-card .card-ainfo { flex: 1; padding: 4px 4px 14px 14px;min-width: 0; overflow: hidden; }
.ainav-cards .ai-card .card-ainfo h3 { margin: 6px 0 4px; font-size: 15px; font-weight: 600; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ainav-cards .ai-card .card-ainfo p { margin: 0; font-size: 12px; color: #888; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ========== 品牌详情页 AI 导航风格 ========== */
.brand-show-wrap { background: #f5f6f8; padding: 0 0 40px; }
.brand-show-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.brand-show-nav { padding: 12px 0; color: #666; font-size: 13px; }
.brand-show-nav a { color: #666; text-decoration: none; }
.brand-show-nav a:hover { color: #1890ff; }

.brand-show-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 0; background: #fff; border-radius: 8px; margin-bottom: 20px; padding: 24px; border: 1px solid #eee; }
.brand-show-header-l { display: flex; align-items: flex-start; gap: 16px; flex: 1; min-width: 0; }
.brand-show-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #f0f0f0; }
.brand-show-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-show-meta { flex: 1; min-width: 0; }
.brand-show-title { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: #1a1a1a; }
.brand-show-desc { margin: 0 0 12px; font-size: 14px; color: #666; line-height: 1.6; }
.brand-show-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-tag { display: inline-block; padding: 4px 12px; font-size: 12px; color: #666; background: #f0f0f0; border-radius: 4px; }
.brand-show-btn { display: inline-block; padding: 8px 20px; font-size: 14px; color: #fff; background: #1890ff; border-radius: 6px; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.brand-show-btn:hover { background: #40a9ff; color: #fff; }

.brand-show-body { display: flex; gap: 20px; align-items: flex-start; }
.brand-show-main { flex: 1; min-width: 0; background: #fff; border-radius: 8px; padding: 24px; border: 1px solid #eee; }
.brand-show-section { margin-bottom: 28px; }
.brand-show-section:last-of-type { margin-bottom: 0; }
.brand-show-h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: #1a1a1a; padding: 0; }
.brand-show-overview { font-size: 14px; color: #333; line-height: 1.8; }
.brand-show-content { font-size: 14px; color: #333; line-height: 1.8; }
.brand-show-content h2 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
.brand-show-content h2:first-child { margin-top: 0; }
.brand-show-content h3 { font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.brand-show-content ul, .brand-show-content ol { margin: 8px 0; padding-left: 24px; }
.brand-show-content li { margin: 4px 0; }

.brand-show-aside { width: 280px; flex-shrink: 0; }
@media (max-width: 900px) { .brand-show-body { flex-direction: column; } .brand-show-aside { width: 100%; } }
.brand-sidebar-block { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; border: 1px solid #eee; }
.brand-sidebar-title { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #1a1a1a; padding: 0; }
.brand-sidebar-list { display: flex; flex-direction: column; gap: 0; }
.brand-sidebar-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: inherit; border-bottom: 1px solid #f0f0f0; transition: background .2s; }
.brand-sidebar-item:last-child { border-bottom: 0; }
.brand-sidebar-item:hover { background: #fafafa; }
.brand-sidebar-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.brand-sidebar-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-sidebar-info { flex: 1; min-width: 0; }
.brand-sidebar-info h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sidebar-info p { margin: 0; font-size: 12px; color: #888; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
