* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #222;
    background: #f3f4f7;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.riqi {
    width: calc(100% - 4px);
    margin: 2px auto 0;
    padding: 4px 22px;
    overflow: hidden;
    color: #fff;
    font-size: clamp(14px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(90deg, #d7b9af 0%, #ebb1cf 48%, #e5bfd3 72%, #d6b9ae 100%);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32);
}

.riqi b,
.riqi span {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.main-wrap {
    width: min(980px, 100%);
    margin: 12px auto;
    padding: 0 10px;
}

.panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9dde6;
}

.iframe-panel {
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9dde6;
}

.iframe-panel iframe {
    display: block;
    width: 100%;
    border: 0;
}

.bottom-iframe-panel {
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9dde6;
}

.bottom-iframe-panel iframe {
    display: block;
    width: 100%;
    min-height: 1700px;
    border: 0;
}

.platform-lottery {
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    border-top: 4px dotted #cfcfcf;
    font-family: 'PingFang SC', 'microsoft yahei', arial, 'helvetica neue', 'hiragino sans gb', sans-serif;
    font-weight: 400;
}

.lottery-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 3px;
    color: #333;
    font-size: 17px;
    font-weight: 400;
}

.lottery-head span,
.lottery-foot span {
    color: #f00;
}

.lottery-head strong {
    font-size: 20px;
    font-weight: 600;
}

.lottery-head a {
    color: #f00;
    text-align: right;
    text-decoration: none;
    font-weight: 400;
}

.lottery-balls {
    display: flex;
    align-items: center;
    padding: 0 10px 3px;
}

.lottery-ball {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 61px;
    text-align: center;
    border-radius: 4px;
    margin-right: 6px;
    box-sizing: border-box;
    flex-direction: column;
    color: #fff;
}

.lottery-ball.blue {
    background: #278be7;
}

.lottery-ball.green {
    background: #18b719;
}

.lottery-ball.red {
    background: #ed1308;
}

.lottery-ball:last-child {
    margin-right: 0;
}

.lottery-ball b {
    font-size: 28px;
    font-weight: 900;
    font-family: Tahoma, Geneva, sans-serif;
    line-height: 1;
}

.lottery-ball em {
    display: inline-block;
    height: 19px;
    line-height: 19px;
    margin-top: 2px;
    padding: 0 6px;
    border-radius: 2px;
    color: #222;
    font-size: 20px;
    font-style: normal;
    font-weight: bold;
    text-align: center;
    background: #fff;
}

.lottery-plus {
    flex: 0 0 auto;
    margin-right: 6px;
    color: #333;
    font-size: 26px;
    font-weight: 400;
    text-align: center;
}

.lottery-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 12px 7px;
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

.lottery-foot button {
    display: inline-block;
    flex: 0 0 auto;
    width: 40px;
    height: 20px;
    padding: 0;
    color: #fff;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    border: 0;
    border-radius: 4px;
    background: #FF9900;
}

.one-code-panel {
    margin-bottom: 12px;
    overflow: hidden;
    color: #00008b;
    background: #fff;
    border: 3px solid #dfc9c1;
    border-radius: 5px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-weight: 900;
}

.one-code-title {
    padding: 8px 8px 12px;
    color: #000;
    font-size: clamp(24px, 4.5vw, 36px);
    line-height: 1.15;
    text-align: center;
    background: linear-gradient(90deg, #dac5bf 0%, #fff 48%, #ffd7ef 100%);
}

.one-code-table {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    background: #ddd;
    border-top: 1px solid #aeb3bd;
}

.one-code-label,
.one-code-value {
    min-height: 66px;
    padding: 6px 4px;
    overflow: hidden;
    background: #f7f7f7;
    border-right: 2px solid #fff;
    border-bottom: 3px solid #fff;
    font-size: clamp(22px, 3.8vw, 34px);
    line-height: 1.15;
    white-space: nowrap;
}

.one-code-value {
    border-right: 0;
}

.one-code-label span,
.one-code-value span,
.one-code-pick span {
    color: #f00;
}

.one-code-label span {
    font-size: clamp(30px, 5.4vw, 46px);
}

.one-code-value span {
    font-size: clamp(30px, 5.2vw, 44px);
}

.one-code-table > div:nth-child(1) span {
    font-size: clamp(23px, 4.7vw, 39px);
}

.one-code-table > div:nth-child(2) span {
    font-size: clamp(23px, 4.5vw, 37px);
}

.one-code-pick {
    padding: 8px 6px;
    color: #00e;
    font-size: clamp(23px, 4.6vw, 36px);
    line-height: 1.1;
    text-align: center;
    background: #ffc8ff;
    border-bottom: 3px solid #fff;
    white-space: nowrap;
}

.one-code-pick span {
    font-size: clamp(35px, 6.2vw, 54px);
}

.one-code-footer {
    padding: 6px;
    color: #000;
    font-size: clamp(24px, 4.2vw, 34px);
    line-height: 1.25;
    text-align: center;
    background: #ffffa6;
}

.five-ten-panel {
    margin-bottom: 12px;
    overflow: hidden;
    color: #000;
    background: #fff;
    border: 3px solid #d7c5bf;
    border-radius: 5px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-weight: 900;
}

.five-ten-title {
    padding: 8px 6px 12px;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(90deg, #dac5bf 0%, #fff 48%, #ffd7ef 100%);
    border-bottom: 1px solid #aeb3bd;
}

.five-ten-row {
    padding: 7px 6px 8px;
    text-align: center;
    background: #fff;
    border-bottom: 3px solid #ddd;
}

.five-ten-row:last-child {
    border-bottom: 0;
}

.five-ten-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: clamp(26px, 4.7vw, 38px);
    line-height: 1.15;
    white-space: nowrap;
}

.five-ten-meta em {
    color: #078507;
    font-style: normal;
}

.five-ten-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 8px;
    color: #f00;
    font-size: clamp(27px, 4.8vw, 38px);
    line-height: 1;
    white-space: nowrap;
}

.five-ten-numbers span {
    display: inline-block;
    margin: 0 5px;
}

.five-ten-numbers .hit {
    background: #ffff00;
}

.five-ten-numbers b {
    color: #f00;
}

.wave-hit-panel {
    margin-bottom: 12px;
    overflow: hidden;
    color: #000;
    background: #fff;
    border: 3px solid #d7c5bf;
    border-radius: 5px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-weight: 900;
}

.wave-hit-title {
    padding: 8px 6px 12px;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(90deg, #dac5bf 0%, #fff 48%, #ffd7ef 100%);
    border-bottom: 1px solid #aeb3bd;
}

.wave-hit-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 60px;
    padding: 6px 8px;
    font-size: clamp(27px, 4.8vw, 38px);
    line-height: 1.1;
    white-space: nowrap;
    border-bottom: 3px solid #ddd;
}

.wave-hit-row:last-child {
    border-bottom: 0;
}

.wave-hit-row em {
    color: #f00;
    font-style: normal;
}

.two-size-panel {
    margin-bottom: 12px;
    overflow: hidden;
    color: #000;
    background: #fff;
    border: 3px solid #d7c5bf;
    border-radius: 5px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-weight: 900;
}

.two-size-title {
    padding: 8px 6px 12px;
    font-size: clamp(27px, 4.8vw, 38px);
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(90deg, #dac5bf 0%, #fff 48%, #ffd7ef 100%);
    border-bottom: 1px solid #aeb3bd;
}

.two-size-row {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    min-height: 103px;
    border-bottom: 3px solid #cfcfcf;
}

.two-size-row:last-child {
    border-bottom: 0;
}

.two-size-periods,
.two-size-opens {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 5px;
    font-size: clamp(27px, 4.7vw, 38px);
    line-height: 1;
    white-space: nowrap;
}

.two-size-periods {
    align-items: center;
    border-right: 3px solid #cfcfcf;
}

.two-size-opens {
    align-items: flex-start;
    border-left: 3px solid #cfcfcf;
}

.two-size-red {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f00;
    font-size: clamp(34px, 6vw, 48px);
    line-height: 1;
    white-space: nowrap;
}

.two-size-red span {
    background: linear-gradient(90deg, #ffff00 0 45%, transparent 45% 100%);
}

.mystery-panel {
    margin-bottom: 12px;
    overflow: hidden;
    color: #000;
    background: #fff;
    border: 3px solid #d7c5bf;
    border-radius: 5px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-weight: 900;
}

.mystery-title {
    padding: 7px 6px 10px;
    font-size: clamp(27px, 4.8vw, 38px);
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(90deg, #dac5bf 0%, #fff 48%, #ffd7ef 100%);
    border-bottom: 1px solid #aeb3bd;
}

.mystery-image {
    display: block;
    width: 100%;
    height: auto;
}

.mystery-empty {
    padding: 80px 12px;
    color: #777;
    font-size: 24px;
    text-align: center;
    background: #f7f7f7;
}

.mystery-notice {
    padding: 8px 6px;
    color: #f00;
    font-size: clamp(25px, 4.7vw, 36px);
    line-height: 1.15;
    text-align: center;
    background: #ffc5ff;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #ddd;
}

.mystery-result {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr .9fr;
    align-items: center;
    min-height: 58px;
    font-size: clamp(22px, 4.2vw, 32px);
    line-height: 1;
    text-align: center;
}

.mystery-result > * {
    padding: 8px 4px;
    border-right: 3px solid #cfcfcf;
}

.mystery-result > *:last-child {
    border-right: 0;
}

.mystery-result strong {
    color: #00e;
    font-size: clamp(27px, 5vw, 38px);
}

.head-tail-panel {
    margin-bottom: 12px;
    overflow: hidden;
    color: #8b0000;
    background: #fff;
    border: 3px solid #d7c5bf;
    border-radius: 5px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-weight: 900;
}

.head-tail-title {
    padding: 8px 6px 12px;
    color: #000;
    font-size: clamp(27px, 4.8vw, 38px);
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(90deg, #dac5bf 0%, #fff 48%, #ffd7ef 100%);
    border-bottom: 1px solid #aeb3bd;
}

.head-tail-row {
    display: grid;
    grid-template-columns: .9fr 2fr 2.35fr 1.15fr;
    min-height: 54px;
    border-bottom: 3px solid #cfcfcf;
}

.head-tail-row:last-child {
    border-bottom: 0;
}

.head-tail-period,
.head-tail-cell,
.head-tail-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    white-space: nowrap;
    border-right: 3px solid #cfcfcf;
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1;
}

.head-tail-open {
    border-right: 0;
}

.head-tail-cell {
    color: #f00;
    font-size: clamp(24px, 4.3vw, 35px);
}

.head-tail-cell .hit {
    background: #ffff00;
}

.platform-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    padding: 22px;
    background: #09ad58;
    border: 3px solid #f4e5da;
    border-radius: 0 0 18px 18px;
}

.platform-link-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    color: #031ec2;
    text-decoration: none;
    background: #e9f7d0;
    border: 5px solid #fff;
    border-radius: 14px;
    box-shadow: inset 0 -42px 0 #ffff20;
}

.platform-link-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-link-card strong {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 34%;
    padding-top: 6%;
    overflow: hidden;
    color: #0820cc;
    font-family: SimSun, "Songti SC", serif;
    font-size: clamp(18px, 4.2vw, 36px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    background: #ffff20;
}

.platform-link-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70%;
    color: rgba(8, 32, 204, .22);
    font-size: 58px;
    font-weight: 900;
}

.panel-title {
    padding: 10px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    background: #202833;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    text-align: center;
}

.data-table th,
.data-table td {
    padding: 8px 4px;
    border: 1px solid #fff;
}

.data-table th {
    color: #000;
    background: #ffcc66;
}

.data-table td {
    background: #fff;
}

.data-table tr:nth-child(even) td {
    background: #fafafa;
}

.muted {
    color: #aaa;
}

.empty {
    padding: 36px 12px;
    text-align: center;
    background: #fff;
    border: 1px solid #e3e5ea;
}

.site-footer {
    padding: 24px 12px;
    color: #777;
    text-align: center;
}

@media (max-width: 700px) {
    .riqi {
        width: calc(100% - 4px);
        padding: 5px 14px;
        font-size: clamp(12px, 3.7vw, 18px);
        line-height: 1.25;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 7px 2px;
    }

    .lottery-head {
        gap: 4px;
        padding: 5px 10px 3px;
        font-size: 16px;
    }

    .lottery-head strong {
        font-size: 18px;
    }

    .lottery-balls {
        padding: 0 8px 3px;
    }

    .lottery-ball {
        height: 54px;
        margin-right: 5px;
        border-radius: 4px;
    }

    .lottery-ball b {
        font-size: 25px;
    }

    .lottery-ball em {
        height: 17px;
        line-height: 17px;
        margin-top: 0;
        padding: 0 5px;
        font-size: 17px;
    }

    .lottery-plus {
        margin-right: 5px;
        font-size: 24px;
    }

    .lottery-foot {
        gap: 4px;
        padding: 4px 10px 7px;
        font-size: 14px;
        line-height: 1.35;
    }

    .lottery-foot button {
        width: 38px;
        height: 19px;
        padding: 0;
        line-height: 19px;
        font-size: 15px;
    }

    .one-code-panel {
        border-width: 2px;
    }

    .one-code-title {
        padding: 7px 4px 9px;
        font-size: clamp(19px, 6vw, 27px);
    }

    .one-code-label,
    .one-code-value {
        min-height: 48px;
        padding: 5px 2px;
        font-size: 20px;
        border-bottom-width: 2px;
    }

    .one-code-label span,
    .one-code-value span {
        font-size: 26px;
    }

    .one-code-table > div:nth-child(1) span,
    .one-code-table > div:nth-child(2) span {
        font-size: 19px;
    }

    .one-code-pick {
        padding: 7px 3px;
        font-size: 17px;
    }

    .one-code-pick span {
        font-size: 28px;
    }

    .one-code-footer {
        font-size: clamp(19px, 5.5vw, 27px);
    }

    .five-ten-title {
        font-size: clamp(22px, 6vw, 30px);
    }

    .five-ten-row {
        padding: 6px 2px 7px;
    }

    .five-ten-meta {
        gap: 7px;
        font-size: clamp(19px, 5.3vw, 26px);
    }

    .five-ten-numbers {
        margin-top: 6px;
        font-size: clamp(18px, 5.1vw, 25px);
    }

    .five-ten-numbers span {
        margin: 0 2px;
    }

    .wave-hit-title {
        font-size: clamp(22px, 6vw, 30px);
    }

    .wave-hit-row {
        gap: 8px;
        min-height: 47px;
        padding: 5px 2px;
        font-size: clamp(18px, 5.2vw, 25px);
    }

    .two-size-title {
        font-size: clamp(20px, 5.8vw, 28px);
    }

    .two-size-row {
        grid-template-columns: .95fr 2.8fr .95fr;
        min-height: 76px;
    }

    .two-size-periods,
    .two-size-opens {
        gap: 5px;
        padding: 4px 2px;
        font-size: clamp(18px, 5.4vw, 25px);
    }

    .two-size-red {
        font-size: clamp(28px, 8vw, 38px);
    }

    .mystery-title {
        font-size: clamp(20px, 5.8vw, 28px);
    }

    .mystery-notice {
        font-size: clamp(17px, 5vw, 24px);
    }

    .mystery-result {
        grid-template-columns: 1.1fr 1.5fr .9fr;
        min-height: 48px;
        font-size: clamp(16px, 4.6vw, 22px);
    }

    .mystery-result strong {
        font-size: clamp(20px, 5.7vw, 28px);
    }

    .head-tail-title {
        font-size: clamp(20px, 5.8vw, 28px);
    }

    .head-tail-row {
        grid-template-columns: .9fr 2fr 2.35fr 1.15fr;
        min-height: 43px;
    }

    .head-tail-period,
    .head-tail-cell,
    .head-tail-open {
        padding: 3px 1px;
        font-size: clamp(14px, 4.2vw, 20px);
        border-right-width: 2px;
    }

    .head-tail-cell {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    .platform-link-grid {
        gap: 7px;
        padding: 10px;
        border-width: 2px;
        border-radius: 0 0 12px 12px;
    }

    .platform-link-card {
        border-width: 3px;
        border-radius: 9px;
        box-shadow: inset 0 -30px 0 #ffff20;
    }

    .platform-link-card strong {
        font-size: clamp(13px, 5vw, 20px);
    }
}
