@charset "utf-8";
/* CSS Document */

 * {    text-decoration: none;
            margin: 0;
            padding: 0;
            box-sizing: border-box;            
        }

        body {
            background-color: #fff;
            scroll-behavior: smooth;
        }     
		
		.mbx {
    margin:5vw 0 0px auto;
    line-height: 40px;
    color: #666;
    white-space: nowrap;
}

.mbx span {
    font-size: 14px;
    padding-left: 5px;
    color: #4671fb;
}

.mbx a {
    color: #4671fb;
}   

/* ===== 通用标题 ===== */
.keshi{width: 100%;
    overflow: hidden;
    margin: 1vw 0 3vw 0;}
.keshi dd{    color: #666;
    font-size: 16px;
    line-height: 2;
    padding-bottom: 2vw;}
.keshi dd span{font-weight: bold;
    color: #333;}
.keshi h3{font-size: 26px;margin-bottom: 1vw;border-bottom: 1px dashed #ddd;padding-bottom: 1vw;
    font-weight: bold;
    color: #333;}
.keshi ul{background: #fff;padding:0.2%;
    overflow: hidden;
    border-radius: 20px;}
.keshi ul li{list-style: none;
    float: left;
    margin-right: 1vw;
    border: 1px solid #ddd;
    padding: 0.5vw 2vw;
    border-radius: 10px;
    background: #fff;}
.keshi ul li img{display: block;
    height: 50px;
    margin: 6px auto 0px auto;
    padding: 10px;
    background: #fff;
    border-radius: 50%;}
.keshi ul li a{    border: 0px solid #ddd;
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    height: 100px;
    width: auto;
    text-align: center;
    color: #333;
    line-height: 2vw;}
.keshi ul li:hover a{color: #4671fb;}

 /* 下部：六个仪器始终不变 */
        .instruments-section {
           margin-top: 5vw;
    background-color: #f5f7fc;
    padding: 5vw 0;
        }
        .instruments-title {
            font-weight: 700;
    font-size: 26px;
    color: #1b2f44;
    width: 78%;
    margin: 0 auto 1vw auto;
    margin-bottom: 2vw;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 1vw;
        }
        .instruments-grid {width: 78%;
    margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(354px, 0fr));
            gap: 20px;
        }
        .instrument-item {            
            text-align: center;
            transition: all 0.2s;            
            cursor: default;
        }
        .instrument-item:hover {
            transform: translateY(-5px);            
        }
        .instrument-icon {
            font-size: 42px;
            color: #4671fb;
            margin-bottom: 12px;
        }
		.instrument-icon img{width:100%;border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;}
        .instrument-item span {text-shadow: 2px 2px 4px #000000;
            display: block;
    font-weight: bold;
    font-size: 16px;
    color: #ffff;
    position: relative;
    top: -3.5vw;
        }
        @media (max-width: 860px) {
            .dept-tab-grid {
                flex-direction: column;
            }
            .tab-categories {
                flex-direction: row;
                flex-wrap: wrap;
                flex: auto;
            }
            .tab-btn {
                flex: 1 0 auto;
                justify-content: center;
            }
            .disease-name h3 {
                font-size: 22px;
            }
        }

    /* ===== 移动端适配样式 ===== */
    @media (max-width: 768px) {

        /* ---- 容器 ---- */
        .container {
            padding: 0 3.5vw;
            width: 100%;
            overflow: hidden;
        }

        /* ---- 面包屑 ---- */
        .mbx {
            margin: 4vw 0 3vw 0;
            line-height: 6vw;
            white-space: normal;
        }
        .mbx span,
        .mbx a {
            font-size: 3.5vw !important;
            padding-left: 1vw;
        }
        .mbx span {
            padding-left: 1vw;
        }

        /* ---- 科室区块 ---- */
        .keshi {
            margin: 3vw 0 5vw 0;
            width: 100%;
            overflow: hidden;
        }
        .keshi h3 {
            font-size: 4.8vw !important;
            padding-bottom: 2.5vw;
            margin-bottom: 2.5vw;
            border-bottom: 1px dashed #ddd;
            font-weight: bold;
            color: #333;
        }
        .keshi dd {
            font-size: 3.6vw !important;
            padding-bottom: 3.5vw;
            line-height: 6vw;
            color: #666;
        }
        .keshi dd span {
            font-size: 3.6vw !important;
            font-weight: bold;
            color: #333;
        }
        .keshi dd br {
            display: block;
            content: "";
            margin: 0.5vw 0;
        }

        /* ---- 科室列表（图标网格） ---- */
        .keshi ul {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 2.5vw 2vw;
            padding: 0 !important;
            background: transparent !important;
            border-radius: 0 !important;
            overflow: visible !important;
        }
        .keshi ul li {
            float: none !important;
            flex: 0 0 calc(50% - 2vw) !important;
            max-width: calc(50% - 2vw);
            margin: 0 !important;
            padding: 3vw 1vw 2.5vw 1vw !important;
            border: 1px solid #e8ecf1 !important;
            border-radius: 14px !important;
            background: #ffffff !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            min-height: 22vw;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            transition: all 0.2s;
            list-style: none !important;
        }
        .keshi ul li img {
            display: block !important;
            height: 9vw !important;
            max-height: 52px;
            min-height: 32px;
            margin: 0 auto 1.5vw auto !important;
            padding: 1.5vw !important;
            background: #f5f7fc;
            border-radius: 50%;
            object-fit: contain;
            width: auto;
        }
        .keshi ul li a {
            display: block !important;
            font-size: 3.6vw !important;
            font-weight: 500;
            line-height: 5.5vw !important;
            height: auto !important;
            width: 100% !important;
            padding: 0 !important;
            border: none !important;
            border-radius: 0 !important;
            text-align: center !important;
            color: #333 !important;
            background: transparent !important;
            word-break: break-word;
        }
        .keshi ul li:hover a {
            color: #4671fb !important;
        }
        .keshi ul li:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(70, 113, 251, 0.10);
            border-color: #4671fb;
        }

        /* ---- 仪器设备 ---- */
        .instruments-section {
            margin-top: 8vw !important;
            padding: 6vw 0 8vw 0 !important;
            background-color: #f5f7fc;
        }
        .instruments-title {
            font-size: 4.8vw !important;
            font-weight: 700;
            color: #1b2f44;
            width: 92% !important;
            margin: 0 auto 3vw auto !important;
            padding-bottom: 2.5vw !important;
            border-bottom: 1px dashed #ddd;
        }
        .instruments-grid {
            width: 92% !important;
            margin: 0 auto !important;
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 3.5vw !important;
        }
        .instrument-item {
            text-align: center;
            transition: all 0.2s;
            cursor: default;
            background: #ffffff;
            border-radius: 16px;
            padding: 0 0 2vw 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
            overflow: hidden;
            position: relative;
        }
        .instrument-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 20px rgba(70, 113, 251, 0.12);
        }
        .instrument-icon {
            font-size: 0;
            margin-bottom: 0;
            line-height: 0;
        }
        .instrument-icon img {
            width: 100% !important;
            border-top-left-radius: 16px !important;
            border-bottom-right-radius: 16px !important;
            display: block;
        }
        .instrument-item span {
            display: block !important;
            font-weight: 700 !important;
            font-size: 3.5vw !important;
            color: #1b2f44 !important;
            position: relative !important;
            top: auto !important;
            padding: 2vw 1.5vw 2.5vw 1.5vw !important;
            background: #ffffff;
            line-height: 1.4;
            letter-spacing: 0.02em;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
        }
    }

    /* ---- 小屏手机（≤480px）微调 ---- */
    @media (max-width: 480px) {
        .keshi ul li {
            flex: 0 0 calc(50% - 2.5vw) !important;
            max-width: calc(50% - 2.5vw);
            min-height: 26vw;
            padding: 3.5vw 1vw 3vw 1vw !important;
        }
        .keshi ul li img {
            height: 10vw !important;
            min-height: 28px;
            margin-bottom: 2vw !important;
        }
        .keshi ul li a {
            font-size: 3.8vw !important;
            line-height: 5.8vw !important;
        }
        .keshi h3 {
            font-size: 5vw !important;
        }
        .instruments-grid {
            gap: 4vw !important;
        }
        .instrument-item span {
            font-size: 3.8vw !important;
            padding: 2.5vw 1.5vw 3vw 1.5vw !important;
        }
        .instruments-title {
            font-size: 5vw !important;
        }
        .mbx span,
        .mbx a {
            font-size: 3.8vw !important;
        }
        .keshi dd {
            font-size: 3.8vw !important;
            line-height: 6.5vw;
        }
        .keshi dd span {
            font-size: 3.8vw !important;
        }
    }

    /* ---- 大屏手机 / 小平板（≤860px）额外优化 ---- */
    @media (max-width: 860px) and (min-width: 769px) {
        .keshi ul li {
            flex: 0 0 calc(33.33% - 2vw) !important;
            max-width: calc(33.33% - 2vw);
            min-height: 20vw;
        }
        .keshi ul li img {
            height: 8vw !important;
        }
        .keshi ul li a {
            font-size: 3.2vw !important;
            line-height: 5vw !important;
        }
        .instruments-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 3vw !important;
        }
        .instrument-item span {
            font-size: 3.2vw !important;
        }
    }
