/* ==========================================
   列表清单页专用样式（list.html）
   顶部/底部复用 style.css，此处仅列表页布局
   分区化设计：分类区 / 列表+分页区 / 右侧推广区 / 右侧广告区
   ========================================== */

/* ---------- 通用分区卡片 ---------- */
.ai-panel {
    background: #fff;
    border: 1px solid #EEF1F7;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(79, 139, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ---------- 分类筛选（无标题内容卡片） ---------- */
.list-cat-section {
    padding: 6px 0 8px;
}

.cat-panel {
    background: #fff;
    border: 1px solid #EEF1F7;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 24px rgba(79, 139, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- 分类版块：模糊查询（分类下方，固定 368px） ---------- */
.cat-search {
    position: relative;
    display: flex;
    width: 368px;
    margin-top: 14px;
}

.cat-search-input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 16px;
    border: 1.5px solid #EEF1F7;
    border-radius: 50px;
    background: #F5F7FF;
    font-size: 13px;
    color: #1A1F36;
    outline: none;
    transition: all 0.25s ease;
}

.cat-search-input::placeholder { color: #A0A6BC; }

.cat-search:focus-within .cat-search-input {
    border-color: #7B5CFF;
    background: #fff;
}

.cat-search:focus-within .cat-search-btn { color: #C63CFF; }

.cat-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #A0A6BC;
    cursor: pointer;
    transition: color 0.25s ease;
}

.cat-search-btn:hover { color: #7B5CFF; }

.cat-search-btn:active { transform: translateY(-50%) scale(0.88); }

.cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #F5F7FF;
    border: 1px solid #EEF1F7;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #1A1F36;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cat-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(123, 92, 255, 0.35);
    color: #7B5CFF;
    box-shadow: 0 8px 20px rgba(79, 139, 255, 0.1);
}

.cat-chip.active {
    background: linear-gradient(135deg, #4F8BFF 0%, #7B5CFF 50%, #C63CFF 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(123, 92, 255, 0.35);
}

.cat-chip.vip-chip {
    border-color: #C63CFF;
    color: #C63CFF;
    font-weight: 700;
    background: linear-gradient(135deg, #FFF8FF, #FFFFFF);
}

.cat-chip.vip-chip:hover {
    background: linear-gradient(135deg, #C63CFF, #FF0080);
    color: #fff;
    border-color: transparent;
}

/* ---------- 主体左右布局 ---------- */
.list-main {
    padding: 20px 0 32px;
}

.list-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧：内容列表 + 分页 同一分区卡片 */
.list-panel {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #EEF1F7;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(79, 139, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 列表记录：无边框，用淡淡背景色区分 */
.list-grid .tool-card {
    border: none;
    background: #F5F7FF;
}

.list-grid .tool-card:hover {
    background: #fff;
}

/* ---------- 右侧栏 260px：独立分区 ---------- */
.list-aside {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aside-promo,
.aside-ads {
    background: #fff;
    border: 1px solid #EEF1F7;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(79, 139, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 分区标题：左侧渐变竖条强调分区感 */
.aside-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1F36;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 12px;
}

.aside-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(135deg, #4F8BFF, #C63CFF);
}

/* 付费推广：一行一个，无边框，用分割线区分 */
.promo-list {
    display: flex;
    flex-direction: column;
}

.promo-card {
    width: 100%;
    padding: 12px 8px;
    border: none;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #EEF1F7;
}

.promo-list .promo-card:last-child {
    border-bottom: none;
}

.promo-card .tool-logo {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

/* ---------- 图片广告区：高约80px（无背景框、无标题） ---------- */
.aside-ads {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.aside-ads-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-ad-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-ad-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(79, 139, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ---------- 分页（与列表同区域，整体居中） ---------- */
.pagination {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #E4E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(123, 92, 255, 0.45);
    color: #7B5CFF;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-item:hover {
    background: linear-gradient(135deg, #4F8BFF 0%, #7B5CFF 50%, #C63CFF 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(123, 92, 255, 0.35);
    transform: translateY(-1px);
}

/* 不能点击：灰色 */
.page-item.disabled {
    color: #B9BFCE;
    border-color: #E4E8F0;
    background: #F5F6FA;
    cursor: not-allowed;
    pointer-events: none;
}

.page-info {
    font-size: 13px;
    color: #6B7390;
}

.page-info em {
    font-style: normal;
    font-weight: 700;
    color: #7B5CFF;
    padding: 0 2px;
}



/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .list-layout { flex-direction: column; }
    .list-aside {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .aside-promo { flex: 1 1 100%; }
    .promo-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .promo-card { flex: 1 1 200px; }
    .aside-ads { flex: 1 1 100%; }
    .aside-ads-body {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .side-ad-img { flex: 1 1 150px; }
}

@media (max-width: 768px) {
    .list-grid { grid-template-columns: 1fr; }
    .cat-search { width: 100%; max-width: 398px; }
    .cat-panel,
    .list-panel,
    .aside-promo { padding: 14px; }
}
