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

body {
    /* 确保body占满屏幕宽度，避免容器宽度计算错误 */
    width: 100%;
    overflow-x: hidden;
}

/* 预约按钮样式 */
.appoint-btn {
    padding: 12px 30px;
    font-size: 16px;
    color: white;
    background-color: #409eff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.appoint-btn:hover {
    background-color: #66b1ff;
}

/* 模态框遮罩层 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* 模态框内容 */
.modal-content {
    width: 90%;
    max-width: 800px;
    background-color: white;
    border-radius: 8px;
    padding: 20px 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 14px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #409eff;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* 性别单选框样式 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 10px 0;
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #66b1ff;
}

/* 关闭按钮 */
.close-btn {
    position: sticky;
    top: 0;
    float: right;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    margin-bottom: 10px;
}

.close-btn:hover {
    color: #333;
}

/* 响应式适配 */
@media (max-width: 600px) {
    .modal-content {
        padding: 15px 20px;
    }
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* 轮播外层容器 - 核心：强制隐藏超出+固定定位逻辑 */
.banner-carousel {
    margin: 0 auto;
    width: 100%;
    /* 修复：去掉左右padding，避免宽度计算偏差（如需间距可加在img外层） */
    padding: 0;
    height: auto; /* 自动适应图片高度 */
    overflow: hidden !important; /* 强制隐藏超出部分，避免重叠 */
    position: relative;
}

/* 轮播图片容器 - 修复：宽度严格按图片数量计算，flex布局强制不换行 */
.banner-wrapper {
    display: flex;
    flex-wrap: nowrap !important; /* 强制不换行，避免图片挤在一起 */
    width: calc(100% * 2); /* 2张图片=100%*2，计算更精准 */
    transition: transform 0.5s ease-in-out;
    /* 修复：确保容器高度和图片一致 */
    height: 100%;
}

/* banner图片样式 - 修复：宽度严格适配，强制块级显示 */
.banner-img {
    width: calc(100% / 2); /* 2张图片=100%/2，和wrapper宽度严格匹配 */
    height: auto; /* 保持宽高比 */
    display: block !important; /* 强制块级，消除inline默认空隙 */
    flex-shrink: 0; /* 禁止图片被压缩，避免宽度变形 */
}

/* 轮播指示器 - 保留，不影响布局 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10; /* 确保指示器在图片上方 */
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s;
}

.indicator.active {
    opacity: 1;
    background: #409eff;
}