/* 通用重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* 容器：使内容居中显示 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页眉 */
header {
    background-color: #457289;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

/* 导航栏 */
nav {
    background-color: #754545;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 0px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #457289;
    border-radius: 5px;
}

/* 主内容区域 */
main {
    padding: 10px 0;
    background-color: #ffffff;
    text-align: center;
}

h2 {
    font-size: 32px;
    color: #457289;
    margin-bottom: 5px;
    text-align: center;
}

p {
    font-size: 18px;
    color: #555;
    text-align: center;
}

p img {
        max-width: 100%; /* 保证图片自适应宽度 */
    }
    



/* 页脚 */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}




.wznr {
    font-size: 18px;
    color: #555;
    text-align: left;
}

.logine {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 登录容器 */
.login-container {
    background-color: #fff;
    padding: 40px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

/* 标题 */
.login-container h1 {
    font-size: 36px;
    color: #457289;
    margin-bottom: 20px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
}

.form-group input:focus {
    border-color: #457289;
    outline: none;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #457289;
    color: white;
    border: none;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #0056b3;
}

/* 注册链接 */
.register-link {
    margin-top: 20px;
    font-size: 14px;
}

.register-link a {
    color: #457289;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}



/* 响应式设计：在手机设备上调整布局 */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .login-container h1 {
        font-size: 28px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        font-size: 14px;
    }

    .btn-login {
        font-size: 16px;
    }

    .register-link {
        font-size: 12px;
    }
}


        .container {
            max-width: 500px;
            margin: 0 auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        h2 {
            text-align: center;
            color: #333;
            margin-bottom: 20px;
        }

        label {
            font-size: 14px;
            color: #555;
            margin-bottom: 5px;
            display: block;
        }

        input, textarea, button {
            width: 100%;
            padding: 12px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            box-sizing: border-box;
        }

        input[type="text"], input[type="date"] {
            background-color: #f9f9f9;
        }

        textarea {
            background-color: #f9f9f9;
            resize: vertical;
        }

        button {
            background-color: #4CAF50;
            color: white;
            font-size: 16px;
            cursor: pointer;
            border: none;
            border-radius: 4px;
        }

        button:hover {
            background-color: #45a049;
        }

        @media screen and (max-width: 480px) {
            .container {
                padding: 15px;
            }

            button {
                font-size: 14px;
            }

            input, textarea {
                font-size: 14px;
            }
        }


        .news-container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .news-item {
            margin-bottom: 20px;
            padding: 15px;
            border-bottom: 1px solid #eee;
        }

        .news-item h3 {
            font-size: 18px;
            color: #333;
            margin: 0;
            padding-bottom: 10px;
        }

        .news-item a {
            text-decoration: none;
            color: #007bff;
        }

        .news-item a:hover {
            color: #0056b3;
        }

        .news-item p {
            font-size: 14px;
            color: #555;
            line-height: 1.6;
        }

        .news-item .more {
            display: inline-block;
            margin-top: 10px;
            color: #007bff;
            font-size: 14px;
            text-decoration: none;
        }

        .news-item .more:hover {
            color: #0056b3;
        }

        /* Mobile responsive */
        @media screen and (max-width: 600px) {
            .news-container {
                padding: 15px;
            }

            .news-item h3 {
                font-size: 16px;
            }

            .news-item p {
                font-size: 13px;
            }

            .news-item .more {
                font-size: 13px;
            }
        }
        
        

        .intro-container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .intro-container h2 {
            font-size: 24px;
            color: #333;
            text-align: center;
            margin-bottom: 20px;
        }

        .intro-container img {
            width: 100%;
            max-height: 300px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .intro-container p {
            font-size: 16px;
            color: #555;
            text-align: justify;
        }

        .intro-container p span {
            display: block;
            text-indent: 2em;
        }

        @media screen and (max-width: 600px) {
            .intro-container {
                padding: 15px;
            }

            .intro-container h2 {
                font-size: 20px;
            }

            .intro-container p {
                font-size: 14px;
            }
        } 


.hospital-link {
  text-decoration: none; /* 去掉下划线 */
  color: #0056b3; /* 链接颜色 */
  font-weight: bold; /* 加粗字体 */
  padding: 5px 10px; /* 增加点击区域 */
  border-radius: 4px; /* 圆角边框 */
  transition: all 0.3s ease; /* 添加平滑过渡效果 */
}

.hospital-link:hover {
  color: #ffffff; /* 鼠标悬停时字体颜色 */
  background-color: #007bff; /* 鼠标悬停时背景颜色 */
  text-decoration: underline; /* 鼠标悬停时显示下划线 */
}
