/* 轮播图部分样式 */
.banner-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧轮播广告 */
.banner-carousel {
    flex: 1;
    height: 436px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.bannerSwiper {
    width: 100%;
    height: 100%;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.banner-link:not([href]) {
    cursor: default;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper 自定义样式 */
.bannerSwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.bannerSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #B98751;
}

/* 隐藏 Swiper 默认按钮 */
.bannerSwiper .swiper-button-prev,
.bannerSwiper .swiper-button-next {
    display: none;
}

/* Banner 自定义导航按钮 - 与视频讲坛样式一致 */
.adver-button-prev,
.adver-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.adver-button-prev {
    left: 10px; /* 改到内部 */
}

.adver-button-next {
    right: 10px; /* 改到内部 */
}

.adver-button-prev:hover,
.adver-button-next:hover {
    background: #f5f5f5;
    border-color: #B98751;
    color: #B98751;
    box-shadow: 0 4px 12px rgba(185, 135, 81, 0.3);
}

/* Swiper 禁用状态 */
.adver-button-prev.swiper-button-disabled,
.adver-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e5e5e5;
    color: #ccc;
}

.adver-button-prev svg,
.adver-button-next svg {
    width: 24px;
    height: 24px;
}

/* 右侧查询模块 */
.query-modules {
    width: 248px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.query-card {
    background-color: #fff;
    border: 1px solid #E5E5E5;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-image: url('../assets/images/home_top_renzheng_bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.query-card.puxi {
    height: 168px;
    background-image: url('../assets/images/home_top_renzheng_bg2.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.query-card:hover {
    background-color: #F0D7BC;
}

.query-title {
    font-size: 18px;
    color: #734C22;
    font-weight: 600;
    margin-bottom: 15px;
}

.query-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.query-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.query-btn {
    display: inline-block;
    background-color: #B98751;
    color: #fff;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.query-btn:hover {
    background-color: #A67643;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(185, 135, 81, 0.3);
}

.title-container {
    width: 136px;
    height: 43px;
    background: url("../assets/images/title_bg.png") no-repeat center;
    background-size: cover;
}

.title-container span {
    font-size: 30px;
    font-weight: 500;
}

.see-more {
    line-height: 14px;
    font-size: 14px;
}

/* 视频讲坛样式 */
.video-platform {
    margin-bottom: 40px;
    padding-top: 20px; /* 为卡片上移留出空间 */
}

.video-platform-swiper {
    position: relative;
    margin-top: 20px;
    overflow: visible; /* 确保不裁剪 */
}

/* Swiper 容器 */
.videoSwiper {
    width: 100%;
    overflow: hidden; /* 修正 overflow 设置 */
    padding-top: 25px; /* 增加顶部内边距，防止 hover 上移被裁剪 */
    padding-bottom: 25px; /* 增加底部内边距，容纳阴影 */
    margin-top: -25px; /* 抵消 padding-top 带来的位移 */
}

.videoSwiper .swiper-wrapper {
    overflow: visible; /* wrapper 也需要设置 */
}

.videoSwiper .swiper-slide {
    height: auto;
    overflow: visible; /* slide 也需要设置 */
}

/* 视频卡片 */
.video-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 344px; /* 固定高度 */
    width: 100%; /* 宽度由 Swiper slide 决定，为 304px */
}

/* 视频封面 */
.video-cover {
    position: relative;
    height: 228px;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 比例 */
    background-color: #f0f0f0;
    overflow: hidden;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频信息 */
.video-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.video-title {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
    /* 确保两行高度 */
    margin: 0;
}
.video-card:hover .video-title{
    color: #734C22;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.video-views {
    color: #666;
}

.video-date {
    color: #999;
}

/* 导航按钮 - Swiper 样式（绝对定位，不占空间） */
.video-button-prev,
.video-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-button-prev {
    left: -20px; /* 左侧按钮位置 */
}

.video-button-next {
    right: -20px; /* 右侧按钮位置 */
}

.video-button-prev:hover,
.video-button-next:hover {
    background: #f5f5f5;
    border-color: #B98751;
    color: #B98751;
    box-shadow: 0 4px 12px rgba(185, 135, 81, 0.3);
}

/* Swiper 禁用状态 */
.video-button-prev.swiper-button-disabled,
.video-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e5e5e5;
    color: #ccc;
}

.video-button-prev svg,
.video-button-next svg {
    width: 24px;
    height: 24px;
}

/* 活动动态样式 */
.active-platform {
    margin-bottom: 40px;
}

.active-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    margin-top: 20px;
    background-color: #FFFFFF;
}

/* 左侧封面图 */
.active-cover {
    width: 50%;
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.active-cover a {
    display: block;
    width: 100%;
    height: 100%;
}

.active-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.active-cover:hover img {
    transform: scale(1.05);
}

/* 右侧活动列表 */
.active-list {
    width: 50%;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 允许 flex 子项收缩 */
    overflow: hidden; /* 防止溢出 */
}

/* 活动项 */
.active-item {
    padding: 5px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%; /* 限制最大宽度 */
    overflow: hidden; /* 防止内容溢出 */
    box-sizing: border-box; /* 确保 padding 不会增加宽度 */
}

.active-item:hover {
    background: #FFF7ED;
    border-color: #B98751;
}

.active-item.active {
    background: rgba(115, 76, 34, 0.1);
}

.active-item.active .active-title {
    color: #734C22;
    font-weight: 600;
}

/* 活动标题 */
.active-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 活动正文 */
.active-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* 发布时间 */
.active-date {
    font-size: 12px;
    color: #999;
}

/* 心得分享样式 */
.reflections-content {
    margin-top: 20px;
}

/* 心得卡片 */
.reflection-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 心得链接 */
.reflection-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 心得标题 */
.reflection-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.reflection-link:hover .reflection-title {
    color: #734C22;
    font-weight: 700;
}

/* 心得正文 */
.reflection-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* 心得图片网格 */
.reflection-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.reflection-img-link {
    display: block;
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0; /* 防止图片被压缩 */
}

.reflection-img-link img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reflection-img-link:hover img {
    transform: scale(1.1);
}

/* 暂无图片提示 */
.reflection-no-images {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #999;
    font-size: 14px;
}

/* 心得元数据 */
.reflection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.reflection-stats {
    display: flex;
    gap: 20px;
}

.reflection-views,
.reflection-likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reflection-views svg,
.reflection-likes svg {
    width: 16px;
    height: 16px;
}

.reflection-date {
    color: #999;
}

/* 临床案例样式 */
.case-list {
    margin-top: 20px;
    border-radius: 10px;
    background-color: #FFFFFF;
}

/* 案例项 */
.case-item {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

/* 案例封面 */
.case-cover {
    display: block;
    width: 224px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.case-cover img {
    width: 100%;
    height: 100%;
    object-fit:fill;
    transition: transform 0.3s ease;
}

.case-cover:hover img {
    transform: scale(1.1);
}

/* 案例信息 */
.case-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* 案例链接 */
.case-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* 案例标题 */
.case-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.case-link:hover .case-title {
    color: #734C22;
    font-weight: 700;
}

/* 案例正文 */
.case-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.case-link:hover .case-content {
    color: #734C22;
}

/* 案例元数据 */
.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.case-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-date {
    color: #999;
}

/* 广告 Banner 样式 */
.adver-banner {
    width: 1300px;
    height: 190px;
    margin-left: auto;
    margin-top: 30px;
    margin-bottom: 10px;
    overflow: hidden;
}

.adverBannerSwiper {
    width: 100%;
    height: 100%;
}

.adverBannerSwiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.adver-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.adver-banner-link:not([href]) {
    cursor: default;
}

.adver-banner-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 广告 Banner 分页器样式 */
.adverBannerSwiper .swiper-pagination {
    bottom: 10px;
}

.adverBannerSwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.adverBannerSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #B98751;
}

/* 名师园地样式 */
.renowned-doctor-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.renowned-doctor-banner {
    position: relative;
    overflow: visible; /* 确保不裁剪 */
}

/* Swiper 容器 */
.doctorSwiper {
    width: 100%;
    overflow-x: hidden; /* 水平方向隐藏，防止显示下一页卡片 */
    overflow-y: visible; /* 垂直方向可见，让卡片上移不被裁剪 */
    padding-top: 20px; /* 为卡片上移留出空间 */
}

.doctorSwiper .swiper-wrapper {
    overflow: visible; /* wrapper 也需要设置 */
}

.doctorSwiper .swiper-slide {
    height: auto;
    overflow: visible; /* slide 也需要设置 */
}

/* 教师卡片组 */
.doctor-cards-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    overflow-y: visible; /* 垂直方向可见，让卡片上移不被裁剪 */
}

/* 教师卡片 */
.doctor-card {
    width: 420px;
    height: 260px;
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #E5E5E5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    background-image: url('../assets/images/doctor_card_bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.doctor-card:hover {
    transform: translateY(-10px); /* 向上移动 10px */
    background-color: #F0D7BC;
    box-shadow: 0 8px 24px rgba(115, 76, 34, 0.25); /* #734C22 颜色的阴影 */
}

/* 医生照片 */
.doctor-photo {
    width: 190px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 医生信息 */
.doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 医生头部（名字+详情链接） */
.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.doctor-name {
    font-size: 18px;
    font-weight: 600;
    color: #734C22;
    margin: 0;
}

.doctor-detail-link {
    font-size: 14px;
    color: #B98751;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: pointer;
}

.doctor-detail-link:hover {
    color: #734C22;
}

/* 医生介绍 */
.doctor-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-card:hover .doctor-intro {
    color: #734C22;
}

/* 导航按钮 */
.doctor-button-prev,
.doctor-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctor-button-prev {
    left: -20px;
}

.doctor-button-next {
    right: -20px;
}

.doctor-button-prev:hover,
.doctor-button-next:hover {
    background: #f5f5f5;
    border-color: #B98751;
    color: #B98751;
    box-shadow: 0 4px 12px rgba(185, 135, 81, 0.3);
}

.doctor-button-prev.swiper-button-disabled,
.doctor-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e5e5e5;
    color: #ccc;
}

.doctor-button-prev svg,
.doctor-button-next svg {
    width: 24px;
    height: 24px;
}

/* 新星展示样式（与名师园地相同） */
.star-doctor-banner {
    position: relative;
    overflow: visible;
}

/* Swiper 容器 */
.starSwiper {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 20px;
    padding-bottom: 20px;
}

.starSwiper .swiper-wrapper {
    overflow: visible;
}

.starSwiper .swiper-slide {
    height: auto;
    overflow: visible;
}

/* 新星教师卡片组 */
.star-cards-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 新星教师卡片 */
.star-card {
    width: 420px;
    height: 260px;
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #E5E5E5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    background-image: url('../assets/images/doctor_card_bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.star-card:hover {
    transform: translateY(-10px); /* 向上移动 10px */
    background-color: #F0D7BC;
    box-shadow: 0 8px 24px rgba(115, 76, 34, 0.25); /* #734C22 颜色的阴影 */
}

/* 新星照片 */
.star-photo {
    width: 190px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.star-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 新星信息 */
.star-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 新星头部（名字+详情链接） */
.star-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.star-name {
    font-size: 18px;
    font-weight: 600;
    color: #734C22;
    margin: 0;
}

.star-detail-link {
    font-size: 14px;
    color: #B98751;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: pointer;
}

.star-detail-link:hover {
    color: #734C22;
}

/* 新星介绍 */
.star-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-card:hover .star-intro {
    color: #734C22;
}

/* 导航按钮 */
.star-button-prev,
.star-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.star-button-prev {
    left: -20px;
}

.star-button-next {
    right: -20px;
}

.star-button-prev:hover,
.star-button-next:hover {
    background: #f5f5f5;
    border-color: #B98751;
    color: #B98751;
    box-shadow: 0 4px 12px rgba(185, 135, 81, 0.3);
}

.star-button-prev.swiper-button-disabled,
.star-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #e5e5e5;
    color: #ccc;
}

.star-button-prev svg,
.star-button-next svg {
    width: 24px;
    height: 24px;
}

/* 文化展示样式 */
.culture-content {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

/* 富文本文章样式 */
.culture-article {
    color: #333;
    line-height: 1.8;
}

.culture-article h2 {
    font-size: 24px;
    font-weight: 600;
    color: #734C22;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #B98751;
}

.culture-article h3 {
    font-size: 20px;
    font-weight: 600;
    color: #734C22;
    margin: 30px 0 15px 0;
}

.culture-article p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px 0;
    text-indent: 2em; /* 首行缩进 */
}

/* 文化展示图片 */
.culture-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.culture-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(115, 76, 34, 0.2);
}

/* 图片查看大图模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模态框遮罩层 */
.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* 模态框内容容器 */
.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模态框中的图片 */
#modalImage {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 关闭按钮 */
.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.image-modal-close:hover {
    background: #fff;
    color: #B98751;
    transform: rotate(90deg);
}

.image-modal-close svg {
    width: 24px;
    height: 24px;
}
