html,
body,
.font-sans {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
}

h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, textarea, select, li {
    font-family: inherit;
}

.bg-primary-50 { background-color: #f5fbe6 !important; }
.bg-primary-100 { background-color: #edf7d1 !important; }
.bg-primary-200 { background-color: #d4eb99 !important; }
.bg-primary-300 { background-color: #c0e066 !important; }
.bg-primary-400 { background-color: #b8e600 !important; }
.bg-primary-500 { background-color: #9DD200 !important; }
.bg-primary-600 { background-color: #7ab000 !important; }
.bg-primary-700 { background-color: #5a8800 !important; }
.bg-primary-800 { background-color: #4a7000 !important; }
.bg-primary-900 { background-color: #3d4f23 !important; }

.text-primary-50 { color: #f5fbe6 !important; }
.text-primary-100 { color: #edf7d1 !important; }
.text-primary-200 { color: #d4eb99 !important; }
.text-primary-300 { color: #c0e066 !important; }
.text-primary-400 { color: #b8e600 !important; }
.text-primary-500 { color: #9DD200 !important; }
.text-primary-600 { color: #7ab000 !important; }
.text-primary-700 { color: #5a8800 !important; }
.text-primary-800 { color: #4a7000 !important; }
.text-primary-900 { color: #3d4f23 !important; }

.bg-gradient-to-r.from-primary-600.to-primary-700 {
    background: linear-gradient(to right, #7ab000, #5a8800) !important;
}

.bg-gradient-to-r.from-primary-500.to-primary-600 {
    background: linear-gradient(to right, #9DD200, #7ab000) !important;
}

.bg-gradient-to-br.from-primary-600.to-primary-700 {
    background: linear-gradient(to bottom right, #7ab000, #5a8800) !important;
}

.border-primary-300 { border-color: #c0e066 !important; }
.border-primary-600 { border-color: #7ab000 !important; }

.hover\:bg-primary-700:hover { background-color: #5a8800 !important; }
.hover\:text-primary-600:hover { color: #7ab000 !important; }
.hover\:border-primary-300:hover { border-color: #c0e066 !important; }

* {
    box-sizing: border-box;
}

#videoMuteBtn {
    position: relative;
    z-index: 9999;
    pointer-events: auto;
    cursor: pointer;
}

#videoMuteBtn:hover {
    transform: scale(1.05);
}

#videoMuteBtn svg {
    pointer-events: none;
}

.video-container {
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
}

.v-top-bg {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    #videoMuteBtn {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem;
    }
    
    #videoMuteBtn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.transition-all {
    transition: all 0.3s ease;
}

.absolute.top-20.right-6.z-50 {
    position: absolute !important;
    top: 5rem !important;
    right: 1.5rem !important;
    z-index: 9999 !important;
}

.imgZoom {
    overflow: hidden;
    border-radius: 0.75rem;
}

.imgZoom img {
    transition: transform 0.3s ease;
    opacity: 1 !important;
}

.imgZoom:hover img {
    transform: scale(1.05);
}

.medical-blue-overlay {
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.85) 0%,    /* blue-900 */
        rgba(51, 65, 85, 0.80) 35%,    /* slate-800 */
        rgba(30, 64, 175, 0.85) 100%   /* blue-800 */
    );
}

.medical-blue-light-overlay {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.80) 0%,    /* blue-600 */
        rgba(71, 85, 105, 0.75) 35%,   /* slate-600 */
        rgba(30, 58, 138, 0.85) 100%   /* blue-900 */
    );
}

.medical-blue-accent {
    background: linear-gradient(135deg,
        rgba(71, 85, 105, 0.80) 0%,    /* slate-600 */
        rgba(30, 58, 138, 0.85) 35%,   /* blue-900 */
        rgba(55, 65, 81, 0.80) 100%    /* gray-800 */
    );
}

.medical-green-overlay {
    background: linear-gradient(135deg,
        rgba(6, 78, 59, 0.85) 0%,      /* emerald-900 */
        rgba(22, 101, 52, 0.80) 35%,   /* green-800 */
        rgba(6, 95, 70, 0.85) 100%     /* emerald-800 */
    );
}

.medical-green-light-overlay {
    background: linear-gradient(135deg,
        rgba(6, 95, 70, 0.80) 0%,      /* emerald-800 */
        rgba(21, 128, 61, 0.75) 35%,   /* green-700 */
        rgba(6, 78, 59, 0.85) 100%     /* emerald-900 */
    );
}

.medical-green-accent {
    background: linear-gradient(135deg,
        rgba(22, 101, 52, 0.80) 0%,    /* green-800 */
        rgba(6, 78, 59, 0.85) 35%,     /* emerald-900 */
        rgba(22, 101, 52, 0.80) 100%   /* green-800 */
    );
}

.tech-future-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tech-future-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 210, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.tech-future-card:hover::before {
    left: 100%;
}

.tech-future-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(157, 210, 0, 0.25);
    border-color: rgba(157, 210, 0, 0.3);
}

.tech-timeline-year {
    background: linear-gradient(135deg, #9DD200, #7ab000);
    position: relative;
    overflow: hidden;
}

.tech-timeline-year::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.tech-data-highlight {
    background: linear-gradient(135deg, #f5fbe6, #edf7d1);
    border-left: 4px solid #9DD200;
    position: relative;
    overflow: hidden;
}

.tech-data-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #9DD200, #b8e600, #9DD200);
    animation: progress-bar 2s ease-in-out infinite;
}

@keyframes progress-bar {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.tech-grid-bg {
    background-image:
        linear-gradient(rgba(157, 210, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 210, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.tech-glow-text {
    text-shadow: 0 0 10px rgba(157, 210, 0, 0.3);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from { text-shadow: 0 0 10px rgba(157, 210, 0, 0.3); }
    to { text-shadow: 0 0 20px rgba(157, 210, 0, 0.5), 0 0 30px rgba(157, 210, 0, 0.2); }
}

.tech-floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.tech-circuit-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(157, 210, 0, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(122, 176, 0, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
}

.tech-hologram-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #9DD200, #7ab000, #9DD200) border-box;
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cooperation-logo-container {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
}

.cooperation-logo-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    border-radius: inherit;
    z-index: -1;
}

.cooperation-logo-container:hover {
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.logo-cams,
.logo-xiangya,
.logo-anhui-tcm,
.logo-anhui-hospital {
    background: linear-gradient(135deg, #4a7000, #9DD200, #ffffff);
    border-color: rgba(157, 210, 0, 0.2);
    box-shadow: 0 4px 12px -3px rgba(157, 210, 0, 0.15);
}

.logo-cams {
    border-color: rgba(100, 116, 139, 0.2);
    box-shadow: 0 4px 12px -3px rgba(100, 116, 139, 0.15);
}

.logo-xiangya {
    border-color: rgba(157, 210, 0, 0.2);
    box-shadow: 0 4px 12px -3px rgba(157, 210, 0, 0.15);
}

.logo-anhui-tcm {
    border-color: rgba(122, 176, 0, 0.2);
    box-shadow: 0 4px 12px -3px rgba(122, 176, 0, 0.15);
}

.logo-anhui-hospital {
    border-color: rgba(90, 136, 0, 0.2);
    box-shadow: 0 4px 12px -3px rgba(90, 136, 0, 0.15);
}

.cooperation-logo-img {
    filter: contrast(1.15) saturate(1.1) brightness(0.95);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4a7000, #9DD200, #ffffff) !important;
    border-radius: 0.75rem; /* rounded-xl */
    padding: 0.25rem; /* 给logo一点内边距 */
}

.logo-cams .cooperation-logo-img,
.logo-xiangya .cooperation-logo-img,
.logo-anhui-tcm .cooperation-logo-img,
.logo-anhui-hospital .cooperation-logo-img {
    filter: contrast(1.25) brightness(0.9) saturate(1.15);
}

.cooperation-logo-container:hover .cooperation-logo-img {
    filter: contrast(1.3) saturate(1.2) brightness(0.85);
    transform: scale(1.05);
    background: linear-gradient(135deg, #4a7000, #7ab000, #b8e600, #ffffff) !important;
    box-shadow: 0 4px 12px -2px rgba(157, 210, 0, 0.3);
}

.logo-cams:hover,
.logo-xiangya:hover,
.logo-anhui-tcm:hover,
.logo-anhui-hospital:hover {
    background: linear-gradient(135deg, #4a7000, #7ab000, #b8e600, #ffffff);
    box-shadow: 0 16px 40px -12px rgba(157, 210, 0, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.logo-cams:hover {
    box-shadow: 0 16px 40px -12px rgba(100, 116, 139, 0.25);
}

.logo-xiangya:hover {
    box-shadow: 0 16px 40px -12px rgba(157, 210, 0, 0.25);
}

.logo-anhui-tcm:hover {
    box-shadow: 0 16px 40px -12px rgba(122, 176, 0, 0.25);
}

.logo-anhui-hospital:hover {
    box-shadow: 0 16px 40px -12px rgba(90, 136, 0, 0.25);
}

@media (max-width: 768px) {
    .cooperation-logo-container {
        padding: 0.25rem;
    }
}


@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.hero-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    opacity: 0.3;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.news-card,
.news-card * {
    text-shadow: none !important;
}

/* Alternating section backgrounds for depth layering (S2/S4/S6 white, S3/S5 neutral-50) */
.mainSwiper .section-2-bg,
.mainSwiper .section-4-bg,
.mainSwiper .section-6-bg {
    background-color: #ffffff !important;
}

.mainSwiper .section-3-bg,
.mainSwiper .section-5-bg {
    background-color: #f9fafb !important; /* Tailwind neutral-50 */
}
