/* Your custom styles */

:root {
	--primary-elegant: #4A90E2;
	--secondary-elegant: #7B8A99;
	--success-elegant: #50C878;
	--info-elegant: #81D4FA;
	--warning-elegant: #FFB74D;
	--danger-elegant: #FF8A80;
	--light-elegant: #F8F9FA;
	--dark-elegant: #2C3E50;
	--text-primary: #1E3A8A;
	--text-secondary: #4B5563;
}

body {
	background-color: var(--light-elegant);
	color: var(--text-secondary);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	padding-top: 80px; /* 初始导航栏高度 */
	transition: padding-top 0.3s ease;
}

/* 顶部导航栏 */
.navbar-custom {
	background: #FFFFFF;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 0.5rem 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1030;
	transition: all 0.3s ease;
}

.navbar-brand {
	font-weight: 600;
	color: var(--text-primary);
}

.nav-link {
	color: var(--text-secondary);
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.nav-link:hover {
	color: var(--primary-elegant);
	background: rgba(74, 144, 226, 0.05);
}

.nav-link[data-toggle="modal"] {
	color: var(--text-primary);
}

/* 滚动时缩小导航栏 */
.navbar-scrolled {
	padding: 0.25rem 0 !important;
}

.navbar-scrolled .nav-link {
	padding: 0.25rem 0.75rem;
	font-size: 0.9rem;
}

.navbar-scrolled .navbar-brand {
	font-size: 1.1rem;
}

/* 顶部链接 */
.top-link {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.top-link:hover {
	color: var(--primary-elegant);
	text-decoration: none;
}

.hero-section {
	background: linear-gradient(135deg, var(--primary-elegant) 0%, #5A9FF0 100%);
	padding: 60px 0;
	margin-top: -20px;
	margin-bottom: 40px;
	border-radius: 0 0 20px 20px;
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.hero-section .white-text {
	color: #FFFFFF;
}

.hero-section h1 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.hero-section h5 {
	font-size: 1.1rem;
	opacity: 0.95;
	line-height: 1.7;
}

.server-ip-alert {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #FFFFFF;
	padding: 15px;
	border-radius: 10px;
	backdrop-filter: blur(10px);
}

.section-title {
	color: var(--text-primary);
	font-size: 1.8rem;
	margin-bottom: 30px;
	text-align: center;
	position: relative;
}

.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--primary-elegant);
	margin: 10px auto 0;
	border-radius: 2px;
}

.table {
	background: #FFFFFF;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	table-layout: fixed;
}

.table thead th {
	background: var(--primary-elegant);
	color: #FFFFFF;
	border: none;
	font-weight: 600;
	text-align: center;
	padding: 15px;
}

.table thead th:nth-child(1) {
	width: 5%;
}

.table thead th:nth-child(2) {
	width: 20%;
}

.table thead th:nth-child(3) {
	width: 55%;
}

.table thead th:nth-child(4) {
	width: 20%;
}

.table tbody td {
	padding: 15px;
	vertical-align: middle;
	border-color: rgba(0, 0, 0, 0.05);
	font-size: 0.95rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.table tbody td:nth-child(1) {
	width: 5%;
	text-align: center;
}

.table tbody td:nth-child(2) {
	width: 20%;
	max-width: 20%;
	font-size: 0.9rem;
}

.table tbody td:nth-child(3) {
	width: 55%;
}

.table tbody td:nth-child(4) {
	width: 20%;
}

.table tbody tr:nth-child(even) {
	background: rgba(74, 144, 226, 0.02);
}

.table tbody tr:hover {
	background: var(--light-elegant);
	transition: background 0.2s ease;
}

.btn-primary {
	background: var(--primary-elegant);
	border-color: var(--primary-elegant);
	border-radius: 3px;
	padding: 8px 16px;
	font-weight: 500;
	font-size: 0.9rem;
	display: block;
	width: 100%;
	text-align: center;
}

.btn-primary:hover {
	background: #357ABD;
	border-color: #357ABD;
	transform: translateY(-1px);
}

.tools-section .btn-outline-info {
	border-color: var(--info-elegant);
	color: var(--text-secondary);
	border-radius: 8px;
	padding: 10px 20px;
	margin: 5px;
	transition: all 0.3s ease;
	font-size: 0.95rem;
}

.tools-section .btn-outline-info:hover {
	background: var(--info-elegant);
	color: #FFFFFF;
	transform: translateY(-1px);
}

.footer {
	background: var(--dark-elegant);
	color: #357ABD;
	padding: 20px 0;
	margin-top: 50px;
	border-radius: 20px 20px 0 0;
}

.medical-departments {
	font-size: 0.9em;
	line-height: 1.5;
}

.department-item {
	margin-bottom: 8px;
	padding: 8px;
	background: var(--light-elegant);
	border-radius: 5px;
	border-left: 3px solid var(--primary-elegant);
}

.link-hover {
	padding: 8px 0;
	transition: all 0.2s ease;
	border-radius: 4px;
}

.link-hover:hover {
	background-color: rgba(74, 144, 226, 0.1);
	padding: 8px 12px;
	color: var(--primary-elegant) !important;
}

@media (max-width: 768px) {
	body {
		padding-top: 70px;
	}

	.navbar-scrolled {
		padding: 0.1rem 0 !important;
	}

	.hero-section h1 {
		font-size: 2rem;
	}

	.hero-section h5 {
		font-size: 1rem;
	}

	.table-responsive {
		font-size: 0.85rem;
	}

	.table tbody td {
		padding: 10px 8px;
	}

	.table thead th:nth-child(1) {
		width: 8%;
	}

	.table thead th:nth-child(2) {
		width: 25%;
	}

	.table tbody td:nth-child(1) {
		width: 8%;
	}

	.table tbody td:nth-child(2) {
		width: 25%;
		max-width: 25%;
	}
}

:root {
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --accent-color: #ff6f00;
    --light-bg: #f8f9fa;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    color: #333;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-section a {
    color: #ffeb3b;
    border-bottom: 1px dashed #ffeb3b;
    transition: all 0.3s;
}

.hero-section a:hover {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
}

.module-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.module-card .card-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.btn-download {
    min-width: 140px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: scale(1.05);
}

.campus-info {
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.quick-nav {
    margin: 2rem 0;
}

.quick-nav .btn {
    margin: 0.25rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quick-nav .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.table thead {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.table th {
    border-top: none;
    font-weight: 600;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: top;
}

/* 模块名称字体变大 */
.table td:nth-child(2) {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.table tbody tr {
    transition: background-color 0.3s;
}

.table tbody tr:hover {
    background-color: rgba(13, 71, 161, 0.05);
}

.footer {
    background-color: var(--light-bg);
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-custom {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.brand-alert {
    background-color: white;
    border-left: 4px solid var(--primary-color);
}

.server-ip-alert {
    background: linear-gradient(135deg, #fff3e0, #ffecb3);
    border-left: 4px solid var(--accent-color);
    color: #5d4037;
}

.nav-alert {
    background-color: white;
    width: 100%; /* 确保导航区域与下方内容等宽 */
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: relative;
    bottom: -10px;    
    width: 190px;
    height: 4px;
    background: linear-gradient(to right, var(--info-elegant), var(--secondary-color));
    border-radius: 2px;
}

.tools-section .btn {
    border-radius: 10px;
    margin: 0.25rem;
    transition: all 0.3s;
}

.tools-section .btn:hover {
    transform: translateY(-3px);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        border-radius: 0 0 15px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .table th, .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .table td:nth-child(2) {
        font-size: 1rem;
    }
    
    .btn-download {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .quick-nav .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 医技/辅助科室模块特殊样式 */
.medical-departments {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.department-item {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.department-item strong {
    color: var(--primary-color);
}

/* 确保导航区域与下方内容等宽 */
.nav-container {
    width: 100%;
}

/* ===== 病历书写规范与要求大全专用样式 ===== */
.medical-record-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.medical-record-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff5722, #2196f3, #4caf50);
}

.medical-record-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #2c3e50 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.medical-record-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.medical-record-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.medical-record-footertext {
    font-size: 1.0rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.medical-record-nav-container {
    background: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.medical-record-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.medical-record-nav-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.medical-record-nav-link:hover, 
.medical-record-nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom: 3px solid #ff5722;
}

.top-nav-link {
    color: white;
    text-decoration: none;
    padding: 3px 3px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.top-nav-link:hover, 
.top-nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom: 3px solid #ff5722;
}

.medical-record-content {
    padding: 30px;
}

.medical-record-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.medical-record-section:hover {
    transform: translateY(-5px);
}

.medical-record-section h2 {
    color: #e74c3c;
    margin: 30px 0 20px;
    padding: 15px 0 15px 20px;
    border-left: 5px solid #e74c3c;
    background-color: #f9f9f9;
    border-radius: 0 8px 8px 0;
    font-size: 1.8rem;
}

.medical-record-section h3 {
    color: #3498db;
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
    font-size: 1.4rem;
}

.medical-record-section h4 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.medical-record-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.medical-record-section ul, 
.medical-record-section ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.medical-record-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.medical-record-section li::before {
    content: '•';
    color: #ff5722;
    font-weight: bold;
    margin-right: 8px;
}

.medical-record-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.medical-record-table, 
.medical-record-table th, 
.medical-record-table td {
    border: 1px solid #ddd;
}

.medical-record-table th {
    background: linear-gradient(to bottom, #f5f5f5, #e9e9e9);
    padding: 14px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.medical-record-table td {
    padding: 12px 15px;
}

.medical-record-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.medical-record-table tr:hover {
    background-color: #f1f9ff;
}

.medical-record-note {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 18px;
    margin: 18px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
}

.medical-record-note i {
    color: #2196F3;
    margin-right: 12px;
    font-size: 20px;
    margin-top: 2px;
}

.medical-record-warning {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 18px;
    margin: 18px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
}

.medical-record-warning i {
    color: #ff9800;
    margin-right: 12px;
    font-size: 20px;
    margin-top: 2px;
}

.medical-record-example {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.medical-record-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(to right, #ff5722, #e64a19);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(255, 87, 34, 0.5);
    transition: all 0.3s;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.medical-record-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.medical-record-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.7);
}

.medical-record-header-icon {
    text-align: center;
    margin-bottom: 20px;
    color: #ffeb3b;
}

.medical-record-header-icon i {
    font-size: 48px;
}

.medical-record-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.medical-record-section-icon {
    margin-right: 10px;
    color: #e74c3c;
}

/* 移动端优化 - 病历书写规范 */
@media (max-width: 768px) {
    .medical-record-nav-links {
        flex-direction: column;
    }
    
    .medical-record-nav-link {
        text-align: center;
        padding: 12px;
    }
    
    .medical-record-header h1 {
        font-size: 2rem;
    }
    
    .medical-record-content {
        padding: 20px;
    }
    
    .medical-record-section h2 {
        font-size: 1.5rem;
        padding: 12px 0 12px 15px;
    }
    
    .medical-record-section h3 {
        font-size: 1.2rem;
        padding-left: 12px;
    }
}