/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    font-size: 14px;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    line-height: 1.6;
}

#page-wrapper {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏样式 */
#main-nav {
    position: relative;
    height: 54px;
    line-height: 54px;
    background: #ffffff;
    padding-left: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

#main-nav:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
    position: relative;
    float: left;
    width: 120px;
    height: 54px;
    line-height: 54px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.nav-menu li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu li:hover::after,
.nav-menu li.active::after {
    width: 70%;
}

.nav-menu li:hover,
.nav-menu li.active {
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.nav-menu li a {
    white-space: nowrap;
    display: block;
    padding: 0;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    text-align: center;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu li:hover a,
.nav-menu li.active a {
    color: #667eea;
    font-weight: 600;
}

/* 轮播图样式 */
.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-controls .prev {
    left: 20px;
}

.slider-controls .next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: #6aa84f;
}

/* 合作伙伴滚动 */
.partners-scroll {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-track:hover {
    animation-play-state: paused;
}

/* 返回顶部按钮 - 淡绿色主题 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #90ee90 0%, #6aa84f 100%);
    border-radius: 50%;
    display: none;
    z-index: 20000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 168, 79, 0.4);
    cursor: pointer;
}

.back-to-top::before {
    content: '↑';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(106, 168, 79, 0.6);
    background: linear-gradient(135deg, #6aa84f 0%, #52c41a 100%);
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 语言选择器 */
#language {
    border: 1px solid #b5b5b5;
    border-radius: 2px;
    background-color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 段落样式 */
p {
    margin: 0;
}


/* Logo 动画效果 */
#canvas > div:nth-child(2) {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特色服务卡片美化 */
#canvas > div[style*="top: 650px"],
#canvas > div[style*="top: 758px"],
#canvas > div[style*="top: 866px"] {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

#canvas > div[style*="top: 650px"]:hover,
#canvas > div[style*="top: 758px"]:hover,
#canvas > div[style*="top: 866px"]:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 20px rgba(0,0,0,0.1);
}

/* 右侧绿色框美化 */
#canvas > div[style*="top: 649px"][style*="left: 661.5px"] {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

#canvas > div[style*="top: 649px"][style*="left: 661.5px"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* 公司简介区域美化 */
#canvas > div[style*="top:983px"] {
    border-radius: 0;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.05);
}

/* 合作伙伴图片美化 */
.partners-track img {
    transition: all 0.3s ease;
    border-radius: 8px;
    filter: grayscale(20%);
}

.partners-track img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 地图容器美化 */
#canvas > div[style*="top: 1739px"] {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 合作医院图片美化 */
#canvas > div[style*="top: 2186px"] img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

#canvas > div[style*="top: 2186px"] img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* 二维码美化 */
#canvas > div[style*="top: 2900px"] img {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#canvas > div[style*="top: 2900px"] img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 标题美化 */
#canvas > div[style*="公司简介"] span,
#canvas > div[style*="地理位置"] span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

#canvas > div[style*="公司简介"] span::after,
#canvas > div[style*="地理位置"] span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 联系信息美化 */
#canvas > div[style*="top: 2909px"] p {
    transition: all 0.3s ease;
}

#canvas > div[style*="top: 2909px"] p:hover {
    color: #667eea;
    transform: translateX(5px);
}

/* 页脚美化 */
#site_footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

#site_footer a {
    transition: all 0.3s ease;
    position: relative;
}

#site_footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a78bfa;
    transition: width 0.3s ease;
}

#site_footer a:hover::after {
    width: 100%;
}

/* 语言选择器美化 */
#language {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 12px;
}

#language:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

#language:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 日期时间美化 */
#datetime {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 添加悬浮效果到所有可点击元素 */
a, button, select {
    cursor: pointer;
}

/* 文字选择颜色 */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

/* 滚动条美化 - 淡绿色主题 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #90ee90 0%, #6aa84f 100%);
    border-radius: 10px;
    border: 2px solid #f0f8f0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6aa84f 0%, #52c41a 100%);
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式优化 */
@media (max-width: 1024px) {
    #canvas {
        width: 100% !important;
        padding: 0 20px;
    }
    
    .nav-menu li {
        width: auto;
        padding: 0 15px;
    }
}


/* 额外的视觉增强 */

/* 页面加载动画 */
body.loading {
    overflow: hidden;
}

body.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    animation: fadeOut 1s ease 0.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 特色服务图标动画 */
#canvas img[src*="templatefiles"] {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 标题下划线动画 */
@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

/* 卡片悬停发光效果 */
#canvas > div[style*="border-radius"]:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

/* 文字渐变动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 按钮点击波纹效果 */
.nav-menu li {
    position: relative;
    overflow: hidden;
}

.nav-menu li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-menu li:active::before {
    width: 200px;
    height: 200px;
}

/* 图片加载占位符 */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 链接悬停效果增强 */
a {
    position: relative;
    transition: all 0.3s ease;
}

/* 视频容器增强 */
iframe {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 表单元素美化 */
select, input, textarea {
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 打印样式优化 */
@media print {
    body {
        background: white;
    }
    
    #page-wrapper {
        box-shadow: none;
    }
    
    .back-to-top,
    .slider-controls,
    .slider-dots {
        display: none !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    body {
        background: white;
    }
    
    .nav-menu li a {
        color: #000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 暗色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加暗色模式样式 */
}

/* 焦点可见性增强 */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* 选中文本样式 */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-menu li {
        min-height: 44px;
        min-width: 44px;
    }
    
    .back-to-top {
        width: 60px;
        height: 60px;
    }
}
