/* 全局重置和基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; 
    line-height: 1.6; 
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主容器 */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 2rem;
    flex: 1;
    width: 100%;
}

/* 欢迎横幅 */
.greeting { 
    margin-bottom: 2rem; 
    padding: 1.5rem 2rem; 
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    border-left: 4px solid #4caf50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.greeting p { margin: 0.3rem 0; color: #2e7d32; }
.greeting p:first-child { font-weight: 500; }

/* 页脚样式 */
footer { 
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1; 
    text-align: center; 
    padding: 1.5rem; 
    margin-top: auto;
}
footer a { color: #3498db; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .greeting { padding: 1rem 1.5rem; }
}

/* Toast 提示 */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: auto;
    min-width: 280px;
    max-width: 500px;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast.hiding {
    opacity: 0;
    transform: translateY(-20px);
}
.toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}
.toast-success {
    border-left: 4px solid #4caf50;
}
.toast-success .toast-icon { color: #4caf50; }
.toast-error {
    border-left: 4px solid #f44336;
}
.toast-error .toast-icon { color: #f44336; }
.toast-warning {
    border-left: 4px solid #ff9800;
}
.toast-warning .toast-icon { color: #ff9800; }
.toast-info {
    border-left: 4px solid #2196f3;
}
.toast-info .toast-icon { color: #2196f3; }

@media (max-width: 480px) {
    .container { padding: 0.8rem; }
    .greeting { padding: 0.8rem 1rem; font-size: 0.9rem; }
}
