html {
    scroll-behavior: smooth;
}

main {
    padding: 0 0 90px;
}
.home-hero-bg{
    width: 100%;
    height: 100%;
    background: url("../images/home/homebg.png") no-repeat top center;
    background-size: 100% 821px;
}
.home-hero {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 2fr auto;
    gap: 13px;
    align-items: start;
    padding: 30px 0 0 0;
}

.hero-img {
    width: 181px;
    margin: 8px 80px 0 56px;
    max-width: 100%;
    height: auto;
}

/* 搜索Tab */
.search-tab {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 33px;
    padding-left: 21px;
}

.search-tab a {
    position: relative;
    font-weight: 400;
    font-size: 15px;
    color: rgba(84, 125, 161, 1);
    padding-bottom: 13px;
}
.search-tab a:hover {
    color: rgba(0, 126, 255, 1);
}
.search-tab a.active {
    font-weight: 400;
    font-size: 15px;
    color: #000000;
}

.search-tab a.active::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -19px;
    width: 45px;
    height: 37px;
    background: url("../images/home/home45.png") no-repeat center center;
    background-size: contain;
}

.search-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    align-items: center;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}
.search-wrap:hover,
.search-wrap.is-filled {
    border: 2px solid #000000;
}
.search-input {
    flex: 1;
    max-width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid #FFFFFF;
    padding: 0 18px;
    font-weight: 400;
    font-size: 15px;
    color: #000000;

}
.search-input::placeholder{
    font-weight: 400;
    color: #9BA2AA;
}
.search-input:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: none;
}

.search-btn {
    position: absolute;
    right: -2px;
    top: 0;
    display: inline-block;
    width: 152px;
    flex-shrink: 0;
    height: 60px;
    text-align: center;
    background: #000000;
    border-radius: 12px;
    line-height: 60px;
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF;
    cursor: pointer;
    margin: -2px 0 0 -20px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(0, 126, 255, 1);
}

.search-suggest {
    margin-top: 11px;
    color: #64748b;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    padding-left: 20px;
    align-items: center;
}

.suggest-item {
    font-weight: 400;
    font-size: 13px;
    color: rgba(84, 125, 161, 1);
}
.suggest-item:hover {
    color: rgba(0, 126, 255, 1);
}
.hero-news {
    width: 459px;
    max-width: 100%;
    height: 157px;
    background: url("../images/home/home7.png") no-repeat center center;
    background-size: contain;
    padding: 18px 20px;
    position: relative;
    margin-top: -17px;
}

.news-head {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-bottom: 22px;
}

.news-title {
    font-weight: 800;
    color: #0f172a;
}

.news-more {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
}

.news-more:hover {
    color: rgba(0, 126, 255, 1);
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 90px;
    overflow: hidden;
}

.news-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.news-list li a {
    font-family: 'COMFORTAA-BOLD';
    font-weight: 400;
    height: 28px;
    line-height: 28px;
    font-size: 14px;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list li a i {
    display: inline-block;
    width: 5px;
    height: 10px;
    background: url("../images/home/home13.png") no-repeat center center;
    background-size: contain;
    margin: 0 15px 0 7px;
}

.news-list li a:hover {
    color: rgba(0, 126, 255, 1);
}

.news-list li a:hover i {
    background: url("../images/home/home29.png") no-repeat center center;
}

.news-list li span {
    font-family: 'COMFORTAA-BOLD';
    color: #9BA2AA;
    font-size: 12px;
    white-space: nowrap;
}

.section-title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 700;
}

.platform-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.platform-card {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 20px 0 0;
    min-height: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.platform-card-link{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}
.platform-card:hover {
    box-shadow: 10px 13px 100px 0 rgba(170, 246, 255, 0.15);
    border-radius: 16px;
    transform: translateY(-10px);
}

.platform-card .platform-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.platform-name-left {
    display: flex;
}

.platform-name-left span {
    font-weight: 600;
    font-size: 24px;
    color: #000000;
    margin-bottom: 35px;
    padding-top: 6px;
}

.platform-name-left img {
    width: 50px;
    height: 50px;
    margin-right: 19px;
    border-radius: 16px;
}

.platform-name-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    color: #007EFF;
    margin-top: -36px;
}

.platform-name-right .icon1 {
    width: 15px;
    height: 14px;
    margin: 0 7px 0 0;
}
/* icon2：默认不占宽；hover 时从右侧滑入 */
.platform-name-right .platform-icon2-wrap {
    display: inline-block;
    vertical-align: middle;
    max-width: 0;
    overflow: hidden;
    margin-left: 0;
    margin-top: 1px;
    transition: max-width 0.28s ease, margin-left 0.28s ease;
}
.platform-name-right .platform-icon2-wrap .icon2 {
    display: block;
    width: 5px;
    height: 10px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
}
.platform-name-right:hover .platform-icon2-wrap {
    max-width: 20px;
    margin-left: 6px;
}
.platform-name-right:hover .platform-icon2-wrap .icon2 {
    transform: translateX(0);
}
.platform-name-right i {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url("../images/home/home29.png") no-repeat center center;
    background-size: contain;
    margin: 2px 0 0 6px;
    visibility: hidden;
    transition: all 0.2s ease;
}

.platform-name-right:hover i {
    visibility: visible;
}

.platform-desc-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 10px;
    width: 91%;
    margin-left: 9%;
    padding: 0 20px;
}

.platform-desc-box img {
    width: 10px;
    height: 6px;
    margin-top: 6px;
}

.platform-desc {
    font-weight: 400;
    font-size: 14px;
    color: #9BA2AA;
    width: 91%;
    margin-left: 1%;
}

.platform-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 88px;
    background: url("../images/home/home8.png") no-repeat top center;
    background-size: contain;
    margin-top: 30px;
    padding: 0 20px;
}
.platform-actions a{
    display: flex;
    align-items: center;
}
.platform-actions a span{
    font-weight: 400;
font-size: 14px;
color: #000000;
}
.platform-actions a:hover span{
    color: rgba(0, 126, 255, 1);
}
.platform-actions-icon{
    transition: all 0.3s ease;
}
.platform-actions-icon i{
    display: inline-block;
    width: 45px;
    height: 45px;
    margin-right: 6px;
    transition: all 0.3s ease;
}
.platform-actions-icon1 i{
    background: url("../images/home/home14.png") no-repeat center center;
    background-size: contain;
}
.platform-actions-icon2 i{
    background: url("../images/home/home18.png") no-repeat center center;
    background-size: contain;
}
.platform-actions-icon3 i{
    background: url("../images/home/home16.png") no-repeat center center;
    background-size: contain;
}
.platform-actions-icon1:hover i{
    background: url("../images/home/home15.png") no-repeat center center;
    background-size: contain;
}
.platform-actions-icon2:hover i{
    background: url("../images/home/home19.png") no-repeat center center;
    background-size: contain;
}
.platform-actions-icon3:hover i{
    background: url("../images/home/home17.png") no-repeat center center;
    background-size: contain;
}
.anchor-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
}

.module-sidebar {
    position: sticky;
    top: 110px;
}

.module-anchor-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-anchor-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 7px 0;
    transition: all 0.2s ease;
}

.module-anchor-link span {
    border-radius: 8px;
    color: rgba(155, 162, 170, 1);
    font-size: 14px;
    transition: all 0.2s ease;
}
.module-anchor-link:hover span {
    color: #000000;
}

.module-anchor-link .recommend-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: url("../images/home/home22.png") no-repeat center center;
    background-size: contain;
    margin: 1px 17px 0 3px;
}
.recommend-with{
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 6px 17px 0 0;
}
.module-anchor-link .recommend-icon2 {
    background: url("../images/home/home20.png") no-repeat center center;
    background-size: contain;
}

.module-anchor-link.is-active .recommend-icon {
    background: url("../images/home/home23.png") no-repeat center center;
    background-size: contain;
}

.module-anchor-link.is-active .recommend-icon2 {
    background: url("../images/home/home21.png") no-repeat center center;
    background-size: contain;
}

.module-anchor-link.is-active span {
    font-weight: 600;
    font-size: 15px;
    color: #000000;
}

.module-anchor-link .module-anchor-link-arrow {
    display: block;
    width: 48px;
    height: 3px;
    background: url("../images/home/home32.png") no-repeat center center;
    background-size: contain;
    visibility: hidden;
}

.module-anchor-link.is-active .module-anchor-link-arrow {
    visibility: visible;
}

.module-content {
    min-width: 0;
    margin-top: 4px;
}

.module {
    margin-top: 0;
    padding-top: 36px;
    scroll-margin-top: 108px;
}

.module:first-child {
    padding-top: 0;
}

.module-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.module-head .module-head-title {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    color: #000000;
}

.more {
    padding-top: 5px;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
}
.more i{
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 5px;
    background: url("../images/home/home28.png") no-repeat center center;
    background-size: contain;
    vertical-align: -4px;

}
.more:hover{
    color: rgba(0, 126, 255, 1);
}
.more:hover i{
    background: url("../images/home/home27.png") no-repeat center center;
    background-size: contain;
}
.shop-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-card {
    position: relative;
    border-radius: 14px;
    background: #fff;
    padding: 16px 15px 14px 15px;
    transition: all 0.3s ease;
}
.shop-card:hover {
    box-shadow: 10px 13px 100px 0 rgba(170, 246, 255, 0.15);
    transform: translateY(-5px);
}
.shop-card:hover .shop-title{
    color: rgba(0, 126, 255, 1);
}
.shop-card-link{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}
.shop-card-box {
    display: flex;
    gap:12px;
    align-items: flex-start;
}
.shop-card-box .shop-card-img{
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
}
.shop-card-box .shop-card-img img{
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.shop-title {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 20px;
    color: #000000;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

}
.shop-card-info{
    margin-top: 4px;
}
.shop-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 19px;
    font-weight: 400;
    font-size: 13px;
    color: #9BA2AA;
    height: 41px;
    line-height: 1.6;

}
.shop-card-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.shop-card-kf{
    position: relative;
    z-index: 2;
    width: 29px;
    height: 29px;
    background: url("../images/home/home33.png") no-repeat center center;
    background-size: contain;
    cursor: pointer;
}
.shop-card-kf:hover{
    background: url("../images/home/home34.png") no-repeat center center;
    background-size: contain;
}
.shop-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 12px;
}

.shop-tags span {
    padding: 4px 8px;
font-size: 13px;
color: #9CABBC;
    background: #F8FBFF;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-img {
        margin: 0;
    }

    .hero-search {
        width: 100%;
    }

    .search-input {
        width: auto;
    }

    .search-btn {
        margin: 0;
    }

    .hero-news {
        width: 100%;
        background-size: cover;
        border-radius: 12px;
    }

    .anchor-layout {
        grid-template-columns: 1fr;
    }

    .module-sidebar {
        position: static;
        top: auto;
    }

    .module-anchor-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 14px;
        margin-top: -2px;
    }

    .module-anchor-link {
        padding: 6px 0;
    }

    .module-anchor-link .recommend-icon,
    .recommend-with {
        margin-right: 8px;
    }

    .platform-actions {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    main {
        padding: 16px 0 50px;
    }

    .search-tab {
        gap: 16px;
        flex-wrap: wrap;
    }

    .search-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .search-input {
        height: 48px;
        padding: 0 14px;
    }

    .search-btn {
        width: 100%;
        height: 48px;
        line-height: 48px;
        font-size: 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .module-head .module-head-title {
        font-size: 20px;
    }

    .module-anchor-link .recommend-icon,
    .recommend-with {
        display: none;
    }

    .module-anchor-link .module-anchor-link-arrow {
        display: none;
    }

    .platform-grid,
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        padding: 14px 0 0;
    }

    .platform-name-left span {
        font-size: 20px;
    }

    .platform-actions {
        gap: 12px;
        justify-content: space-around;
        background-size: cover;
        border-radius: 12px;
    }

    .platform-actions-icon i {
        width: 36px;
        height: 36px;
        margin-right: 4px;
    }

    .platform-actions a span {
        font-size: 13px;
    }

    .shop-title {
        font-size: 17px;
    }

    .shop-meta {
        font-size: 12px;
    }
}