/**
 * 代理商页面样式
 */

/* ========== 筛选区域 ========== */
.distributor-filter-area {
    background: var(--bg-card, #fff);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.distributor-filter-area .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #666);
    margin-bottom: 8px;
}

.distributor-filter-area .form-select,
.distributor-filter-area .form-control {
    border: 2px solid var(--border-light, #e0e0e0);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.distributor-filter-area .form-select:focus,
.distributor-filter-area .form-control:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.distributor-filter-area .input-group .btn {
    border-radius: 0 8px 8px 0;
    padding: 10px 20px;
}

/* ========== 统计信息 ========== */
.distributor-stats {
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-card, #fff);
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color, #007bff);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== 代理商列表 ========== */
.distributor-list {
    margin-top: 40px;
}

.distributor-card {
    background: var(--bg-card, #fff);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.distributor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.distributor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient, linear-gradient(180deg, #007bff, #0056b3));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.distributor-card:hover::before {
    transform: scaleY(1);
}

.distributor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.distributor-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 8px;
}

.distributor-info .location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #666);
    font-size: 14px;
}

.distributor-info .location i {
    color: var(--primary-color, #007bff);
}


.distributor-details {
    margin-bottom: 20px;
}

.distributor-description {
    color: var(--text-secondary, #666);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.detail-item i {
    color: var(--primary-color, #007bff);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.detail-item a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: var(--primary-hover, #0056b3);
    text-decoration: underline;
}

.distributor-services {
    margin-top: 15px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light, #f8f9fa);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary, #666);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.product-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-alpha-10, rgba(0, 123, 255, 0.1));
    color: var(--primary-color, #007bff);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.distributor-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light, #e0e0e0);
}

.distributor-actions .btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-details {
    background: transparent;
    border: 2px solid var(--primary-color, #007bff);
    color: var(--primary-color, #007bff);
}

.btn-view-details:hover {
    background: var(--primary-color, #007bff);
    color: white;
    transform: translateY(-2px);
}

.btn-contact {
    background: var(--primary-gradient, linear-gradient(135deg, #007bff, #0056b3));
    border: none;
    color: white;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* ========== 加载动画 ========== */
.loading-spinner {
    padding: 60px 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ========== 分页 ========== */
.pagination-area {
    margin-top: 40px;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 5px;
    margin: 0;
}

.pagination .page-item {
    display: list-item;
}

.pagination .page-link {
    display: block;
    padding: 10px 15px;
    border: 2px solid var(--border-light, #e0e0e0);
    border-radius: 8px;
    color: var(--text-secondary, #666);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: white;
    line-height: 1.25;
    position: relative;
}

.pagination .page-link:hover {
    border-color: var(--primary-color, #007bff);
    color: var(--primary-color, #007bff);
    background: var(--primary-alpha-10, rgba(0, 123, 255, 0.1));
    z-index: 2;
    text-decoration: none;
}

.pagination .page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
    color: white;
    z-index: 3;
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span.page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.5;
}

.pagination .page-item:first-child .page-link {
    margin-left: 0;
}

.pagination .page-item:last-child .page-link {
    margin-right: 0;
}

/* 修复省略号样式 */
.pagination .page-item.disabled span.page-link {
    padding: 10px 15px;
    border: 2px solid transparent;
    background: transparent;
    color: #999;
    font-weight: 500;
}

/* ========== 代理商权益模块 ========== */
.benefits-content {
    padding: 40px 0;
}

.benefits-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin-bottom: 40px;
    position: relative;
}

.benefits-content h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient, linear-gradient(90deg, #007bff, #0056b3));
    border-radius: 2px;
}

/* 核心权益卡片 */
.core-benefits {
    margin-bottom: 60px;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient, linear-gradient(90deg, #007bff, #0056b3));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.benefit-icon i {
    font-size: 32px;
    color: white;
}

.benefit-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #333);
    text-align: center;
    margin-bottom: 20px;
}

.benefit-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-details li {
    padding: 10px 0;
    color: var(--text-secondary, #666);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.benefit-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 合作优势 */
.cooperation-advantages {
    padding: 60px 0;
    background: var(--bg-light, #f8f9fa);
    border-radius: 15px;
}

.cooperation-advantages h4 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin-bottom: 40px;
    position: relative;
}

.cooperation-advantages h4::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient, linear-gradient(90deg, #007bff, #0056b3));
    border-radius: 2px;
}

.advantage-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.advantage-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.advantage-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 10px;
}

.advantage-content p {
    color: var(--text-secondary, #666);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 合作流程 */
.cooperation-process {
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--bg-light, #f8f9fa);
    border-radius: 15px;
    position: relative;
}

.cooperation-process h4 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin-bottom: 50px;
    position: relative;
}

.cooperation-process h4::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient, linear-gradient(90deg, #007bff, #0056b3));
    border-radius: 2px;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: white;
    border: 3px solid var(--primary-color, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #007bff);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.process-step:hover .step-number {
    background: var(--primary-gradient, linear-gradient(135deg, #007bff, #0056b3));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.step-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary, #666);
}


/* 权益标签组 */
.view-tabs {
    margin-bottom: 40px;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-light, #e0e0e0);
}

.nav-tabs .nav-link {
    color: var(--text-secondary, #666);
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tabs .nav-link i {
    font-size: 18px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color, #007bff);
    background: var(--primary-alpha-10, rgba(0, 123, 255, 0.05));
}

.nav-tabs .nav-link.active {
    color: var(--primary-color, #007bff);
    background: white;
    border-bottom: 3px solid var(--primary-color, #007bff);
}

/* ========== 成为代理商 CTA ========== */
.become-distributor-area {
    margin-top: 60px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color, #007bff), var(--primary-dark, #0056b3));
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.cta-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.cta-card p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    position: relative;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color, #007bff);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color, #007bff);
    transform: translateY(-3px);
}

/* ========== 模态框 ========== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: var(--bg-light, #f8f9fa);
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid var(--border-light, #e0e0e0);
    padding: 20px 30px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #333);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid var(--border-light, #e0e0e0);
    padding: 20px 30px;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted, #ccc);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-secondary, #666);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted, #999);
    margin-bottom: 20px;
}

/* 响应式 - 代理商权益 */
@media (max-width: 992px) {
    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        position: relative;
    }

    .process-step::after {
        content: '';
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 50px;
        background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    }

    .process-step:last-child::after {
        display: none;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .distributor-header {
        flex-direction: column;
        gap: 15px;
    }

    .detail-row {
        flex-direction: column;
        gap: 10px;
    }

    .distributor-actions {
        flex-direction: column;
    }

    .stat-card {
        margin-bottom: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .cta-card h3 {
        font-size: 24px;
    }

    .cta-card p {
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .distributor-filter-area {
        padding: 20px 15px;
    }

    .distributor-card {
        padding: 20px 15px;
    }

    .distributor-info h4 {
        font-size: 16px;
    }

    .service-tags,
    .product-tags {
        gap: 5px;
    }
}