* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #efefef;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.app {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f7f7f7;
    padding-bottom: 56px;
    overflow-x: hidden;
}

.topbar {
    height: 60px;
    background: #08c767;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
}

.topbar .left-icon,
.topbar .right-download {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.topbar .left-icon {
    left: 18px;
    font-size: 24px;
}

.topbar .right-download {
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-size: 21px;
}

.topbar .right-download span {
    font-size: 10px;
    margin-top: 4px;
}

.home-wrap {
    padding: 2px 1px 12px;
}

.banner {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 174px;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f2f2;
}

.banner-track {
    height: 100%;
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}

.banner-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
}

.banner-dots button.active {
    width: 16px;
    border-radius: 8px;
    background: #08c767;
}

.notice {
    height: 23px;
    margin-top: 5px;
    border-radius: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #ff3d00;
    font-size: 15px;
    font-weight: 800;
}

.notice i {
    margin-right: 8px;
}

iframe {
    width: 100% !important;
    display: block;
    margin: 0;
}

.shortcut-grid {
    margin-top: 5px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.shortcut {
    height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
}

.shortcut:last-child {
    border-right: 0;
}

.shortcut .circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.shortcut p {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 500;
}

.mint {
    background: #30ddb4;
}

.purple {
    background: #d94cea;
}

.orange {
    background: #e9824c;
}

.cyan {
    background: #2bbbd7;
}

.home-cards,
.site-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
}

.home-cards {
    padding: 8px 4px 10px;
    gap: 8px;
}

.site-page {
    padding: 5px 2px 12px;
    background: #f7f7f7;
    min-height: calc(100vh - 116px);
}

.site-grid {
    gap: 8px;
    padding: 8px 5px 12px;
}

.site-item,
.home-site-card {
    display: block;
    min-width: 0;
    padding-bottom: 7px;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.site-item:active,
.home-site-card:active,
.shortcut:active {
    transform: scale(.98);
}

.site-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    overflow: hidden;
    background: #f1f1f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.site-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-item p,
.home-site-card p {
    height: 24px;
    line-height: 24px;
    margin: 6px 0 0;
    padding: 0 2px;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    color: #222;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-gallery-section {
    margin-top: 8px;
    padding-left: 4px;
    padding-right: 4px;
}

.mine-header {
    height: 190px;
    background: #08c767;
    color: #fff;
    text-align: center;
    padding-top: 17px;
}

.mine-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.login-box {
    text-align: left;
    padding-left: 88px;
    padding-top: 34px;
}

.login-box h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.login-box p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.mine-content {
    margin-top: -38px;
    padding: 0 18px 20px;
}

.mine-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.mine-card h3 {
    height: 44px;
    line-height: 44px;
    padding: 0 10px;
    margin: 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

.mine-grid {
    display: grid;
    row-gap: 17px;
    padding: 20px 12px 18px;
}

.mine-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.mine-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.mine-item {
    text-align: center;
    min-height: 58px;
}

.mine-item i {
    display: block;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 10px;
}

.mine-item p {
    margin: 0;
    font-size: 15px;
}

.color-pink {
    color: #ff8e9b;
}

.color-violet {
    color: #9a6cff;
}

.color-blue {
    color: #6c8cff;
}

.color-red {
    color: #ff6868;
}

.color-yellow {
    color: #ffd15c;
}

.color-orange {
    color: #ffad6f;
}

.color-green {
    color: #13cf7b;
}

.color-cyan {
    color: #08b9e9;
}

.color-indigo {
    color: #607df0;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: 54px;
    background: #fff;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    z-index: 100;
}

.bottom-nav a {
    color: #0ac96c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.bottom-nav i {
    font-size: 20px;
}

.bottom-nav span {
    font-size: 11px;
}

.bottom-nav a.active i,
.bottom-nav a.active span {
    font-weight: 900;
}

@media (max-width: 390px) {
    .home-wrap,
    .site-page {
        padding-left: 1px;
        padding-right: 1px;
    }

    .banner-slider {
        height: 170px;
    }

    .home-cards {
        padding-left: 4px;
        padding-right: 4px;
        gap: 7px;
    }

    .site-grid {
        gap: 6px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .site-item p,
    .home-site-card p {
        font-size: 14px;
    }
}