/* 🔥 恢复完整的转盘样式，保持原有功能 */

/* 转盘入口按钮 */
.wheel-entrance {
    position: fixed;
    top: 20%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: block !important;
}

.wheel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
    max-width: 80px;
    text-align: center;
}

.wheel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.wheel-icon {
    font-size: 24px;
    animation: bounce 2s infinite;
}

.wheel-text {
    font-size: 10px;
    white-space: nowrap;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* 转盘模态框 - 弹出式菜单设计 */
.wheel-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease-out;
}

.wheel-modal.show {
    display: flex;
}

.wheel-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transform: scale(1);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wheel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.wheel-close {
    background: rgba(231, 76, 60, 0.8);
    border: 2px solid rgba(231, 76, 60, 1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wheel-close:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

/* 转盘选择标签 */
.wheel-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.wheel-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.wheel-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wheel-tab.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.tab-icon {
    font-size: 20px;
}

.tab-title {
    font-weight: bold;
    font-size: 14px;
}

.tab-desc {
    font-size: 11px;
    opacity: 0.8;
    text-align: center;
    line-height: 1.2;
}

/* 转盘信息 */
.wheel-info {
    margin-bottom: 20px;
}

.wheel-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.stat-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
}

/* 转盘主体 */
.wheel-game {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.wheel-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.wheel-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        #ff6b6b 0deg 45deg,
        #4ecdc4 45deg 90deg,
        #45b7d1 90deg 135deg,
        #96ceb4 135deg 180deg,
        #feca57 180deg 225deg,
        #ff9ff3 225deg 270deg,
        #54a0ff 270deg 315deg,
        #5f27cd 315deg 360deg
    );
    border: 8px solid #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}

.wheel-sector {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 2px;
    transform-origin: 0 0;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #e74c3c;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.spin-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 4px solid white;
    color: white;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.spin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.spin-btn:active {
    transform: scale(0.95);
}

/* 转盘旋转动画 */
.wheel-spinning-fast {
    animation: wheelSpinFast 0.1s linear infinite;
}

.wheel-stopping {
    animation: none !important;
}

.spinning-glow {
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.6);
}

@keyframes wheelSpinFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 指针旋转动画 */
.wheel-pointer.spinning {
    animation: pointerBounce 0.2s ease-in-out infinite alternate;
}

@keyframes pointerBounce {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(3px); }
}

/* 转盘结果 */
.wheel-result {
    display: none;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    animation: resultShow 0.5s ease-out;
}

.wheel-result.show {
    display: block;
}

@keyframes resultShow {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.result-text {
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

.result-amount {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 🔥 高级转盘费用等级显示 */
.premium-cost-level {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.cost-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.level-title {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.level-indicator {
    color: #ffd700;
    font-size: 12px;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
}

.cost-level-progress {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-align: center;
}

.cost-level-info {
    text-align: center;
}

.current-cost {
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 转盘历史 */
.wheel-history {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
}

.wheel-history h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.history-list {
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 12px;
    border-left: 3px solid #ffd700;
}

.history-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.history-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.history-type {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.history-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-transaction {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-family: monospace;
}

.history-profit {
    font-weight: bold;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.history-profit.profit-positive {
    color: #4ade80;
    border-left: 3px solid #4ade80;
}

.history-profit.profit-negative {
    color: #f87171;
    border-left: 3px solid #f87171;
}

.history-amount {
    color: #ffd700;
    font-weight: bold;
}

.no-history {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 20px;
}

/* 模态框动画 - 增强版弹出效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
}

/* 转盘内容居中对齐 */
.wheel-modal-content {
    text-align: center;
}

.wheel-modal-content > * {
    text-align: inherit;
}

/* 🔥 多次转盘相关样式 - 统一弹出式设计 */
.wheel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease-out;
}

.wheel-modal-overlay .wheel-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: rgba(231, 76, 60, 0.8);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

.multi-spin-modal {
    color: white;
}

.multi-spin-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.highlight {
    color: #ffd700;
    font-weight: bold;
}

.cost-amount {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 18px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 多次转盘进度样式 - 优化版 */
.multi-spin-progress {
    color: white;
    text-align: center;
}

.multi-spin-progress h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-info {
    margin-bottom: 20px;
}

.progress-status {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

.progress-text {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.current-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item span:first-child {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.result-item span:last-child {
    display: block;
    font-weight: bold;
    font-size: 16px;
}

/* 快捷按钮hover效果 */
.quick-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.quick-spin-btn:active {
    transform: translateY(0);
}

/* 响应式设计 - 优化弹出式转盘 */
@media (max-width: 768px) {
    .wheel-entrance {
        top: 15%;
        right: 10px;
    }
    
    .wheel-btn {
        padding: 10px 8px;
        max-width: 60px;
    }
    
    .wheel-icon {
        font-size: 20px;
    }
    
    .wheel-text {
        font-size: 8px;
    }
    
    /* 移动端转盘模态框优化 */
    .wheel-modal-content {
        padding: 25px 20px;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .wheel-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .wheel-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .wheel-tab {
        min-width: auto;
        padding: 10px 15px;
    }
    
    /* 移动端多次转盘模态框 */
    .wheel-modal-overlay .wheel-modal {
        padding: 25px 20px;
        max-width: 95%;
        border-radius: 20px;
    }
}

/* 🔥 下次费用提示样式 */
.next-cost-hint {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: hintPulse 2s infinite ease-in-out;
}

.hint-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hint-label {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hint-value {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 费用等级进度样式 */
.premium-cost-level {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cost-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.level-title {
    font-weight: bold;
    font-size: 16px;
}

.level-indicator {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.cost-level-progress {
    margin-bottom: 10px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #ffd700, #ff6b35);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.cost-level-info {
    font-size: 14px;
    opacity: 0.9;
}

.current-cost {
    font-weight: bold;
}

/* 提示动画 */
@keyframes hintPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
        transform: scale(1.02);
    }
}

/* 🔥 右侧通知动画 */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 转盘模态框内的通知容器样式 */
#wheelModal #wheel-notification-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    max-width: 300px;
    pointer-events: none;
}

/* 确保转盘模态框有相对定位 */
#wheelModal {
    position: relative;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #wheelModal #wheel-notification-container {
        top: 10px;
        right: 10px;
        max-width: 250px;
    }
}