/* ============================================
   推广赚钱页面样式
   猫哥创作 | 2026-01-20
   ============================================ */

/* Hero区域 */
.referral-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-title i {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--text);
}

.feature-item i {
    color: var(--success);
    font-size: 1.25rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.gradient-1::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card.gradient-2::before {
    background: linear-gradient(90deg, #43e97b, #38f9d7);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.gradient-1 .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.gradient-2 .stat-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

/* 主容器 */
.referral-container {
    padding: 2rem 0;
}

.referral-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

/* 推广链接 */
.referral-link-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.referral-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text);
    font-size: 0.9375rem;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.share-btn {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.share-btn i {
    font-size: 1.5rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.share-btn.twitter {
    color: #1da1f2;
}

.share-btn.telegram {
    color: #0088cc;
}

.share-btn.discord {
    color: #5865f2;
}

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

/* 推广网络树 */
.referral-tree {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tree-level {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
}

.tree-level::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}

.tree-level.level-1::before {
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.tree-level.level-2::before {
    background: linear-gradient(180deg, #f093fb, #f5576c);
}

.tree-level.level-3::before {
    background: linear-gradient(180deg, #4facfe, #00f2fe);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.level-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
}

.level-1 .level-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.level-2 .level-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.level-3 .level-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.level-info {
    flex: 1;
}

.level-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.level-commission {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.level-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.level-revenue {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.revenue-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

/* 收益记录 */
.commission-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.commission-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.commission-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.commission-info {
    flex: 1;
}

.commission-user {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.commission-detail {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.commission-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success);
}

.commission-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

/* 数据统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-box .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.stat-box .stat-value.success {
    color: var(--success);
}

.stat-box .stat-value.primary {
    color: var(--primary);
}

/* 推广技巧 */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.tip-item i {
    color: var(--success);
    margin-top: 0.125rem;
}

.tip-item span {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* 行动卡片 */
.action-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.action-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.action-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.action-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .referral-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
