/* =======================================================================
   强制光明模式 - 禁用系统暗黑模式
   ======================================================================= */
:root {
    color-scheme: light only;
}

/* 强制所有元素使用光明模式 */
* {
    color-scheme: light only !important;
}

/* 针对可能受暗黑模式影响的元素进行强制设置 */
html {
    color-scheme: light only;
    background-color: #ffffff !important;
}

body {
    color-scheme: light only;
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* 防止浏览器自动应用暗黑模式样式 */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light only !important;
    }
    
    html {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
    
    body {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
}

/* =======================================================================
   钉钉字体定义
   ======================================================================= */
@font-face {
    font-family: 'DingTalk JinBuTi';
    src: url('../fonts/DingTalk JinBuTi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DingTalk Sans';
    src: url('../fonts/DingTalk Sans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 钉钉进步体样式类 */
.dingtalk-jinbuti {
    font-family: 'DingTalk JinBuTi', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: bold;
}

.dingtalk-sans {
    font-family: 'DingTalk Sans', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif !important;
}

/* 数据成果模块专用钉钉进步体样式 */
.data-results-dingtalk {
    font-family: 'DingTalk JinBuTi', 'PingFang SC','Microsoft YaHei', '微软雅黑', sans-serif !important;
    font-weight: bold;
}

/* =======================================================================
   全局样式
   ======================================================================= */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 通用样式 */
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.justify-between { display: flex; justify-content: space-between; }

/* 统一的H2标题样式 */
h2.section-title {
    position: relative;
    font-size: 32px;
    font-weight: bold;
    color: #3C6EDD;
    margin-bottom: 20px;

}

h2.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    margin-top: 10px;
}

/* 移动端标题样式 */
@media (max-width: 768px) {
    h2.section-title {
        font-size: 28px;
    }
}

/* 内容标题样式 */
.content-title {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #555;
}

/* 页面各部分统一样式 */
.team-section,
.products-section {
    padding: 30px 0 0 0;
    background-color: white;
}

.stats-section,
.news-section {
    padding: 30px 0 0 0;
    background-color: #f8f9fa;
}

.partners-section {
    padding: 5px 0;
    background-color: #EEF8FF;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 200px;
}

/* 顶部导航栏样式 */
.top-nav {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links a {
    color: #333;
    margin-left: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: #3C6EDD;
}

.nav-links a.active {
    color: #3C6EDD;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffc107;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* 确保导航菜单中的横线不重叠 */
.nav-links:hover a.active:not(:hover)::after {
    transform: scaleX(0);
}

/* =======================================================================
   导航二级菜单样式
   ======================================================================= */

/* 导航下拉菜单容器 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* 导航下拉菜单主项样式继承父级样式 */
.nav-dropdown > a {
    color: #333;
    margin-left: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}



.nav-dropdown:hover > a::before {
    transform: translateY(-50%) rotate(90deg);
    border-left-color: #3C6EDD;
}

.nav-dropdown > a.active::after {
    transform: scaleX(1);
}

.nav-dropdown > a:hover::after {
    transform: scaleX(1);
}

/* 导航区域背景延伸效果 - 任何状态下都生效 */
.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: -1;
    transition: all 0.3s ease;
}

/* 透明状态下悬停时显示白色背景 */
.top-nav:not(.sticky):hover::before {
    height: 240px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 透明状态下悬停时导航链接颜色调整 */
.top-nav:not(.sticky):hover .nav-links a {
    color: #333;
    text-shadow: none;
}

.top-nav:not(.sticky):hover .nav-links a:hover,
.top-nav:not(.sticky):hover .nav-links a.active {
    color: #3C6EDD;
}

/* sticky状态下悬停时延伸现有的白色背景 */
.top-nav.sticky:hover::before {
    height: 220px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 二级菜单 - 始终存在但默认隐藏在背景延伸区域外 */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent;
    min-width: 200px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* 移除动画效果 */
    z-index: 1000;
    padding: 15px 0;
    margin-top: 10px;
    /* 默认时在延伸背景区域外，用户看不见 */
    clip-path: inset(100% 0 0 0);
}

/* 当导航区域悬停时，背景延伸，二级菜单显现 - 任何状态下都生效 */
.top-nav:hover .nav-dropdown-menu {
    clip-path: inset(0 0 0 0);
}

/* 二级菜单项样式 */
.nav-dropdown-item {
    display: block;
    padding: 12px 25px;
    color: #999999 !important;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 400;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    color: #333333 !important;
    font-size: 14px !important;
}

/* 禁用二级菜单项的after伪元素样式 */
.nav-dropdown-item::after {
    display: none !important;
}

.nav-dropdown-item:hover::after {
    display: none !important;
}

/* 移除可能继承的导航链接样式 */
.nav-dropdown-item:hover {
    text-decoration: none !important;
}


/* 移动端隐藏二级菜单 */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        display: none !important;
    }
    
    /* 移动端取消导航背景延伸效果 */
    .top-nav::before {
        display: none;
    }
    
    .top-nav:hover::before {
        display: none;
    }
    
    /* 移动端导航下拉菜单容器样式重置 */
    .nav-links.d-md-none .nav-dropdown {
        display: block;
    }
    
    .nav-links.d-md-none .nav-dropdown > a {
        padding: 15px 30px;
        display: block;
        color: #192254;
    }
    
    .nav-links.d-md-none .nav-dropdown > a:hover {
        color: #3C6EDD;
        background-color: #f8f9fa;
    }
    
    .nav-links.d-md-none .nav-dropdown > a.active {
        color: #3C6EDD;
        font-weight: 500;
        background-color: transparent;
    }
    
    /* 移动端移除二级菜单主项的伪元素 */
    .nav-links.d-md-none .nav-dropdown > a::before,
    .nav-links.d-md-none .nav-dropdown > a::after {
        display: none !important;
    }
    
    /* 移动端移除箭头指示器 */
    .nav-dropdown > a::before {
        display: none !important;
    }
}

/* 移动导航菜单 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu-btn:hover {
    color: #3C6EDD;
}

.mobile-menu-btn.active {
    color: #3C6EDD;
}

/* 汉堡菜单动画 */
.mobile-menu-btn .fa-bars {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active .fa-bars {
    transform: rotate(90deg);
}

/* 页脚样式 */
footer {
    background-color: white;
    padding: 40px 0 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
}

footer h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
}

footer p {
    color: #666;
    line-height: 1.8;
}

footer a {
    color: #666;
    text-decoration: none;
    line-height: 1.8;
}

/* 关注我们部分样式 */
.footer-follow-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.footer-follow-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-follow-content h5 {
    margin-bottom: 0;
}

.footer-social-icons {
    display: flex;
    gap: 30px;
}

.social-icon-wrapper {
    position: relative;
    display: inline-block;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    color: #007bff;
}

.social-icon i {
    font-size: 18px;
}

.social-text {
    display: inline;
}

/* PC端二维码弹出层 */
.qr-code-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(10px);
    z-index: 1000;
    margin-bottom: 10px;
}

.qr-code-popup img {
    width: 120px;
    height: 120px;
    display: block;
}

.social-icon-wrapper:hover .qr-code-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 添加小三角箭头 */
.qr-code-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

/* 移动端二维码显示 */
.mobile-qr-codes {
    display: none;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}

.mobile-qr-item {
    text-align: center;
}

.mobile-qr-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.mobile-qr-item span {
    display: block;
    font-size: 12px;
    color: #666;
}

/* 主要内容区域 */
.footer-main-content {
    margin-bottom: 30px;
}

/* Logo区域 */
.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.footer-brand-logo {
    height: 60px;
    width: auto;
}

/* 版权信息 */
.footer-copyright {
    padding-top: 20px;
    text-align: left;
}

.footer-copyright p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* 联系我们和加入我们部分样式 */
.contact-info p,
.join-info p {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

.cooperation-section,
.media-section {
    margin-bottom: 15px;
}

.cooperation-title,
.media-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cooperation-email,
.media-email {
    margin-bottom: 0;
}

.company-name,
.phone,
.address {
    margin-bottom: 8px;
}

.address {
    margin-bottom: 0;
}

.footer-links a {
    margin-right: 15px;
    font-size: 18px;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 10px;
    margin-bottom: 15px;
}

/* =======================================================================
   Footer 移动端样式
   ======================================================================= */
@media (max-width: 768px) {
    /* Footer移动端样式 */
    .footer-follow-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-social-icons {
        display: none;
    }

    .mobile-qr-codes {
        display: flex;
        gap: 20px;
    }

    .mobile-qr-item img {
        width: 80px;
        height: 80px;
    }

    .footer-main-content .col-md-4 {
        margin-bottom: 30px;
        text-align: left; /* 移动端改为左对齐 */
    }

    /* 移动端隐藏LOGO区域 */
    .footer-logo-section {
        display: none;
    }

    .footer-brand-logo {
        height: 50px;
    }

    .footer-copyright {
        text-align: center;
    }

    /* 联系我们和加入我们部分移动端左对齐 */
    .contact-info,
    .join-info {
        text-align: left;
    }

    .contact-info p,
    .join-info p {
        text-align: left;
    }

    .cooperation-section,
    .media-section {
        text-align: left;
    }

    .cooperation-title,
    .media-title,
    .cooperation-email,
    .media-email,
    .company-name,
    .phone,
    .address {
        text-align: left;
    }
}

/* =======================================================================
   就医管家模块样式
   ======================================================================= */

/* PC端就医管家头部叠加样式 */
.medical-butler-header-overlay {
    position: absolute;
    top: 60px;
    left: 60px;
    z-index: 10;
    color: white;
    max-width: 500px;
    text-align: left;
}

.medical-butler-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.medical-butler-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.medical-butler-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-align: left;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 医疗服务网格样式 */
.medical-services-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 600px;
}

/* PC端医疗服务网格样式保护 */
@media (min-width: 769px) {
    .medical-services-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.medical-service-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    transition: all 0.8s ease;
    padding: 10px 40px;
}

.medical-service-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.medical-service-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-overlay {
    padding:60px 10px;
    margin-top: 100px;
    width: 100%;
    color: white;
    backdrop-filter: blur(2px);
}

.service-number {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    opacity: 0.9;
}

.service-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-feature {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 就医管家头部样式 - 移动端专用 */
.medical-butler-header {
    padding-left: 80px; /* PC端左间距 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    .medical-butler-header {
        padding-left: 20px; /* 移动端左间距 */
        padding-right: 20px; /* 移动端右间距 */
    }
    
    .medical-butler-header-overlay {
        position: static;
        color: #333;
        max-width: none;
        text-align: center;
        padding: 20px 15px;
        background: #f8f9fa;
        margin-bottom: 0;
    }

    .medical-butler-title {
        font-size: 26px;
        margin-bottom: 12px;
        letter-spacing: 1px;
        color: #3BBAB2;
        text-shadow: none;
    }

    .medical-butler-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
        color: #666;
        text-shadow: none;
    }

    .medical-butler-description {
        font-size: 14px;
        line-height: 1.6;
        color: #666;
        text-shadow: none;
    }

    .medical-services-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .medical-service-item {
        min-height: 300px;
    }

    .medical-service-item:hover {
        transform: translateY(-5px);
    }

    .service-overlay {
        padding: 30px 25px;
        min-width: 300px;
    }

    .service-number {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .service-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .service-feature {
        font-size: 14px;
    }
}

/* 平板端样式调整 */
@media (max-width: 1024px) and (min-width: 769px) {
    .medical-butler-header {
        padding-left: 40px; /* 平板端左间距 */
    }
    
    .medical-butler-header-overlay {
        top: 40px;
        left: 40px;
        max-width: 400px;
    }

    .medical-butler-title {
        font-size: 28px;
    }

    .medical-butler-subtitle {
        font-size: 15px;
    }

    .medical-butler-description {
        font-size: 13px;
    }
}
