/* 邀请活动样式 */
.activity-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.activity-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

/* 活动导航标签 */
.activity-nav {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

.activity-section {
    padding: 10px 0;
}

/* 抽奖信息显示 */
.lottery-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 15px;
}

.lottery-chances, .lottery-total {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #f59e0b;
}

.chances-label, .total-label {
    display: block;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 5px;
}

.chances-count, .total-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #d97706;
}

/* 抽奖转盘 */
.lottery-wheel-container {
    position: relative;
    width: 300px;
    height: 120px;
    margin: 0 auto 30px;
}

.lottery-display {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 4px solid #f59e0b;
}

.display-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 1.2;
    padding: 20px;
    transition: all 0.3s ease;
}

.wheel-border {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 16px;
    border: 4px solid transparent;
    background: linear-gradient(45deg, #f59e0b, #d97706, #f59e0b, #d97706);
    background-size: 400% 400%;
    animation: borderGlow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 抽奖中的闪烁效果 */
.lottery-display.spinning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.lottery-display.spinning .display-text {
    animation: textFlash 0.2s infinite;
}

@keyframes textFlash {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
    }
    25%, 75% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* 中奖结果显示 */
.lottery-display.result-thanks {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.lottery-display.result-1day {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.lottery-display.result-2day {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.lottery-display.result-3day {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lottery-display.result-7day {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.lottery-display.result-1month {
    background: linear-gradient(135deg, #ec4899, #db2777);
    animation: winnerGlow 1s ease-in-out infinite alternate;
}

@keyframes winnerGlow {
    0% {
        box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 12px 35px rgba(236, 72, 153, 0.8);
        transform: scale(1.05);
    }
}

/* 抽奖按钮 */
.lottery-action {
    text-align: center;
    margin-bottom: 30px;
}

.lottery-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.lottery-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.lottery-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lottery-btn.spinning {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 保底按钮样式 */
.lottery-btn.guarantee-btn {
    background: linear-gradient(135deg, #ec4899, #db2777);
    animation: guaranteeGlow 1s ease-in-out infinite alternate;
}

.lottery-btn.guarantee-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #db2777, #be185d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

@keyframes guaranteeGlow {
    0% {
        box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    }
    100% {
        box-shadow: 0 6px 25px rgba(236, 72, 153, 0.8);
    }
}

/* 抽奖记录 */
.lottery-records {
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.lottery-records h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.records-list {
    max-height: 200px;
    overflow-y: auto;
}

.record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.record-prize {
    font-weight: 600;
    color: #374151;
}

.record-time {
    font-size: 12px;
    color: #9ca3af;
}

.record-prize.thanks {
    color: #6b7280;
}

.record-prize.reward {
    color: #f59e0b;
}

.no-records {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
    font-size: 14px;
}

/* 邀请相关样式 */
.invite-subsection {
    margin-bottom: 20px;
}

.activity-banner {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.activity-banner.old-user {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.banner-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.activity-banner h3 {
    color: #92400e;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.activity-banner.old-user h3 {
    color: #1e40af;
}

.activity-banner p {
    color: #78350f;
    font-size: 13px;
    margin: 0;
}

/* 移动端隐藏老用户banner */
@media (max-width: 768px) {
    .activity-banner.old-user {
        display: none;
    }
}

.activity-banner.old-user p {
    color: #1e3a8a;
}

.code-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.code-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.code-input-group input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.code-input-group .primary-btn {
    width: 100%;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-input-group .primary-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.input-hint {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.invitation-code-display {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin-bottom: 25px;
}

.code-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    font-weight: 500;
}

.code-value {
    font-size: 36px;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.invitation-code-display .secondary-btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: 2px solid #3b82f6;
    background: white;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invitation-code-display .secondary-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.activity-rules {
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.activity-rules h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-rules h4 i {
    color: #3b82f6;
}

.activity-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-rules ul li {
    padding: 8px 0;
    padding-left: 25px;
    color: #6b7280;
    font-size: 14px;
    position: relative;
    line-height: 1.6;
}

.activity-rules ul li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #3b82f6;
    font-size: 18px;
    font-weight: bold;
}

/* 邀请记录列表 */
.invited-users-list {
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.invited-users-list h4 {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invited-users-list h4 i {
    color: #22c55e;
}

.invited-count {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
    margin-left: auto;
}

.users-container {
    max-height: 200px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.user-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.user-email {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.user-time {
    color: #9ca3af;
    font-size: 12px;
}

.no-data {
    text-align: center;
    color: #9ca3af;
    padding: 20px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lottery-wheel-container {
        width: 260px;
        height: 100px;
    }
    
    .display-text {
        font-size: 18px;
        padding: 15px;
    }
    
    .lottery-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .activity-nav {
        margin-bottom: 15px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}
