/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

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

/* 导航栏样式 */
nav {
    background-color: #ff0000;
    height: 100px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: white;
    color: #ff0000;
    font-weight: bold;
}

/* 首页样式 */
.hero-image {
    height: 70vh; /* 减小高度到70%的视窗高度 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/background/winter-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px; /* 调整标题位置，稍微往下移 */
}

.hero-content h1 {
    font-size: 4.2em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.8em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease-out;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3em;
    }
    
    .hero-content p {
        font-size: 1.4em;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        margin: 5px 0;
    }
    
    .hero-image {
        height: 50vh; /* 在移动端进一步减小高度 */
    }
    
    .hero-text {
        padding-top: 40px;
    }
    
    .logo {
        font-size: 1.2em;
    }
}

/* 添加响应式图片支持 */
@media (max-width: 768px) {
    .hero-image {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/background/winter-bg-mobile.jpg');
    }
}

/* 关于我们样式 */
.about-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/background/about-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    color: white;
}

.about-overlay {
    width: 100%;
    min-height: 80vh;
    padding: 60px 0;
}

#about h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

/* 品牌产品样式 */
.product-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 新闻动态样式 */
.news-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/background/news-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    color: white;
}

.news-overlay {
    width: 100%;
    min-height: 80vh;
    padding: 60px 0;
}

#news h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-list {
    width: 100%;
    margin: 20px auto;
}

.news-list p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.news-list p span.news-title {
    color: #333;
    font-size: 16px;
}

.news-list p span.news-date {
    color: #666;
    font-size: 14px;
}

/* 医疗服务样式 */
.services-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/background/services-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    color: white;
}

.services-overlay {
    width: 100%;
    min-height: 80vh;
    padding: 60px 0;
}

#services h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-list {
    width: 100%;
    margin: 20px auto;
}

.service-list p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.service-list p span.service-title {
    color: #333;
    font-size: 16px;
}

.service-list p span.service-price {
    color: #ff0000;
    font-size: 16px;
    font-weight: bold;
}

.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.9);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-item h3 {
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .services-section {
        background-attachment: scroll;
        min-height: 70vh;
    }
    .services-overlay {
        min-height: 70vh;
        padding: 40px 0;
    }
    #services h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .service-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .service-item {
        padding: 20px;
    }
}

/* 活动导航项样式 */
.nav-links a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* 页面内容区域通用样式 */
section {
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .product-categories,
    .service-list {
        grid-template-columns: 1fr;
    }
}

/* 品牌产品样式 */
#products {
    padding: 100px 0 60px;
    background-color: #f8f9fa;
}

#products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: #333;
}

.product-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item img:hover {
    transform: scale(1.05);
}

.product-info {
    margin-left: 20px;
    flex: 1;
}

.product-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.product-info p {
    color: #666;
    line-height: 1.6;
}

/* 要闻区域样式 */
#highlights {
    padding: 60px 0;
    background-color: #fff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-header h2 {
    font-size: 2em;
    color: #333;
}

.date {
    color: #666;
    font-size: 1.1em;
}

/* 合作伙伴样式 */
#partners {
    padding: 60px 0;
    background-color: #f8f9fa;
}

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

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

/* 联系信息样式 */
#contact-info {
    padding: 40px 0;
    background-color: #fff;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

/* QQ客服样式 */
.qq-service {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.qq-item {
    position: relative;
    text-align: center;
    width: 60px;
}

.qq-item > img {
    width: 50px;
    height: 50px;
    padding: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.qq-name {
    display: block;
    font-size: 12px;
    color: #333;
    margin-top: 5px;
    text-align: center;
    background: #fff;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.qq-qrcode {
    position: absolute;
    right: 70px;
    top: 0;
    width: 150px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: none;
    z-index: 1001;
}

.qq-qrcode img {
    width: 100%;
    height: auto;
    display: block;
}

.qq-item:hover .qq-qrcode {
    display: block;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .partner-item {
        padding: 15px;
    }
    
    .partner-item img {
        max-height: 30px;
    }
    
    .qq-service {
        bottom: 80px;
    }
    
    .qq-item {
        width: 50px;
    }
    
    .qq-item > img {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    
    .qq-name {
        font-size: 10px;
    }
}

/* 首页主要内容样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主图区域样式 */
.main-image {
    width: 100%;
    height: 400px; /* 固定高度 */
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* 修改为fill，允许图片压缩变形以填充容器 */
}

/* 新闻区域样式 */
.news-container {
    width: 100%;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.news-container p {
    flex: 1;
}

.news-container p span.news-title {
    color: #333;
    font-size: 16px;
    display: block;
    white-space: pre; /* 保留空格 */
}

.news-container p span.news-date {
    color: #666;
    font-size: 14px;
}

/* 底部图片样式 */
.bottom-image {
    width: 80%;
    margin: 20px auto;
}

.bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 联系信息样式 */
.contact-info {
    text-align: center;
    margin: 20px 0;
    color: #333;
    font-size: 16px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .main-image,
    .news-container,
    .bottom-image {
        width: 100%;
    }

    .news-container {
        flex-direction: column;
        gap: 20px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .news-date {
        margin-left: 0;
    }

    .contact-info {
        font-size: 14px;
    }
}

/* 关于我们标题样式 */
.about-title {
    width: 100%;
    margin: 20px auto;
}

.about-title h2 {
    color: #ff0000;
    font-size: 20px;
    margin: 0;
}

/* 关于我们内容样式 */
.about-container {
    width: 100%;
    margin: 20px auto;
}

.about-content {
    padding: 0;
}

.about-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .about-container {
        width: 100%;
    }
    
    .about-content {
        padding: 0 20px;
    }
}

/* 关于我们内容样式 */
.main-content > p {
    text-indent: 2em;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

/* 产品图片展示样式 */
.product-images {
    width: 100%;
    margin: 20px auto;
}

.product-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .product-images img {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 分割线样式 */
.divider {
    width: 100%;
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* 文章标题样式 */
.article-title {
    margin: 30px 0;
}

.article-title h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.article-date {
    color: #666;
    font-size: 14px;
}

/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 修改新闻标题链接样式 */
.news-title a {
    text-decoration: none;  /* 移除下划线 */
    color: inherit;        /* 继承父元素的颜色 */
}

.news-title a:visited {
    color: inherit;        /* 访问过的链接也保持相同颜色 */
}

.news-title a:hover {
    color: inherit;        /* 鼠标悬停时保持相同颜色 */
}

/* 产品详情样式 */
.product-detail-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-title {
    margin: 30px 0;
}

.product-title h1 {
    font-size: 24px;
    color: #333;
    text-align: center;
}

.product-content .section {
    margin-bottom: 20px;
}

.product-content h3 {
    color: #333;
    margin-bottom: 10px;
}

.product-content p {
    line-height: 1.6;
    color: #666;
}

.product-content ul {
    padding-left: 20px;
}

.product-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #666;
}

.product-content .section ul li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

/* 移动端导航菜单按钮 */
.menu-toggle {
    display: none;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
    position: relative;
    z-index: 1001;
}

/* 汉堡菜单图标样式 */
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 8px;
}

.menu-toggle span:nth-child(2) {
    top: 14px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

/* 菜单打开时的图标动画 */
.menu-toggle.active span:nth-child(1) {
    top: 14px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 14px;
    transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 15px;
        background-color: #ff0000;
        flex-direction: column;
        padding: 0;
        margin: 0;
        z-index: 1000;
        width: 160px;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        background-color: #ff0000;
    }

    .nav-links li:first-child {
        border-top: none;
    }

    .nav-links li a {
        padding: 10px 15px;
        width: 100%;
        display: block;
        font-size: 14px;
        transition: all 0.3s ease;
        color: white;
        text-decoration: none;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background-color: white;
        color: #ff0000;
        font-weight: bold;
    }

    /* 调整导航栏高度 */
    nav {
        height: 60px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
    }

    /* 调整主要内容区域 */
    .main-content {
        padding: 10px;
    }

    /* 调整图片显示 */
    .main-image {
        height: 200px;
    }

    .main-image img {
        height: 100%;
        object-fit: cover;
    }

    /* 调整新闻列表布局 */
    .news-container {
        flex-direction: column;
    }

    .news-container p {
        margin-bottom: 15px;
    }

    /* 调整服务列表布局 */
    .service-list p {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .service-title {
        margin-bottom: 5px;
    }

    /* 调整产品详情页面 */
    .product-content {
        padding: 15px;
    }

    .product-content h3 {
        font-size: 18px;
    }

    .product-content p,
    .product-content li {
        font-size: 14px;
    }

    /* 调整联系信息 */
    .contact-info {
        font-size: 14px;
        padding: 10px;
    }
}

/* 优化移动端文字大小 */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }

    .about-title h2 {
        font-size: 18px;
    }

    .article-title h1 {
        font-size: 20px;
    }

    .news-title,
    .news-date {
        font-size: 14px;
    }
} 