.invite-container {
    padding: 60px 16px 80px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 头部导航 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(50px + var(--safe-top));
    padding-top: var(--safe-top);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.back-btn {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.page-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

/* 邀请说明 */
.invite-intro {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fb3 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.intro-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.intro-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.intro-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

/* 邀请码展示 */
.invite-code-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff8fa 100%);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.code-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 16px 20px;
    border: 2px dashed #ff6b9d;
}

.code-text {
    font-size: 22px;
    font-weight: 700;
    color: #ff6b9d;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    flex: 1;
    text-align: center;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fb3 100%);
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #ff5a8c 0%, #ff7da8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

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

/* 邀请记录 */
.invite-records {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.records-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.record-item:last-child {
    border-bottom: none;
}

.record-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.record-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.record-time {
    font-size: 12px;
    color: #999;
}

.record-status {
    font-size: 13px;
    color: #07c160;
    background: rgba(7, 193, 96, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
}

/* 加载中提示 */
.loading-more {
    text-align: center;
    padding: 16px;
    color: #999;
    font-size: 14px;
}

.loading-more::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
