/* 合作伙伴页 - 与旧版 Vue 官网一致 */
.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #fff;
    font-family: sans-serif;
}

/* ===== 过滤器容器 ===== */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== 分类按钮 ===== */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.category-buttons button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-buttons button.active {
    background-color: #ffffff;
    color: #000000;
}

/* ===== 加载/错误/空状态 ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.error {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: 8px;
    padding: 15px 20px;
    color: #ff5252;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

/* ===== 合作伙伴列表 ===== */
.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.partner-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.partner-logo {
    width: 100%;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
}

.partner-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.partner-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.partner-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.partner-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.partner-category {
    font-size: 12px;
    color: #26bbff;
    background: rgba(38, 187, 255, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    align-self: flex-start;
}

/* ===== 分页 ===== */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.page-btn:hover:not(:disabled) {
    background-color: #555;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-num {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-num:hover:not(:disabled):not(.active) {
    background-color: #555;
}

.page-num.active {
    background-color: #26bbff;
    color: #101014;
}

.page-num.ellipsis {
    cursor: default;
    background: transparent;
    color: #666;
}

/* ===== 响应式适配 ===== */
@media (max-width: 767px) {
    .partners-container {
        padding: 16px;
    }

    .partners-list {
        grid-template-columns: 1fr;
    }

    .category-buttons {
        gap: 8px;
    }

    .category-buttons button {
        font-size: 13px;
        padding: 0 12px;
        height: 28px;
    }
}
