/* styles.css */

/* 全站间距与版心 */
:root {
    --content-max: 1200px;
    --gutter-x: 2rem;
    --gutter-x-sm: 1rem;
    --section-y: 3rem;
    --section-y-lg: 4rem;
    --section-y-tight: 1.25rem;
    --block-gap: 2rem;
    --nav-offset: 6.25rem;
    --nav-offset-mobile: 4.5rem;
}

/* 全局基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 为固定导航栏预留顶部空间，统一由 .main-content 控制，避免各页面重复计算 */
.main-content {
    padding-top: var(--nav-offset);
}

/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--gutter-x);
}

/* Logo 图片样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 80px; /* 等比放大，限制最大高度以防超大 */
    height: auto; /* 保持原始纵横比 */
    width: auto; /* 保持比例 */
    max-width: 320px; /* 防止横向过宽 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-img {
        max-height: 60px; /* 移动端等比约束 */
        height: auto;
        max-width: 220px;
    }
    
    /* 移动端logo样式 */
    .logo {
        cursor: pointer;
        transition: transform 0.3s ease;
        position: relative;
        z-index: 1001;
    }
    
    .logo:hover {
        transform: scale(1.05);
    }
    
    .logo:active {
        transform: scale(0.95);
    }
    
    /* 移动端logo点击状态 */
    .logo.menu-active {
        transform: scale(1.1);
    }
    
    .logo.menu-active::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -10px;
        width: 0;
        height: 0;
        border-left: 6px solid #14c45d;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        transform: translateY(-50%);
        transition: all 0.3s ease;
    }
    
    /* 移动端下拉菜单 */
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        transform: translateY(-100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0,0,0,0.08);
        border-radius: 0 0 16px 16px;
        opacity: 0;
        visibility: hidden;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu-item {
        border-bottom: 1px solid rgba(0,0,0,0.06);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu-item:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-item:hover {
        background-color: rgba(20, 196, 93, 0.03);
        transform: translateX(4px);
    }
    
    .mobile-menu-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(135deg, #14c45d, #32d42c);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-item:hover::before {
        transform: scaleY(1);
    }
    
    .mobile-menu-link {
        display: flex;
        align-items: center;
        padding: 1.2rem 2rem;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
        min-height: 48px;
        position: relative;
        width: 100%;
    }
    
    .mobile-menu-link:hover {
        color: #14c45d;
        background-color: rgba(20, 196, 93, 0.05);
        padding-left: 2.5rem;
    }
    
    .mobile-menu-link:active {
        background-color: rgba(20, 196, 93, 0.1);
        transform: scale(0.98);
    }
    
    .mobile-menu-link::after {
        content: '';
        position: absolute;
        right: 1.5rem;
        width: 8px;
        height: 8px;
        border-right: 2px solid #ccc;
        border-bottom: 2px solid #ccc;
        transform: rotate(-45deg);
        transition: all 0.3s ease;
        opacity: 0.6;
    }
    
    .mobile-menu-link:hover::after {
        border-color: #14c45d;
        opacity: 1;
        transform: rotate(-45deg) scale(1.2);
    }
    
    /* 菜单项进入动画 */
    .mobile-menu.active .mobile-menu-item {
        animation: slideInDown 0.3s ease forwards;
        opacity: 0;
        transform: translateY(-20px);
    }
    
    .mobile-menu.active .mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
    .mobile-menu.active .mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
    .mobile-menu.active .mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
    .mobile-menu.active .mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
    .mobile-menu.active .mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
    .mobile-menu.active .mobile-menu-item:nth-child(6) { animation-delay: 0.35s; }
    .mobile-menu.active .mobile-menu-item:nth-child(7) { animation-delay: 0.4s; }
    
    @keyframes slideInDown {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* 隐藏桌面端导航 */
    .nav-links {
        display: none !important;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.lang-switch {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.lang-switch a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: #14c45d;
    border-color: rgba(20, 196, 93, 0.35);
    background: rgba(20, 196, 93, 0.08);
}

.lang-switch-floating {
    position: absolute;
    top: 100%; /* place just below the fixed navbar */
    right: 1.25rem;
    margin-top: 0.5rem;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 999px;
    padding: 0.25rem 0.35rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
    color: #666;
}

.lang-switch-floating a {
    color: #666;
    font-size: 0.88rem;
    padding: 0.35rem 0.75rem;
}

.lang-switch-floating a:hover,
.lang-switch-floating a.active {
    color: #14c45d;
    border-color: rgba(20, 196, 93, 0.35);
    background: rgba(20, 196, 93, 0.08);
}

@media (max-width: 768px) {
    .lang-switch-floating {
        display: none;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a {
    position: relative;
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
}

/* 创建伪元素用于下划线动画 */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 3px; /* 下划线厚度 */
    background-color: #32d42c; /* 绿色 */
    transition: width 0.4s ease-in-out;
    transform: translateX(-50%);
}
/* 悬停时的效果 */

/* 悬停时让下划线从 0% → 100% */
.nav-links a:hover::after {
    width: 100%;
}

/* 首页横幅（宽度与 features / about / news 等内容区一致） */
.hero-banner {
    background: #f8f9fa;
    margin-top: 0; /* 由 .main-content 的 padding-top 处理 */
    padding: var(--section-y-tight) var(--gutter-x);
    padding-bottom: var(--section-y-tight);
}

/* 内页标题区（与转诊页一致，紧贴导航下方） */
.page-top-header,
.referral-page-header {
    padding: var(--section-y-tight) var(--gutter-x) 0;
    margin-bottom: 0;
}

.main-content > .content-section {
    padding: var(--section-y-lg) var(--gutter-x);
}

/* 全站联系方式统一格式 */
.tel-fax,
.contact-email,
.contact-address {
    line-height: 1.6;
}

.tel-fax a,
.contact-email a {
    color: inherit;
    text-decoration: none;
}

.tel-fax a:hover,
.contact-email a:hover {
    color: #14c45d;
}

.hero-banner-inner {
    max-width: var(--content-max);
    width: 100%;
    margin: 0 auto;
}

.hero-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Per-page banner tweaks */
.index-hero-banner {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.referral-hero-banner,
.referral-page-banner {
    padding: 0;
    background: #fff;
}

/* 轮播容器 */
.hero-carousel {
    position: relative;
    height: 60vh;
    overflow: hidden;
    margin-top: 0; /* 由 .main-content 的 padding-top 处理 */
    user-select: none; /* 防止文字选择 */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab; /* 默认抓取手势 */
}

.carousel-container:active {
    cursor: grabbing; /* 拖拽时的手势 */
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播项目 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* 增加过渡时间，让切换更平滑 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* 背景图片 */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    /* 移除动画效果 */
}

/* 遮罩层 */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 稍微减轻遮罩，让图片更清晰 */
    z-index: 2;
}

/* 内容区域 */
.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    animation: slideInUp 1.2s ease-out;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 添加文字阴影，提高可读性 */
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-content .cta-button {
    background: white;
    color: #228543;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slide-content .cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 指示器 - 可选显示 */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 4;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: default; /* 移除点击指针，因为不可交互 */
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
}

.indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 内容进入动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 如果不想要指示器，可以隐藏 */
/* 
.carousel-indicators {
    display: none;
}
*/

/* 拖拽相关样式 */
.carousel-container img {
    pointer-events: none; /* 防止图片阻止拖拽事件 */
    user-select: none;
}

.carousel-slide * {
    user-select: none; /* 防止拖拽时选中文字 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: auto;
        max-height: none;
        margin-top: var(--nav-offset-mobile);
        padding: var(--gutter-x-sm) var(--gutter-x-sm) var(--section-y-tight);
    }

    .hero-carousel {
        height: 50vh;
        margin-top: 60px;
    }
    
    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: var(--section-y) var(--gutter-x-sm);
    }
    
    .news-header h2 {
        font-size: 1.5rem;
    }
    
    .featured-overlay {
        padding: 1rem;
    }
    
    .featured-overlay h3 {
        font-size: 1.2rem;
    }
}

/* 服务特色样式 */
.features {
    padding: var(--section-y-tight) var(--gutter-x) var(--section-y-lg);
    background: #f8f9fa;
}

.features-container {
    max-width: var(--content-max);
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    color: #288E3A;
}

.section-title + p {
    text-align: center;
    font-size: 18px;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.features-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* 左侧图片区域 */
.features-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1; /* 让图片部分占据空间 */
}

.features-images img {
    width: 100%;
    max-width: 420px; /* 限制图片大小 */
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
/* 右侧卡片区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 1.2rem;
    flex: 1.5; /* 让卡片区域占据更大的空间 */
}

/* 特色项目卡片 */
.feature-card {
    background: white;
    padding: 1.8rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease;
    width: auto;
    min-height: 170px;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 特色项目图标 */
.feature-icon {
    font-size: 2.2rem;
    color: #14c45d;
    margin-bottom: 0.85rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 响应式设计：当屏幕较小时，让图片和内容垂直排列 */
@media (max-width: 900px) {
    .features-layout {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        flex-direction: row; /* 保持横向排列 */
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap; /* 允许换行 */
        justify-content: center;
    }

    .feature-card {
        width: auto;
        min-width: 140px; /* 设置最小宽度 */
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .features {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-layout {
        gap: 1.5rem;
    }
    
    .features-images {
        order: 2; /* 在手机端将图片放在下方 */
        width: 100%;
        max-width: 100%;
    }
    
    .features-images img {
        max-width: 100%;
        border-radius: 0;
    }
    
    .features-grid {
        order: 1; /* 在手机端将卡片放在上方 */
        display: grid;
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        width: 100%;
        gap: 0.9rem; /* 减少间距 */
    }
    
    .feature-card {
        padding: 1rem;
        width: 100%;
        min-width: 0;
        max-width: none;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .feature-icon {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 576px) {
    .features {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .features-layout {
        gap: 1rem;
    }
    
    .features-grid {
        gap: 0.6rem; /* 进一步减少间距 */
    }
    
    .feature-card {
        padding: 0.8rem 0.6rem;
        border-radius: 6px;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 100px; /* 更小的最小宽度 */
    }
    
    .feature-icon {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.2;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 1.5rem 0.8rem;
    }
    
    .features-container {
        padding: 0 0.5rem;
    }
    
    .features-grid {
        gap: 0.4rem; /* 最小间距 */
    }
    
    .feature-card {
        padding: 0.6rem 0.4rem;
        min-height: 70px;
        border-radius: 5px;
        min-width: 90px; /* 超小屏幕的最小宽度 */
    }
    
    .feature-icon {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-card h3 {
        font-size: 0.8rem;
        line-height: 1.1;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:active {
        transform: scale(0.98);
        background-color: #f8f9fa;
    }
}

    /* 关于我们样式 */
    .about {
        padding: var(--section-y-lg) var(--gutter-x);
        background: white;
    }

    .about-container {
        max-width: var(--content-max);
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .about-image {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-left: 50px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .about-image:hover img {
        transform: scale(1.05);
    }

    .about-content {
        padding: 2rem 0;
    }

    .about-content h2 {
        font-size: 2rem;
        color: #2c3e50;
        margin-bottom: 1.5rem;
    }

    .about-content p {
        margin-bottom: 1.5rem;
        color: #666;
        line-height: 1.8;
    }

    .about-button {
        display: inline-block;
        padding: 0.8rem 2rem;
        background: #0e9c31;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-weight: 500;
        transition: background 0.3s ease;
    }

    .about-content2 {
        padding: 2rem 0;
    }

    .about-content2 h2 {
        font-size: 2rem;
        color: #2c3e50;
        margin-bottom: 1.5rem;
    }

    .about-content2 p {
        font-size: 1.2rem;  /* 正文文字大小 */
        color: #555;
        margin-bottom: 1.2rem;
        line-height: 1.75;
    }
    
    .about-image2 {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .about-image2 img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .about-image2:hover img {
        transform: scale(1.05);
    }

    .about-button:hover {
        background: #1557b0;
    }

/* 移动端关于我们优化 */
@media (max-width: 768px) {
    .about {
        padding: var(--section-y) var(--gutter-x-sm);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content2 h2 {
        font-size: 1.8rem;
    }
    
    .about-content2 p {
        font-size: 1.2rem;
    }
    
    .cooperation-info,
    .guarantee-info {
        margin-top: 1.5rem;
    }
    
    .cooperation-info h3,
    .guarantee-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 576px) {
    .about {
        padding: var(--section-y) var(--gutter-x-sm);
    }
    
    .about-content2 h2 {
        font-size: 1.5rem;
    }
    
    .about-content2 p {
        font-size: 1.1rem;
    }
}

/* 新闻动态区域样式 - 左侧图片右侧列表 */
.news-section {
    padding: var(--section-y-lg) var(--gutter-x);
    background: #f8f9fa;
}

.news-container {
    max-width: var(--content-max);
    margin: 0 auto;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-size: 2rem;
    color: #008812;
    margin-bottom: 0.5rem;
}

.news-header p {
    font-size: 18px;
    color: #666;
}

/* 新闻内容包装器 */
.news-content-wrapper {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 左侧主要新闻 */
.news-featured {
    flex: 1;
    position: relative;
}

.featured-image {
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
}

.featured-date {
    display: inline-block;
    background: #14c45d;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.featured-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-overlay p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid #14c45d;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #14c45d;
}

/* 右侧新闻列表 */
.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-item-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.news-item-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.news-item-date .month {
    font-size: 0.9rem;
    color: #666;
}

.news-item-content {
    flex: 1;
}

.news-item-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #2c3e50;
}

.news-item-content p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-link {
    color: #14c45d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-item-link:hover {
    color: #0e9c31;
}

/* 查看所有新闻按钮 */
.news-view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #14c45d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.view-all-button:hover {
    background: #0e9c31;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .news-content-wrapper {
        flex-direction: column;
    }
    
    .featured-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: var(--section-y) var(--gutter-x-sm);
    }
    
    .news-header h2 {
        font-size: 1.8rem;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .news-item-date .day:after {
        content: '/';
        margin-left: 5px;
    }
}

@media (max-width: 576px) {
    .news-section {
        padding: var(--section-y) var(--gutter-x-sm);
    }
    
    .news-header h2 {
        font-size: 1.5rem;
    }
    
    .featured-overlay {
        padding: 1rem;
    }
    
    .featured-overlay h3 {
        font-size: 1.2rem;
    }
}

/* 页脚样式 */
/* 页脚样式 */
/* Footer 样式 - 替换 styles.css 中的 footer 部分 */

footer {
    background: linear-gradient(135deg, #2e2e2e 0%, #2d2d2d 100%);
    color: #a0a0a0;
    padding: var(--section-y-lg) var(--gutter-x) var(--section-y);
    font-family: "Microsoft YaHei", "Helvetica Neue", sans-serif;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #e0e0e0;
    border-left: 4px solid #14c45d;
    padding-left: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #888888;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section p:hover {
    color: #c0c0c0;
}

.footer-section p i {
    color: #14c45d;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

/* 服务列表样式 */
.service-list p {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 3px solid #14c45d;
    transition: all 0.3s ease;
}
/* 保证包含链接的p标签，点击和悬停时颜色不变 */
.service-list p a {
    color: inherit;
    text-decoration: none;
    transition: none;
}
.service-list p a:visited,
.service-list p a:active,
.service-list p a:hover,
.service-list p a:focus {
    color: inherit;
    text-decoration: none;
}

.service-list p:hover {
    background: rgba(20, 196, 93, 0.08);
    transform: translateX(5px);
    color: #b0b0b0;
}

/* 快速链接样式 */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding-left: 0.5rem;
}

.footer-links a:hover {
    color: #14c45d;
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.footer-links a i {
    color: #14c45d;
    min-width: 20px;
    text-align: center;
}

/* 社交链接样式 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #333333;
    color: #888888;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid #444444;
}

.social-link:hover {
    background: #14c45d;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(20, 196, 93, 0.3);
    border-color: #14c45d;
}

/* 公司信息样式 */
.company-info p {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Footer 底部样式 */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #5c5c5c;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #666666;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #14c45d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links,
    .service-list {
        align-items: center;
    }
    
    .footer-links a,
    .service-list p {
        justify-content: center;
    }
}

/* 通用响应式工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
}

/* 移动端优化 - 触摸友好 */
@media (max-width: 768px) {
    /* 增加触摸目标大小 */
    .nav-links a,
    .feature-card,
    .news-item,
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 优化按钮大小 */
    .cta-button,
    .view-all-button,
    .about-button {
        min-height: 44px;
        padding: 0.8rem 1.5rem;
    }
    
    /* 优化表单元素 */
    input, select, textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 动画优化 - 移动端减少动画 */
@media (max-width: 768px) {
    .feature-card:hover,
    .news-item:hover {
        transform: none;
    }
    
    /* 减少过渡时间 */
    * {
        transition-duration: 0.2s;
    }
}

/* 字体大小优化 */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
}

/* ========== 全站内页顶部间距（对齐国际转诊页） ========== */
body .main-content > section:first-of-type:not(.hero-carousel) {
    padding-top: var(--section-y-tight);
}

body .main-content > .section-header:first-child,
body .main-content > .page-top-header:first-child,
body .main-content > .referral-page-header:first-child {
    padding-top: var(--section-y-tight);
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 连续区块：减小上内边距，避免双倍大留白 */
body .main-content > section + section {
    padding-top: var(--section-y);
}

/* 横幅后接正文：保持与转诊页相同的过渡间距 */
body .main-content > .hero-banner + section {
    padding-top: var(--section-y-lg);
}

/* 首页特色区：横幅后保持紧凑 */
body .main-content > .hero-banner + section.features {
    padding-top: var(--section-y-tight);
}

@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    body .main-content > section:first-of-type:not(.hero-carousel) {
        padding-top: var(--section-y-tight);
    }

    body .main-content > section + section {
        padding-top: var(--section-y);
    }

    .main-content {
        padding-top: var(--nav-offset-mobile) !important;
    }
}