/* ===== 变量定义 ===== */
:root {
    /* 主色系 */
    --primary-color: #3498db;
    --hospital-blue: #2980b9;
    --hospital-dark-blue: #1a5276;
    
    /* 辅助色 */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    
    /* 中性色 */
    --light-gray: #f5f7fa;
    --medium-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --text-dark: #2c3e50;
    
    /* 尺寸 */
    --sidebar-width: 250px;
    --header-height: 70px;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: var(--hospital-blue);
    transition: color 0.3s;
}

a:hover {
    color: var(--hospital-dark-blue);
}

button, 
input, 
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== 工具类 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.hidden {
    display: none !important;
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}