/* ========================================
   layout.css — 页面布局
   v1: 整体结构、错误提示容器
   ======================================== */

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 错误提示容器（代码SOP 4.6：错误弹屏幕上，L能截图） */
#error-container {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
}

.error-toast {
    background: rgba(200, 30, 30, 0.95);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    line-height: 1.5;
    position: relative;
    animation: slideIn 0.3s ease;
}

.error-toast strong {
    display: block;
    margin-bottom: 4px;
}

.error-toast p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.error-toast small {
    display: block;
    margin-top: 6px;
    opacity: 0.6;
    font-size: 10px;
}

.error-toast button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.6;
}

.error-toast button:hover {
    opacity: 1;
}

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