:root {
    color: #252525;
    background: #f3f5f7;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-synthesis: none;
}

.scratch-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:20px 0 30px; }
.scratch-card { border:1px solid #e7e7e7; border-radius:8px; padding:12px; background:#fff; }
.scratch-card[hidden] { display:none; }
.scratch-card a,.scratch-card span { display:block; color:inherit; text-decoration:none; }
.scratch-card img { display:block; width:100%; aspect-ratio:4/3; object-fit:contain; }
.scratch-card strong,.scratch-card small { display:block; margin-top:8px; }
.scratch-card p { margin:8px 0 0; color:#666; font-size:14px; }
.scratch-detail { display:grid; grid-template-columns:minmax(260px,480px) 1fr; gap:28px; padding:24px; background:#fff; margin:20px 0 30px; }
.scratch-detail > img { width:100%; max-height:420px; object-fit:contain; }
.scratch-detail strong { color:#b12a2c; }
.scratch-detail a { display:inline-block; margin-top:14px; padding:10px 20px; color:#fff; background:#b12a2c; }
@media (max-width:700px) { .scratch-detail { grid-template-columns:1fr; } }
.home-hotline { margin:20px 0; padding:16px 20px; background:#fff; border-left:4px solid #bd1d25; display:flex; gap:18px; align-items:center; }
.home-hotline span { font-size:24px; color:#b12a2c; font-weight:700; }
@media (max-width: 800px) { .scratch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 480px) { .scratch-grid { grid-template-columns:1fr 1fr; gap:8px; }.scratch-card { padding:8px; } }

.banner-carousel { min-width: 0; height: 430px; position: relative; overflow: hidden; }
.banner-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-slide { flex: 0 0 100%; min-width: 0; height: 100%; position: relative; scroll-snap-align: start; }
.banner-slide a,.banner-slide > div { display: block; width: 100%; height: 100%; }
.banner-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-slide strong { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px; color: #fff; background: rgb(0 0 0 / 70%); }
.banner-dots { display: flex; align-items: center; gap: 2px; position: absolute; right: 20px; bottom: 22px; z-index: 1; }
.banner-dots a { display: flex; align-items: center; justify-content: center; width: 18px; height: 24px; }
.banner-dots a::before { content: ""; width: 12px; height: 12px; border-radius: 12px; background: #aaa; }
.banner-dots a[aria-current="true"] { width: 32px; }
.banner-dots a[aria-current="true"]::before { width: 30px; background: #fff; }
.quick-links img { width: 52px; height: 52px; object-fit: contain; }
.quick-links b { font-size: 20px; font-weight: 700; line-height: 1; }
.quick-links > span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 88px; white-space: nowrap; }
.home-ads { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.home-ads img { display: block; width: 100%; height: 110px; object-fit: cover; }
.draw-tabs { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.draw-tabs a { padding: 8px 14px; border-bottom: 2px solid #c9141c; }
.draw-panel { padding-bottom: 12px; }
.live-channels { display: flex; flex-wrap: wrap; gap: 16px; }
.live-channels article { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #ddd; }
.live-channels img { width: 64px; height: 42px; object-fit: contain; }
.information-grid article ul { padding-left: 18px; line-height: 2; }
.information-grid article li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.information-grid time { margin-left: 8px; color: #777; }
.feature-article img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.feature-article strong { display: block; margin: 8px 0; }
@media(max-width: 760px) { .home-ads { grid-template-columns: repeat(2,minmax(0,1fr)); } }

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    background: #f3f5f7;
}

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

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    color: #fff;
    background: #111;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.preview-banner nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0; }
.preview-banner p { margin: 8px 0; }
.preview-candidate { outline: 2px dashed #bd1d25; outline-offset: 4px; }

.site-header {
    background: #fff;
}

.header-inner {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    display: block;
    width: min(420px, 32vw);
    height: auto;
}

.header-inner .slogan {
    display: block;
    width: min(300px, 25vw);
    height: auto;
}

.header-search { width: min(360px, 30vw); flex: 0 0 auto; align-self: center; }
.header-search-controls, .search-page-controls { display: flex; overflow: hidden; border: 1px solid #c51621; border-radius: 32px; background: #fff; }
.header-search input, .search-page-form input { min-width: 0; flex: 1; padding: 12px 18px; border: 0; outline-offset: -3px; background: #f7f7f7; font: inherit; }
.header-search button, .search-page-form button { flex: 0 0 92px; border: 0; background: #b9000b; color: #fff; font: inherit; cursor: pointer; }
.header-search button:hover, .search-page-form button:hover { background: #94000a; }
.search-results .header-search { display: none; }
.search-results .main-navigation { display: none; }
.search-page { min-height: 480px; padding-top: 30px; padding-bottom: 70px; }
.search-page-form { max-width: 780px; margin: 28px auto 42px; }
.search-page-controls { border-radius: 6px; }
.search-page-form input { padding: 16px 20px; }
.search-page-form button { flex-basis: 116px; }
.search-section-tabs { display: flex; flex-wrap: wrap; gap: 8px 30px; border-bottom: 1px solid #ddd; }
.search-section-tabs a { padding: 14px 18px; border-bottom: 3px solid transparent; font-size: 18px; }
.search-section-tabs a:hover, .search-section-tabs a.active { color: #bd121c; border-bottom-color: #bd121c; }
.search-result-count { margin: 24px 0 8px; color: #666; }
.search-article-list li { align-items: flex-start; }
.search-article-list li > div { min-width: 0; }
.search-article-list h2 a:hover { color: #bd121c; }
.search-article-list p { margin: 0 0 12px; line-height: 1.65; overflow-wrap: anywhere; }
.search-article-list mark { color: #c00012; background: transparent; font-weight: inherit; }
.search-article-list .search-excerpt { color: #555; }

.main-navigation {
    color: #fff;
    background: linear-gradient(180deg, #b12a2c, #d90008);
}

.nav-items {
    min-height: 60px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.nav-items a {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid transparent;
    font-size: 20px;
    font-weight: 600;
}

.nav-items a:hover,
.nav-items a:focus-visible,
.nav-items a.active {
    border-bottom-color: #fff;
    background: rgb(128 0 0 / 18%);
}

.page-content {
    padding-bottom: 12px;
}

.quick-links {
    min-height: 88px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: center;
    background: #fff;
}

.quick-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 88px;
    white-space: nowrap;
}

.quick-links a:hover,
.quick-links a:focus-visible {
    color: #d4000b;
}

.quick-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #e01b25;
    font-size: 22px;
    font-weight: 700;
}

.quick-icon.blue { background: #1678c8; }
.quick-icon.cyan { background: #00a3b5; }
.quick-icon.orange { background: #ed7c19; }
.quick-icon.purple { background: #7d4bb3; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
    min-height: 430px;
    margin-top: 10px;
    background: #fff;
}

.hero-grid--news-only,
.hero-grid--banner-only {
    grid-template-columns: 1fr;
}

.hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
}

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

.hero h1 {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 18px 22px;
    overflow: hidden;
    color: #fff;
    background: rgb(0 0 0 / 68%);
    font-size: 18px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-panel {
    min-width: 0;
    padding-bottom: 20px;
}

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    min-height: 58px;
    border-bottom: 2px solid #e21a25;
}

.news-tabs [role="tab"] {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 24px;
    border: 0;
    border-bottom: 4px solid transparent;
    margin-bottom: -2px;
    color: #667085;
    background: transparent;
    font: inherit;
    font-size: 21px;
    cursor: pointer;
}

.news-tabs [role="tab"] + [role="tab"]::before {
    position: absolute;
    left: 0;
    top: 50%;
    height: 22px;
    border-left: 1px solid #ddd;
    transform: translateY(-50%);
    content: "";
}

.news-tabs [role="tab"][aria-selected="true"] {
    border-bottom-color: #e21a25;
    color: #d50b16;
    font-weight: 700;
}

.news-tab-panel {
    padding: 0 24px;
}

.news-tab-panel[hidden] {
    display: none;
}

.section-heading {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e21a25;
}

.section-heading h2 {
    margin: 0;
    color: #d50b16;
    font-size: 21px;
}

.section-heading > a {
    color: #777;
    font-size: 14px;
}

.news-panel ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.news-panel li {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px dashed #ddd;
}

.news-panel li a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-panel time {
    color: #999;
}

.lottery-section {
    margin-top: 10px;
    padding: 0 24px 24px;
    background: #fff;
}

.lottery-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.lottery-card {
    display: grid;
    grid-template-columns: 112px 1fr 70px;
    align-items: center;
    min-height: 132px;
    padding: 16px;
    border: 1px solid #e1e4e8;
    background: #f9fafb;
}

.lottery-title h3 {
    margin: 0 0 8px;
    color: #df0b16;
    font-size: 21px;
}

.lottery-title span {
    color: #777;
    font-size: 13px;
}

.lottery-result p {
    margin: 0 0 10px;
}

.balls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ball {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 32% 30%, #ff8d8d 0%, #ef2430 46%, #c40d16 100%);
    box-shadow: inset 0 -2px 3px rgb(90 0 0 / 35%), 0 1px 2px rgb(0 0 0 / 16%);
    font-weight: 700;
    text-shadow: 0 1px 0 rgb(0 0 0 / 25%);
}

.ball.blue {
    background: radial-gradient(circle at 32% 30%, #8ec0ff 0%, #2d74d6 48%, #1a56ae 100%);
    box-shadow: inset 0 -2px 3px rgb(0 30 80 / 35%), 0 1px 2px rgb(0 0 0 / 16%);
}

.balls-fc3d .ball {
    background: radial-gradient(circle at 32% 30%, #9aefff 0%, #22b4de 48%, #0c8cb4 100%);
    box-shadow: inset 0 -2px 3px rgb(0 60 80 / 30%), 0 1px 2px rgb(0 0 0 / 16%);
}

.balls-qlc .ball {
    background: radial-gradient(circle at 32% 30%, #ffe58a 0%, #f0b000 48%, #d28c00 100%);
    box-shadow: inset 0 -2px 3px rgb(120 70 0 / 28%), 0 1px 2px rgb(0 0 0 / 16%);
}

.balls-qlc .ball.blue {
    background: url('/assets/lottery-orange_dark.png') center / 100% 100% no-repeat;
    box-shadow: none;
}

.balls-kl8 .ball {
    background: radial-gradient(circle at 32% 30%, #ff9a72 0%, #f44518 48%, #d02808 100%);
    box-shadow: inset 0 -2px 3px rgb(120 20 0 / 30%), 0 1px 2px rgb(0 0 0 / 16%);
}

.detail-link,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    color: #086fa8;
    background: #eaf6fd;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.information-grid article {
    min-height: 220px;
    padding: 0 24px 24px;
    background: #fff;
}

.information-grid p {
    min-height: 72px;
    color: #555;
    line-height: 1.8;
}

.home-draw-layout,
.home-section-row,
.home-info-fallback {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 10px;
}

.home-draw-layout {
    align-items: stretch;
}

.home-draw-layout,
.home-bottom-layout {
    margin-top: 10px;
}

.home-bottom-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-draw-layout--full,
.home-section-row--aside-only,
.home-info-fallback--single {
    grid-template-columns: 1fr;
}

.home-section-row--aside-only > .home-side-ads {
    max-width: 400px;
    justify-self: end;
}

.home-info-fallback > .home-hotline {
    height: 100%;
}

.home-policy-list {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.home-policy-list > .home-policy:only-child {
    flex: 1;
}

.home-draw-layout .lottery-section {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border-top: 2px solid #e30613;
}

.home-draw-layout .lottery-section > .section-heading {
    display: none;
}

.home-draw-layout .draw-tabs {
    min-height: 50px;
    align-items: center;
    gap: 0;
    margin: 0 20px;
    padding: 0;
}

.home-draw-layout .draw-tabs button {
    position: relative;
    height: 50px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.home-draw-layout .draw-tabs button:first-child { padding-left: 0; }
.home-draw-layout .draw-tabs button + button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 1px;
    height: 16px;
    background: #d8d8d8;
}

.home-draw-layout .draw-tabs button:hover { color: #e50113; }
.home-draw-layout .draw-tabs button[aria-selected="true"] {
    color: #e50113;
    font-weight: 700;
}

.home-draw-layout .draw-stage {
    display: grid;
    flex: 1;
    background: #fff;
}

.home-draw-layout .draw-stage > .draw-panel {
    grid-area: 1 / 1;
    background: #fff;
}

.home-draw-layout .draw-panel[hidden] {
    display: none;
}

/* 开奖直播始终参与高度计算，其它标签叠在同一高度上，切换时不再跳动。 */
.home-draw-layout #draw-LIVE[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.home-draw-layout .draw-stage > .draw-panel:not(#draw-LIVE) {
    z-index: 1;
    height: 0;
    min-height: 100%;
    overflow: auto;
}

.home-draw-layout .draw-stage > .draw-panel:not(#draw-LIVE)[hidden] {
    display: none !important;
}

.home-draw-layout .draw-stage:not(:has(#draw-LIVE)) > .draw-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.home-draw-layout .draw-stage > #draw-BALLS.draw-panel {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    height: 100%;
    min-height: 100%;
    overflow: visible;
}

.home-draw-layout .lottery-list {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.home-draw-layout .lottery-card {
    grid-template-columns: 102px minmax(0, 1fr) auto;
    column-gap: 12px;
    flex: 1 0 auto;
    min-height: 132px;
    padding: 28px 24px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e7e7e7;
    border-radius: 0;
}

.home-draw-layout .lottery-result {
    min-width: 0;
    overflow: visible;
}

.home-draw-layout .lottery-result p {
    margin: 0 0 12px;
    overflow: visible;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}

.home-draw-layout .lottery-result p strong { font-weight: 400; }
.home-draw-layout .lottery-result .pool-amount { margin-left: 8px; }
.home-draw-layout .balls { margin: 0; }
.home-draw-layout .ball {
    display: inline-block;
    flex-shrink: 0;
    width: 35px;
    height: 40px;
    margin: 0 4px 0 0;
    border-radius: 0;
    background: url('/assets/lottery-redCircle.png') center / 100% 100% no-repeat;
    box-shadow: none;
    text-shadow: none;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 37px;
    text-align: center;
}

.home-draw-layout .ball.blue { background-image: url('/assets/lottery-blueCircle.png'); }
.home-draw-layout .balls-fc3d .ball { background-image: url('/assets/lottery-fc3d.png'); }
.home-draw-layout .balls-qlc .ball { background-image: url('/assets/lottery-orange.png'); }
.home-draw-layout .balls-qlc .ball.blue { background-image: url('/assets/lottery-orange_dark.png'); }
.home-draw-layout .balls-kl8 .ball { margin: 0; background-image: url('/assets/lottery-kl8.png'); }

.home-draw-layout .balls-kl8 {
    grid-template-columns: repeat(10, 35px);
    gap: 8px 4px;
}

.home-draw-layout .lottery-card:nth-child(odd) {
    background: #f6f7f9;
}

.home-draw-layout .lottery-result p em {
    color: #e30613;
    font-style: normal;
}

.home-draw-layout .lottery-result .pool-amount + .pool-amount { margin-left: 12px; }

.home-draw-layout .lottery-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.home-draw-layout .lottery-title > span {
    display: none;
}

.home-draw-layout .lottery-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    justify-content: center;
    justify-self: end;
    gap: 10px;
    width: max-content;
}

.home-draw-layout .lottery-actions > span {
    width: auto;
    color: #333;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.home-draw-layout .lottery-action-links {
    display: flex;
    gap: 8px;
}

.home-draw-layout .lottery-card .detail-link {
    min-height: 32px;
    height: 32px;
    width: 72px;
    padding: 0;
    border-radius: 2px;
    color: #1d5d8c;
    background: #ecf7ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 32px;
}

.home-draw-layout .lottery-card .detail-link:hover { color: #4593d6; }

.home-draw-layout .live-channels {
    display: flex;
    flex-direction: column;
    min-height: 708px;
    gap: 16px;
    padding: 16px 20px;
}

.home-draw-layout .live-channels article {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 15px 25px;
    border: 0;
    background: #f7f7f7;
    text-align: center;
}

.home-draw-layout .live-channels img {
    width: 177px;
    max-width: 100%;
    height: 52px;
    margin-bottom: 8px;
    object-fit: fill;
}

.home-draw-layout .live-channel-text {
    width: 100%;
    margin: 0 0 12px;
    color: #999;
    font-size: 14px;
    line-height: 20px;
    white-space: pre-line;
}

.home-draw-layout .live-broadcast-time {
    width: 100%;
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 22px;
    white-space: pre-line;
}

.home-draw-layout .live-broadcast-time span {
    display: inline-block;
    max-width: 100%;
    margin: 0 16px;
    white-space: normal;
}

.home-draw-links {
    margin: 0;
    padding: 20px 24px;
    list-style: none;
}

.home-draw-links li {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px dashed #ddd;
}

.home-draw-links a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-draw-links time { color: #999; }

.home-info-aside,
.home-bottom-aside,
.home-bottom-main,
.home-side-ads {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.home-draw-layout > .home-info-aside {
    height: 0;
    min-height: 100%;
    overflow: hidden;
}

.home-draw-layout .home-info-aside > .home-open-panel {
    flex: 3 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-draw-layout .home-info-aside > .home-hotline {
    flex: 2 1 0;
    min-height: 0;
}

.home-draw-layout .home-open-panel > a {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 72px;
    margin: 16px 20px 0;
}

.home-draw-layout .home-open-panel > a:last-of-type {
    margin-bottom: 16px;
}

.home-open-panel,
.home-hotline,
.home-benefit,
.home-policy {
    background: #fff;
}

.home-open-panel {
    min-height: 280px;
    border: 1px solid #e6e6e6;
}

.home-open-panel h2 {
    margin: 0;
    padding: 15px 20px;
    color: #fff;
    background: linear-gradient(90deg, #14bd80, #1475b6);
    text-align: center;
    font-size: 22px;
}

.home-open-panel > a {
    display: block;
    margin: 22px 20px;
    padding: 18px 12px;
    background: #f5f5f5;
    text-align: center;
    font-size: 18px;
}

.home-open-panel > a:hover,
.home-open-panel > a:focus-visible {
    color: #c51621;
}

@font-face {
    font-family: 'DINAlternateBold';
    src: url('../assets/DINAlternateBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.home-hotline {
    min-height: 180px;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 24px;
    border: 1px solid #e6e6e6;
}

.home-hotline .home-hotline-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.home-hotline div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-hotline strong {
    color: #333;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.home-hotline div span {
    color: #4e81b8;
    font-family: 'DINAlternateBold', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.scratch-home {
    margin-top: 10px;
    padding: 18px 20px 20px;
    border-top: 2px solid #e30613;
    background: #fff;
    /* 轮播卡片切换时不作为页面滚动锚点。 */
    overflow-anchor: none;
}

.scratch-home h2 {
    margin: 0 0 14px;
    color: #e30613;
    font-size: 20px;
}

.scratch-carousel-viewport {
    overflow: hidden;
}

.scratch-home .scratch-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.scratch-home .scratch-card {
    min-width: 0;
    padding: 0;
    border: 0;
    background: #f7f7f7;
    text-align: center;
}

.scratch-home .scratch-card img {
    height: 215px;
    aspect-ratio: auto;
    object-fit: cover;
}

.scratch-home .scratch-card strong {
    padding: 8px 4px;
    font-weight: 400;
}

.scratch-home .scratch-card small {
    display: none;
}

.home-benefit,
.home-policy {
    min-width: 0;
    border-top: 2px solid #e30613;
}

.home-benefit-tabs {
    display: flex;
    flex-wrap: wrap;
    min-height: 56px;
    align-items: center;
    gap: 0;
    padding: 0 8px;
}

.home-benefit-tabs [role="tab"] {
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 19px;
    cursor: pointer;
}

.home-benefit-tabs [role="tab"] + [role="tab"] {
    border-left: 1px solid #ddd;
}

.home-benefit-tabs [role="tab"][aria-selected="true"] {
    color: #e30613;
    font-weight: 700;
}

.home-benefit-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    min-height: 245px;
    padding: 20px;
}

.home-benefit-panel--list-only {
    display: block;
    min-height: 0;
}

.home-benefit-panel[hidden] {
    display: none;
}

.home-benefit-feature {
    position: relative;
    min-width: 0;
    height: 205px;
    overflow: hidden;
}

.home-benefit-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-benefit-feature span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 8px 12px;
    background: rgb(0 0 0 / 60%);
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-benefit-panel ul,
.home-policy ul {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-benefit-panel li,
.home-policy li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.home-benefit-panel li a,
.home-policy li a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-panel li a:hover,
.news-panel li a:focus-visible,
.home-draw-links a:hover,
.home-draw-links a:focus-visible,
.home-benefit-panel li a:hover,
.home-benefit-panel li a:focus-visible,
.home-benefit-feature:hover span,
.home-benefit-feature:focus-visible span,
.home-policy li a:hover,
.home-policy li a:focus-visible {
    color: #e60213;
}

.home-benefit-panel time,
.home-policy time {
    flex: 0 0 auto;
    color: #999;
}

.home-benefit-panel p,
.home-policy p {
    margin: 0;
    color: #777;
}

.home-policy {
    padding: 16px 20px 20px;
}

.home-policy h2 {
    margin: 0 0 12px;
    color: #e30613;
    font-size: 20px;
}

.home-side-ads img {
    display: block;
    width: 100%;
    height: auto;
}

.home-side-ads a {
    display: block;
}

@media (max-width: 900px) {
    .home-draw-layout,
    .home-section-row,
    .home-info-fallback {
        grid-template-columns: 1fr;
    }

    .home-draw-layout > .home-info-aside {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .home-draw-layout .home-info-aside > .home-open-panel,
    .home-draw-layout .home-info-aside > .home-hotline {
        flex: none;
        height: auto;
    }

    .home-draw-layout .home-info-aside > .home-open-panel {
        min-height: 280px;
    }

    .home-draw-layout .home-info-aside > .home-hotline {
        min-height: 180px;
    }

    .home-draw-layout .home-open-panel > a {
        flex: none;
        height: 86px;
    }

    .scratch-home .scratch-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-draw-layout .lottery-card {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }

    .home-draw-layout .lottery-result p {
        white-space: normal;
    }

    .home-draw-layout .ball {
        width: 28px;
        height: 32px;
        font-size: 14px;
        line-height: 30px;
    }

    .home-draw-layout .balls-kl8 {
        grid-template-columns: repeat(10, 28px);
        gap: 8px 3px;
    }

    .home-draw-layout .lottery-actions {
        justify-content: flex-start;
        justify-self: start;
    }

    .scratch-home .scratch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-benefit-panel {
        grid-template-columns: 1fr;
    }
}

.responsibility {
    min-height: 88px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    margin-top: 10px;
    color: #fff;
    background: linear-gradient(90deg, #1599b2, #20b59c);
    text-align: center;
    font-size: 24px;
}

.responsibility--image {
    display: block;
    min-height: 0;
    background: none;
}

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

.site-footer {
    padding: 20px 0 50px;
    background: #f8f9fc;
}

.site-footer a[href] {
    cursor: pointer;
}

.site-footer a[href]:hover,
.site-footer a[href]:focus-visible {
    color: #c9202c;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    color: #333;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.footer-inner > * {
    max-width: 100%;
}

.footer-inner p {
    margin: 0;
}

.footer-inner .warning,
.footer-inner > p {
    padding-top: 15px;
}

.footer-inner .warning {
    color: inherit;
    font-weight: 400;
}

.footer-inner .related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    padding-top: 18px;
}

.related-links strong {
    font-weight: 400;
}

.footer-qr-codes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 50px;
    margin: 0;
    padding-top: 20px;
}

.footer-qr-codes figure {
    width: auto;
    max-width: 100%;
    margin: 0;
}

.footer-qr-codes img,
.footer-fallback-qr {
    display: block;
    width: 84px;
    height: 84px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: fill;
}

.footer-qr-codes figcaption {
    margin-top: 4px;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.footer-qr-codes .footer-qr-combined {
    width: auto;
}

.footer-qr-codes .footer-qr-combined img,
.footer-fallback-qr {
    width: 356px;
    height: auto;
    /* 原图 856×224，单个二维码 172×156，校正后二维码等宽高。 */
    aspect-ratio: 4173 / 1204;
    object-fit: fill;
}

.footer-qr-combined figcaption {
    display: none;
}

.footer-inner > p.site-records {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    width: min(510px, 100%);
    padding-top: 20px;
    line-height: 20px;
}

.site-records a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-records img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.site-records .name-disclosure img {
    width: 45px;
    height: 45px;
    margin-top: -12px;
    margin-bottom: -12px;
}

.article-page {
    width: min(100% - 32px, 960px);
    margin: 36px auto 72px;
    padding: 40px 56px 0;
}

.preview-banner { margin: -20px 0 24px; padding: 10px; color: #8a5700; text-align: center; background: #fff3cd; }

.article-page h1 {
    margin: 0;
    text-align: center;
    font-size: 30px;
}

.article-subtitle {
    margin: 12px 0 0;
    color: #666;
    text-align: center;
    font-size: 18px;
}

.article-meta {
    margin: 18px 0 30px;
    color: #888;
    text-align: center;
}

.article-meta span + span {
    margin-left: 20px;
}

.article-meta a {
    color: inherit;
}

.article-cover {
    display: block;
    max-width: 100%;
    max-height: 520px;
    margin: 0 auto 28px;
    object-fit: contain;
}

.article-body {
    line-height: 1.9;
    overflow-wrap: anywhere;
    overflow-x: auto;
}

.article-body p { margin: 0 0 1em; }
.article-body h2, .article-body h3 { margin: 1.15em 0 0.55em; line-height: 1.45; }
.article-body blockquote { margin: 1em 0; padding: 0.15em 0 0.15em 1em; border-left: 4px solid #e6c3c6; color: #555; }
.article-body ul, .article-body ol { margin: 0 0 1em; padding-left: 1.8em; }
.article-body table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 16px 0; font-size: 16px; line-height: 1.8; }
.article-body th, .article-body td { min-width: 80px; padding: 8px; border: 1px solid #cfd5df; vertical-align: top; }
.article-body th { background: #f2f4f7; }
.article-body table p { margin: 0 0 12px; text-align: start; }

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1em auto;
}

.article-body .img_wrapper { margin: 0 auto 1em; text-align: center; }
.article-body .img_wrapper img { margin: 0 auto; }
.article-body .img_descr { display: block; margin-top: 12px; color: #999; font-size: 16px; line-height: 1.6; text-align: center; }

.article-detail-page {
    background: #fafbff;
    color: #29292e;
    font-family: "Microsoft YaHei", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", STHeiti, sans-serif;
    font-size: 16px;
}
.article-detail-page .article-page { width: min(100% - 32px, 1240px); margin: 30px auto 40px; padding: 0; }
.article-detail-page .breadcrumbs {
    position: relative;
    min-height: 56px;
    margin: 0;
    padding-left: 25px;
    border-bottom: 1px solid #c6c6c6;
    color: #231845;
    font-size: 16px;
    line-height: 56px;
}
.article-detail-page .breadcrumbs::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-45%);
    width: 16px;
    height: 16px;
    background: linear-gradient(270deg, #c50701, #e62c60);
}
.article-detail-page .article-page > article { padding: 30px 100px 10px; }
.article-detail-page h1 { font-size: 24px; font-weight: 700; line-height: 36px; }
.article-detail-page .article-meta { margin: 20px 0; font-size: 14px; color: #727272; line-height: 30px; }
.article-detail-page .article-body { font-family: SimSun, "宋体", serif; font-size: 18px; line-height: 30px; }
.article-detail-page .article-body p { margin: 1em 0; text-align: justify; }
.article-detail-page .article-body > p:first-child { margin-top: 0; }
.article-detail-page .article-body table p { margin: 0 0 12px; text-align: start; }
.article-detail-page .article-body .img_descr { margin-top: 3px; font-size: 14px; }
@media (max-width: 800px) {
    .article-detail-page .article-page > article { padding: 24px 16px 10px; }
    .article-detail-page .breadcrumbs { line-height: 28px; padding-top: 14px; padding-bottom: 14px; }
}

.content-list-page { width: min(100% - 32px, 1080px); margin: 32px auto 72px; }
.site-search { display: flex; justify-content: flex-end; gap: 8px; }
.site-search input { width: min(100%, 320px); padding: 10px 12px; border: 1px solid #ccc; }
.site-search button { padding: 10px 22px; color: #fff; border: 0; background: #c40018; }
.result-count { color: #777; }
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #eee; }
.article-list img { width: 180px; height: 112px; object-fit: cover; }
.article-list h2 { margin: 0 0 10px; font-size: 20px; }
.section-list .article-list h2 a:hover,
.section-list .article-list h2 a:focus-visible { color: #e60213; }
.article-list p, .article-list time { color: #666; }
.pagination { display: flex; justify-content: center; gap: 24px; margin-top: 32px; }
.pagination.channel-pagination { align-items: center; flex-wrap: wrap; gap: 8px; }
.section-list .channel-pagination { align-items: center; flex-wrap: wrap; gap: 8px; }
.channel-pagination > a, .channel-pagination > span:not(.page-ellipsis), .channel-pagination .page-jump button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 46px;
  padding: 0 12px; border: 0; border-radius: 4px; background: #f6f6f6; color: #222;
}
.channel-pagination > a:hover, .channel-pagination .page-jump button:hover { color: #c51621; }
.channel-pagination > span.current { background: #df1717; color: #fff; }
.channel-pagination > span.disabled { color: #bfc2c6; cursor: default; }
.channel-pagination .page-ellipsis { padding: 0 8px; }
.channel-pagination .page-jump { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.channel-pagination .page-jump label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.channel-pagination .page-jump input { width: 66px; height: 42px; padding: 0 8px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.channel-pagination .page-jump button { cursor: pointer; }
.empty-result, .error-page { padding: 80px 20px; text-align: center; }

.nav-items { display:flex; flex-wrap:wrap; }
.nav-items > a, .navigation-group { flex:1; min-width:110px; }
.navigation-group { position:relative; }
.navigation-children { display:none; position:absolute; z-index:20; min-width:100%; background:#c51621; box-shadow:0 4px 12px #0003; }
.navigation-group:hover .navigation-children, .navigation-group:focus-within .navigation-children { display:block; }
.navigation-children a { white-space:nowrap; padding:0 16px; font-size:16px; }
.breadcrumbs { margin-bottom:20px; color:#666; line-height:1.8; }
.breadcrumbs a:hover, .article-body a { color:#a80012; text-decoration:underline; }
.channel-tabs { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
.channel-tabs a { display:block; padding:12px 22px; border:1px solid #ddd; background:#fff; }
.channel-tabs a.active { color:#fff; background:#ba1521; border-color:#ba1521; }
.table-scroll { overflow-x:auto; }
.lottery-table { width:100%; margin:24px 0; border-collapse:collapse; background:#fff; }
.lottery-table caption { padding:16px; font-weight:bold; font-size:20px; }
.lottery-table th, .lottery-table td { padding:14px 12px; border:1px solid #ddd; text-align:center; }
.lottery-table th { background:#fbeef0; }
.balls-kl8 { display:grid; grid-template-columns:repeat(10,34px); gap:4px; }
.balls-kl8 .ball { margin:0; }
.draw-amounts { display:grid; grid-template-columns:120px 1fr; gap:14px; margin:28px 0; }
.draw-amounts dd { margin:0; }
.lottery-detail h1 { margin-bottom: 28px; font-size: 32px; font-weight: 700; }
.lottery-detail .draw-date { margin: 0 0 14px; color: #222; font-size: 16px; text-align: left; }
.lottery-detail .draw-money { margin: 0 0 8px; color: #e10613; font-size: 16px; }
.lottery-detail .balls { margin: 18px 0 26px; }
.lottery-detail .lottery-table { margin-top: 4px; }
.lottery-detail .lottery-table th { background: #f4f7fb; color: #333; font-weight: 400; }
.lottery-detail .lottery-table td { color: #e10613; }
.lottery-detail .lottery-table td:first-child { color: #333; }
.lottery-detail .draw-redeem { margin: 22px 0 0; color: #666; font-size: 14px; line-height: 1.9; }
.lottery-detail .fc3d-title { max-width: 1000px; margin: 0 auto 36px; text-align: center; line-height: 1.35; }
.fc3d-notice { max-width: 1000px; margin: 0 auto; color: #222; font-size: 16px; }
.fc3d-notice > p:not(.fc3d-redeem) { margin: 0 0 16px; }
.fc3d-notice > p:not(.fc3d-redeem) > span { color: #e10613; }
.fc3d-notice .fc3d-numbers { margin: 28px 0 20px; }
.fc3d-notice .balls { margin: 0; }
.fc3d-notice .lottery-table { margin: 0; }
.fc3d-notice .lottery-table th { background: #edf4fa; }
.fc3d-notice .lottery-table td { padding: 12px; }
.kl8-notice { max-width: 730px; margin: 0 auto; color: #111; font-size: 20px; line-height: 1.9; }
.kl8-notice > p { margin: 0 0 8px; font-weight: 700; }
.lottery-detail .kl8-notice .draw-date { margin: 0 0 8px; color: inherit; font-size: inherit; }
.kl8-numbers { display: flex; align-items: center; gap: 14px; margin: 28px 0; font-weight: 700; }
.kl8-numbers > span { white-space: nowrap; }
.lottery-detail .kl8-notice .balls { margin: 0; }
.kl8-notice .balls-kl8 { grid-template-columns: repeat(10, 44px); gap: 4px 7px; }
.kl8-notice .balls-kl8 .ball { width: 44px; height: 44px; line-height: 44px; font-size: 28px; background: url('/assets/lottery-kl8.png') center / contain no-repeat; box-shadow: none; }
.kl8-notice h2 { margin: 28px 0 16px; font-size: 22px; font-weight: 700; text-align: center; }
.kl8-tabs { display: flex; flex-wrap: nowrap; margin: 0; border: 1px solid #999; border-bottom: 0; overflow-x: auto; }
.kl8-tabs button { flex: 1 0 0; min-width: 54px; height: 55px; padding: 0 8px; border: 0; border-radius: 0; background: #fff; color: #999; font: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.kl8-tabs button:hover { color: #e60012; background: #fff5f5; }
.kl8-tabs button[aria-selected=true] { background: #e60012; color: #fff; }
.kl8-tabs button:focus-visible { outline-offset: -3px; }
.kl8-panel { margin-top: 0; }
.kl8-panel[hidden] { display: none; }
.lottery-detail .kl8-panel .lottery-table { width: 100%; margin: 0; table-layout: fixed; }
.lottery-detail .kl8-panel .lottery-table td, .lottery-detail .kl8-panel .lottery-table th { height: 60px; padding: 10px 8px; border-color: #999; color: #111; font-size: 20px; font-weight: 700; text-align: center; }
.lottery-detail .kl8-panel .lottery-table th { background: #f5f6f8; }
.kl8-panel .lottery-table th:first-child { width: 18%; }
.kl8-panel .lottery-table th:nth-child(2) { width: 36%; }
.kl8-notice + .draw-redeem { max-width: 730px; margin: 24px auto 0; color: #111; font-size: 16px; }
@media(max-width:600px) {
  .kl8-notice { font-size: 16px; }
  .kl8-numbers { flex-wrap: wrap; gap: 10px; }
  .kl8-notice .balls-kl8 { grid-template-columns: repeat(10, minmax(0, 1fr)); width: 100%; max-width: 400px; gap: 4px; }
  .kl8-notice .balls-kl8 .ball { width: 100%; height: auto; aspect-ratio: 1; line-height: normal; font-size: clamp(14px, 4vw, 22px); }
  .lottery-detail .kl8-panel .lottery-table td, .lottery-detail .kl8-panel .lottery-table th { font-size: 15px; padding: 10px 5px; }
}
.fc3d-redeem { line-height: 1.9; }
.fc3d-redeem strong { font-weight: 700; }
@media(max-width:600px) { .lottery-detail .fc3d-title { font-size: 24px; } .fc3d-notice .lottery-table { min-width: 520px; } }
.lottery-detail .klsc-sales { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 24px; margin-top:24px; }
.lottery-detail .klsc-sales p { margin:0; }
.lottery-detail .klsc-sales span { color:#e10613; }
@media(max-width:600px) { .lottery-detail .klsc-sales { grid-template-columns:1fr; } }
.lottery-warning { line-height:1.8; color:#666; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid #1267c1; outline-offset:3px; }
@media(max-width:600px) { .article-page { padding:24px 16px; } .article-page h1 { font-size:24px; } .article-meta span { display:block; } .article-meta span+span { margin:6px 0; } .article-list { background:#fff; padding:0 12px; } .article-list img { width:100px; height:76px; } .article-list li { gap:12px; } .site-search { flex-wrap:wrap; justify-content:flex-start; } .article-body table { display:block; overflow-x:auto; } .balls-kl8 { grid-template-columns:repeat(10,24px); gap:3px; } .balls-kl8 .ball { width:24px; height:24px; font-size:12px; } }

.article-attachments { margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee; }
.article-attachments h2 { font-size: 18px; }
.article-attachments li { margin: 8px 0; }

@media (max-width: 900px) {
    .banner-carousel {
        height: 340px;
    }
    .header-inner {
        min-height: 92px;
        flex-wrap: wrap;
        padding: 12px 0;
    }
    .header-search { width: 100%; flex-basis: 100%; }
    .search-section-tabs { gap: 2px 10px; }
    .search-section-tabs a { padding: 10px 8px; font-size: 16px; }

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

    .nav-items a {
        min-height: 50px;
        font-size: 16px;
    }

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

    .hero-grid,
    .information-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-grid {
        min-height: 340px;
    }

    .lottery-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .banner-carousel {
        height: 240px;
    }
    .container {
        width: min(100% - 20px, 1240px);
    }

    .header-inner {
        min-height: 76px;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0;
    }

    .brand img {
        width: min(420px, 88vw);
    }

    .header-inner .slogan {
        width: min(250px, 56vw);
        margin-left: auto;
    }

    .nav-items {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        padding: 8px;
    }

    .quick-links img,
    .quick-icon {
        width: 44px;
        height: 44px;
    }

    .quick-icon {
        font-size: 18px;
    }

    .quick-links b {
        font-size: 16px;
    }

    .hero,
    .hero-grid {
        min-height: 240px;
    }

    .news-panel,
    .lottery-section,
    .information-grid article {
        padding-right: 14px;
        padding-left: 14px;
    }

    .lottery-card {
        grid-template-columns: 92px 1fr;
    }

    .lottery-card .detail-link {
        grid-column: 1 / -1;
        margin-top: 12px;
    }

    .responsibility {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        font-size: 13px;
    }

    .footer-qr-codes {
        gap: 12px 28px;
    }

    .footer-qr-codes img,
    .footer-fallback-qr {
        width: 72px;
        height: 72px;
    }

    .footer-qr-codes .footer-qr-combined img,
    .footer-fallback-qr {
        width: min(356px, 100%);
        height: auto;
    }

    .footer-qr-codes figcaption {
        font-size: 12px;
    }

    .site-records .name-disclosure img {
        width: 36px;
        height: 36px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Public section pages share the reference site's horizontal navigation. */
.main-navigation { position: relative; z-index: 30; overflow: visible; }
.nav-items { flex-wrap: nowrap; overflow: visible; }
.nav-items > a, .navigation-group { min-width: 0; }
.navigation-group { position: static; }
.nav-items > a, .navigation-group > a { border-bottom: 0; white-space: nowrap; }
.navigation-group > a { position: relative; z-index: 3; }
.navigation-group.active > a::after { content: ""; position: absolute; inset: auto 0 5px; height: 2px; background: #fff; pointer-events: none; }
.navigation-group:has(> .navigation-children):hover > a::before, .navigation-group:has(> .navigation-children):focus-within > a::before { content: ""; position: absolute; width: 0; height: 0; bottom: -20px; left: 50%; margin-left: -10px; border: 10px solid transparent; border-top-color: #d80c0c; z-index: 2; pointer-events: none; }
.navigation-children { left: 0; top: 100%; z-index: 1; width: 100%; min-height: 108px; padding: 28px 16px; background: rgb(255 255 255 / 94%); box-shadow: none; color: #182333; align-items: flex-start; justify-content: center; gap: 40px; }
.navigation-group:hover .navigation-children, .navigation-group:focus-within .navigation-children { display: flex; }
.navigation-children a { flex: 0 0 auto; min-height: auto; padding: 4px 0; font-size: 20px; font-weight: 600; }
.nav-items .navigation-children a { min-height: 0; }
.navigation-children a:hover { color: #d00017; }

.section-list .content-list-page { width: 100%; margin: 0 auto 72px; }
.list-banner { position: relative; background: #e7e8ec; }
.list-banner-image { display: block; width: 100%; height: auto; }
.list-banner-inner { position: relative; }
.list-banner-image + .list-banner-inner { margin-top: -58px; }
.list-banner-nav { width: 100%; display: flex; align-items: center; min-height: 58px; color: #fff; background: rgb(51 51 51 / 70%); overflow-x: auto; }
.list-banner-nav .breadcrumbs { flex: 0 0 auto; margin: 0; padding: 0 0 0 40px; color: #fff; font-size: 18px; line-height: 58px; white-space: nowrap; }
.list-banner-nav .channel-tabs { flex: 0 0 auto; flex-wrap: nowrap; margin: 0; padding-left: 40px; gap: 0; }
.list-banner-nav .channel-tabs a { flex: 0 0 auto; padding: 0 40px; border: 0; color: #fff; background: transparent; font-size: 20px; line-height: 58px; white-space: nowrap; }
.list-banner-nav .channel-tabs a.active { background: linear-gradient(270deg, #c50701, #e62c60); }
.section-list .list-content { padding-top: 30px; }
.section-list .list-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-list .article-list li { display: flex; align-items: center; padding: 12px 2px; gap: 0; border: 0; }
.section-list .article-list li::before { content: "▪"; padding-right: 12px; font-size: 18px; }
.section-list .article-list li > div { display: flex; align-items: center; width: 100%; gap: 20px; }
.section-list .article-list h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.section-list .article-list time { margin-left: auto; white-space: nowrap; font-size: 16px; color: #333; }

.game-page .content-list-page { width: min(100% - 32px, 1240px); margin: 0 auto 72px; }
.game-page .list-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.game-strip { display: flex; align-items: center; min-height: 52px; background: #929292; color: #fff; overflow-x: auto; white-space: nowrap; }
.game-strip .breadcrumbs { flex: 1 0 auto; min-width: 240px; margin: 0; padding: 8px 24px; color: #fff; font-size: 18px; }
.game-strip a.game-link { flex: 0 0 auto; display: block; padding: 13px 18px; font-size: 18px; }
.game-strip a.game-link.active { background: #ed002b; }
.game-filters { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 18px 4px 16px; }
.game-filters select { min-width: 148px; height: 36px; padding: 0 28px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.4'/%3E%3C/svg%3E") right 10px center no-repeat; border: 1px solid #e5e5e5; appearance: none; }
.history-schedule { color: #444; }
.history-search { display: flex; align-items: center; }
.history-search input { width: 220px; height: 36px; padding: 0 12px; border: 1px solid #e5e5e5; border-right: 0; }
.history-search button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e5e5; background: #fff; cursor: pointer; }
.history-search svg { width: 16px; height: 16px; fill: none; stroke: #888; stroke-width: 2; }
.history-rule { color: #222; }
.history-rule:hover { color: #e10613; }
.game-filters .site-search { margin-left: auto; }
.game-page .lottery-table { margin: 0; }
.game-page .lottery-table th { background: #edf4fa; font-weight: 400; color: #333; }
.game-page .lottery-table td { padding: 10px 8px; }
.game-page .lottery-table .balls { justify-content: center; }
.game-page .lottery-table .ball { width: 28px; height: 28px; margin: 2px; font-size: 14px; }
.game-page .lottery-table .balls-kl8 { grid-template-columns: repeat(10, 26px); gap: 3px; }
.game-page .history-table .history-prize { color: #333; }
.game-page .history-table a { color: #333; }
.game-page .history-table a:hover { color: #e10613; }
.lottery-notice-page { background: #f9faff; }
.lottery-notice-page .content-list-page { margin-bottom: 24px; }
.notice-list { box-shadow: 0 2px 6px #00000008; }
.notice-row { display: grid; grid-template-columns: 94px minmax(0,1fr) 240px; gap: 20px; align-items: center; padding: 28px 40px; min-height: 136px; border-bottom: 1px solid #eaeaea; }
.notice-row:nth-child(odd) { background: #f6f7f9; }
.notice-row:nth-child(even) { background: #fff; }
.notice-row h2 { margin: 0; color: #e60021; font-size: 22px; }
.notice-row p { margin: 0 0 14px; line-height: 1.5; }
.notice-row .notice-pool { display: inline-block; margin-left: 10px; }
.notice-row .notice-pool strong { color: #ff0018; font-weight: 400; }
.notice-row .balls { flex-wrap: wrap; }
.notice-row .notice-actions { display: flex; gap: 12px; margin-top: 12px; }
.notice-row .notice-actions a { min-width: 72px; padding: 6px 16px; text-align: center; color: #12659a; background: #edf8fe; font-size: 14px; }
.notice-row .notice-actions a:hover { color: #4593d6; }
.notice-row .ball { display: inline-block; width: 35px; height: 40px; margin: 0 6px 0 0; border-radius: 0; background: url('/assets/lottery-redCircle.png') center / 100% 100% no-repeat; box-shadow: none; text-shadow: none; font: 700 18px/37px "Helvetica Neue", Arial, sans-serif; text-align: center; }
.notice-row .ball.blue { background-image: url('/assets/lottery-blueCircle.png'); }
.notice-row .balls-fc3d .ball { background-image: url('/assets/lottery-fc3d.png'); }
.notice-row .balls-qlc .ball { background-image: url('/assets/lottery-orange.png'); }
.notice-row .balls-qlc .ball.blue { background-image: url('/assets/lottery-orange_dark.png'); }
.notice-row .balls-kl8 { grid-template-columns: repeat(10, 35px); gap: 8px 6px; }
.notice-row .balls-kl8 .ball { margin: 0; background-image: url('/assets/lottery-kl8.png'); }
@media (max-width: 480px) {
  .notice-row .balls-kl8 { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px 3px; }
  .notice-row .balls-kl8 .ball { width: 100%; height: auto; aspect-ratio: 35 / 40; line-height: 1.9; font-size: clamp(12px, 3.6vw, 18px); }
}
@media (max-width: 760px) {
  .nav-items { flex-wrap: nowrap; }
  .nav-items > a, .navigation-group { min-width: 0; }
  .nav-items > a, .navigation-group > a { font-size: clamp(10px, 2.6vw, 16px); }
  .navigation-children { min-height: 70px; padding: 14px 16px; gap: 18px; overflow-x: auto; }
  .navigation-children a { font-size: 15px; }
  .list-banner-nav { overflow-x: auto; }
  .list-banner-nav .breadcrumbs { padding-left: 16px; font-size: 14px; }
  .list-banner-nav .channel-tabs { padding-left: 16px; }
  .list-banner-nav .channel-tabs a { padding: 0 12px; font-size: 15px; }
  .notice-row { grid-template-columns: 1fr; padding: 20px; gap: 8px; }
  .game-strip .breadcrumbs { min-width: 160px; }
}

.scratch-page { max-width: 1200px; }
.scratch-page > h1 { text-align: center; font-size: 36px; margin: 36px 0 24px; }
.scratch-description { font-size: 18px; line-height: 1.9; margin: 0 0 28px; }
.scratch-description p { margin: 0 0 16px; }
.scratch-page .scratch-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.scratch-page .scratch-card { padding: 0; border: 0; border-radius: 12px; box-shadow: 0 4px 16px #00000014; overflow: hidden; background: #fff; }
.scratch-page .scratch-card a { display: block; }
.scratch-page .scratch-cover { position: relative; }
.scratch-page .scratch-card img { aspect-ratio: 1/1; object-fit: cover; object-position: top center; }
.scratch-page .scratch-card strong { position: absolute; inset: auto 0 0; height: 42px; margin: 0; padding: 0; line-height: 42px; text-align: center; background: rgb(102 102 102 / 78%); color: #fff; font-family: "Microsoft YaHei", "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", STHeiti, sans-serif; font-size: 18px; font-weight: 400; }
.scratch-page .scratch-facts { display: flex; margin: 0; padding: 16px 8px 18px; background: #fff; }
.scratch-page .scratch-facts > span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #333; font-size: 15px; }
.scratch-page .scratch-facts b { display: flex; align-items: baseline; gap: 1px; font-size: 28px; line-height: 1; color: #f15a24; }
.scratch-page .scratch-facts em { font-style: normal; }
.scratch-page .scratch-facts small { display: inline; margin: 0; font-size: 16px; font-weight: 700; }
.scratch-page .scratch-facts > span:first-child b { color: #1a6cb5; }
.scratch-articles { padding: 24px; background: #fff; }
.scratch-articles .article-list li { align-items: center; justify-content: space-between; padding: 11px 0; border: 0; }
.scratch-articles .article-list time { margin-left: 20px; white-space: nowrap; }
.scratch-articles .pagination { flex-wrap: wrap; gap: 12px; }
.scratch-articles .pagination a,.scratch-articles .pagination strong { display: inline-block; padding: 6px 10px; }
.scratch-articles .pagination strong { background: #d20a18; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:800px) { .scratch-page .scratch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .scratch-page .scratch-grid { gap: 10px; } .scratch-page .scratch-facts { padding: 12px 4px 14px; } .scratch-page .scratch-facts b { font-size: 22px; } .scratch-page .scratch-facts small { font-size: 14px; } .scratch-page .scratch-description { font-size: 16px; } }

