/* ========================================
   横屏提示 - 手机竖屏时显示
   ======================================== */

.orientation-hint {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.orientation-hint-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f7e 100%);
    border-radius: 16px;
    padding: 2rem;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

.orientation-hint-icon {
    margin-bottom: 1.5rem;
}

.orientation-hint-icon i {
    font-size: 64px;
    color: #ffd700;
    animation: rotate 2s ease-in-out infinite;
}

.orientation-hint-text h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.orientation-hint-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.orientation-hint-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.orientation-hint-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.orientation-hint-actions .btn-primary {
    background: #28a745;
    color: white;
}

.orientation-hint-actions .btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.orientation-hint-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.orientation-hint-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

/* 只在手机竖屏时显示 */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .orientation-hint.show {
        display: block;
    }
}

/* 平板和桌面不显示 */
@media screen and (min-width: 769px) {
    .orientation-hint {
        display: none !important;
    }
}

/* 横屏时不显示 */
@media screen and (orientation: landscape) {
    .orientation-hint {
        display: none !important;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
    .orientation-hint-content {
        padding: 1.5rem;
        width: 90%;
    }
    
    .orientation-hint-icon i {
        font-size: 48px;
    }
    
    .orientation-hint-text h3 {
        font-size: 1.1rem;
    }
    
    .orientation-hint-text p {
        font-size: 0.9rem;
    }
    
    .orientation-hint-actions .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}


