﻿html, body {
    width: 100%;
    margin: 0 auto !important;
    padding: 0;
    min-height: 100vh;
    background: rgba(244, 235, 224, 1);
    font-family: Helvetica,Droidsansfallback,Droid Sans,Retina,arial,PingFangTC,"Microsoft JhengHei",Arial,sans-serif,"PingFangTC","Microsoft JhengHei",Arial,sans-serif;
}

input:focus {
    outline: none;
    border: none; /* 或者设置为 border: 0; */
}

.fortune_topbar {
    position: relative;
    width: 100%;
    height: 3rem;
    overflow: hidden;
}

.fortune_topest {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: center;
    height: 3rem;
}

.fortune_logo {
    height: 1.63rem;
    margin-left: 0.63rem;
}

.topbar_background {
    width: 100%;
    position: absolute;
    height: 12.38rem;
    object-fit: cover;
    top: 0;
    left: 0;
}

.fortune_topbar_right_btn {
    position: absolute;
    right: 0.63rem;
    width: 4.50rem;
    height: 2.00rem;
    opacity: 1;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.81rem;
}


.swiper {
    width: calc(100% - 1.25rem);
    margin-left: 0.63rem;
    margin-top: 0.63rem;
    height: 8.75rem;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide {
    position: relative;
}

.swiper-title {
    width: 100%;
    height: 1.75rem;
    bottom: 0;
    width: 100%;
    opacity: 1;
    background: rgba(110, 78, 47, 0.5);
    font-size: 0.81rem;
    color: rgba(248, 238, 227, 1);
    position: absolute;
    padding: 0 0.63rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.swiper_title_text {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.category_container {
    margin-top: 1.44rem;
    width: calc(100% - 1.25rem);
    margin-left: 0.63rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 创建四个等宽的列 */
    column-gap: 4; /* 设置列间距为1.56rem */
    grid-auto-rows: minmax(100px, auto); /* 自动创建的行至少高度为100px */
    margin-bottom: 1.50rem;
}

.category_item {
    text-align: center;
}

    .category_item img {
        width: 3.50rem;
    }

.category_text {
    margin-top: 0.44rem;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 1);
    vertical-align: top;
}

.fortune_list_item {
    width: calc(100% - 1.25rem);
    margin-left: 0.63rem;
    margin-bottom: 0.63rem;
    height: 5.25rem;
    opacity: 1;
    border-radius: 0.25rem;
    background: rgba(255, 254, 252, 1);
    display: block;
    display: flex;
    padding: 0.63rem;
    box-sizing: border-box;
}

.fortune_list_item_text_container {
    width: 100%;
    padding-right: 0.31rem;
}

.fortune_list_item img {
    width: 6.25rem;
    height: 3.75rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    object-fit: cover;
}

.fortune_list_item .title {
    height: 2.56rem;
    opacity: 1;
    /** 文本1 */
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.27rem;
    color: rgba(51, 51, 51, 1);
    text-align: left;
    vertical-align: top;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fortune_list_item .item_category_name {
    opacity: 1;
    /** 文本1 */
    font-size: 0.75rem;
    line-height: 1.09rem;
    color: rgba(153, 153, 153, 1);
    text-align: left;
    vertical-align: top;
    margin-top: 0.31rem;
}

.fortune_article_title {
    margin-left: 0.63rem;
    width: calc(100% - 1.25rem);
    height: 3.31rem;
    opacity: 1;
    /** 文本1 */
    font-size: 1.13rem;
    font-weight: bold;
    letter-spacing: 0px;
    line-height: 1.63rem;
    color: rgba(51, 51, 51, 1);
    text-align: left;
    vertical-align: top;
    margin-top: 1.06rem;
    letter-spacing: 1px;
}

.fortune_article {
    margin-left: 0.63rem;
    width: calc(100% - 1.25rem);
    height: auto;
}

.fortune_next_btn {
    margin-top: 0.75rem;
    margin-left: 1.56rem;
    width: calc(100% - 3.13rem);
    opacity: 1;
    border-radius: 122px;
    background: rgba(169, 64, 29, 1);
    display: flex;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 1);
    align-items: center;
    justify-content: center;
    height: 2.50rem;
}

.fortune_divid {
    margin: 1.56rem 0;
    height: 8px;
    opacity: 1;
    background: rgba(237, 223, 209, 1);
    width: 100%;
}

.fortune_category_name_bar {
    width: 100%;
    height: 2.50rem;
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: rgba(51, 51, 51, 1);
    vertical-align: top;
    letter-spacing: 1px;
}
