/* 邀请页面样式 */

.invite-page {
    padding-top: var(--header-height);
    padding-bottom: 40px;
    background: var(--bg-gray);
    min-height: 100vh;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-primary);
}

.header-title {
    font-size: 17px;
    font-weight: 600;
}

/* 邀请横幅 */
.invite-banner {
    padding: 50px 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: var(--text-light);
    text-align: center;
}

.banner-content h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.banner-content p {
    font-size: 15px;
    opacity: 0.9;
}

.banner-content strong {
    font-size: 24px;
}

/* 邀请码卡片 */
.invite-code-card {
    margin: -30px 15px 15px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.invite-code-card h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.code-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.code-box span {
    font-size: 24px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--primary);
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--primary);
    background: var(--bg-white);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
}

.code-tip {
    font-size: 12px;
    color: var(--text-muted);
}

/* 分享链接 */
.share-section {
    margin: 0 15px 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
}

.share-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
}

.share-link {
    display: flex;
    gap: 10px;
}

.share-link input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-light);
    background: var(--primary);
    border-radius: var(--radius-md);
}

/* 邀请统计 */
.invite-stats {
    display: flex;
    margin: 0 15px 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* 邀请记录 */
.invite-records {
    margin: 0 15px 15px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
}

.record-list {
    margin-top: 12px;
}

.record-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.record-item:last-child {
    border-bottom: none;
}

.record-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    margin-right: 12px;
}

.record-info {
    flex: 1;
}

.record-name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

.record-time {
    font-size: 12px;
    color: var(--text-muted);
}

.record-status {
    text-align: right;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    background: var(--bg-gray);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.status-tag.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.commission {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}

/* 佣金规则 */
.commission-rules {
    margin: 0 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
}

.commission-rules h3 {
    font-size: 15px;
    margin-bottom: 12px;
}

.commission-rules ul {
    padding-left: 0;
}

.commission-rules li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: none;
}

.commission-rules li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--primary);
}

/* 响应式 */
@media (max-width: 480px) {
    .invite-banner {
        padding: 40px 16px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .code-box span {
        font-size: 20px;
    }
}
