:root {
    --adly-green-950: #073b27;
    --adly-green-900: #0a4b31;
    --adly-green-800: #11633c;
    --adly-green-700: #1f7a46;
    --adly-blue-800: #245d9b;
    --adly-blue-700: #3276bd;
    --adly-gold: #d5ad45;
    --adly-gold-light: #f5dd88;
    --adly-yellow: #fff4a8;
    --adly-red: #d92f26;
    --adly-ink: #20251f;
    --adly-muted: #697069;
    --adly-line: #c9cec8;
    --adly-paper: #fffef8;
    --adly-canvas: #e8ebe7;
}

html {
    scroll-behavior: smooth;
    background: var(--adly-canvas);
}

body {
    margin: 0;
    padding: 0 0 58px;
    color: var(--adly-ink);
    background-color: var(--adly-canvas);
    background-image:
        linear-gradient(45deg, rgba(7, 59, 39, .025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(7, 59, 39, .025) 25%, transparent 25%);
    background-size: 18px 18px;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

#app {
    width: 100%;
    max-width: 720px !important;
    min-height: 100vh;
    margin: 0 auto !important;
    overflow: hidden;
    background: var(--adly-paper);
    border-right: 1px solid #bcc4bc;
    border-left: 1px solid #bcc4bc;
}

.adly-masthead {
    position: relative;
    min-height: 150px;
    padding: 22px 18px 18px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(6, 54, 35, .94), rgba(10, 75, 49, .96)),
        repeating-linear-gradient(135deg, transparent 0 15px, rgba(255,255,255,.05) 15px 16px);
    border-top: 5px solid var(--adly-gold);
    border-bottom: 3px solid var(--adly-gold);
}

.adly-masthead::before,
.adly-masthead::after {
    position: absolute;
    top: 50%;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(245, 221, 136, .35);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.adly-masthead::before { left: -48px; }
.adly-masthead::after { right: -48px; }

.adly-brand-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
    color: var(--adly-green-950);
    vertical-align: middle;
    background: var(--adly-gold-light);
    border: 2px solid #fff3bb;
    font-family: KaiTi, STKaiti, serif;
    font-size: 27px;
    font-weight: 800;
}

.adly-brand-title {
    display: inline-block;
    margin: 0;
    color: #fff7cf;
    vertical-align: middle;
    font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.15;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .24);
}

.adly-brand-subtitle {
    margin: 10px 0 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 7px;
}

.adly-brand-rule {
    width: 74%;
    height: 1px;
    margin: 13px auto 0;
    background: linear-gradient(90deg, transparent, var(--adly-gold-light), transparent);
}

.fixed-top {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    max-width: 720px !important;
    margin: 0 auto !important;
    background: var(--adly-green-950) !important;
    border-bottom: 2px solid var(--adly-gold);
}

.fixed-top .nav-layout {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    padding: 0 !important;
}

.fixed-top .nav-layout .nav-item,
.fixed-top .nav-layout .nav-item:nth-child(n) {
    display: flex;
    min-width: 0;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.15 !important;
    text-decoration: none;
}

.fixed-top .nav-layout .nav-item:nth-child(4n) { border-right: 0; }
.fixed-top .nav-layout .nav-item:hover,
.fixed-top .nav-layout .nav-item:focus-visible {
    color: var(--adly-green-950) !important;
    background: var(--adly-gold-light) !important;
    outline: none;
}

.lhc-table {
    width: 100%;
    border: 0 !important;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px !important;
}

.lhc-table .title {
    padding: 8px !important;
    color: #fff9d7 !important;
    background: var(--adly-blue-800) !important;
    border: 0 !important;
    border-bottom: 2px solid var(--adly-gold) !important;
    text-shadow: none !important;
    letter-spacing: 2px;
}

.lhc-table .cell {
    padding: 9px 4px !important;
    color: var(--adly-green-950) !important;
    background: #fffbea !important;
    border: 1px solid #d6c37e !important;
    font-size: 15px;
    letter-spacing: .3px;
}

.lhc-table .cell.primary-domain {
    color: #fff !important;
    background: var(--adly-red) !important;
}

.adly-notice {
    display: flex;
    min-height: 36px;
    padding: 7px 10px;
    align-items: center;
    color: #5e2500;
    background: #fff0a9;
    border-top: 1px solid #d6bd59;
    border-bottom: 1px solid #d6bd59;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.adly-notice-label {
    flex: 0 0 auto;
    margin-right: 8px;
    padding: 2px 6px;
    color: #fff;
    background: var(--adly-red);
}

.nav.clearfix {
    height: 185px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--adly-line);
    line-height: 0;
}

.nav.clearfix iframe {
    display: block;
    height: 185px;
}

.carousel-container {
    display: none !important;
}

#adly-data-flow {
    margin: 0 !important;
    padding: 1px 0;
    background: #f1f3f0;
}

#adly-data-flow > div,
#lengxiaolengma,
.image-section,
.box.pad {
    scroll-margin-top: 82px;
}

#adly-data-flow > div {
    margin: 8px 7px;
    background: #fff;
    border: 1px solid #b9c0b9;
}

#adly-data-flow table {
    width: 100% !important;
    margin: 0 !important;
    border-spacing: 0 !important;
    border-collapse: collapse !important;
    background: #fff !important;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif !important;
}

#adly-data-flow table:not(.common-table) td {
    height: auto !important;
    padding: 7px 5px !important;
    color: var(--adly-ink);
    background-color: #fff !important;
    border: 1px solid #d6dad5 !important;
    font-size: 15px;
    line-height: 1.65;
}

#adly-data-flow tr:nth-child(even) > td {
    background-color: #fbfbf6 !important;
}

.common-table {
    border: 0 !important;
    background: var(--adly-green-800) !important;
}

.common-table td,
.common-table td[style] {
    height: 39px !important;
    padding: 5px 8px !important;
    color: #fff !important;
    background: linear-gradient(90deg, var(--adly-green-950), var(--adly-green-700), var(--adly-green-950)) !important;
    border: 0 !important;
    border-bottom: 2px solid var(--adly-gold) !important;
}

.common-title {
    color: #fff7cf !important;
    font-family: KaiTi, STKaiti, "Microsoft YaHei", serif !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    line-height: 1.35 !important;
}

.promo-table,
.new-promo-table {
    display: none !important;
}

#adly-data-flow p {
    margin: 0 !important;
    color: #26382e !important;
    line-height: 1.7 !important;
}

#adly-data-flow font,
#adly-data-flow span,
#adly-data-flow b {
    max-width: 100%;
}

/* 正文改用澳门资料站常见的沉稳四色：墨绿、藏蓝、深褐、结果红。 */
#adly-data-flow table:not(.common-table) td > font,
#adly-data-flow table:not(.common-table) td > b,
#adly-data-flow table:not(.common-table) td p > b {
    color: var(--adly-green-950) !important;
}

#adly-data-flow table:not(.common-table) font[color="blue"],
#adly-data-flow table:not(.common-table) font[color="#0000FF"],
#adly-data-flow table:not(.common-table) span[style*="color: rgb(153, 51, 255)"],
#adly-data-flow table:not(.common-table) span[style*="color: #0b97ff"],
#adly-data-flow table:not(.common-table) span[style*="color: #a233c6"] {
    color: var(--adly-blue-800) !important;
}

#adly-data-flow table:not(.common-table) span[style*="color: #ff6600"],
#adly-data-flow table:not(.common-table) span[style*="color: #800000"] {
    color: #765314 !important;
}

#adly-data-flow table:not(.common-table) font[color="#FF0000"],
#adly-data-flow table:not(.common-table) font[color="red"],
#adly-data-flow table:not(.common-table) span[style*="color: red"],
#adly-data-flow table:not(.common-table) span[style*="color: #FF0000"] {
    color: #a62c24 !important;
}

#adly-data-flow .tab-title {
    color: var(--adly-ink) !important;
}

#jinrizuijia > div > div[style*="background-color"] {
    padding: 0 0 7px !important;
    border-bottom: 1px solid #d8ddd8;
}

#jinrizuijia div[style*="color: #9933FF"] {
    color: var(--adly-blue-800) !important;
    background: #f6f2df;
    border-bottom: 1px solid #d8c37b;
}

#jinrizuijia div[style*="display: table-row"] > div:first-child {
    color: #765314 !important;
}

#jinrizuijia div[style*="display: table-row"] > div:last-child {
    color: var(--adly-green-800) !important;
}

#jinrizuijia span[style*="background-color: red"] {
    color: #fff !important;
    background: #b83228 !important;
}

#adly-data-flow .zhong,
#adly-data-flow .zhongsan,
#adly-data-flow span[style*="background-color: yellow"],
#adly-data-flow span[style*="background-color: rgb(255, 255, 0)"] {
    padding: 1px 3px;
    color: #c5221f !important;
    background: var(--adly-yellow) !important;
    border-bottom: 1px solid #e4bd3f;
}

.cold-stats {
    width: auto !important;
    margin: 8px 7px !important;
    color: var(--adly-ink) !important;
    background: #fff !important;
    border: 1px solid #b9c0b9;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif !important;
    font-size: 15px !important;
}

.cold-stats h2,
.cold-stats h2[style] {
    margin: 0 !important;
    padding: 8px !important;
    color: #fff7cf !important;
    background: linear-gradient(90deg, var(--adly-green-950), var(--adly-green-700), var(--adly-green-950)) !important;
    border: 0 !important;
    border-bottom: 2px solid var(--adly-gold) !important;
    font-family: KaiTi, STKaiti, serif !important;
    font-size: 19px;
}

.cold-stats h3 {
    margin: 0 !important;
    padding: 7px !important;
    color: #fff !important;
    background: var(--adly-blue-800) !important;
    border-top: 1px solid #fff;
    font-family: inherit !important;
    font-size: 15px;
}

.cold-stats table { margin: 0 !important; }
.cold-stats td { padding: 7px !important; border-color: #d6dad5 !important; }

.image-section {
    margin: 8px 7px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #b9c0b9;
}

.image-section-title {
    margin: 0 !important;
    padding: 8px !important;
    color: #fff7cf !important;
    background: linear-gradient(90deg, var(--adly-green-950), var(--adly-green-700), var(--adly-green-950)) !important;
    border-bottom: 2px solid var(--adly-gold);
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: KaiTi, STKaiti, serif;
    font-size: 19px !important;
    text-shadow: none !important;
}

.image-gallery { gap: 0 !important; }
.image-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--adly-line);
}
.image-card:hover { transform: none !important; box-shadow: none !important; }
.image-card img { border-radius: 0 !important; }

.box.pad {
    margin: 8px 7px;
    background: #fff;
    border: 1px solid #b9c0b9;
}

.box.pad img {
    display: block;
    max-width: 100%;
    height: auto;
}

.adly-footer-note {
    padding: 14px 12px 72px;
    color: #e8eee9;
    text-align: center;
    background: var(--adly-green-950);
    border-top: 3px solid var(--adly-gold);
    font-size: 12px;
    line-height: 1.7;
}

.adly-footer-note strong {
    display: block;
    color: #fff0ad;
    font-size: 14px;
}

.adly-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(100%, 720px);
    height: 56px;
    margin: 0 auto;
    background: #fff;
    border-top: 2px solid var(--adly-green-800);
}

.adly-bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adly-green-950);
    border-right: 1px solid #d8ddd8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.adly-bottom-nav a:last-child { border-right: 0; }
.adly-bottom-nav a:focus-visible,
.adly-bottom-nav a:hover {
    color: #fff;
    background: var(--adly-green-700);
    outline: none;
}

@media (max-width: 520px) {
    .adly-masthead { min-height: 128px; padding: 18px 10px 14px; }
    .adly-brand-mark { width: 38px; height: 38px; font-size: 23px; }
    .adly-brand-title { font-size: 25px; letter-spacing: 1px; }
    .adly-brand-subtitle { font-size: 13px; letter-spacing: 4px; }
    .fixed-top .nav-layout .nav-item,
    .fixed-top .nav-layout .nav-item:nth-child(n) { height: 36px !important; font-size: 12px !important; }
    .lhc-table .cell { font-size: 13px; }
    .nav.clearfix { height: 190px !important; }
    .nav.clearfix iframe { height: 190px; }
    #adly-data-flow > div { margin: 6px 5px; }
    #adly-data-flow table:not(.common-table) td { padding: 6px 3px !important; font-size: 14px; }
    #adly-data-flow p,
    #adly-data-flow p[style] { font-size: 14px !important; line-height: 1.65 !important; }
    .common-title { font-size: 17px !important; }
    .cold-stats, .image-section, .box.pad { margin-right: 5px !important; margin-left: 5px !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
