/* ==========================================================================
   Mobile & Tablet Styles
   ========================================================================== */

@media (max-width: 768px) {
    /* Module: list and grid fallbacks */
    .case-list-clean {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
    }
    .case-clean-content {
        padding: 20px !important;
    }
}

@media (max-width: 1200px) {
    #doctor-list { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 992px) {
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    #doctor-list { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 576px) {
    #doctor-list { grid-template-columns: 1fr !important; }
}

@media (max-width: 576px) {
    .masonry-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .large-card { flex-direction: column; }
    .large-card-img { flex: 0 0 300px; }
}

@media (max-width: 992px) {
    .news-list-item {
        flex-direction: column;
    }
    .news-list-img {
        flex: 0 0 250px;
        width: 100%;
    }
    .news-info {
        padding: 25px;
    }
    .news-info-bottom {
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    /* Module: mobile header and navigation */
    .header-main { position: relative; padding: 10px 0; }
    
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto;
    }
    
    .mobile-tools-toggle {
        display: block !important;
        font-size: 20px;
        color: var(--color-brand-gray);
        cursor: pointer;
    }
    
    .mobile-menu-toggle { 
        display: block !important; 
        font-size: 24px; 
        color: var(--color-primary); 
        cursor: pointer; 
        margin-left: 0;
    }
    
    .mobile-tools-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-secondary);
        padding: 15px;
        z-index: 999;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-tools-panel.active {
        display: flex;
    }
    
    .mobile-tools-panel .social-media-links {
        display: flex;
        gap: 15px;
    }
    .mobile-tools-panel .social-media-links a {
        color: var(--color-white);
        font-size: 20px;
    }
    .mobile-tools-panel .lang-switcher {
        color: var(--color-white);
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 34px;
    }
    .mobile-tools-panel .lang-dropdown {
        right: auto !important;
        left: 50% !important;
        top: 100%;
        transform: translateX(-50%) translateY(10px);
        min-width: 150px;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }
    .mobile-tools-panel .lang-switcher:hover .lang-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(10px);
    }
    .mobile-tools-panel .lang-switcher.is-open .lang-dropdown,
    .mobile-tools-panel .lang-switcher.is-open:hover .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-menu { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--color-white); 
        flex-direction: column; 
        display: none; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid var(--color-border);
        padding: 0;
        z-index: 998;
    }
    .nav-menu.active { display: flex; }
    .nav-item { 
        width: 100%; 
        border-bottom: 1px solid #eee; 
        padding: 0; 
    }
    .nav-item > a { 
        display: flex; 
        justify-content: space-between; 
        padding: 15px 20px; 
        width: 100%;
    }
    .nav-item:hover > a::after, .nav-item.active > a::after { display: none; }
    
    .dropdown { 
        position: static; 
        box-shadow: none; 
        border: none; 
        display: none; 
        transform: none; 
        opacity: 1; 
        visibility: visible; 
        background: #f9f9f9;
    }
    .nav-item.active-dropdown .dropdown { display: block; }
    
    /* Module: shared mobile layouts */
    .grid-3, .grid-4, .masonry-grid { grid-template-columns: 1fr !important; }
    
    /* 手机端首页集团介绍特殊排版：利用 display: contents 拆掉包裹层，将按钮排到图片之后 */
    .group-intro-flex, .cq-intro-flex {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }
    
    .group-intro-text {
        display: contents !important;
    }
    
    /* 文字部分排在最前 */
    .group-intro-flex .rich-text-content,
    .group-intro-flex .group-stats,
    .group-intro-flex h2,
    .group-intro-flex > div {
        order: 1;
    }
    
    /* 图片排在中间 */
    .group-intro-flex .group-intro-image {
        order: 2;
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* 按钮排在最后 */
    .group-intro-flex .group-detail-btn {
        order: 3;
        margin: 15px auto 0 !important;
        display: block;
        width: max-content;
        align-self: center;
    }
    
    .footer-content, .news-layout, .about-layout, .detail-layout { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 30px !important;
    }
    
    /* Module: sidebar and detail pages */
    .sidebar { max-width: 100% !important; flex: 1 1 100% !important; margin-bottom: 20px; }
    .main-content { flex: 1 1 100% !important; padding: 20px !important; }
    
    /* Hide floating bar on mobile */
    .floating-bar { display: none !important; }
    
    /* Hide swiper buttons on mobile */
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev { display: none !important; }
    
    /* Module: hero typography and spacing */
    .hero-content {
        padding-bottom: 18px !important;
    }
    .hero-content h1 { font-size: 19px !important; margin-bottom: 7px !important; line-height: 1.25 !important; text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important; }
    .hero-content p { 
        font-size: 12px !important; 
        margin-bottom: 10px !important; 
        line-height: 1.4 !important; 
        display: -webkit-box !important; 
        -webkit-line-clamp: 2 !important; 
        -webkit-box-orient: vertical !important; 
        overflow: hidden !important; 
        text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
    }
    .hero-content .btn, 
    .hero-content a[class*="btn"] { 
        padding: 6px 16px !important; 
        font-size: 12px !important; 
        min-width: 0 !important; 
        height: auto !important; 
        line-height: 1.5 !important; 
    }
    
    /* 移动端适配 1920×600 / 超宽 banner：按实际比例压低高度，避免 contain 留白露出其他 slide */
    .hero-slider {
        width: 100% !important;
        height: clamp(112px, 30vw, 144px) !important;
        max-height: none !important;
        min-height: auto !important;
        margin-top: 82px !important;
        background: #fff;
        overflow: hidden;
    }
    .hero-slider .swiper-slide {
        overflow: hidden;
        background: #fff;
    }
    .hero-slider .swiper-slide > img,
    .hero-slider .swiper-slide > video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
    .hero-slider .swiper-pagination { bottom: 10px !important; }
    .hero-slider .swiper-pagination-bullet { width: 6px; height: 6px; }
    .hero-slider .swiper-pagination-bullet-active { width: 22px; }
    
    .page-header { height: 200px !important; margin-top: 82px !important; padding: 40px 0 !important; }
    .page-header h1 { font-size: 28px !important; }
    .section { padding: 40px 0 !important; }
    
    /* Module: forms */
    .form-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    
    /* Module: footer */
    .footer { padding: 30px 0 15px !important; }

    /* Custom Hero Slide Mobile Adaption */
    .custom-slide-mask {
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 70%; /* 遮盖底部 70% */
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        background: linear-gradient(to top, rgba(28, 38, 54, 0.95) 0%, rgba(28, 38, 54, 0.6) 100%);
        transform-origin: bottom center;
        /* 在移动端采用从下往上升起的动画 */
    }
    .custom-slide-mask::before, .custom-slide-mask::after {
        display: none; /* 移动端隐藏圆环点缀节省性能 */
    }
    .custom-slide-content {
        width: 100%;
        height: 70%;
        top: auto;
        bottom: 0;
        padding: 20px;
        align-items: center;
        text-align: center;
    }
    .c-slide-logo {
        position: relative;
        top: 0; right: 0;
        height: 25px;
        margin-bottom: 10px;
    }
    .c-slide-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .c-slide-desc {
        font-size: 12px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .c-slide-btn {
        align-self: center;
        padding: 6px 20px;
        font-size: 12px;
    }
    .c-slide-tags {
        margin-top: 15px;
        gap: 10px;
    }
    .c-tag-item {
        padding: 6px 10px;
        font-size: 10px;
        width: auto;
    }
}

@media (max-width: 1240px) {
    .fab-container {
        transform: none !important;
        left: 20px !important;
    }
}

@media (max-width: 768px) {
    /* Module: FAB menu compact layout */
    .fab-container { top: 110px !important; gap: 10px !important; }
    .fab-container .fab-button { width: 48px !important; height: 48px !important; font-size: 20px !important; }
    .fab-container .fab-menu { gap: 8px !important; }
    .fab-container .fab-item { padding: 8px 12px !important; font-size: 13px !important; border-radius: 10px !important; }
    #intlFabMenu .fab-button { border-radius: 14px !important; }

    /* Module: footer compact layout */
    .footer .grid-4 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 并排显示 */
        gap: 15px 10px !important; /* 行间距 15px，列间距 10px */
        text-align: left; /* 统一左对齐，更好阅读 */
    }
    
    /* 让第一个版块（Logo和简介）跨两列，占满整行 */
    .footer .grid-4 > div:nth-child(1) {
        grid-column: 1 / -1;
        text-align: center; /* 简介保持居中 */
        margin-bottom: 10px !important;
    }
    
    /* 让第四个版块（联系我们）也跨两列，占满整行 */
    .footer .grid-4 > div:nth-child(4) {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 10px;
    }
    
    .footer-col { margin-bottom: 0 !important; }
    .footer-col h4 { margin-bottom: 10px !important; font-size: 15px !important; }
    .footer-col ul li { margin-bottom: 6px !important; }
    .footer-col ul li a, .footer-col p { font-size: 13px !important; line-height: 1.4 !important; }
    
    /* 社交图标瘦身 */
    .social-links { justify-content: center; margin-top: 15px; }
    .social-links a { width: 32px; height: 32px; line-height: 32px; font-size: 14px; margin: 0 5px; }
    
    .footer-bottom { padding-top: 15px !important; margin-top: 15px !important; }
    .footer-bottom p { font-size: 12px !important; }
    
    /* Module: card and media compaction */
    .group-intro-text { text-align: center; }
    .group-intro-text .btn { margin: 15px auto 0 !important; display: inline-block; }
    
    .news-item, .media-item { flex-direction: column; align-items: flex-start; }
    .news-date { margin-bottom: 10px; }
    .news-list-img { width: 100% !important; height: 200px; }
    .expert-card-item { flex-direction: column; }
    .expert-card-img { width: 100% !important; height: 300px !important; }
    .doctor-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
        .expert-info {
            padding: 12px !important;
        }
.expert-card h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }
    .expert-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    .expert-desc {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }
    .expert-more-btn {
        padding: 4px 16px !important;
        font-size: 12px !important;
    }
    
    /* 修复手机端网格出现空白缺口的问题 */
    .doctor-grid, #doctor-list {
        display: block !important;
        padding: 0 10px !important;
    }
    
    /* 采用 float 浮动布局代替 flex，保留为兼容兜底 */
    .expert-card-item, .expert-card {
        float: left !important;
        width: calc(50% - 6px) !important;
        margin: 0 0 12px 0 !important; /* 右边距由脚本或后续规则控制，CSS 中不再写死 */
        box-sizing: border-box !important;
    }
    
    /* 删除原有 nth-child 清除机制，因为隐藏元素会扰乱计数 */

    /* 必须清除浮动，防止父容器高度塌陷 */
    .doctor-grid::after, #doctor-list::after {
        content: "";
        display: table;
        clear: both;
    }

    /* 手机端图片区域适配 */
    .expert-card-img, .expert-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1.15 !important;
    }
    
    /* 手机端字体紧凑化 */
    .expert-info {
        padding: 10px 8px 12px 8px !important;
    }
    .expert-card h3 {
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }
    .expert-title {
        font-size: 11px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }
    .expert-desc {
        font-size: 11px !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
        /* 手机端只显示一行擅长专业，防止卡片被撑得太高 */
        -webkit-line-clamp: 1 !important;
    }
    .expert-more-btn {
        padding: 4px 12px !important;
        font-size: 11px !important;
        align-self: flex-start !important;
    }

    /* Module: filter buttons */
    .filter-wrapper, .case-tags-wrapper {
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 0 10px !important;
        justify-content: flex-start !important;
    }
    .filter-label {
        width: 100% !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
        text-align: left !important;
    }
    .cat-btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
        margin: 0 !important;
        flex: 0 0 calc(33.333% - 4px) !important; /* 强制一排三个，减小间距 */
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        height: 28px !important; /* 降低按钮高度 */
        line-height: 18px !important;
    }

    /* Service Flow Update */
    .flow-line { display: none !important; } /* Hide the horizontal line on mobile */
    .flow-step-wrapper { 
        display: grid !important; 
        grid-template-columns: 1fr !important; 
        gap: 12px !important; 
        flex-direction: column !important; /* Override flex-direction if any */
    }
    .flow-step { 
        width: 100% !important; 
        max-width: none !important; 
        margin-bottom: 0 !important; 
        padding: 14px 14px 15px 66px !important;
        min-height: 96px;
        position: relative;
        text-align: left !important;
        border: 1px solid rgba(11,42,91,0.08);
        border-radius: 15px !important;
        box-shadow: 0 8px 22px rgba(11,42,91,0.05);
    }
    .flow-step::before {
        content: '';
        position: absolute;
        left: 33px;
        top: 64px;
        bottom: -13px;
        width: 1px;
        background: rgba(11,42,91,0.10);
    }
    .flow-step:last-child::before {
        display: none;
    }
    .icon-wrapper-circle {
        position: absolute;
        left: 14px;
        top: 16px;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        border-width: 2px !important;
        box-shadow: 0 5px 12px rgba(11,42,91,0.12) !important;
    }
    .icon-primary-lg { font-size: 17px !important; }
    .step-title {
        font-size: 15px !important;
        line-height: 1.42 !important;
        margin-bottom: 5px !important;
    }
    .step-desc {
        font-size: 12.5px !important;
        line-height: 1.62 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .trust-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .trust-item { padding: 20px 15px; }
    .trust-item i { font-size: 28px; margin-bottom: 10px; }
    .trust-item h3 { font-size: 22px; margin-bottom: 5px; }
    .trust-item p { font-size: 13px; }

    /* Horizontal Swipe Containers for Mobile */
    .dept-grid, .masonry-grid, .horizontal-accordion {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        padding-bottom: 15px;
        grid-template-columns: none !important;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .dept-grid::-webkit-scrollbar, .masonry-grid::-webkit-scrollbar, .horizontal-accordion::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .dept-card, .masonry-item, .h-acc-item {
        flex: 0 0 85% !important;
        width: 85% !important;
        max-width: 85% !important;
        scroll-snap-align: start;
        margin-bottom: 0 !important;
        border-radius: 8px;
    }
    .flip-card-container {
        margin-bottom: 0 !important;
    }

    /* Equipment Accordion specific for mobile swipe */
    .horizontal-accordion { height: auto !important; }
    .h-acc-item { height: 220px !important; }
    .h-acc-item:hover, .h-acc-item.active { width: 85% !important; }
    .h-acc-item::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; width: 100%; height: 50%;
        background: linear-gradient(to top, rgba(11,42,91,0.8) 0%, transparent 100%);
        pointer-events: none;
    }
    .h-acc-title-vertical { 
        writing-mode: horizontal-tb; 
        text-orientation: mixed; 
        transform: none; 
        top: auto; 
        bottom: 15px; 
        left: 0; 
        width: 100%; 
        text-align: center; 
        font-size: 16px; 
        white-space: normal; 
        padding: 0 10px; 
        letter-spacing: 1px;
        opacity: 1 !important;
        z-index: 2;
    }
    .h-acc-content { display: none !important; } /* Hide descriptions on mobile to keep it clean */
    .h-acc-overlay { background: linear-gradient(to top, rgba(11,42,91,0.8) 0%, transparent 60%); }

    /* Cases Masonry specific for mobile swipe */
    .masonry-img { height: auto !important; aspect-ratio: 4 / 3; }
    .masonry-content { padding: 15px; }
    .case-title { font-size: 16px; margin-bottom: 5px; }

    /* Intl Cases Card (redesigned) mobile */
    .case-card-body { padding: 16px 18px 18px; }
    .case-card-title { font-size: 16px; min-height: 2.4em; margin-bottom: 10px; }
    .case-card-badge { top: 10px; left: 10px; padding: 4px 11px; font-size: 11px; }
    .case-card-meta { gap: 4px 12px; margin-bottom: 12px; font-size: 12px; }
    .case-card-desc { font-size: 13px; margin-bottom: 0; }
    .case-card-cta { margin-top: 12px; }
    .detail-layout .main-content .case-video-wrapper { margin-bottom: 24px; }

    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 30px !important; text-align: center; }
    .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-links { display: flex; flex-direction: column; align-items: center; }
    .social-links { justify-content: center; }
    .contact-form-wrap { padding: 0 15px; }
    .form-control { padding: 12px; font-size: 14px; }
    .contact-form-section { padding: 40px 0; }
    
    .header-top { display: none; } /* Hide the top thin bar on mobile to save space */
    .logo h2 { font-size: 18px !important; }
    .logo img { height: 35px !important; }
}

@media (max-width: 768px) {
    /* 首页手机端整体舒适度：减少横向溢出，统一节奏 */
    html, body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .section-title {
        margin-bottom: 24px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .section-title h2 {
        font-size: 24px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .section-title p {
        font-size: 13px;
        line-height: 1.65;
    }

    .btn,
    .btn-outline,
    .btn-orange {
        min-height: 40px;
        padding: 10px 18px;
        border-radius: 999px;
        font-size: 13px;
    }

    .mt-40 {
        margin-top: 24px !important;
    }

    /* 首页“一站式国际服务”/后台富文本流程类内容：手机端防止右侧文字被遮挡 */
    .service-flow-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .service-flow-container *,
    .intl-journey-list *,
    .intl-tech-grid *,
    .intl-screening-grid * {
        box-sizing: border-box;
        min-width: 0;
    }

    .service-flow-container [style*="display:flex"],
    .service-flow-container [style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .service-flow-container [style*="width:"],
    .service-flow-container [style*="min-width:"],
    .service-flow-container [style*="max-width:"] {
        max-width: 100% !important;
    }

    .service-flow-container [style*="position:absolute"],
    .service-flow-container [style*="position: absolute"] {
        position: static !important;
        transform: none !important;
    }

    .service-flow-container img {
        max-width: 100%;
        height: auto;
    }

    .service-flow-container h3,
    .service-flow-container h4,
    .service-flow-container p {
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .service-flow-container p {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    .intl-journey-list {
        width: 100%;
        max-width: 100%;
    }

    .intl-journey-item {
        width: 100%;
        padding: 14px 14px 15px;
        border: 1px solid rgba(11,42,91,0.08);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(11,42,91,0.05);
    }

    .intl-journey-item > div:last-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .intl-journey-icon {
        width: 32px;
        margin-top: 2px;
    }

    .intl-journey-icon i {
        font-size: 22px;
    }

    .intl-journey-title {
        font-size: 16px !important;
        line-height: 1.45 !important;
        margin-bottom: 6px !important;
        word-break: break-word;
    }

    .intl-journey-desc {
        font-size: 13px !important;
        line-height: 1.65 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .animate-up {
        transform: translateY(18px);
        transition-duration: 0.45s;
    }

    .intl-screening-wrapper {
        margin-top: 24px !important;
        padding-top: 22px !important;
    }

    .intl-screening-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .screening-icon-item {
        padding: 12px 8px !important;
        border-radius: 12px;
        background: #fff;
        border: 1px solid rgba(11,42,91,0.08);
    }

    .screening-icon-box {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 8px !important;
    }

    .screening-icon-box img {
        width: 30px !important;
        height: 30px !important;
    }

    .screening-icon-text {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .section-title h2 {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .hospital-hero-intro { grid-template-columns: 1fr; gap: 40px; margin-bottom: 20px; }
    .hospital-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: -30px; margin-bottom: 0; }
    .hospital-stats-grid .stat-card:last-child:nth-child(odd) { grid-column: span 2; }
    /* 国际部数据卡片：参照医院介绍，紧凑两列 */
    .intl-stats-flex { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -30px; padding: 0 15px; max-width: 100%; }
    .intl-stat-card { min-width: 0; padding: 18px 10px; border-radius: 10px; }
    .intl-stat-card .stat-icon { width: 44px; height: 44px; margin-bottom: 10px; }
    .intl-stat-card .stat-icon img { width: 24px; height: 24px; }
    .intl-stat-title { font-size: 15px; margin-bottom: 6px; }
    .intl-stat-desc { font-size: 12px; line-height: 1.5; }
    /* 国际部特色卡片：手机端单列 */
    .intl-features-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .intl-features-grid > div { padding: 20px !important; }
    .intl-features-grid .sub-title { font-size: 16px; margin-top: 0; }
    .intl-features-grid .intro-paragraph { font-size: 13px !important; }
    /* 国际部技术项手机端单列 */
    .intl-tech-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .intl-tech-item { padding: 15px !important; }
    /* 国际部旅程列表手机端紧凑 */
    .intl-journey-item { gap: 14px; margin-bottom: 28px; }
    .intl-journey-title { font-size: 17px; }
    .intl-journey-desc { font-size: 13px; }
    /* 国际部合作伙伴手机端单列 */
    .intl-partners-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
    .intl-partner-item { padding: 16px; }
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 26px; }
    .hospital-main-title { font-size: 22px; margin-bottom: 20px; line-height: 1.5; }
    .thematic-hero {
        height: 156px;
        min-height: auto;
        margin-top: 60px;
        aspect-ratio: unset;
        background-position: center center;
        padding: 0 18px;
    }
    .thematic-hero::before {
        background: linear-gradient(180deg, rgba(11,42,91,0.28) 0%, rgba(11,42,91,0.62) 100%);
    }
    .thematic-hero-content {
        width: 100%;
        max-width: 340px;
        padding-top: 4px;
    }
    .about-hero-kicker {
        justify-content: center;
        margin-bottom: 8px !important;
        font-size: 11px !important;
        letter-spacing: 1.4px !important;
        color: rgba(255,255,255,0.82) !important;
    }
    .about-hero-kicker::before {
        width: 18px;
    }
    .thematic-hero-content h1 {
        font-size: 25px;
        line-height: 1.2;
        margin-bottom: 7px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.28);
    }
    .thematic-hero-content p {
        font-size: 13px;
        line-height: 1.55;
        max-width: 30em;
        margin: 0 auto;
        color: rgba(255,255,255,0.94);
        text-shadow: 0 1px 5px rgba(0,0,0,0.24);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .inner-nav { justify-content: flex-start; padding: 0 15px; }
    .inner-nav li a { padding: 15px 20px; font-size: 15px; }
    .hospital-spotlight-grid { grid-template-columns: 1fr; }
    .hospital-spotlight { grid-column: auto; min-height: 320px; }
    .large-card { flex-direction: column; }
    .large-card-img { height: 250px; }
    .large-card-content { padding: 20px; }
    .flex-row { flex-direction: column; }
    .tech-card { flex-direction: column; text-align: center; }
    .tech-icon { margin-right: 0; margin-bottom: 20px; }
    .dev-history-axis { left: 10px; right: 10px; top: 48px; }
    .dev-history-card img { height: 230px; }
    .dev-history-nav-btn { top: 48px; }
    .dev-history-marquee { padding-left: 44px; padding-right: 44px; gap: 16px; }
    .dev-history-item { flex-basis: calc((100% - 16px) / 2); }
    .hospital-hero-intro { grid-template-columns: 1fr; gap: 50px; }
    .hospital-hero-intro-reverse { grid-template-columns: 1fr; }
    .hospital-hero-img img { height: 300px; }
    .hospital-hero-badge { left: 10px; right: 10px; bottom: -20px; padding: 16px 20px; justify-content: center; }
    .hospital-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
    .hospital-feature-card { padding: 20px 16px; }
    .honor-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .honor-card { padding: 24px 12px; }
    .honor-card i { font-size: 36px; margin-bottom: 12px; }
    .honor-card h4 { font-size: 14px; }
    .honor-card p { font-size: 12px; line-height: 1.5; }
     .case-list-clean { grid-template-columns: 1fr; gap: 30px; padding: 0; }
     .case-item-clean-img-wrapper { aspect-ratio: 4 / 3; height: auto; }
 }

@media (max-width: 560px) {
    .section-title h2 { font-size: 24px; }
    .hospital-main-title { font-size: 20px; }
    .hospital-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .about-feature-grid { grid-template-columns: 1fr; }
    .dev-history-marquee { padding-left: 38px; padding-right: 38px; }
    .dev-history-item { flex-basis: 86%; }
}

@media (max-width: 768px) {
    .intl-partner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .screening-icon-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .intl-tcm-grid, .intl-blood-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .intl-tcm-grid, .intl-blood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .intl-tech-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .intl-partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .intl-partners-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .exchange-scroll-content { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .exchange-scroll-content { grid-template-columns: repeat(2, 1fr); padding: 0 10px; }
    .exchange-tv-screen::-webkit-scrollbar { display: none; }
    .exchange-tv-screen { height: 400px; padding: 15px 0; }
    .exchange-intro .section-title h2 { font-size: 28px; }
    .exchange-intro .section-title h3 { font-size: 22px; }
    .exchange-tv-screen-wrapper::before {
        top: 10px;
        left: -30px;
        width: 100%;
        height: 100%;
        border-width: 6px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .exchange-scroll-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .exchange-lightbox-close { 
        top: -15px; 
        right: -15px; 
        width: 36px; 
        height: 36px; 
        font-size: 28px; 
    }
    .exchange-lightbox-content {
        padding: 10px;
        max-height: 85vh;
        justify-content: center;
    text-align: center;
}
    .exchange-lightbox img {
        max-height: 65vh;
    }
    .exchange-lightbox-desc { font-size: 14px; }
}

@media (max-width: 992px) {
    #doctors .section-title {
        margin-bottom: 5px; /* 取消医生介绍板块标题底部的留白 */
    }
    .doctor-layout-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .doctor-sidebar-menu {
        flex: none;
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 12px 16px;
        gap: 8px 8px;
        justify-content: flex-start;
    }
    .doctor-sidebar-menu .cat-btn {
        width: auto !important;
        flex: 0 0 auto !important;
        padding: 5px 10px !important;
        font-size: 13px;
        margin: 0;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
        border-radius: 4px !important;
    }
    .doctor-sidebar-menu .toggle-more-btn {
        width: auto !important;
        flex: 0 0 auto !important;
        margin: 4px auto 0 !important;
        min-width: 0;
        padding: 5px 14px !important;
        font-size: 13px;
        border-radius: 4px !important;
        color: var(--color-primary) !important;
        background: #fff !important;
        border: 1px dashed var(--color-primary) !important;
    }
    .doctor-sidebar-menu .toggle-more-btn i {
        color: var(--color-primary) !important;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .dept-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* 优化移动端翻转卡片尺寸 */
    .flip-card-container {
        height: 380px !important; /* 移动端再增大卡片高度 */
        margin-bottom: 20px !important;
        /* perspective 保持继承 PC 端的 1200px */
    }
    
    /* 禁用移动端的 hover 翻转（防止手机端点击后 hover 状态粘滞导致无法翻转回来） */
    .flip-card-container:hover .flip-card {
        transform: none !important; 
    }
    
    /* 完全通过 JS 的 .flipped 类来控制移动端翻转 */
    .flip-card-container.flipped .flip-card {
        transform: rotateY(180deg) !important;
    }
    
    .flip-card-front h3 {
        font-size: 22px !important; /* 增大前部标题 */
    }
    
    .flip-card-back-content {
        padding: 25px 20px !important; /* 增大内边距 */
    }
    
    .flip-card-back-content h3 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .flip-card-back-content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        /* 限制行数防止文字溢出，由于高度增大，可以放宽到 4 行 */
        display: -webkit-box !important;
        -webkit-line-clamp: 12 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .flip-card-back-content .btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    /* 取消 section 的大 padding 以节省空间 */
    .section { padding: 10px 0 25px 0 !important; } /* 极大缩减上方的留白 */
    .section-title { margin-bottom: 15px !important; }
    .section-title h2 { font-size: 20px !important; margin-bottom: 6px !important; }
    .section-title p { font-size: 12px !important; }
}

@media (max-width: 768px) {
    /* list_expert：手机端科室筛选与医生卡片稳定两列 */
    #expert-filters.doctor-sidebar-menu,
    #doctor-filters.doctor-sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        padding: 12px !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.07) !important;
    }

    #expert-filters.doctor-sidebar-menu .cat-btn,
    #doctor-filters.doctor-sidebar-menu .cat-btn {
        flex: 0 0 calc(33.333% - 6px) !important;
        width: auto !important;
        height: 34px !important;
        line-height: 22px !important;
        padding: 6px 8px !important;
        margin: 0 !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        color: var(--color-brand-gray) !important;
        background: #f6f8fb !important;
        border: 1px solid rgba(11, 42, 91, 0.08) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #expert-filters.doctor-sidebar-menu .cat-btn.active,
    #doctor-filters.doctor-sidebar-menu .cat-btn.active {
        color: #fff !important;
        background: var(--color-primary) !important;
        border-color: var(--color-primary) !important;
        box-shadow: 0 5px 14px rgba(239, 128, 33, 0.25) !important;
    }

    #expert-filters.doctor-sidebar-menu .toggle-more-btn,
    #doctor-filters.doctor-sidebar-menu .toggle-more-btn {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        color: var(--color-primary) !important;
        background: rgba(239, 128, 33, 0.08) !important;
        border: 1px solid rgba(239, 128, 33, 0.28) !important;
        box-shadow: none !important;
    }

    #expert-filters.doctor-sidebar-menu .toggle-more-btn i,
    #doctor-filters.doctor-sidebar-menu .toggle-more-btn i {
        color: var(--color-primary) !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    #expert-list.doctor-grid,
    #doctor-list.doctor-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding: 0 !important;
        align-items: stretch !important;
    }

    #expert-list.doctor-grid::after,
    #doctor-list.doctor-grid::after {
        content: none !important;
        display: none !important;
    }

    #expert-list .expert-card,
    #expert-list .expert-card-item,
    #doctor-list .expert-card,
    #doctor-list .expert-card-item {
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    #expert-list .expert-img,
    #doctor-list .expert-img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1.08 !important;
        border-radius: 12px 12px 0 0 !important;
    }

    #expert-list .expert-info,
    #doctor-list .expert-info {
        padding: 10px 9px 12px !important;
        min-width: 0 !important;
    }

    #expert-list .expert-card h3,
    #doctor-list .expert-card h3 {
        font-size: 15px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #expert-list .expert-title,
    #doctor-list .expert-title {
        min-height: 2.6em;
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    #expert-list .expert-desc,
    #doctor-list .expert-desc {
        font-size: 11px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
        -webkit-line-clamp: 2 !important;
    }

    #expert-list .expert-more-btn,
    #doctor-list .expert-more-btn {
        margin-top: auto !important;
        padding: 4px 12px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
        align-self: flex-start !important;
    }
}

@media (max-width: 768px) {
    /* 专家详情页：手机端医生名片 + 正文卡片，避免头像和文字挤成一团 */
    .expert-detail-layout {
        display: block !important;
        gap: 0 !important;
    }

    .expert-detail-card {
        display: grid !important;
        grid-template-columns: 118px minmax(0, 1fr) !important;
        column-gap: 16px !important;
        align-items: center !important;
        text-align: left !important;
        padding: 16px !important;
        margin-bottom: 18px !important;
        border-radius: 16px !important;
        background: linear-gradient(145deg, #fff 0%, #f8fbff 100%) !important;
        border: 1px solid rgba(11, 42, 91, 0.08) !important;
        box-shadow: 0 10px 28px rgba(11, 42, 91, 0.08) !important;
    }

    .expert-detail-photo {
        grid-row: 1 / 3 !important;
        width: 118px !important;
        max-width: 118px !important;
        margin: 0 !important;
        border-width: 3px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 20px rgba(11, 42, 91, 0.12) !important;
    }

    .expert-detail-name {
        grid-column: 2 !important;
        margin: 0 0 8px !important;
        font-size: 22px !important;
        line-height: 1.25 !important;
        color: var(--color-secondary) !important;
    }

    .expert-detail-meta {
        grid-column: 2 !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        color: var(--color-primary) !important;
        font-weight: 700 !important;
        word-break: break-word;
    }

    .expert-detail-main {
        display: block !important;
        padding: 18px 16px !important;
        border-radius: 16px !important;
        background: #fff !important;
        border: 1px solid rgba(11, 42, 91, 0.06) !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.05) !important;
    }

    .expert-detail-content {
        font-size: 14px !important;
        line-height: 1.8 !important;
        color: #444 !important;
    }

    .expert-detail-content p {
        margin-bottom: 14px !important;
        text-align: left !important;
    }

    .expert-detail-content img,
    .expert-detail-content table {
        max-width: 100% !important;
        height: auto !important;
    }

    .expert-detail-cta {
        margin-top: 20px !important;
        padding-top: 0 !important;
    }

    .expert-detail-cta .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 44px !important;
        border-radius: 999px !important;
    }
}

@media (max-width: 768px) {
    /* 设备详情页：手机阅读优先，推荐设备后置 */
    .equipment-detail-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .equipment-detail-layout .detail-main {
        order: 1 !important;
        width: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .equipment-detail-layout .equip-sidebar {
        order: 2 !important;
        width: 100% !important;
        position: static !important;
        margin-top: 6px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.06) !important;
    }

    .equip-detail-title {
        font-size: 22px !important;
        line-height: 1.35 !important;
        margin-bottom: 16px !important;
    }

    .equip-detail-cover {
        margin-left: -4px !important;
        margin-right: -4px !important;
        margin-bottom: 20px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 22px rgba(11, 42, 91, 0.08) !important;
    }

    .equip-detail-body.rich-text-content {
        margin-left: -2px !important;
        margin-right: -2px !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.85 !important;
        color: #3f4652 !important;
        background: transparent !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .equip-detail-body.rich-text-content p {
        margin: 0 0 15px !important;
        text-align: left !important;
    }

    .equip-detail-body.rich-text-content h1,
    .equip-detail-body.rich-text-content h2,
    .equip-detail-body.rich-text-content h3,
    .equip-detail-body.rich-text-content h4 {
        line-height: 1.35 !important;
        margin-top: 22px !important;
        margin-bottom: 12px !important;
        word-break: break-word;
    }

    .equip-detail-body.rich-text-content h3:not(.hospital-main-title) {
        font-size: 18px !important;
        padding-left: 10px !important;
        border-left-width: 3px !important;
    }

    .equip-detail-body.rich-text-content img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 14px auto !important;
        border-radius: 12px !important;
    }

    .equip-detail-body.rich-text-content table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        font-size: 13px !important;
    }

    .equip-detail-body.rich-text-content iframe,
    .equip-detail-body.rich-text-content video {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 200px;
        border-radius: 12px;
    }

    .equip-detail-cta {
        margin-top: 22px !important;
        text-align: center !important;
    }

    .equip-detail-cta .btn {
        width: 100% !important;
        min-height: 44px !important;
        padding: 11px 18px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
    }

    .equip-sidebar-head {
        padding: 18px 16px 12px !important;
        font-size: 16px !important;
    }

    .equip-sidebar-list {
        padding: 8px 10px 12px !important;
    }

    .equip-sidebar .sidebar-nav-link {
        padding: 10px 12px 10px 14px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    .equip-sidebar .sidebar-nav-text {
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        max-height: 3em !important;
    }
}

@media (max-width: 768px) {
    /* list_news：分类筛选统一为手机端胶囊按钮 */
    #newsFilterContainer.category-filter {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin: 0 0 18px !important;
        padding: 12px !important;
        border-radius: 14px !important;
        background: #fff !important;
        border: 1px solid rgba(11, 42, 91, 0.06) !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.06) !important;
    }

    #newsFilterContainer.category-filter .cat-btn {
        flex: 0 0 calc(33.333% - 6px) !important;
        width: auto !important;
        height: 34px !important;
        line-height: 22px !important;
        padding: 6px 8px !important;
        margin: 0 !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        color: var(--color-brand-gray) !important;
        background: #f6f8fb !important;
        border: 1px solid rgba(11, 42, 91, 0.08) !important;
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-shadow: none !important;
    }

    #newsFilterContainer.category-filter .cat-btn.active {
        color: #fff !important;
        background: var(--color-primary) !important;
        border-color: var(--color-primary) !important;
        box-shadow: 0 5px 14px rgba(239, 128, 33, 0.25) !important;
    }

    #newsListContainer {
        display: block !important;
    }

    #newsListContainer > a {
        display: block !important;
        margin-bottom: 14px !important;
    }

    #newsListContainer .news-list-item {
        margin-bottom: 0 !important;
        border-left: 0 !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.06) !important;
    }

    #newsListContainer .news-list-img {
        flex: none !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    #newsListContainer .news-info {
        padding: 16px !important;
    }

    #newsListContainer .news-info h3 {
        font-size: 17px !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #newsListContainer .news-info p {
        font-size: 13px !important;
        line-height: 1.65 !important;
        -webkit-line-clamp: 2 !important;
    }

    #newsListContainer .news-info-bottom {
        margin-top: 14px !important;
        padding-top: 12px !important;
        gap: 10px !important;
    }

    #newsListContainer .news-list-date,
    #newsListContainer .news-read-more {
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    /* 新闻详情页：手机阅读优先，最新资讯后置 */
    .news-detail-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .news-detail-layout .detail-main {
        order: 1 !important;
        width: 100% !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .news-detail-layout .equip-sidebar {
        order: 2 !important;
        width: 100% !important;
        position: static !important;
        margin-top: 8px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.06) !important;
    }

    .news-detail-layout .article-title {
        margin: 0 0 12px !important;
        font-size: 22px !important;
        line-height: 1.35 !important;
        text-align: left !important;
        color: var(--color-brand-gray) !important;
        word-break: break-word;
    }

    .news-detail-layout .article-meta {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 8px 14px !important;
        margin-bottom: 18px !important;
        padding-bottom: 14px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .news-detail-layout .article-meta span {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }

    .news-article-body.rich-text-content {
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: visible !important;
        font-size: 15px !important;
        line-height: 1.85 !important;
        color: #3f4652 !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .news-article-body.rich-text-content p {
        margin: 0 0 15px !important;
        text-align: left !important;
    }

    .news-article-body.rich-text-content h1,
    .news-article-body.rich-text-content h2,
    .news-article-body.rich-text-content h3,
    .news-article-body.rich-text-content h4 {
        line-height: 1.35 !important;
        margin-top: 22px !important;
        margin-bottom: 12px !important;
        word-break: break-word;
    }

    .news-article-body.rich-text-content img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 14px auto !important;
        border-radius: 12px !important;
    }

    .news-article-body.rich-text-content table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        font-size: 13px !important;
    }

    .news-article-body.rich-text-content iframe,
    .news-article-body.rich-text-content video {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 200px;
        border-radius: 12px;
    }

    .news-article-body .wechat-rich-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .news-article-body .wechat-rich-content section {
        max-width: 100% !important;
    }

    .news-detail-layout .article-nav {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 28px !important;
        padding-top: 16px !important;
        font-size: 13px !important;
    }

    .news-detail-layout .article-nav-link,
    .news-detail-layout .article-nav-disabled {
        display: block !important;
        width: 100% !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        background: #f8fbff !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 360px) {
    #newsFilterContainer.category-filter .cat-btn {
        flex-basis: calc(50% - 4px) !important;
    }
}

@media (max-width: 360px) {
    .expert-detail-card {
        grid-template-columns: 104px minmax(0, 1fr) !important;
        column-gap: 13px !important;
        padding: 14px !important;
    }

    .expert-detail-photo {
        width: 104px !important;
        max-width: 104px !important;
    }

    .expert-detail-name {
        font-size: 20px !important;
    }

    .expert-detail-meta {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 360px) {
    #expert-filters.doctor-sidebar-menu .cat-btn,
    #doctor-filters.doctor-sidebar-menu .cat-btn {
        flex-basis: calc(50% - 4px) !important;
    }

    #expert-list.doctor-grid,
    #doctor-list.doctor-grid {
        gap: 10px !important;
    }

    #expert-list .expert-info,
    #doctor-list .expert-info {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* --- Mobile Header Actions Update --- */
@media (max-width: 991px) {
    .mobile-header-actions {
        display: flex;
        align-items: center;
    }
    .mobile-direct-call {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s;
    }
    .mobile-direct-call:active {
        opacity: 0.6;
    }
}
@media (max-width: 768px) {
    .custom-logo-area { position: relative !important; top: auto !important; flex-direction: column; margin-bottom: 10px !important; }
    .custom-logo-img { margin-right: 0; margin-bottom: 5px; height: clamp(16px, 4vw, 20px) !important; width: auto !important; transform: none !important; position: static !important; }
    .custom-logo-text { border-left: none; border-top: 1px solid rgba(0, 0, 0, 0.1); padding-left: 0; padding-top: 4px; text-align: center; }
    .custom-logo-title { font-size: clamp(12px, 3vw, 14px); white-space: nowrap; color: var(--color-brand-gray); }
    .custom-logo-subtitle { font-size: clamp(8px, 1.8vw, 10px); white-space: nowrap; color: var(--color-brand-gray); }
    .custom-slide-wrapper h1 { font-size: clamp(16px, 4vw, 20px) !important; letter-spacing: 1px; margin-bottom: 5px !important; }
    .custom-slide-wrapper p { font-size: clamp(9px, 2vw, 11px) !important; letter-spacing: 1px !important; }
}

/* --- Floating Bar & Mobile Tools Panel --- */
@media (max-width: 768px) {
    .floating-bar {
        bottom: 80px !important;
        top: auto !important;
        transform: none !important;
    }
    .floating-bar .float-item:not(#back-to-top) {
        display: none !important; /* Hide contact tools on mobile floating bar */
    }
}

/* 跨国就医流程：移动端第一步二维码与文字上下堆叠 */
@media (max-width: 768px) {
    .medical-journey-steps li div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .medical-journey-steps li div[style*="display:flex"] > div:last-child {
        flex: 0 0 auto !important;
        margin: 16px auto 0 !important;
    }
    .medical-journey-steps li div[style*="display:flex"] > div:last-child img {
        width: 120px !important;
    }
}

/* 来华指南 detail_services：后台富文本移动端兜底 */
@media (max-width: 768px) {
    .services-detail-content {
        overflow-x: hidden;
        background: #fff;
    }

    .services-detail-content .section {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .services-detail-content .section-bg {
        background: #f7f9fc !important;
    }

    .services-detail-content .container {
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .services-detail-content .grid-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 28px !important;
    }

    .services-detail-content .card {
        padding: 18px 16px !important;
        border-radius: 14px !important;
        border-top-width: 0 !important;
        border-left: 4px solid var(--color-primary) !important;
        text-align: left !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.06) !important;
    }

    .services-detail-content .card i {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px !important;
        height: 42px !important;
        margin: 0 0 10px !important;
        border-radius: 12px;
        background: rgba(239, 128, 33, 0.09);
        color: var(--color-primary) !important;
        font-size: 22px !important;
    }

    .services-detail-content .card h3 {
        margin: 0 0 8px !important;
        font-size: 17px !important;
        line-height: 1.4 !important;
        color: var(--color-brand-gray) !important;
    }

    .services-detail-content .card p {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.75 !important;
        color: #505866 !important;
        text-align: left !important;
    }

    .services-detail-content .section-title {
        margin-bottom: 20px !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .services-detail-content .section-title h2,
    .services-detail-content h2 {
        font-size: 22px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    .services-detail-content .section-title p,
    .services-detail-content p {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    .services-detail-content .service-flow-container {
        margin: 18px 0 0 !important;
        padding: 0 !important;
    }

    .services-detail-content .flow-line {
        display: none !important;
    }

    .services-detail-content .flow-step-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .services-detail-content .flow-step {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        column-gap: 12px !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 15px !important;
        border-radius: 14px !important;
        text-align: left !important;
        box-shadow: 0 8px 22px rgba(11, 42, 91, 0.05) !important;
        border: 1px solid rgba(11, 42, 91, 0.06);
    }

    .services-detail-content .flow-step::before {
        display: none !important;
    }

    .services-detail-content .flow-step .icon-wrapper-circle {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        grid-row: 1 / 3;
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-color: rgba(239, 128, 33, 0.3) !important;
        background: #fff7f0 !important;
    }

    .services-detail-content .flow-step .icon-primary-lg {
        font-size: 20px !important;
        color: var(--color-primary) !important;
    }

    .services-detail-content .flow-step .step-title {
        margin: 0 0 5px !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .services-detail-content .flow-step .step-desc {
        margin: 0 !important;
        font-size: 12.5px !important;
        line-height: 1.6 !important;
        color: #5d6675 !important;
    }

    .services-detail-content .medical-journey-wrap {
        margin-top: 26px !important;
        padding: 20px 16px !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 24px rgba(11, 42, 91, 0.06) !important;
    }

    .services-detail-content .medical-journey-wrap > div:first-child {
        margin-bottom: 22px !important;
        text-align: left !important;
    }

    .services-detail-content .medical-journey-steps {
        padding-left: 18px !important;
        border-left-width: 2px !important;
    }

    .services-detail-content .medical-journey-steps li {
        margin-bottom: 18px !important;
    }

    .services-detail-content .medical-journey-steps li > span {
        left: -33px !important;
        width: 26px !important;
        height: 26px !important;
        line-height: 26px !important;
        font-size: 12px !important;
    }

    .services-detail-content .medical-journey-steps li > div {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .services-detail-content .medical-journey-steps strong {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    .services-detail-content .medical-journey-steps div {
        max-width: 100% !important;
        word-break: break-word;
    }

    .services-detail-content .medical-journey-steps li div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .services-detail-content .medical-journey-steps li div[style*="display:flex"] > div:last-child {
        flex: 0 0 auto !important;
        width: 150px !important;
        max-width: 100% !important;
        margin: 12px auto 0 !important;
    }

    .services-detail-content .medical-journey-steps li div[style*="display:flex"] > div:last-child img {
        width: 120px !important;
        max-width: 100% !important;
    }

    .services-detail-content img,
    .services-detail-content table,
    .services-detail-content iframe,
    .services-detail-content video {
        max-width: 100% !important;
    }
}

/* 关于海吉亚 detail_about：手机端阅读与模块密度优化 */
@media (max-width: 768px) {
    .inner-nav-wrapper {
        position: sticky;
        top: 55px;
        z-index: 30;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 6px 18px rgba(11, 42, 91, 0.06);
    }

    .inner-nav-wrapper .container {
        padding-left: 0;
        padding-right: 0;
    }

    .inner-nav {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding: 8px 14px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .inner-nav::-webkit-scrollbar {
        display: none;
    }

    .inner-nav li {
        flex: 0 0 auto;
    }

    .inner-nav li a {
        display: block;
        padding: 8px 13px !important;
        border-radius: 999px;
        background: #f6f8fb;
        font-size: 13px !important;
        line-height: 1.3;
        white-space: nowrap;
    }

    .inner-nav li a.active {
        background: var(--color-primary);
        color: #fff;
    }

    .about-section {
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }

    .about-section .section-title {
        margin-bottom: 20px !important;
        text-align: left !important;
    }

    .about-section .section-title h2 {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }

    .about-section .section-title p {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    .about-section .hospital-hero-intro {
        gap: 20px !important;
    }

    .about-section .hospital-hero-text h3 {
        font-size: 22px !important;
        line-height: 1.38 !important;
        margin-bottom: 12px !important;
    }

    .about-section .hospital-hero-text p {
        font-size: 14px !important;
        line-height: 1.75 !important;
        margin-bottom: 12px !important;
        text-align: left !important;
    }

    .about-section .hospital-hero-text > div[style*="display:inline-block"] {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 4px 0 18px !important;
    }

    .about-section .hospital-hero-text > div[style*="display:inline-block"] > div {
        display: block !important;
        margin: 0 !important;
        padding: 12px 6px !important;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(11, 42, 91, 0.05);
        text-align: center;
    }

    .about-section .hospital-hero-text > div[style*="display:inline-block"] h3 {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }

    .about-section .hospital-hero-text > div[style*="display:inline-block"] h3 span {
        font-size: 11px !important;
    }

    .about-section .hospital-hero-text > div[style*="display:inline-block"] p {
        font-size: 11px !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .about-section .hospital-hero-img img {
        width: 100%;
        height: auto !important;
        max-height: 240px;
        object-fit: cover;
        border-radius: 14px;
    }

    .about-section .hospital-hero-intro > .container {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 8px !important;
    }

    .about-section .honor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .about-section .honor-card {
        padding: 16px 10px !important;
        border-radius: 12px !important;
        border-top-width: 0 !important;
    }

    .about-section .honor-card i {
        font-size: 26px !important;
        margin-bottom: 8px !important;
    }

    .about-section .honor-card h4 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin-bottom: 5px !important;
    }

    .about-section .honor-card p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    .about-section .hospital-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 26px !important;
    }

    .about-section .hospital-feature-card {
        padding: 16px 10px !important;
        border-radius: 12px !important;
    }

    .about-section .hospital-feature-card i {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }

    .about-section .hospital-feature-card h4 {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .about-section .hospital-feature-card p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    .about-hosp-title {
        margin-top: 26px !important;
        font-size: 20px !important;
        text-align: left !important;
    }

    .about-hosp-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .about-hosp-card {
        display: block;
        border-radius: 12px;
        overflow: hidden;
    }

    .about-hosp-img {
        height: 106px !important;
        min-height: 0;
    }

    .about-hosp-info {
        padding: 10px 9px 11px !important;
        text-align: center !important;
    }

    .about-hosp-info h4 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin-bottom: 4px !important;
    }

    .about-hosp-info p {
        font-size: 11px !important;
        line-height: 1.45 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #about-tech .grid-2 {
        gap: 12px !important;
    }

    #about-tech .tech-card {
        display: grid !important;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px !important;
        align-items: start !important;
        padding: 16px !important;
        text-align: left !important;
        border-radius: 14px !important;
    }

    #about-tech .tech-icon {
        width: 46px !important;
        margin: 0 !important;
        font-size: 28px !important;
    }

    #about-tech .tech-card h4 {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    #about-tech .tech-card p {
        font-size: 12px !important;
        line-height: 1.55 !important;
    }

    #about-history .dev-history {
        margin-top: 20px !important;
    }

    #about-history .dev-history-axis {
        display: none !important;
    }

    #about-history .dev-history-nav-btn {
        top: 28px !important;
        width: 34px !important;
        height: 34px !important;
    }

    #about-history .dev-history-marquee {
        padding: 4px 42px 0 !important;
        gap: 14px !important;
    }

    #about-history .dev-history-item {
        flex: 0 0 86% !important;
    }

    #about-history .dev-history-top {
        margin-bottom: 10px !important;
    }

    #about-history .dev-history-year {
        font-size: 18px !important;
        padding: 5px 10px !important;
    }

    #about-history .dev-history-card img {
        height: 190px !important;
    }

    #about-history .dev-history-card::after {
        opacity: 1 !important;
        background: linear-gradient(to bottom, rgba(11,42,91,0.18), rgba(11,42,91,0.86)) !important;
    }

    #about-history .dev-history-desc {
        opacity: 1 !important;
        transform: none !important;
        padding: 14px !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 360px) {
    .about-section .hospital-hero-text > div[style*="display:inline-block"] {
        grid-template-columns: 1fr !important;
    }

    .about-hosp-showcase {
        gap: 10px !important;
    }

    .about-hosp-img {
        height: 92px !important;
    }
}
