:root {
    --primary-color: #509ba3;
    --secondary-color: #2c7d85;
    --light-color: #e8f4f5;
    --dark-color: #1d5a60;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* 头部样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.hospital-logo img {
    height: 50px;
    margin-right: 10px;
}

.hospital-desc img {
    height: 30px;
}

.hotline {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hotline-number {
    font-size: 18px;
    font-weight: bold;
    margin-left: 5px;
}

/* 左栏样式 */
.sidebar {
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 81px - 50px); /* 减去头部和页脚高度 */
    position: sticky;
    top: 81px;
    overflow-y: auto;
}

.sidebar-item {
    padding: 18px 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar-item:hover, .sidebar-item.active {
    background-color: var(--light-color);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-item i {
    margin-right: 12px;
    width: 22px;
    text-align: center;
    font-size: 18px;
}

/* 主界面样式 */
.main-content {
    padding: 30px;
    min-height: calc(100vh - 81px - 50px); /* 减去头部和页脚高度 */
}

.welcome-section {
    background: linear-gradient(135deg, #fff 0%, var(--light-color) 100%);
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-bottom: 30px;
}

.welcome-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.welcome-title {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.welcome-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.welcome-subtitle {
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover:after {
    opacity: 1;
}

.feature-icon {
    background-color: var(--light-color);
    color: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: rotate(5deg);
    background-color: var(--primary-color);
    color: white;
}

.feature-title {
    color: var(--dark-color);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 18px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 0;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .sidebar {
        display: none; /* 在移动端隐藏左栏 */
    }
    
    .mobile-menu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .mobile-menu-item {
        background-color: white;
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s;
        font-size: 15px;
        font-weight: 500;
    }
    
    .mobile-menu-item:hover {
        background-color: var(--light-color);
        color: var(--primary-color);
    }
    
    .mobile-menu-icon {
        font-size: 26px;
        margin-bottom: 12px;
        color: var(--primary-color);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hospital-logo img {
        height: 40px;
    }
    
    .hospital-desc img {
        height: 25px;
    }
    
    .hotline {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .hotline-number {
        font-size: 14px;
    }
    
    .welcome-section {
        padding: 30px 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
} 