/* 平板旋转提示样式 */
.tablet-rotate-prompt {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tablet-rotate-prompt.show {
    display: flex;
    opacity: 1;
}

body.has-tablet-rotate-prompt {
    overflow: hidden;
}

.tablet-rotate-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.tablet-rotate-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tablet-rotate-icon .fa-tablet-alt {
    font-size: 64px;
    color: #0087f7;
}

.tablet-rotate-icon .fa-sync-alt {
    position: absolute;
    font-size: 28px;
    color: #0087f7;
    animation: rotate 2s linear infinite;
    bottom: -4px;
    right: -4px;
}

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

.tablet-rotate-title {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 12px;
}

.tablet-rotate-text {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 24px;
}

.tablet-rotate-dismiss {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tablet-rotate-dismiss:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.tablet-rotate-dismiss:active {
    transform: scale(0.98);
}

.tablet-rotate-dismiss i {
    font-size: 16px;
}

/* 护眼模式适配 */
body.eye-protection .tablet-rotate-content {
    background: #f5f1e8;
}

body.eye-protection .tablet-rotate-title {
    color: #4a3c28;
}

body.eye-protection .tablet-rotate-text {
    color: #6b5d4f;
}

body.eye-protection .tablet-rotate-dismiss {
    border-color: #d9cbb8;
    color: #6b5d4f;
}

body.eye-protection .tablet-rotate-dismiss:hover {
    background: #eae5d8;
    border-color: #c9bba8;
    color: #4a3c28;
}

@media (prefers-reduced-motion: reduce) {
    .tablet-rotate-prompt,
    .tablet-rotate-content,
    .tablet-rotate-icon .fa-sync-alt {
        animation: none;
        transition: none;
    }
}
