* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
}

body {
    background: #fff;
    font-family: 'PingFang SC', 'microsoft yahei', arial, 'helvetica neue', 'hiragino sans gb', sans-serif;
    color: #333;
    -webkit-user-select: none;
    user-select: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}

.lottery-page {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: #fff;
}

.lottery-header {
    width: 100%;
}

.logo-panel {
    margin: 1px auto;
    padding: 5px;
    border: solid 1px #ddd;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-panel img {
    width: 100%;
    height: auto;
}

.main-nav {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2px;
    background: #fff;
    font-size: 18px;
}

.main-nav ul {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    list-style: none;
}

.main-nav li {
    width: 100%;
    padding: 0 4px;
}

.main-nav a {
    font-size: 16px;
    display: block;
    padding: 7px 0;
    text-align: center;
    color: #fff;
    border-radius: 50px;
    background: #1e90ff;
}

#main-nav[data-fixed="fixed"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 10;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.subnav-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2px 0 0;
    border-bottom: 2px solid #990000;
}

.notice-banner {
    margin: 0 auto;
}

.notice-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 5px;
    background: rgb(255, 153, 51);
    font-weight: 700;
    line-height: 1.8;
    font-size: 1.2em;
}

.notice-banner__label--yellow {
    color: #ff0;
}

.notice-banner__text--dark {
    color: #000;
}

.notice-banner__icon-wrap img {
    display: block;
    width: auto;
    height: 18px;
}

.subnav ul {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    list-style: none;
    padding: 2px 0;
}

.subnav li {
    width: 100%;
    padding: 0 2px;
}

.subnav a {
    display: block;
    padding: 10px 0 8px;
    text-align: center;
    color: #990000;
    background: #fff;
    font-size: 16px;
    line-height: 1.2;
    border: none;
}

.subnav a.on,
.subnav a:hover {
    color: #990000;
    background: #fff;
    border: none;
}

.result-banner {
    margin: 2px 0;
    border: 1px solid #d6c6a0;
    background: #9a540f;
}

.result-banner__title,
.result-banner__body {
    padding-left: 4px;
    color: #ffeb00;
    font-weight: 700;
    line-height: 1.35;
}

.result-banner__title {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 4px;
    text-align: center;
    font-size: 28px;
}

.result-banner__body {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 18px;
}

.result-list {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: #fff;
}

.result-row {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 4px 5px;
    border-bottom: 1px solid #ddd;
    line-height: 1.35;
}

.result-row__issue {
    flex: 0 0 auto;
    color: #008000;
    font-size: 18px;
    font-weight: 700;

}

.result-row__text {
    margin-left: 6px;
    font-size: 18px;
    font-weight: 700;
}

.result-row__text--blue {
    color: #0000ff;
}

.result-row__text--pink {
    color: #ff00ff;
}

.red {
    color: #ff0000;
}

.track-section {
    margin-top: 2px;
    border: 1px solid #ddd;
    background: #fff;
}

.track-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8f4a12;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.track-header__brand {
    color: #ffeb00;
    margin-right: 4px;
}

.track-item {
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
    padding: 8px 6px 6px;
}

.track-title {
    color: #111;
    font-size: 16px;
    line-height: 1.4;
}

.track-title .red {
    color: #ff0000;
}

.track-numbers {
    margin-top: 3px;
    color: #0000ff;
    font-size: 15px;
    line-height: 1.4;
}

.track-item:last-child .track-numbers .red {
    background: #ffff00;
}

.master-list {
    border-top: 1px solid #ddd;
}

.master-row {
    display: flex;
    align-items: center;
    min-height: 46px;
    border-bottom: 1px solid #eee;
    padding: 0 4px;
    background: #fff;
}

.master-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 6px;
    margin-right: 6px;
    border-radius: 6px;
    background: #e60000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.master-title {
    flex: 1;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.master-right {
    flex: 0 0 auto;
    margin-left: 8px;
    color: #999;
    font-size: 14px;

}

.concat-list {
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
}

.concat-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8f4a12;
    color: #ffeb00;
    font-size: 18px;
    font-weight: 700;
}

.concat-item {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #0000ff;
}

.concat-period {
    color: #0000ff;
    font-weight: 700;
    margin-right: 4px;
}

.concat-bracket {
    color: #f00;
    font-weight: 700;
}

.concat-red {
    color: #f00;
    font-weight: 700;
    background: #ffea00;
}

.hotmap-section {
    border-top: 1px solid #ddd;
    background: #fff;
    padding-bottom: 8px;
}

.hotmap-header {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8f4a12;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.hotmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 18px;
    padding: 14px 18px 8px;
}

.hotmap-card {
    text-align: center;
}

.hotmap-card img {
    width: 100%;
    height: 86px;
    object-fit: cover;
    border: 1px solid #cfcfcf;
}

.hotmap-card-title {
    margin-top: 8px;
    color: #333;
    font-size: 16px;
    line-height: 1.2;
}

.size-section {
    border-top: 1px solid #ddd;
    background: #fff;
}

.size-header {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8b470f;
    color: #ffeb00;
    font-size: 24px;
    font-weight: 700;
}

.size-list {
    background: #fff;
}

.size-item {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 18px;
    color: #008000;
}

.size-period {
    color: #008000;
    font-weight: 700;
    margin-right: 4px;
}

.size-mark {
    margin: 0 4px;
    padding: 0 2px;
    font-weight: 700;
    color: #f00;
    background: #ffea00;
}

.size-mark--big,
.size-mark--small,
.size--yellow {
    background: #ffea00;
    color: #f00;
    font-weight: 700;
}

.size-item .size-period+span {
    color: #008000;
}

.size-item .size-mark+span {
    color: #ff00ff;
}

#house-special {
    margin: 0;
    background: #fff;
}

#house-special .house-topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    overflow: hidden;
}

#house-special .house-topbar__banner {
    width: 100%;
    display: block;
}

#house-special .house-list {
    background: #fff;
}

#house-special .house-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-bottom: 1px solid #ececec;
    font-size: 18px;

}

#house-special .house-issue {
    color: #111;
    font-weight: 700;
}

#house-special .house-type {
    color: #e400c6;
    font-weight: 700;
}

#house-special .house-bracket {
    color: #0b7a18;
    font-weight: 700;
}

#house-special .house-bracket.house-bracket--yellow {
    background: #ffe600;
    color: #d10000;
    padding: 0 3px;
}

#house-special .house-open {
    color: #0a38d1;
    font-weight: 700;
}

@media (max-width: 640px) {

    .main-nav ul,
    .subnav ul {
        grid-template-columns: repeat(5, 1fr);
    }

    .result-row,
    .master-row,
    .house-row {
        font-size: 13px;
    }

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

    #house-special .house-row {
        font-size: 13px;
        padding: 9px 4px;
    }
}