html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#app {
    max-width: 640px;
    margin: 0 auto;
}

/* 问卷页面样式 */
.page {
    max-width: 640px;
    height: 100vh;
    margin: 0 auto;
    padding-bottom: 0;
}

/* 顶部头部区域 */
.banner-image {
    width: 100%;
    height: auto;
}

.content {
    max-width: 640px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 20px 20px 0;
    transform: translateY(-45%);
    padding-bottom: 0;
    margin-bottom: 0;
    min-height: 650px;
    box-sizing: border-box;
}

/* 为大屏幕设备调整margin-top */
@media screen and (max-width: 640px) {
    .content {
        margin-top: 250px;
    }
}

@media screen and (min-width: 641px) and (max-width: 1000px) {
    .content {
        margin-top: 210px;
    }
}

/* 为超大屏幕设备进一步调整 */
@media screen and (min-width: 1001px) {
    .content {
        margin-top: 210px;
    }
}

.title {
    color: #333333;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin: 20px 10px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.content_item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.content_item div {
    width: 100%;
    /* min-height: 70px; */
    display: flex;
    align-items: center;
    padding: 12px;
    font-size: 16px;
    font-weight: normal;
    text-align: left;
    color: #333333;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.content_item div span {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.content_item div.selected {
    background-color: #ffe6e6;
    border-color: #ff4d4d;
    color: #333333;
    border: 1px solid #f85c51;
}

.content_item div.selected span {
    color: #ff4d4d;
}

.content_item div:hover {

    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 导航按钮样式 */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 30px 15px;
}

/* 问题一只有一个按钮时的样式 */
.navigation-buttons.single-button {
    justify-content: center;
}

.navigation-buttons.single-button .nav-button {
    width: 90%;
}

/* 有两个按钮时的样式 */
.navigation-buttons.double-buttons {
    justify-content: space-between;
    padding: 30px 10%;
}

.navigation-buttons.double-buttons .nav-button {
    width: 50%;
}

.nav-button {
    height: 50px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 结果页面样式 */
#result-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* padding: 20px; */
}

.result-content h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
}

.result-content p {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.result-float-icon {
    /* 固定悬浮在result-container和640px版心内部的右侧中间，始终可见，兼容所有设备 */
    position: fixed;
    right: max(10px, calc(50% - 320px + 25px));
    /* 响应式计算：最小10px，版心内右侧25px位置 */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: 50px;
    height: auto;
    object-fit: contain;
    border: none;
    transition: all 0.3s ease;
}

.result-float-icon:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) scale(1.05);
}