@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,900&display=swap");
 .clear {
  font-size: 0;
  line-height: 0;
  clear: both;
  overflow: hidden;
  zoom: 1;
}
.fr {
  float: right;
}
.fl {
  float: left;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: #c01701;
  transition: all 0.2s linear 0s;
}
        /* ===== 全局重置 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        

        .detail-container {
            max-width: 88%;
            width: 100%;
            background: #ffffff;
            border-radius: 28px;
            /*box-shadow: 0 12px 48px rgba(0, 20, 40, 0.08);*/
            padding: 10% 0;
            margin: 0 auto;
            transition: all 0.2s;
        }

        /* ===== 返回导航 ===== */
        .back-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 32px;
            padding-bottom: 16px;
            border-bottom: 1px solid #edf2f7;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            color: #7b4b8c;
            font-weight: 500;
            font-size: 15px;
            transition: color 0.2s, transform 0.2s;
            background: #f0f6fe;
            padding: 8px 18px;
            border-radius: 40px;
        }

        .back-link:hover {
            color: #1a5fb0;
            background: #e4eefa;
            transform: translateX(-3px);
        }

        .back-link svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            stroke-width: 2.5;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* ===== 主体布局：左右 ===== */
        .detail-main {
            display: flex;
            gap: 44px;
            align-items: flex-start;
            flex-wrap: wrap;
        }

        /* ===== 左侧：头像 ===== */
        .detail-avatar-wrapper {
            flex: 0 0 420px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .detail-avatar {
            width: 100%;
    height:30vw;
    border-radius: 20px;
    object-fit: cover;
    background: #e8edf3;
    border: 0px solid #ffffff;
    box-shadow: 0 8px 30px rgba(0, 20, 40, 0.12);
    transition: border-color 0.3s;
        }

        .detail-avatar:hover {
            border-color: #7b4b8c;
        }

        /* ===== 右侧：信息 ===== */
        .detail-info {
            flex: 1;
            min-width: 260px;
        }

        .detail-name {
            font-size: 32px;
            font-weight: 700;
            color: #0b2b44;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
        }

        .detail-title-wrap {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px 16px;
            margin-bottom: 18px;
        }

        .detail-title-badge {
            font-size: 16px;
            font-weight: 500;
            color: #7b4b8c;
            background: #eaf2fb;
            padding: 4px 20px;
            border-radius: 40px;
            letter-spacing: 0.3px;
        }

        .detail-meta-tag {
            font-size: 14px;
            color: #6b7a8a;
            background: #f0f4f9;
            padding: 4px 16px;
            border-radius: 40px;
        }

        /* ===== 擅长标签 ===== */
        .detail-specialty {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 24px;
            padding-top: 4px;
        }

        .detail-specialty span {
            background: #f0f4f9;
            padding: 6px 20px;
            border-radius: 40px;
            font-size: 14px;
            color: #1f3a57;
            font-weight: 500;
            border: 1px solid rgba(42, 125, 225, 0.10);
            transition: background 0.2s, border-color 0.2s;
        }

        .detail-specialty span:hover {
            background: #eaf2fb;
            border-color: #7b4b8c;
        }

        /* ===== 介绍 ===== */
        .detail-intro {
            margin-bottom: 28px;
        }

        .detail-intro-label {
            font-size: 16px;
            font-weight: 600;
            color: #0b2b44;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detail-intro-label::after {
            content: '';
            flex: 1;
            height: 2px;
            background: linear-gradient(90deg, #dce5ef, transparent);
        }

        .detail-intro-text {
            font-size: 16px;
            line-height: 1.8;
            color: #2d4055;
            background: #f8fafc;
            padding: 20px 24px;
            border-radius: 16px;
            border-left: 4px solid #7b4b8c;
            box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
        }

        .detail-intro-text p {
            margin-bottom: 12px;
        }

        .detail-intro-text p:last-child {
            margin-bottom: 0;
        }

        /* ===== 操作按钮 ===== */
        .detail-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-top: 8px;
        }

        .btn-primary {
            background: #7b4b8c;
            border: none;
            color: #ffffff;
            padding: 12px 36px;
            border-radius: 40px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
            letter-spacing: 0.4px;
            box-shadow: 0 4px 16px rgba(42, 125, 225, 0.25);
        }

        .btn-primary:hover {
            background: #1a6bc7;
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(42, 125, 225, 0.35);
        }

        .btn-primary:active {
            transform: scale(0.97);
        }

        .btn-outline {
            background: transparent;
            border: 1.5px solid #7b4b8c;
            color: #7b4b8c;
            padding: 12px 32px;
            border-radius: 40px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            letter-spacing: 0.3px;
        }

        .btn-outline:hover {
            background: #7b4b8c;
            color: #ffffff;
            box-shadow: 0 6px 20px rgba(42, 125, 225, 0.25);
            transform: translateY(-2px);
        }

        .btn-outline:active {
            transform: scale(0.97);
        }

        /* ===== 底部相关信息 ===== */
        .detail-footer-note {
            margin-top: 40px;
            padding-top: 24px;
            border-top: 1px solid #edf2f7;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 14px;
            color: #7a8a9a;
        }

        .detail-footer-note .clinic-info {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
        }

        .detail-footer-note .clinic-info span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .detail-footer-note .clinic-info svg {
            width: 16px;
            height: 16px;
            stroke: #7a8a9a;
            stroke-width: 2;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 820px) {
            .detail-container {
                padding: 28px 24px 32px;
                border-radius: 20px;
            }

            .detail-main {
                flex-direction: column;
                align-items: center;
                gap: 28px;
            }

            .detail-avatar-wrapper {
                flex: 0 0 auto;
            }

            .detail-avatar {
                width: 160px;
                height: 160px;
            }

            .detail-info {
                width: 100%;
                min-width: 0;
            }

            .detail-name {
                font-size: 26px;
                text-align: center;
            }

            .detail-title-wrap {
                justify-content: center;
            }

            .detail-specialty {
                justify-content: center;
            }

            .detail-intro-text {
                padding: 16px 18px;
                font-size: 15px;
            }

            .detail-actions {
                justify-content: center;
            }

            .detail-footer-note {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .detail-footer-note .clinic-info {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 16px 0px;
            }

            .detail-container {
                padding: 20px 16px 24px;
                border-radius: 16px;
            }

            .back-nav {
                margin-bottom: 20px;
                padding-bottom: 12px;
            }

            .back-link {
                font-size: 13px;
                padding: 6px 14px;
            }

            .detail-avatar {
                width: 120px;
                height: 120px;
                border-width: 4px;
            }

            .detail-name {
                font-size: 22px;
            }

            .detail-title-badge {
                font-size: 14px;
                padding: 3px 14px;
            }

            .detail-meta-tag {
                font-size: 12px;
                padding: 3px 12px;
            }

            .detail-specialty span {
                font-size: 12px;
                padding: 4px 14px;
            }

            .detail-intro-text {
                font-size: 14px;
                padding: 14px 16px;
                border-left-width: 0px;
            }

            .btn-primary,
            .btn-outline {
                font-size: 14px;
                padding: 10px 24px;
                width: 100%;
                justify-content: center;
            }

            .detail-actions {
                flex-direction: column;
                width: 100%;
            }

            .detail-footer-note {
                font-size: 12px;
            }
        }

        @media (max-width: 360px) {
            .detail-avatar {
                width: 96px;
                height: 96px;
            }

            .detail-name {
                font-size: 19px;
            }

            .detail-title-badge {
                font-size: 12px;
                padding: 2px 12px;
            }

            .detail-intro-text {
                font-size: 13px;
                padding: 12px 14px;
            }
        }
/* ===== 移动端适配 - 文字大小使用 vw 单位 ===== */
/* 请将本段代码放置在现有样式之后（</style> 之前） */
@media (max-width: 820px) {

    /* ---------- 返回导航 ---------- */
    .back-link {
        font-size: 3.2vw !important;
        /* 最小约 3.2vw，不小于 3vw */
        padding: 6px 14px !important;
    }

    /* ---------- 姓名 ---------- */
    .detail-name {
        font-size: 5.5vw !important;
        text-align: center !important;
    }

    /* ---------- 职位标签 ---------- */
    .detail-title-badge {
        font-size: 4vw !important;
    }

    /* ---------- 附加信息标签 ---------- */
    .detail-meta-tag {
        font-size: 3vw !important;
        /* 最小 3vw */
    }

    /* ---------- 擅长标签 ---------- */
    .detail-specialty span {
        font-size: 3.2vw !important;
    }

    /* ---------- 介绍标题 ---------- */
    .detail-intro-label {
        font-size: 4vw !important;
    }

    /* ---------- 介绍正文 ---------- */
    .detail-intro-text {
        font-size: 3.8vw !important;
        padding: 16px 18px !important;
    }
    .detail-intro-text p {font-size: 3.8vw !important;
        padding: 3% !important;}

    /* ---------- 按钮 ---------- */
    .btn-primary,
    .btn-outline {
        font-size: 3.8vw !important;
        padding: 10px 24px !important;
    }

    /* ---------- 底部信息 ---------- */
    .detail-footer-note {
        font-size: 3vw !important;
        /* 最小 3vw */
    }

    /* ---------- 布局微调（仅调整间距，不改变原有布局结构） ---------- */
    .detail-container {
        padding:23vw 0px 0 0 !important;
        border-radius: 16px !important;
    }

    .detail-main {
        gap: 20px !important;
    }

    .detail-avatar {
        width: 40vw !important;
        height: 40vw !important;
        max-width: 180px !important;
        max-height: 180px !important;
    }

    .detail-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .detail-actions .btn-primary,
    .detail-actions .btn-outline {
        width: 100% !important;
        text-align: center !important;
    }

    .detail-footer-note {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .detail-footer-note .clinic-info {
        justify-content: center !important;
    }
}