@font-face {
    font-family: 'DelaGothicOne';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/DelaGothicOne-Regular.ttf');
}
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/Alibaba-PuHuiTi-Bold.otf');
}

:root {
    --border-width: 10px;
    --border-color: #000000;
    --primary-bg: #F2F0E9;
    --accent-orange: #FF5A5F;
    --accent-blue: #2D5BFF;
    --accent-pink: #FF4081;
    --accent-yellow: #FFE600;
    --accent-purple: #9C27B0;
    --accent-green: #00E676;
    --text-color: #000000;
    --light-text: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    min-height: 100vh;
    background-color: var(--primary-bg);
    font-family: 'AlibabaPuHuiTi', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid var(--accent-yellow);
    border-top: 8px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 24px;
    margin-top: 20px;
    font-family: 'AlibabaPuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 40px;
    background: #000;
    color: #fff;
    padding: 20px 30px;
    border: 6px solid var(--border-color);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-size: 18px;
    font-weight: bold;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.toast.show {
    display: block;
}

.toast.success {
    background: var(--accent-green);
    color: #000;
}

.toast.error {
    background: var(--accent-orange);
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}


/* 用户信息显示 - 自动隐藏/显示 */
.user-info {
    position: fixed;
    top: 120px; /* 向下移动到120px */
    right: -280px; /* 默认隐藏到屏幕外 */
    background: #fff;
    border: 6px solid #000;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 16px;
    font-weight: bold;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* 弹性动画 */
}

/* 鼠标悬停在右上角区域时显示 */
.user-info:hover,
.user-info.show {
    right: 20px;
}

/* 右上角触发区域 */
.user-info-trigger {
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 999;
    pointer-events: all;
}

.user-info .user-avatar {
    font-size: 24px;
}

.user-info .user-name {
    color: #2D5BFF;
}

.user-info .logout-btn {
    background: #FF5A5F;
    color: #fff;
    border: 3px solid #000;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'AlibabaPuHuiTi', sans-serif;
}

.user-info .logout-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

/* 用户信息显示指示器（小标签） */
.user-info-indicator {
    position: fixed;
    top: 120px; /* 向下移动到120px，与用户信息面板对齐 */
    right: 0;
    background: #2D5BFF;
    color: #fff;
    border: 4px solid #000;
    border-right: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    z-index: 998;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: -4px 4px 0 rgba(0,0,0,0.2);
}

.user-info-indicator:hover {
    background: #FF5A5F;
    transform: translateX(-5px);
}

.user-info-indicator::before {
    content: '👤';
    margin-right: 5px;
}
