/* OKX 维权网站样式 */
body {
    font-family: 'Noto Sans SC', 'Chakra Petch', sans-serif;
    background-color: #000;
    color: #fff;
}

.bg-image {
    background-image: url('image_695bda.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    filter: blur(4px) brightness(0.7);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: -1;
}

.main-container {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.form-input {
    background-color: #1a1a1a;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.form-input:focus {
    background-color: #2a2a2a;
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.form-input:disabled {
    background-color: #222;
    cursor: not-allowed;
}

.file-input-area {
    border: 2px dashed #444;
    transition: all 0.3s ease;
}

.file-input-area:hover {
    border-color: #ff0000;
    background-color: #1a1a1a;
}

.copy-button {
    background-color: #333;
    border: 1px solid #555;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #ff0000;
}

.lang-switcher button {
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.lang-switcher button:hover, .lang-switcher button.active {
    background: #ff0000;
}

.wallet-button:disabled, button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 50;
}

.toast {
    background-color: rgba(30, 30, 30, 0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #555;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.error {
    border-left: 4px solid #ef4444; /* red-500 */
}

.toast.info {
    border-left: 4px solid #3b82f6; /* blue-500 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lang-switcher {
        top: 1rem;
        right: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    animation: fadeIn 0.6s ease-out;
}

/* 文件拖拽区域高亮 */
.file-input-area.drag-over {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

/* 加载状态 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 表单验证状态 */
.form-input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.form-input.valid {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* 按钮状态 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}