/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #1a252f !important;
    transform: translateY(-2px);
}

/* 导航栏Logo样式 */
.navbar-logo {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式Logo */
@media (max-width: 768px) {
    .navbar-logo {
        height: 45px !important;
    }
    
    .navbar-brand h4 {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand small {
        font-size: 0.7rem !important;
    }
}

/* 轮播图样式 */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-bg {
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%;
}

/* 响应式轮播图 */
@media (max-width: 768px) {
    .carousel-bg {
        min-height: 60vh !important;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 8% !important;
    }
}

/* 浮动动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 服务卡片悬停效果 */
.service-card:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* 专家卡片悬停效果 */
.expert-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.expert-card:hover .expert-avatar {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* 新闻项悬停效果 */
.news-item:hover {
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin: -12px;
    transition: all 0.3s ease;
}

.news-title a:hover {
    color: #3498db !important;
    transition: all 0.3s ease;
}

/* 按钮样式 */
.btn {
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 卡片样式 */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 页脚样式 */
footer {
    background: #e6c547 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh !important;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .medical-icons {
        display: none;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .expert-avatar {
        width: 100px !important;
        height: 100px !important;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #333333 !important;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000 !important;
}

/* 确保所有元素都使用自定义滚动条 */
html {
    scrollbar-width: thin;
    scrollbar-color: #333333 #f1f1f1;
}

/* Firefox滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: #333333 #f1f1f1;
}

/* 返回顶部按钮 */
#backToTop {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}