* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* display: none; */
}

body {
    line-height: 1.6;
    background-color: transparent;
    /* 修改为transparent比none更合适 */
}


/* 主容器样式保持不变 */

.b-main {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    max-width: 800px;
    min-width: 300px;
    height: 400px;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow: auto;
    /* 确保内容溢出时滚动 */
}


/* 修改气泡样式为固定大小 */

.bubble {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    /* 居中定位 */
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* backdrop-filter: blur(2px); */
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
    /* 隐藏内部元素溢出 */
}


/* 内容容器 - 添加滚动 */

.bubble-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* 垂直滚动 */
    padding: 2rem;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
        /* 添加轻微缩放动画 */
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* 退出按钮样式保持不变 */

.bubble-exit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
    transition: color 0.2s;
    z-index: 1001;
    width: 8%;
    height: 8%;
    max-width: 8%;
    max-height: 8%;
    /* 确保在内容上方 */
}

.bubble-exit:hover {
    color: #333;
}


/* 主内容区域调整 */

.main {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.main>* {
    margin-bottom: 1.5rem;
}

.main>*:last-child {
    margin-bottom: 0;
}


/* 添加关闭动画 */

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.bubble.closing {
    animation: fadeOut 0.3s ease-out forwards;
}


/* 自定义滚动条样式 */

.bubble-content::-webkit-scrollbar {
    width: 8px;
}

.bubble-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.bubble-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.bubble-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

span {
    color: gray;
    font-size: 14px;
}

.item-banner {
    margin-top: 50px;
}

.item-title {
    display: flex;
}

.item-title>h2 {
    margin-left: 10px;
    font-size: 20px;
}

p {
    font-size: 14px;
}

.item {
    margin-top: 20px;
}

.item>p {
    margin-top: 20px;
}

.item>label{
    margin-bottom: 15px;
}

h3{
    margin-top: 30px;
    margin-bottom: 20px;
}

.link {
    margin-top: 10px;
    font-size: 15px;
}

.link>a {
    position: relative;
    /* 设置元素为相对定位，为伪元素提供定位上下文 */
    display: inline-block;
    /* 让元素包裹文本内容，以实现文字下划线 */
    text-decoration: none;
    color: rgb(15, 0, 180);
}

.link>a:before {
    content: "";
    /* 生成一个伪元素 */
    position: absolute;
    /* 设置伪元素为绝对定位，相对于包含块 */
    border-radius: 12px;
    top: 20px;
    left: 0;
    /* 将伪元素的左边距设置为0，以实现从左到右的运动效果 */
    width: 0;
    /* 将伪元素的宽度设置为0，初始时不可见 */
    height: 2px;
    /* 设置伪元素的高度为2像素，作为下划线的宽度 */
    background-color: rgb(15, 0, 180);
    /* 设置下划线的颜色为黑色 */
    transition: width 0.3s;
    /* 使用过渡动画实现从0到100%宽度的效果 */
}

.link>a:hover:before {
    width: 100%;
}

.item input,
.item select {
    letter-spacing: 1px;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    height: 50px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 0 1px rgb(0,0,0);
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    padding: 0 12px;
    color: rgba(0, 0, 0, 0.9);
    transition: 0.2s ease;
}

.item input:focus,
.item select:focus {
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.8);
}

.item button {
    outline: none;
    margin-top: 10px;
    display: block;
    font-size: 14px;
    border-radius: 5px;
    transition: 0.2s ease;
    width: 120px;
    height: 35px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 85, 255, 0.7);
    background: rgba(0, 85, 255, 0.783);
}

.item button:hover {
    border: 1px solid rgb(0, 132, 255);
    background: rgba(0, 132, 255, 0.774);
}

.birthday {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.ws-h3 {
    margin-bottom: 20px;
}

.error,.error-message {
    position: inherit;
    color: rgb(230, 0, 0);
    display: none;
    font-size: 10px;
}

.row {
    display: flex;
    gap: 15px;
    max-width: 400px;
}
        
.row .form-group {
    flex: 1;
}

.sub-title{
    color: #000000;
}

.item-group{
    display: flex;
    border-top: 1px solid rgb(0, 0, 0);
    max-width: 100%;
    max-height : 100px;
    min-height: 50px;
    width: 100%;
    height: 100%;
    align-items: center;
}

.item-group>*{
    width: 100%;
    flex:1;
    margin-left: 30px;
    color: #000000;
    font-weight: bolder;
}