/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #1976d2;
    transition: color 0.3s;
}

a:hover {
    color: #0d47a1;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 变量定义 - 医疗+科技风格配色 */
:root {
    --primary-color: #0077cc; /* 主色调-科技蓝 */
    --secondary-color: #00a896; /* 辅助色-医疗绿 */
    --accent-color: #e63946; /* 强调色-医疗红 */
    --light-color: #f8f9fa;
    --dark-color: #2b3a42;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --gradient-primary: linear-gradient(135deg, #0077cc, #00a896);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
    display: none;
    background: var(--gradient-primary);
    color: white;
    padding: 15px 0;
    box-shadow: var(--box-shadow);
}

.logo-container {
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

/* 导航栏样式 - 移动端直观展示 */
.main-nav {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s, opacity 0.5s;
    opacity: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.main-nav .nav-item {
    position: relative;
    flex: 1;
    text-align: center;
}

.main-nav .nav-item > a {
    display: block;
    padding: 12px 5px;
    color: var(--dark-color);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.main-nav .nav-item > a:hover,
.main-nav .nav-item > a:focus,
.main-nav .nav-item.active > a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 100;
    height: 0;
    overflow: hidden;
}

/* 移除hover触发，改为通过JS控制的active类来显示子菜单 */
.main-nav .nav-item.active .sub-menu {
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
}

.main-nav .sub-menu li {
    width: 100%;
    text-align: center;
}

.main-nav .sub-menu a {
    display: block;
    padding: 10px;
    color: var(--dark-color);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu a.active {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* 移动端导航适配 */
@media (max-width: 768px) {
    .main-nav ul {
        /* 移除横向滚动，改为居中平均布局 */
        white-space: normal;
        justify-content: space-around;
        padding: 0 5px;
        overflow-x: visible;
    }
    
    .main-nav .nav-item {
        /* 每个导航项目平均分配空间 */
        flex: 1 1 0;
        padding: 0 5px;
        text-align: center;
    }
    
    .main-nav .sub-menu {
        width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 横幅区域 */
.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('http://1039t3.oss-cn-beijing.aliyuncs.com/2025041519224111.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.banner-text {
    max-width: 800px;
    margin: 0 auto;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 介绍部分 */
.intro-section {
    padding: 60px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--gray-color);
}

.feature-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-box .icon i {
    font-size: 30px;
    color: white;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

/* 新闻部分 */
.news-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.news-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    flex: 1 1 300px;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background-color: #ddd;
    background-image: url('http://1039t3.oss-cn-beijing.aliyuncs.com/2025041519293957.png');
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-content .date {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.news-content h3 {
    margin: 10px 0;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.news-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
}

/* 服务亮点部分 */
.service-highlight {
    padding: 60px 0;
    background: var(--light-color);
    text-align: center;
}

.service-highlight h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    flex: 1 1 220px;
    max-width: 280px;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--gradient-primary);
    color: white;
}

.service-card:hover h3,
.service-card:hover p {
    color: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: white;
}

.service-icon i {
    font-size: 25px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.service-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
    transition: all 0.3s;
}

/* 页脚样式 */
footer {
    display: none;
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-contact, .footer-qrcode {
    flex: 1 1 200px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4, .footer-qrcode h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

.footer-links h4:after, .footer-contact h4:after, .footer-qrcode h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .feature-box, .news-card, .service-card {
        flex: 1 1 45%;
        max-width: 450px;
    }
    
    .banner h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner h2 {
        font-size: 1.8rem;
    }
    
    .intro-section h2, .news-section h2, .service-highlight h2 {
        font-size: 1.7rem;
    }
    
    .feature-box, .news-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .service-card {
        flex: 1 1 45%;
        max-width: none;
    }
    
    .footer-content > div {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .service-card {
        flex: 1 1 100%;
    }
    
    .banner h2 {
        font-size: 1.5rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
} 