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

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background: #f5f5f5;
    overflow: hidden;
}

#root-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #0066CC 0%, #1E90FF 100%);
    color: white;
    font-size: 18px;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* 错误状态 */
.error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f5f5f5;
    color: #666;
    text-align: center;
}

.error h2 {
    margin-bottom: 20px;
    color: #333;
}

.error p {
    margin-bottom: 15px;
}

.error button {
    padding: 10px 20px;
    background: #0066CC;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.error button:hover {
    background: #1E90FF;
}
