/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动动画类 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.slide-left {
    transform: translateX(-30px);
}

.scroll-animate.slide-left.animate {
    transform: translateX(0);
}

.scroll-animate.slide-right {
    transform: translateX(30px);
}

.scroll-animate.slide-right.animate {
    transform: translateX(0);
}

.scroll-animate.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 语言切换样式 */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background-color: transparent;
    border: 1px solid #1abc9c;
    color: #1abc9c;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lang-btn:hover {
    background-color: #1abc9c;
    color: white;
}

.lang-btn.active {
    background-color: #1abc9c;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    background-attachment: fixed;
}

/* 头部样式 */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

.hospital-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hospital-address {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hospital-phone {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* 导航栏样式 */
.nav {
    display: flex;
    background-color: rgba(52, 73, 94, 0.95);
    overflow-x: hidden;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 1rem 0.8rem;
    display: block;
    flex-shrink: 1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    text-align: center;
    max-width: 120px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: left 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    left: 0;
}

.nav-item:hover,
.nav-item.active {
    background-color: #1abc9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 区域样式 */
.section {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.5);
}

.section-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1abc9c;
}

/* 横幅样式 */
.banner {
    background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1200&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.banner h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-btn {
    display: inline-block;
    background-color: #1abc9c;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-shadow: none;
}

.banner-btn:hover {
    background-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* 首页特色样式 */
.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #ffffff;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    color: #1abc9c;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover h3 {
    color: #1abc9c;
    transform: translateY(-2px);
}

.feature-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.feature-item:hover p {
    color: #333;
}

/* 科室列表样式 */
.department-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.department-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1abc9c;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.department-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: rgba(26, 188, 156, 0.1);
    transition: width 0.3s ease;
    z-index: 0;
}

.department-item:hover::before {
    width: 100%;
}

.department-item:hover {
    transform: translateX(10px) translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    background-color: #ffffff;
}

.department-item > * {
    position: relative;
    z-index: 1;
}

.department-name {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.department-item:hover .department-name {
    color: #1abc9c;
    transform: translateX(-5px);
}

.department-detail h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
    transition: all 0.3s ease;
}

.department-item:hover .department-detail h4 {
    color: #1abc9c;
}

.department-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.department-item:hover .department-desc {
    color: #333;
}

.department-services {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.department-services li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.3rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.department-item:hover .department-services li {
    color: #333;
    transform: translateX(5px);
}

/* 医院简介样式 */
.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

/* 科室列表样式 */
.department-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.department-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1abc9c;
    transition: all 0.3s ease;
}

.department-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.department-name {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.department-detail h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
}

.department-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.department-services {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.department-services li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

/* 图片通用样式 */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 医院简介图片 */
.about-image {
    margin-bottom: 1.5rem;
}

/* 科室图片 */
.department-image {
    margin-bottom: 1.5rem;
}

/* 医生团队样式 */
.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doctor-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease-out;
}

.doctor-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, transparent, rgba(26, 188, 156, 0.1), transparent);
    transition: right 0.5s ease;
}

.doctor-item:hover::before {
    right: 100%;
}

.doctor-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #ffffff;
}

.doctor-info {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.doctor-item:hover .doctor-info {
    transform: translateX(5px);
}

.doctor-details {
    flex: 1;
}

.doctor-details h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.doctor-item:hover .doctor-details h3 {
    color: #1abc9c;
    transform: translateY(-2px);
}

.doctor-title {
    font-size: 0.95rem;
    color: #1abc9c;
    font-weight: bold;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.doctor-department {
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s ease;
}

.doctor-bio p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.doctor-item:hover .doctor-bio p {
    color: #333;
    transform: translateX(5px);
}

/* 医疗设备样式 */
.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.equipment-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.equipment-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(26, 188, 156, 0.1);
    transition: height 0.3s ease;
    z-index: 0;
}

.equipment-item:hover::before {
    height: 100%;
}

.equipment-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: #ffffff;
}

.equipment-item > * {
    position: relative;
    z-index: 1;
}

.equipment-image {
    margin-bottom: 1rem;
}

.equipment-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #1abc9c, #16a085);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    min-height: 150px;
}

.equipment-item:hover .equipment-photo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.equipment-name {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.equipment-item:hover .equipment-name {
    color: #1abc9c;
    transform: translateY(-3px);
}

.equipment-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    text-align: center;
    transition: all 0.3s ease;
}

.equipment-item:hover .equipment-desc {
    color: #333;
}

/* 联系我们样式 */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.contact-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-info:hover h3 {
    color: #1abc9c;
    transform: translateX(5px);
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.contact-info:hover p {
    color: #333;
    transform: translateX(5px);
}

.contact-info strong {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.contact-info:hover strong {
    color: #1abc9c;
}

.contact-form h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-form:hover h3 {
    color: #1abc9c;
    transform: translateX(5px);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.form-group:focus-within label {
    color: #1abc9c;
    transform: translateY(-2px);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
    transform: translateY(-2px);
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-info h3,
.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1abc9c;
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #1abc9c;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.icp {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 触摸反馈效果 */
* {
    -webkit-tap-highlight-color: rgba(26, 188, 156, 0.2);
}

/* 按钮波纹效果 */
.btn-ripple {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 移动端滚动优化 */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端字体优化 */
    body {
        font-size: 16px;
    }
    
    /* 医院名称优化 */
    .hospital-name {
        font-size: 1.3rem;
        padding: 0 0.5rem;
    }
    
    /* 横幅优化 */
    .banner {
        padding: 3rem 1rem;
        min-height: 250px;
    }
    
    .banner h2 {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    /* 区域内边距优化 */
    .section {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    /* 导航项优化 */
    .nav-item {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        flex-shrink: 1;
        min-width: auto;
        position: relative;
        flex: 1;
        text-align: center;
        max-width: 100px;
    }
    
    /* 移动端当前导航项高亮 */
    .nav-item.active {
        background-color: #1abc9c;
        color: white;
        box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3);
    }
    
    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    /* 导航滚动提示 */
    .nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 30px;
        background: linear-gradient(to left, rgba(52, 73, 94, 0.8), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .nav:hover::after,
    .nav::-webkit-scrollbar-thumb:hover ~ ::after {
        opacity: 1;
    }
    
    /* 单列布局 */
    .home-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .equipment-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 医生信息优化 */
    .doctor-info {
        text-align: left;
    }
    
    /* 页脚单列布局 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* 语言切换按钮优化 */
    .language-switcher {
        bottom: 15px;
        right: 15px;
        padding: 4px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* 表单元素优化 */
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 1rem;
        transition: all 0.3s ease;
        border-radius: 6px;
        border: 2px solid #e0e0e0;
        background-color: #fafafa;
    }
    
    /* 表单焦点增强 */
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #1abc9c;
        box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);
        transform: translateY(-1px);
        background-color: #ffffff;
    }
    
    /* 优化标签样式 */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: bold;
        color: #555;
        transition: color 0.3s ease;
        font-size: 0.95rem;
    }
    
    /* 输入框获得焦点时，标签变色 */
    .form-group input:focus ~ label,
    .form-group textarea:focus ~ label {
        color: #1abc9c;
    }
    
    /* 增强的输入反馈 */
    .form-group input:active,
    .form-group textarea:active {
        border-color: #1abc9c;
        transform: scale(0.99);
    }
    
    /* 输入框禁用样式 */
    .form-group input:disabled,
    .form-group textarea:disabled {
        background-color: #f5f5f5;
        border-color: #e0e0e0;
        cursor: not-allowed;
        opacity: 0.7;
    }
    
    /* 提交按钮优化 */
    .submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
        box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
        transition: all 0.3s ease;
        border: none;
        border-radius: 6px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(26, 188, 156, 0.4);
    }
    
    .submit-btn:active {
        transform: translateY(0);
    }
    
    /* 标题渐变 */
    .section-title {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: bold;
    }
    
    /* 医院名称渐变 */
    .hospital-name {
        background: linear-gradient(135deg, #2c3e50 0%, #1abc9c 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* 页脚渐变 */
    .footer {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    /* 语言切换按钮渐变 */
    .lang-btn.active {
        background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    }
    
    /* 卡片渐变边框 */
    .feature-item,
    .department-item,
    .doctor-item,
    .equipment-item {
        border: 1px solid rgba(26, 188, 156, 0.2);
        background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.98) 100%);
    }
    
    /* 医生头像渐变 */
    .doctor-avatar,
    .equipment-photo {
        background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    }
    
    /* 移动端卡片优化 */
    .feature-item,
    .department-item,
    .doctor-item,
    .equipment-item {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    /* 移动端触摸反馈 */
    .nav-item,
    .feature-item,
    .department-item,
    .doctor-item,
    .equipment-item,
    .submit-btn,
    .lang-btn {
        transition: all 0.2s ease;
        transform: translateZ(0); /* 硬件加速 */
    }
    
    /* 移动端点击效果 */
    .nav-item:active,
    .feature-item:active,
    .department-item:active,
    .doctor-item:active,
    .equipment-item:active,
    .submit-btn:active,
    .lang-btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    /* 移动端滚动动画 */
    .section {
        animation: fadeInUp 0.6s ease-out;
        animation-delay: calc(var(--section-index, 0) * 0.1s);
        animation-fill-mode: both;
    }
    
    /* 移动端优化的列表样式 */
    .department-services li {
        margin-bottom: 0.5rem;
        line-height: 1.7;
    }
    
    /* 移动端优化的间距 */
    h2.section-title {
        margin-bottom: 0.8rem;
        font-size: 1.2rem;
    }
    
    /* 移动端优化的医疗设备图片 */
    .equipment-photo {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
}

/* 移动端滚动指示器 */
@media (max-width: 768px) {
    /* 添加滚动进度条 */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: calc(var(--scroll-percent, 0) * 100%);
        height: 3px;
        background-color: #1abc9c;
        z-index: 1002;
        transition: width 0.1s ease;
        pointer-events: none;
    }
}

/* 提交成功提示框样式 */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.success-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1abc9c, #16a085);
    animation: pulse 2s ease-in-out infinite;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.modal-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.modal-message {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-close {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.modal-close:hover {
    background-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 188, 156, 0.4);
}

.modal-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}

/* 移动端模态框优化 */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        width: calc(100% - 2rem);
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-message {
        font-size: 0.95rem;
    }
    
    .modal-icon {
        font-size: 2.5rem;
    }
}

/* 下拉刷新样式 */
.pull-refresh-indicator {
    position: fixed;
    top: -50px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1) 0%, rgba(26, 188, 156, 0.05) 100%);
    color: #1abc9c;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.pull-refresh-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-bottom: 2px;
}

.pull-refresh-indicator.pulling {
    top: 0;
}

.pull-refresh-indicator.refreshing {
    top: 0;
}

.pull-refresh-indicator.refreshing .pull-refresh-arrow {
    animation: rotate 1s linear infinite;
    transform: rotate(180deg);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 移动端触摸滑动效果 */
@media (max-width: 768px) {
    /* 为卡片添加滑动提示 */
    .department-list,
    .doctor-list,
    .equipment-list {
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 优化横向滚动体验 */
    .department-list::-webkit-scrollbar,
    .doctor-list::-webkit-scrollbar,
    .equipment-list::-webkit-scrollbar {
        height: 6px;
    }
    
    .department-list::-webkit-scrollbar-track,
    .doctor-list::-webkit-scrollbar-track,
    .equipment-list::-webkit-scrollbar-track {
        background-color: #f1f1f1;
        border-radius: 3px;
    }
    
    .department-list::-webkit-scrollbar-thumb,
    .doctor-list::-webkit-scrollbar-thumb,
    .equipment-list::-webkit-scrollbar-thumb {
        background-color: #1abc9c;
        border-radius: 3px;
    }
    
    /* 卡片长按效果 */
    .feature-item,
    .department-item,
    .doctor-item,
    .equipment-item {
        transition: all 0.3s ease;
        user-select: none;
        position: relative;
    }
    
    .feature-item.long-press,
    .department-item.long-press,
    .doctor-item.long-press,
    .equipment-item.long-press {
        transform: scale(0.98);
        background-color: rgba(26, 188, 156, 0.1);
        box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
    }
    
    /* 滑动提示指示器 */
    .card-container {
        position: relative;
    }
    
    .card-container::after {
        content: '⇄ 滑动查看更多';
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: #1abc9c;
        margin-top: 0.5rem;
        animation: slideHint 2s ease-in-out infinite;
    }
    
    @keyframes slideHint {
        0%, 100% {
            opacity: 0.5;
            transform: translateX(0);
        }
        50% {
            opacity: 1;
            transform: translateX(10px);
        }
    }
    
    /* 卡片悬停/触摸高亮 */
    .feature-item:active,
    .department-item:active,
    .doctor-item:active,
    .equipment-item:active {
        transform: scale(0.98);
        opacity: 0.95;
    }
    
    /* 卡片边缘滑动提示 */
    .scroll-indicator {
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(26, 188, 156, 0.8);
        color: white;
        padding: 0.5rem;
        border-radius: 50%;
        font-size: 0.8rem;
        animation: pulse 2s ease-in-out infinite;
        z-index: 10;
    }
}