
/* 全局重置与基础变量 */
:root {
    --primary-color: #00b4d8;
    --secondary-color: #0077b6;
    --accent-color: #90e0ef;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* 头部导航样式 */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.btn-login {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: var(--secondary-color);
}

/* 搜索区域样式 */
.search-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.search-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.search-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 20px;
    display: flex;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    padding: 0 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #005f8d;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover, .tag.active {
    background: var(--white);
    color: var(--secondary-color);
}

/* 主体内容区域 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

/* 病例卡片网格布局 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.status-normal {
    background-color: #e0f7fa;
    color: #006064;
}

.status-warning {
    background-color: #fff3e0;
    color: #e65100;
}

.badge {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.5);
}

.card-body {
    padding: 20px;
    flex: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.patient-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.patient-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.diagnosis {
    margin-bottom: 15px;
}

.diagnosis h4 {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diagnosis p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.doctor-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: #f1f1f1;
    padding: 8px 12px;
    border-radius: 8px;
}

.doctor-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn-detail, .btn-download {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-detail {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-detail:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-download {
    color: var(--text-light);
}

.btn-download:hover {
    background: #eee;
    color: var(--text-dark);
}

/* 页脚样式 */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col p {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #95a5a6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .search-section h1 {
        font-size: 1.8rem;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
}
