/* 弹窗/模态框样式 */

/* 小鱼干充值弹窗 */
.fish-recharge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.fish-recharge-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.modal-content {
    position: relative;
    width: 582px;
    height: 911px;
    background: url('/images/popup/popup_L.svg') center center no-repeat;
    background-size: 100% 100%;
    z-index: 2;
}

.fish-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: url('/images/icon/close_white.svg') center center no-repeat;
    background-size: 100% 100%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

/* 桌面端hover效果（仅支持hover的设备） */
@media (hover: hover) {
    .fish-modal-close:hover {
        opacity: 0.6;
    }
}

.fish-modal-close:active {
    opacity: 0.4;
}

.fish-modal-inner {
    padding: 80px 40px 40px 40px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.fish-modal-title {
    font-family: 'Knewave', sans-serif;
    font-size: 40px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
}

.fish-balance-display {
    font-size: 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 32px;
}

.fish-balance-value {
    font-family: 'Knewave', sans-serif;
    font-size: 32px;
    margin: 0 8px;
}

.fish-products-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
}

.fish-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.fish-product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 桌面端hover效果（仅支持hover的设备） */
@media (hover: hover) {
    .fish-product-card:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
}

.fish-product-card:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.8);
}

.fish-product-name {
    font-size: 20px;
    color: #fff;
    margin-bottom: 8px;
}

.fish-product-amount {
    font-family: 'Knewave', sans-serif;
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 8px;
}

.fish-product-price {
    font-size: 18px;
    color: #ccc;
}

.fish-modal-tip {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 24px;
}

/* 浮层加载Loading */
.modal-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

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

.modal-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast提示 */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    90% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 400px;
        height: auto;
        max-height: 80vh;
    }
    
    .fish-modal-inner {
        padding: 60px 30px 40px 30px;
    }
    
    .fish-modal-title {
        font-size: 30px;
    }
    
    .fish-balance-display {
        font-size: 18px;
    }
    
    .fish-balance-value {
        font-size: 24px;
    }
    
    .fish-products-title {
        font-size: 20px;
    }
    
    .fish-product-card {
        padding: 16px;
    }
    
    .fish-product-name {
        font-size: 18px;
    }
    
    .fish-product-amount {
        font-size: 22px;
    }
    
    .fish-product-price {
        font-size: 16px;
    }
}

