* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #f7f7f7;
    color: #222222;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.page {
    width: 100%;
    max-width: 800px;
    min-height: 100vh;
    margin: 0 auto;
    background: #ffffff;
}

/* 导航栏区 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 46px;
    padding: 0 8px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.topbar-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: 78px;
    height: 30px;
    border-radius: 4px;
    background: #08c25e;
    color: #ffffff;
    line-height: 1.1;
}

.topbar-badge strong {
    font-size: 13px;
}

.topbar-badge span {
    font-size: 10px;
}

.topbar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222222;
}

.topbar-tools {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.topbar-tools a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 10px;
    color: #333333;
}

.topbar-tools svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #333333;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 轮播图区 */
.banner {
    position: relative;
    width: 100%;
    aspect-ratio: 750 / 280;
    overflow: hidden;
    background: #eef3ef;
}

.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.banner-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.banner-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.banner-dots i.is-active {
    background: #67c23a;
}

/* 文字滚动条区 */
.notice {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    margin: 8px 8px 0;
    padding: 0 8px;
    border-radius: 4px;
    background: #e8e8e8;
    color: #444444;
    font-size: 13px;
}

.notice-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: #67c23a;
    stroke: #67c23a;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.notice-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.notice-text {
    display: inline-block;
    padding-left: 100%;
    animation: notice-scroll 22s linear infinite;
}

@keyframes notice-scroll {
    to {
        transform: translateX(-100%);
    }
}

/* 三个开奖区域 */
.kaijiang {
    margin-top: 8px;
}

.yinyong-kaijiang {
    width: 100%;
    padding: 4px 0 0;
    background: url("../image/22222.jpg") center top / 100% auto no-repeat;
}

.yinyong-kaijiang-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    background-color: #e51f22;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
}

.yinyong-kaijiang-body {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.yinyong-kaijiang-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.yinyong-kaijiang-first {
    padding-top: 0;
    background: none;
}

.yinyong-kaijiang-frame {
    display: block;
    width: 100%;
    height: 138px;
    border: 0;
    overflow: hidden;
}

/* 功能按钮区 */
.shortcuts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 14px;
    padding: 16px 4px 10px;
}

.shortcuts a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #222222;
}

.ico {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

/* 子站点击区 */
.sites {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 6px 8px 24px;
    border-top: 1px solid #ececec;
    border-left: 1px solid #ececec;
}

.site-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 4px 10px;
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

.site-logo-1988 {
    background: linear-gradient(135deg, #3fa9ff, #1b5fe0);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.site-logo-empty {
    background: #f1f2f4;
    color: #c4c8cf;
    font-size: 30px;
    font-weight: 400;
}

.site-card.is-soon {
    color: #b0b4bb;
}

/* 轻提示 */
.toast {
    position: fixed;
    left: 50%;
    bottom: 18%;
    z-index: 50;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.25s;
}

.toast.is-show {
    opacity: 1;
}

@media (max-width: 600px) {
    .topbar-title {
        font-size: 17px;
    }

    .yinyong-kaijiang-title {
        height: 32px;
        font-size: 17px;
    }

    .yinyong-kaijiang-frame {
        height: 118px;
    }

    .shortcuts a {
        font-size: 13px;
    }

    .ico {
        width: 42px;
        height: 42px;
    }

    .site-logo {
        width: 54px;
        height: 54px;
        font-size: 18px;
    }
}
