/* 我的分销页面样式 */
:root {
    --primary-color: #00823C;
    --primary-light: #e0f2e9;
    --primary-dark: #006e33;
    
    --blue-color: #1976D2;
    --blue-light: #E3F2FD;
    
    --purple-color: #7B1FA2;
    --purple-light: #F3E5F5;
    
    --orange-color: #FF7043;
    --orange-light: #FBE9E7;
    
    --green-color: #43A047;
    --green-light: #E8F5E9;
    
    --success-color: #4CAF50;
    --warning-color: #FFC107;

    --danger-light: #eca8a1;
    --danger-color: #F44336;
}

/* 团队信息概览 */
.team-overview {
    background: linear-gradient(135deg, #F5F9FF 0%, #E6F0FB 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.team-overview::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05) 0%, rgba(25, 118, 210, 0.15) 100%);
    border-radius: 0 0 0 150px;
    z-index: 1;
}

.team-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.team-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-user-details {
    display: flex;
    flex-direction: column;
}

.team-user-name {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.team-user-id {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.team-stats {
    display: flex;
    gap: 20px;
    z-index: 2;
    flex-wrap: wrap;
}

.team-stat-item {
    text-align: center;
    padding: 0 12px;
    position: relative;
    min-width: 120px;
}

.team-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--blue-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 分享链接按钮 */
.share-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.share-link-btn {
    background: linear-gradient(135deg, var(--orange-color) 0%, #FF9800 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 112, 67, 0.3);
}

.share-link-btn i {
    font-size: 20px;
}

.share-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 112, 67, 0.4);
}

.share-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 团队成员列表区域 */
.team-section {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--purple-color);
    border-radius: 2px;
}

.section-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 搜索框 */
.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--purple-color);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
    width: 220px;
}

/* 过滤下拉框 */
.filter-dropdown select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--purple-color);
    box-shadow: 0 0 0 3px rgba(123, 31, 162, 0.1);
}

/* 团队成员卡片 */
.team-members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.team-member-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #EAEDF2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--purple-color), var(--blue-color));
    opacity: 0;
    transition: all 0.3s;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #D0D5E0;
}

.team-member-card:hover::before {
    opacity: 1;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-details {
    flex: 1;
}

.member-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.member-id {
    font-size: 13px;
    color: #666;
}

.member-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.member-stat i {
    color: var(--blue-color);
    font-size: 16px;
}

.member-actions {
    margin-top: 5px;
}

.btn-view-detail {
    background: linear-gradient(135deg, #F5F9FF 0%, #E6F0FB 100%);
    color: var(--blue-color);
    border: 1px solid #D0D5E0;
    border-radius: 50px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    justify-content: center;
}

.btn-view-detail:hover {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-color: var(--blue-color);
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

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

.page-btn.active {
    background-color: var(--purple-color);
    color: white;
    border-color: var(--purple-color);
}

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

.page-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
}

/* 分享链接模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.btn-close:hover {
    color: #666;
}

.modal-body {
    padding: 25px;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qrcode-image img {
    max-width: 100%;
    max-height: 100%;
}

.qrcode-container p {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

.link-container {
    margin-bottom: 25px;
}

.link-container p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
}

.copy-link {
    display: flex;
    gap: 10px;
}

.copy-link input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
    color: #333;
}

.copy-link button {
    background-color: var(--blue-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-link button:hover {
    background-color: #1565C0;
}

.share-platforms {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px;
    border-radius: 8px;
}

.share-btn i {
    font-size: 28px;
}

.share-btn span {
    font-size: 12px;
}

.share-btn.wechat {
    color: #07C160;
}

.share-btn.wechat:hover {
    background-color: rgba(7, 193, 96, 0.1);
}

.share-btn.weibo {
    color: #E6162D;
}

.share-btn.weibo:hover {
    background-color: rgba(230, 22, 45, 0.1);
}

.share-btn.qq {
    color: #12B7F5;
}

.share-btn.qq:hover {
    background-color: rgba(18, 183, 245, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .team-overview {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .team-stats {
        width: 100%;
        justify-content: space-around;
        gap: 15px;
    }
    
    .team-stat-item {
        min-width: 100px;
        padding: 0 8px;
    }
    
    .team-members-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .team-overview {
        padding: 20px;
    }
    
    .team-stats {
        gap: 10px;
        justify-content: space-between;
    }
    
    .team-stat-item {
        min-width: 80px;
        padding: 0 5px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .filter-dropdown {
        width: 100%;
    }
    
    .filter-dropdown select {
        width: 100%;
    }
    
    .team-members-list {
        grid-template-columns: 1fr;
    }
    
    /* 成员订单信息弹窗移动端优化 */
    #member-orders-modal > div {
        max-width: 95vw !important;
        margin: 10px;
    }
    
    #member-orders-content {
        padding: 12px 16px 0 16px !important;
    }
    
    #member-orders-content > div {
        padding: 12px 0 !important;
    }
    
    #member-orders-content img {
        width: 40px !important;
        height: 40px !important;
    }
    
    #member-orders-content .flex-wrap {
        gap: 6px !important;
    }
    
    #member-orders-content span {
        font-size: 11px !important;
        padding: 1px 4px !important;
    }
}


/* 空状态提示 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}

.empty-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}


