html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

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

.page_1 {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 引导箭头样式 */
.guide-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
}

.arrow {
    width: 70px;
}

.guide-text {
    color: #000;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(237, 240, 244, 0.8), 0 0 20px rgba(161, 165, 170, 0.5);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
}

.page_img {
    width: 100%;

    img {
        width: 100%;
        display: block;
    }
}


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

/* 手机端样式 */
@media (max-width: 768px) {
    .page_1>div.page_img {
        transform: translateY(50px);
    }
}

/* 确保在非手机端恢复正常位置 */
@media (min-width: 769px) {
    .page_1>div.page_img {
        transform: translateY(0);
    }
}

.page_2 {
    height: 100vh;
    background: url(../img/problemBag.png) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page_2_img {
    height: 45%;
    width: 90%;
    background: url(../img/1.png);
    z-index: 1000;
    margin: 0 auto;
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
}

.title {
    color: #0f637f;
    font-weight: 900;
    position: absolute;
    max-width: 300px;
    top: 20%;
    left: 25%;
}

/* 为大屏幕设备调整margin-top */
@media screen and (max-width: 640px) {
    .title {
        font-size: 16px;
        width: 60%;
    }
}

@media screen and (min-width: 641px) and (max-width: 1000px) {
    .title {
        font-size: 24px;
        width: 80%;
    }
}

/* 为超大屏幕设备进一步调整 */
@media screen and (min-width: 1001px) {
    .title {
        font-size: 28px;
        width: 80%;
    }
}

.page_2_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.content_item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.content_item div {
    width: 80%;
    height: 50px;
    background-color: #a2d8f0;
    color: #39778e;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.content_item div:hover {
    background-color: #58c0e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.progress-bar {
    width: 80%;
    height: 8px;
    background-color: #cce7ff;
    border-radius: 4px;
    margin: 0px auto;
    overflow: hidden;
}

.progress-fill {
    width: 33.33%;
    height: 100%;
    background-color: #73abc4;
    border-radius: 4px;
}

.progress-text {
    font-size: 18px;
    color: #0f637f;
    text-align: center;
    margin: 10px 0 0px;
}

/* 评论区样式 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 170px;
}

.comment-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-location {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.comment-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-images {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.comment-image {
    flex: 1;
    min-width: 30%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-time {
    font-size: 12px;
    color: #999;
}

.comment-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    position: relative;
}

/* 点赞特效 */
.like-effect {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    pointer-events: none;
    animation: likeAnimation 1s ease-out forwards;
    z-index: 1000;
}

/* 点赞动画 */
@keyframes likeAnimation {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(0.5) rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.5) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(2) rotate(360deg);
    }
}

/* 结果容器样式 */
#result-container {
    width: 100%;
    height: auto;
    background-color: #ffffff;
    box-sizing: border-box;
    position: relative;
}

.result-image-container {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #f5f5f5;
    min-height: 200px;
}

.lazy-load.loaded {
    opacity: 1;
}

.comments-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 结果页面内部底部悬浮框样式 */
.result-bottom-float {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    z-index: 10000;
    display: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.result-bottom-float img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* 当result-container显示时，显示悬浮框 */
#result-container[style*="display: block"] .result-bottom-float {
    display: block;
}

.result-float-text {
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
}

.result-float-text p {
    margin: 2px 0;
    font-size: 22px;
    color: white;
    text-align: left;
    font-weight: 500;
}


.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;
    border: none;
    transition: all 0.3s ease;
    flex-direction: column;
     color: #061013;
   text-shadow: 2px 2px 4px rgba(237, 11, 11, 0.2);
     font-weight: 700;
     line-height: 40px;
}

.result-float-icon:hover {
    transform: translateY(-50%) scale(1.05);
}

.result-float-icon img {
    width: 80px;
    height: 80px;
    margin: 0;
    object-fit: contain;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.result-icon-text {
    font-size: 24px;
}


.dog_img {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(-50px);
    z-index: 1;
}

.dog_img img {
    width: 200px;
    margin: 0;
    object-fit: contain;
}