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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* 导航栏 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #005f73;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #005f73;
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #005f73;
}

.bg-light {
    background-color: #e0f2f1;
}

/* 首屏 Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 95, 115, 0.8), rgba(10, 147, 150, 0.8)), url('https://images.unsplash.com/photo-1516549655169-df83a0774514?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #ee9b00;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ca8a04;
}

/* 网格布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* 卡片样式 */
.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #0a9396;
    margin-bottom: 15px;
}

/* 服务项目 */
.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-item h4 {
    color: #005f73;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 医院列表表格 */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.hospital-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    min-width: 800px;
}

.hospital-table th,
.hospital-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hospital-table th {
    background-color: #005f73;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.hospital-table tr:hover {
    background-color: #f5fcfc;
}

.hospital-table td a {
    color: #0a9396;
    font-weight: 500;
    text-decoration: underline;
}

.hospital-table td a:hover {
    color: #005f73;
}

.text-muted {
    color: #777;
    font-size: 0.9rem;
}

/* 小贴士部分 */
.tips-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 5px solid #ee9b00;
    margin-top: 40px;
}

.tips-section h3 {
    color: #ee9b00;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.tips-list li::before {
    content: "•";
    color: #ee9b00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tips-list code {
    background-color: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    color: #d63384;
}

/* 页脚 */
footer {
    background-color: #005f73;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    nav ul {
        display: none; /* 简单处理：移动端隐藏导航，实际项目中通常会做汉堡菜单 */
    }
    
    .logo {
        margin: 0 auto;
    }
}
