/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* 首页横幅样式 */
.hero-section {
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #FFE4B5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content h1 {
    animation: fadeInUp 1s ease;
}

.hero-content p {
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特色服务样式 */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #FFE4B5 100%);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* 服务项目样式 */
.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2);
}

/* 医生团队样式 */
.team-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.team-card:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #87CEEB, #98FB98, #FFE4B5);
    border-radius: 50%;
    z-index: -1;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

/* 预约表单样式 */
.appointment-form {
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

/* 联系方式图标样式 */
.contact-links a {
    transition: all 0.3s ease;
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: white;
}

.contact-links a:hover i {
    transform: scale(1.2);
}

.contact-links i,
.contact-links svg {
    transition: all 0.3s ease;
}

.contact-links a:hover svg,
.contact-links a:hover .app-logo,
.contact-links a:hover i {
    transform: scale(1.1);
}

.contact-links i {
    font-size: 18px !important;
}

/* APP图标样式 */
.app-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.douyin-icon {
    background: linear-gradient(135deg, #fe2c55, #ff6b6b);
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
}

.xiaohongshu-icon {
    background: linear-gradient(135deg, #fe2c55, #ff8c42);
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.3);
}

.appointment-form .form-control,
.appointment-form .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.appointment-form .btn-primary {
    border-radius: 50px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.appointment-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* 联系我们样式 */
.contact-item {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 320px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
}

/* 联系我们响应式样式 */
@media (max-width: 768px) {
    .contact-item {
        min-height: 280px;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .contact-item {
        min-height: 260px;
        padding: 1.2rem 0.8rem;
    }
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #4682B4 0%, #3CB371 100%) !important;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .service-card,
    .team-card .card,
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .appointment-form {
        padding: 2rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 悬停效果 */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

/* 医院环境卡片样式 */
.environment-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.environment-card:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.environment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #FFE4B5 100%);
    transition: all 0.3s ease;
}

.environment-card:hover .environment-icon {
    transform: scale(1.1);
}

.environment-icon i {
    color: white !important;
}

/* 放射区图标特殊样式 */
.environment-card:has(.bi-radiation) .environment-icon i {
    color: #FFD700 !important; /* 金黄色，更适合辐射图标 */
}

/* 宠物相册样式 */
.pet-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.pet-card:hover .card {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pet-image {
    position: relative;
    overflow: hidden;
}

.pet-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.pet-card:hover .pet-image::before {
    animation: shine 0.5s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* 宠物元素装饰 */
.pet-paw {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.1;
    pointer-events: none;
}

.pet-paw::before {
    content: '🐾';
    font-size: 30px;
    position: absolute;
}

/* 悬浮宠物装饰 */
.floating-pet {
    position: fixed;
    font-size: 2rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.floating-pet:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-pet:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-pet:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* 宠物主题色彩 */
:root {
    --pet-primary: #87CEEB;
    --pet-secondary: #98FB98;
    --pet-accent: #FFE4B5;
    --pet-paw: #FFB6C1;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--pet-primary) 0%, var(--pet-secondary) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6BB6D6 0%, #7BC47B 100%);
}

/* 微信图标样式 */
.wechat-icon {
    width: 24px !important;
    height: 24px !important;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.wechat-icon:hover {
    transform: scale(1.2);
}

/* 新闻页面样式 */
.news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-item.pinned {
    border: 2px solid #dc3545;
    border-radius: 8px;
}

.news-image img {
    transition: transform 0.3s ease;
}

.news-image img:hover {
    transform: scale(1.05);
}

.news-content h4 a {
    color: #333;
    transition: color 0.3s ease;
}

.news-content h4 a:hover {
    color: #0d6efd;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
    border-bottom: none;
}

.news-detail h5 {
    color: #0d6efd;
    font-weight: 600;
}

.news-detail ul {
    padding-left: 20px;
}

.news-detail ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 二维码样式 */
.qr-code-placeholder {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.qr-code-placeholder:hover {
    border-color: #07C160;
    background-color: rgba(7, 193, 96, 0.05);
}