/* Loading 遮罩 */
.gtwp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.gtwp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: gtwp-spin 0.8s linear infinite;
}

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

.gtwp-loading-text {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 页面淡入 */
.gtwp-page-ready {
    animation: gtwp-fade-in 0.3s ease-out;
}

@keyframes gtwp-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 翻译提示条 */
.gtwp-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    z-index: 99998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gtwp-view-original {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    margin-left: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.gtwp-view-original:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* RTL 支持 */
body.rtl-layout {
    direction: rtl;
}

body.rtl-layout .gtwp-view-original {
    margin-left: 0;
    margin-right: 12px;
}