/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* 禁止文字选择 */
    touch-action: none; /* 禁止所有触摸操作，包括缩放、拖动等 */
    -ms-touch-action: none; /* 适用于旧版IE */
}

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background-color: #f3f3f3;*/
    font-family: Arial, sans-serif;
    font-size: 16px;
    overflow: hidden; /* 禁止滚动条 */
    touch-action: manipulation; /* 禁止放大、双击缩放等操作 */
}

img {
    pointer-events: none; /* 禁止图片的默认拖动行为 */
    -webkit-user-drag: none; /* 禁止Webkit内核浏览器中的图片拖动 */
}

.background-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px; /* 电脑端背景图宽度 */
    background: url('/assets/img/background-image.png') no-repeat center center;
    background-size: cover;
}

.content-box {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    padding: 10px;
    text-align: center;
    color: #333;
}

/* 其他自定义样式 */
.text-container {
    margin-bottom: 12px;
}

.text-container p {
    margin: 5px 0;
    line-height: 1.5;
    font-size: 14px;
    color: #413f3f;
    text-align: center;
}

.highlight-container {
    position: relative;
    margin: 10px auto;
    text-align: center;
    z-index: 1;
}

.highlight-box {
    background-color: #d9e3f5;
    border-radius: 20px;
    display: inline-block;
    padding: 5px 10px;
}

.highlight-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: -20px;
    padding: 0;
}

.highlight-box-large {
    width: 75%;
    height: 15px;
    margin-bottom: 0px;
}

.highlight-box-small {
    width: 50%;
    height: 15px;
}

.highlight-text-large {
    font-size: 16px;
    line-height: 30px;
}

.highlight-text-small {
    font-size: 15px;
    line-height: 30px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.input-field {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid #ccc;
    text-align: center;
    margin-bottom: 20px;
}

.submit-button {
    width: 100%;
    padding: 10px;
    background-color: #2785f0;
    color: #fff;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.submit-button:hover {
    background-color: #1e6ac7;
}

.highlight-image {
    position: absolute;
    width: 70px;
    height: auto;
    top: 10px;
    left: calc(50% + 110px);
    transform: translateX(-52%);
}

.heart-image {
    width: 15px;
    height: 15px;
    margin: 5px;
}

.input-with-tooltip {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 10px); /* 增加间距 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #005051;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px; /* 更大的圆角 */
    font-size: 13px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 弹性动画 */
    margin-bottom: 5px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 80, 81, 0.2); /* 添加阴影 */
    width: max-content; /* 自动宽度 */
    max-width: 220px; /* 防止过长 */
}

/* 更精致的箭头 */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #005051 transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1)); /* 箭头阴影 */
}

.input-field:focus + .tooltip {
    visibility: visible;
    opacity: 1;
    bottom: calc(100% + 15px); /* 弹出效果 */
}

/* 可选：输入框获得焦点时的样式 */
.input-field:focus {
    border-color: #005051;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 80, 81, 0.2);
}

@media (max-width: 600px) {
    .background-container {
        max-width: none; /* 移动端去掉 max-width 限制 */
        width: 100%; /* 确保背景图在移动端覆盖整个宽度 */
    }

    .content-box {
        width: 90%;
    }

    .text-container p {
        font-size: 14px;
    }

    .highlight-text-large {
        font-size: 14px;
    }

    .highlight-text-small {
        font-size: 16px;
    }

    .input-field, .submit-button {
        width: 100%;
    }

    .highlight-image {
        width: 50px;
        top: 15px;
        left: calc(50% + 100px);
        transform: translateX(-50%);
    }

    .heart-image {
        width: 12px;
        height: 12px;
    }
}
