/* 团队页面样式 */

/* 团长等级标签样式 */
.badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    white-space: nowrap;
    line-height: 1;
    vertical-align: middle;
}

.badge-team {
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 普通团长 - 淡紫灰色 */
.team-normal {
    background: linear-gradient(135deg, #E8EAF6 0%, #C5CAE9 100%);
    background-size: 200% 100%;
    color: #5C6BC0;
    border: 1px solid rgba(92, 107, 192, 0.2);
    box-shadow: 0 2px 8px rgba(92, 107, 192, 0.2);
}

/* 中级团长 - 青色 */
.team-intermediate {
    background: linear-gradient(135deg, #B2EBF2 0%, #4DD0E1 100%);
    background-size: 200% 100%;
    color: #00838F;
    border: 1px solid rgba(0, 131, 143, 0.2);
    box-shadow: 0 2px 8px rgba(77, 208, 225, 0.3);
    animation: shimmer 3s ease-in-out infinite;
}

/* 高级团长 - 紫色 */
.team-advanced {
    background: linear-gradient(135deg, #CE93D8 0%, #AB47BC 100%);
    background-size: 200% 100%;
    color: #FFFFFF;
    border: 1px solid rgba(171, 71, 188, 0.3);
    box-shadow: 0 2px 10px rgba(171, 71, 188, 0.4);
    animation: shimmer 3s ease-in-out infinite;
}

/* 超级团长 - 金色 */
.team-super {
    background: linear-gradient(135deg, #FFD54F 0%, #FFB300 100%);
    background-size: 200% 100%;
    color: #F57F17;
    border: 1px solid rgba(245, 127, 23, 0.3);
    box-shadow: 0 2px 12px rgba(255, 179, 0, 0.5);
    animation: shimmer 2.5s ease-in-out infinite;
}

/* 渠道团长 - 彩虹渐变 */
.team-channel {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 75%, 
        #00f2fe 100%
    );
    background-size: 200% 100%;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.6);
    animation: shimmer 2s ease-in-out infinite;
    font-weight: 700;
}

/* 闪烁动画 */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header-simple .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-simple .page-title {
    margin-bottom: 0;
}

/* 团队总览卡片 */
.team-overview {
    background: linear-gradient(135deg, #64B5F6 0%, #FFFFFF 100%);
    margin: 16px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    color: white;
}

.overview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.team-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.team-info {
    flex: 1;
}

.team-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.team-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

.team-desc {
    font-size: 13px;
    opacity: 0.9;
}

.overview-stats {
    display: flex;
    gap: 16px;
}

.overview-stat {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 16px 12px;
    border-radius: 12px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.9;
}

/* 数据统计区域 */
.data-section {
    padding: 0 16px 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.data-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.data-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.data-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.data-content {
    flex: 1;
    min-width: 0;
}

.data-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 排行榜区域 */
.ranking-section {
    padding: 0 16px 20px;
}

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

.view-all-btn {
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0;
}

.ranking-list {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: background-color 0.2s;
}

.ranking-item:last-child {
    margin-bottom: 0;
}

.ranking-item:active {
    background-color: var(--bg-color);
}

.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.member-stats {
    font-size: 12px;
    color: var(--text-light);
}

.member-amount {
    font-size: 16px;
    font-weight: 700;
    color: #FF4757;
}

/* 团队成员区域 */
.members-section {
    padding: 0 16px 20px;
}

.member-filter {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 16px;
    background: white;
    color: var(--text-secondary);
    font-size: 13px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.empty-state {
    background: white;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.invite-now-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #4B7BFF, #3867D6);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.invite-now-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 成员列表 */
.members-list {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    margin-top: 16px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.member-item:hover {
    background: var(--bg-color);
}

.member-item:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.member-item .member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.member-item .member-info {
    flex: 1;
    min-width: 0;
}

.member-item .member-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-item .member-stats {
    font-size: 12px;
    color: var(--text-light);
}

.member-item .member-amount {
    font-size: 16px;
    font-weight: 700;
    color: #FF4757;
    flex-shrink: 0;
}

.active-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #4CAF50;
    color: white;
    font-size: 10px;
    border-radius: 10px;
    font-weight: 600;
}

/* 邀请区域 */
.invite-section {
    padding: 0 16px 20px;
}

.invite-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.invite-content {
    color: white;
}

.invite-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.invite-desc {
    font-size: 12px;
    opacity: 0.9;
}

.invite-action-btn {
    padding: 10px 20px;
    background: white;
    color: #f5576c;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.invite-action-btn:active {
    transform: scale(0.95);
}

.invite-action-btn svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .team-overview {
        padding: 20px;
    }
    
    .overview-stats {
        gap: 12px;
    }
    
    .overview-stat {
        padding: 14px 10px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .data-grid {
        gap: 10px;
    }
    
    .data-card {
        padding: 14px;
    }
}

/* 邀请弹窗样式 */
.invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.invite-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.invite-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.invite-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.invite-modal-close:hover {
    background: #e0e0e0;
}

.invite-modal-close:active {
    transform: scale(0.95);
}

.invite-modal-body {
    padding: 20px;
}

.invite-info {
    text-align: center;
    padding: 20px 0;
}

.invite-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.invite-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.invite-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.invite-code-section,
.invite-link-section {
    margin-top: 24px;
}

.invite-code-label,
.invite-link-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.invite-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #42A5F5, #E3F2FD);
    border-radius: 12px;
    padding: 16px;
}

.invite-code-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: 4px;
}

.invite-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px;
}

.invite-link-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #666;
    outline: none;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #42A5F5;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.copy-btn:hover {
    background: #f0f0f0;
}

.copy-btn:active {
    transform: scale(0.95);
}

.invite-tips {
    margin-top: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.tips-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

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

.tips-list li {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}

.tips-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #42A5F5;
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 移动端优化 */
@media (max-width: 480px) {
    .invite-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .invite-modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }
    
    .invite-code-text {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .invite-link-input {
        font-size: 11px;
    }
}

