/* ===== 邀请有奖功能样式 ===== */

/* 引入现代化样式 */
@import url('./invite-rewards-modern.css');

/* 标签页导航样式 */
.income-tabs {
    margin-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.tab-nav {
    display: flex;
    gap: 0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.tab-content {
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block !important;
}

/* 邀请有奖内容样式 */
.invite-rewards-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 邀请概览 */
.invite-overview-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.overview-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}

/* 左侧邀请码区域 */
.invite-code-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.invite-code-area h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* 右侧统计区域 */
.stats-area {
    display: flex;
    flex-direction: column;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #667eea;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}


.code-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    padding: 12px 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e8edff;
    text-align: center;
    word-break: break-all;
}

.code-actions {
    display: flex;
    gap: 12px;
}

.copy-btn,
.share-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.copy-btn {
    background: #667eea;
    color: white;
}

.copy-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.share-btn {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #e9ecef;
}

.share-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}


/* 邀请说明区域 */
.invite-description {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.invite-description h5 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.intro-content {
    line-height: 1.6;
    color: #495057;
    font-size: 13px;
}

.intro-content p {
    margin: 0 0 12px 0;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* 彩色文字样式 */
.section-title {
    color: #2c3e50;
    font-weight: 600;
}

.highlight-brand {
    color: #667eea;
    font-weight: 600;
}

.highlight-reward {
    color: #e74c3c;
    font-weight: 600;
}

.highlight-time {
    color: #f39c12;
    font-weight: 600;
}

.reward-type {
    color: #27ae60;
    font-weight: 600;
}

.reward-list {
    margin: 8px 0 12px 0;
    padding-left: 18px;
}

.reward-list li {
    margin-bottom: 5px;
    color: #495057;
    font-size: 13px;
}


/* 邀请记录 */
.invite-records-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.invite-records-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.invite-records-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    margin-right: 12px;
    border-radius: 2px;
}


.invite-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invite-table th,
.invite-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.invite-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.invite-table td {
    font-size: 14px;
    color: #6c757d;
}

.invite-table tbody tr:hover {
    background: #f8f9fa;
}

.empty-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-data i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-data p {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.empty-data small {
    font-size: 14px;
    opacity: 0.8;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

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

.page-info {
    font-size: 14px;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .overview-layout {
        grid-template-columns: 1fr 1.5fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .overview-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .invite-records-section {
        padding: 20px;
    }
    
    .code-actions {
        flex-direction: column;
    }
    
    
    .invite-table {
        font-size: 12px;
    }
    
    .invite-table th,
    .invite-table td {
        padding: 8px 12px;
    }
    
    .table-pagination {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .invite-overview-section,
    .invite-records-section {
        padding: 16px;
    }
    
    .code-value {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .invite-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    animation: fadeInUp 0.3s ease;
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    animation: copyNotification 2s ease forwards;
}

@keyframes copyNotification {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}
