/* 泰彩：传统资料站，白底密排，红蓝栏目，黄色结果标记。 */
:root {
    --tc-red: #bd121b;
    --tc-blue: #164b9c;
    --tc-line: #ccc;
    --tc-yellow: #fff3a1;
    --tc-ink: #202020;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #eee; }
body { margin: 0; color: var(--tc-ink); font: 15px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: var(--tc-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #e0a000; outline-offset: -3px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
#app { width: 100%; max-width: 780px; margin: 0 auto; background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc; }
.tc-topline { display: flex; justify-content: space-between; padding: 4px 16px; border-top: 3px solid var(--tc-red); border-bottom: 1px solid #ead8b7; color: #735315; background: #fff7da; font-size: 12px; }
.adly-masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 3px double var(--tc-red); background: #fff; }
.tc-brand { display: flex; align-items: center; gap: 12px; }
.adly-brand-mark { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 64px; height: 64px; border: 3px double #fff; outline: 2px solid var(--tc-red); border-radius: 50%; background: var(--tc-red); color: #fff8bb; font: bold 43px/1 "Songti SC", SimSun, serif; }
.adly-brand-title { margin: 0; color: var(--tc-red); font: 900 44px/1.15 KaiTi, STKaiti, "Songti SC", serif; letter-spacing: 3px; }
.adly-brand-title span { margin-left: 5px; color: #222; font-size: 34px; letter-spacing: 1px; }
.adly-brand-subtitle { margin: 8px 0 0; color: #555; font-size: 13px; letter-spacing: 2px; }
.tc-brand-aside { padding-left: 14px; border-left: 1px solid #ddd; color: #444; text-align: center; font-size: 14px; white-space: nowrap; }
.tc-brand-aside strong { color: var(--tc-red); letter-spacing: 5px; }
.fixed-top { position: sticky; top: 0; z-index: 20; background: var(--tc-red); border-bottom: 2px solid #e5bd4b; }
.nav-layout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav-item { display: flex; min-height: 42px; align-items: center; justify-content: center; padding: 6px 2px; border-right: 1px solid #ffffff4d; border-bottom: 1px solid #ffffff4d; color: #fff; font-size: 15px; font-weight: 700; }
.nav-item:nth-child(4n) { border-right: 0; }
.nav-item:nth-child(n+5) { background: var(--tc-blue); }
.nav-item:hover, .nav-item:focus-visible { color: #fff9a2; background: #8a0b15; text-decoration: none; }
.tc-address { border-bottom: 1px solid #d5bd7c; background: #fffaf0; text-align: center; }
.tc-address-label { padding: 4px; color: #705117; border-bottom: 1px solid #dfd2b1; font-size: 13px; font-weight: 700; }
.tc-domain-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-domain-list a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; min-height: 44px; padding: 6px 3px; border-right: 1px solid #dfd2b1; color: var(--tc-blue); font: bold 20px/1.3 Arial, sans-serif; }
.tc-domain-list a:last-child { border-right: 0; }
.tc-domain-list a.is-primary { color: #fff7ae; background: var(--tc-red); }
.tc-domain-list .is-primary span { font: 11px/1.3 "Microsoft YaHei", sans-serif; color: #fff; }
.tc-footer-domains { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 5px 0; }
.tc-footer-domains .is-primary { color: var(--tc-red); font-weight: 700; }
.adly-notice { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: #fff7ce; border-bottom: 1px solid #e1d5a7; color: #654b19; font-size: 13px; }
.adly-notice-label { flex: 0 0 auto; padding: 1px 5px; background: var(--tc-red); color: #fff; font-weight: 700; }
.tc-notice-copy { flex: 1 1 auto; min-width: 0; }
.tc-animated-badge { display: inline-block; flex: 0 0 49px; width: 49px; height: 23px; object-fit: contain; vertical-align: middle; }
.nav.clearfix { height: 200px; border-bottom: 1px solid var(--tc-line); line-height: 0; }
.nav.clearfix iframe { display: block; width: 100%; height: 200px; border: 0; }
.tc-directory { margin: 8px 6px; border: 1px solid #a8bbd5; }
.tc-directory-title { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: #edf3fc; border-bottom: 1px solid #a8bbd5; color: var(--tc-blue); }
.tc-directory-title strong { font-size: 17px; }
.tc-directory-title span { color: #555; font-size: 12px; }
.tc-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tc-directory-grid a { display: flex; min-height: 38px; justify-content: center; align-items: center; padding: 4px 1px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; color: var(--tc-blue); font-size: 14px; font-weight: 700; }
.tc-directory-grid a:nth-child(4n) { border-right: 0; }
.tc-directory-grid a:nth-last-child(-n+4) { border-bottom: 0; }
.tc-directory-grid a:nth-child(-n+4) { color: var(--tc-red); }
.tc-directory-grid a:hover { background: #fff6c7; }
/* 传统资料导航横幅：红框白底、方角粗字。 */
.tc-info-strip { display: grid; grid-template-columns: 52px minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 76px; margin: 8px 6px; padding: 4px 8px 4px 4px; border: 3px solid #d71920; background: #fff; color: #d71920; text-align: center; }
.tc-info-strip:hover { background: #fffced; text-decoration: none; }
.tc-info-strip-label { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; min-width: 0; border: 1px solid #d71920; color: #d71920; font: 900 20px/1.25 "Microsoft YaHei", "PingFang SC", sans-serif; }
.tc-info-strip-title { min-width: 0; font: 900 32px/1.15 "Microsoft YaHei", "PingFang SC", sans-serif; }
.tc-info-strip-action { min-width: 0; padding: 4px 1px; border-top: 2px solid #d71920; border-bottom: 2px solid #d71920; color: #222; font-size: 15px; font-weight: 900; }
.tc-info-strip-domain { min-width: 0; color: #164b9c; font: 900 32px/1.15 Arial, sans-serif; }
.tc-info-strip-history .tc-info-strip-title { color: #164b9c; }
.tc-info-strip-history .tc-info-strip-title > span { color: #d71920; }
#adly-data-flow { display: block; padding: 0 6px; }
#adly-data-flow > div, #lengxiaolengma, .image-section, .box.pad, #jdtk { scroll-margin-top: 90px; }
#adly-data-flow > div { margin: 0 0 8px; border: 1px solid #aaa; background: #fff; }
table { width: 100%; border-collapse: collapse; border-spacing: 0; }
#adly-data-flow table { width: 100% !important; margin: 0 !important; border-spacing: 0 !important; border-collapse: collapse !important; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif !important; }
#adly-data-flow table:not(.common-table) { background: #fff !important; }
#adly-data-flow table:not(.common-table) td { height: auto !important; padding: 7px 4px !important; border: 1px solid #ddd !important; color: #222; background: #fff !important; font-size: 16px; line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
#adly-data-flow table:not(.common-table) tr:nth-child(even) > td { background: #f3f7fc !important; }
.common-table { border: 0 !important; }
.common-table td { height: auto !important; padding: 7px 4px !important; text-align: center; background: var(--tc-red) !important; border: 0 !important; border-bottom: 2px solid #e5bd4b !important; }
#adly-data-flow > div:nth-child(even) .common-table td { background: var(--tc-blue) !important; }
.common-title { color: #fff7ae; font: bold 22px/1.4 KaiTi, STKaiti, "Microsoft YaHei", serif; letter-spacing: 1px; }
.tc-title-with-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.tc-title-with-badge > span { min-width: 0; }
#adly-data-flow .tab-title { color: #222; }
#adly-data-flow p { margin: 0 !important; line-height: 1.7 !important; }
#adly-data-flow font[color="blue"], #adly-data-flow font[color="#0000FF"], #adly-data-flow span[style*="color: #a233c6"], #adly-data-flow span[style*="color: rgb(153, 51, 255)"], #adly-data-flow span[style*="color: #0b97ff"] { color: var(--tc-blue) !important; }
#adly-data-flow font[color="red"], #adly-data-flow font[color="#FF0000"], #adly-data-flow span[style*="color: red"], #adly-data-flow span[style*="color: #FF0000"] { color: #cf101b !important; }
.zhong, .zhongsan, #adly-data-flow span[style*="background-color: yellow"], #adly-data-flow span[style*="background-color: rgb(255, 255, 0)"], #adly-data-flow span[style*="background-color: #FFFF00"] { padding: 1px 2px; background: #fff276 !important; color: #be1019 !important; }
#jinrizuijia > div > div[style*="background-color"] { padding: 0 0 8px !important; border-bottom: 1px solid #ddd; }
#jinrizuijia div[style*="color: #9933FF"] { padding: 7px 3px !important; background: #fff6c7; color: var(--tc-blue) !important; border-bottom: 1px solid #e3dba9; font-size: 17px; }
#jinrizuijia div[style*="display: table-row"] > div:first-child { color: #222 !important; }
#jinrizuijia div[style*="display: table-row"] > div:last-child { color: var(--tc-red) !important; }
#lengxiaolengma, .image-section, .box.pad { margin: 8px 6px; border: 1px solid #aaa; background: #fff; }
#adly-data-flow .box.pad { margin: 0; border: 0; }
.box.pad img { display: block; width: 100%; height: auto; }
.cold-stats h2, .image-section-title { margin: 0; padding: 7px 4px; border-bottom: 2px solid #e5bd4b; background: var(--tc-red) !important; color: #fff7ae; text-align: center; font: bold 22px/1.4 KaiTi, STKaiti, "Microsoft YaHei", serif; }
.cold-stats h3 { margin: 0; padding: 6px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; background: #edf3fc; color: var(--tc-blue); text-align: center; font-size: 16px; }
.cold-stats td { padding: 7px; border: 1px solid #ddd; text-align: center; font-weight: 700; }
.red { color: #cf101b; }
.blue { color: var(--tc-blue); }
.image-section .image-section-title { background: var(--tc-blue) !important; }
.image-section-title > span { display: inline-block; margin-left: 8px; color: #fff7ae; font: bold 14px/1.5 "Microsoft YaHei", sans-serif; }
.image-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 14px 12px; }
.image-card { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #354b5c; text-align: center; cursor: zoom-in; }
.image-card-preview { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #ccc; background: #f7f7f3; }
.image-card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.image-card-title { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.image-card:hover { color: var(--tc-red); text-decoration: none; }
.image-card:hover .image-card-preview, .image-card:focus-visible .image-card-preview { border-color: var(--tc-red); }
.tc-gallery-empty { margin: 0; padding: 24px 12px; color: #666; text-align: center; }
html.tc-gallery-open { overflow: hidden; }
.tc-image-viewer { width: min(1100px, calc(100% - 24px)); height: 90vh; height: 90dvh; max-width: none; max-height: calc(100% - 24px); margin: auto; padding: 0; border: 2px solid var(--tc-red); background: #fff; color: var(--tc-ink); }
.tc-image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.tc-image-viewer::backdrop { background: rgb(0 0 0 / 78%); }
.tc-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 12px; background: var(--tc-red); color: #fff; }
.tc-viewer-header h2 { min-width: 0; margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.tc-image-viewer button, .tc-viewer-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 12px; border: 1px solid #bbb; border-radius: 0; background: #fff; color: var(--tc-blue); font: bold 14px/1.4 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; cursor: pointer; }
.tc-viewer-header button { flex: 0 0 auto; border-color: transparent; background: transparent; color: #fff; }
.tc-image-viewer button:disabled { color: #999; background: #f5f5f5; cursor: default; }
.tc-image-viewer button:focus-visible { outline: 3px solid #e0a000; outline-offset: -3px; }
.tc-viewer-stage { display: flex; min-width: 0; min-height: 0; overflow: auto; padding: 10px; background: #eee; overscroll-behavior: contain; }
.tc-viewer-image { display: block; flex: 0 0 auto; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; cursor: zoom-in; }
.tc-viewer-image[hidden], .tc-viewer-status[hidden] { display: none; }
.tc-viewer-stage.is-zoomed .tc-viewer-image { max-width: none; max-height: none; cursor: zoom-out; }
.tc-viewer-status { margin: auto; padding: 20px; color: #555; text-align: center; }
.tc-viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid #ccc; }
.tc-viewer-pagination, .tc-viewer-actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tc-viewer-count { min-width: 52px; color: #555; text-align: center; font-size: 14px; }
.tc-viewer-actions button[aria-pressed="true"] { border-color: var(--tc-red); color: var(--tc-red); background: #fff7da; }
.adly-footer-note { padding: 18px 10px 80px; border-top: 3px double var(--tc-red); color: #555; text-align: center; font-size: 12px; line-height: 1.8; }
.adly-footer-note strong { display: block; color: var(--tc-red); font-size: 17px; }
.adly-footer-note a { font-size: 14px; }
.adly-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 780px; min-height: 54px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border: 1px solid #ccc; border-top: 2px solid var(--tc-red); }
.adly-bottom-nav a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-right: 1px solid #ddd; color: var(--tc-blue); font-size: 14px; font-weight: 700; }
.adly-bottom-nav a:first-child { color: #fff; background: var(--tc-red); }
.adly-bottom-nav a:last-child { border-right: 0; }
.adly-bottom-nav a:hover { color: var(--tc-red); background: #fff6c7; text-decoration: none; }
.tc-page-tools { position: fixed; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: flex; flex-direction: column; gap: 6px; }
.tc-page-tools button, .tc-page-tools a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 48px; min-height: 50px; margin: 0; padding: 4px 2px; border: 1px solid var(--tc-red); border-radius: 0; background: #fff; color: var(--tc-red); font: bold 12px/1.2 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.tc-page-tools .tc-page-tool-symbol { font: 24px/1 Arial, sans-serif; }
.tc-page-tools button:hover, .tc-page-tools a:hover { background: #fff6c7; text-decoration: none; }
.tc-page-tools button:focus-visible, .tc-page-tools a:focus-visible { outline: 2px solid #e0a000; outline-offset: 2px; }
html.tc-gallery-open .tc-page-tools { visibility: hidden; }
@media (min-width: 920px) {
    .tc-page-tools { right: calc((100vw - 780px) / 2 - 60px); }
}
@media (max-width: 520px) {
    .image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; padding: 10px 8px; }
    .image-card-title { font-size: 14px; }
    .image-section-title > span { margin-left: 4px; font-size: 12px; }
    .tc-image-viewer { width: calc(100% - 12px); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: calc(100% - 16px); }
    .tc-viewer-header { padding-right: 4px; padding-left: 10px; }
    .tc-viewer-header h2 { font-size: 15px; }
    .tc-viewer-stage { padding: 4px; }
    .tc-viewer-toolbar { justify-content: center; gap: 6px; padding: 6px; }
    .tc-viewer-pagination, .tc-viewer-actions { width: 100%; }
    .tc-info-strip { grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 6px; margin-right: 4px; margin-left: 4px; padding: 5px 6px 5px 4px; }
    .tc-info-strip-label { grid-column: 1; grid-row: 1 / 3; font-size: 17px; }
    .tc-info-strip-title { grid-column: 2 / 4; grid-row: 1; font-size: 28px; }
    .tc-info-strip-action { grid-column: 2; grid-row: 2; justify-self: center; padding: 1px 4px; font-size: 13px; }
    .tc-info-strip-domain { grid-column: 3; grid-row: 2; font-size: clamp(22px, 5.8vw, 28px); }
    .tc-topline { padding: 3px 8px; font-size: 11px; }
    .adly-masthead { padding: 14px 12px; gap: 8px; }
    .tc-brand { gap: 9px; }
    .adly-brand-mark { width: 48px; height: 48px; font-size: 33px; }
    .adly-brand-title { font-size: 34px; letter-spacing: 1px; }
    .adly-brand-title span { font-size: 26px; letter-spacing: 0; }
    .adly-brand-subtitle { margin-top: 5px; font-size: 11px; letter-spacing: 0; }
    .tc-brand-aside { padding-left: 8px; font-size: 11px; }
    .tc-brand-aside strong { letter-spacing: 2px; }
    .nav-item { font-size: 14px; }
    .tc-domain-list a { font-size: 17px; }
    .tc-domain-list .is-primary span { display: block; width: 100%; font-size: 10px; }
    .adly-notice { font-size: 12px; }
    #adly-data-flow { padding: 0 4px; }
    .tc-directory, #lengxiaolengma, .image-section, .box.pad { margin-right: 4px; margin-left: 4px; }
    .tc-directory-grid a { font-size: 13px; }
    .common-title, .cold-stats h2, .image-section-title { font-size: 19px; letter-spacing: 0; }
    #adly-data-flow table:not(.common-table) td { padding: 6px 2px !important; font-size: 14px; }
    #adly-data-flow td > font[style*="font-size: 13pt"], #adly-data-flow td > font > span, #adly-data-flow p[style] { font-size: 15px !important; }
}
@media (max-width: 360px) {
    .tc-animated-badge { flex-basis: 39px; width: 39px; height: auto; }
    .adly-notice { gap: 5px; padding-right: 6px; padding-left: 6px; }
    .tc-title-with-badge { gap: 4px; }
    .tc-brand-aside { display: none; }
    .tc-domain-list a { font-size: 15px; }
    .tc-directory-grid a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tc-animated-badge { display: none; }
}

/* 资料正文：期号墨灰、资料靛蓝、结果朱红、命中浅黄。 */
#adly-data-flow table:not(.common-table) font[color],
#adly-data-flow table:not(.common-table) font[style*="color"],
#adly-data-flow table:not(.common-table) span[style*="color"],
#adly-data-flow table:not(.common-table) b[style*="color"],
#adly-data-flow table:not(.common-table) div[style*="color"],
#adly-data-flow table:not(.common-table) p[style*="color"] {
    color: #214c88 !important;
}
#adly-data-flow .tc-issue { color: #343a43 !important; font-weight: 700; }
#adly-data-flow .tc-result { color: #b51f32 !important; font-weight: 700; }
#adly-data-flow .zhong,
#adly-data-flow .zhongsan,
#adly-data-flow table:not(.common-table) span[style*="background-color: yellow"],
#adly-data-flow table:not(.common-table) span[style*="background-color: rgb(255, 255, 0)"],
#adly-data-flow table:not(.common-table) span[style*="background-color: #FFFF00"] {
    background: #fff0aa !important;
    color: #a72b28 !important;
    border-bottom: 1px solid #e8cf72;
}
#jinrizuijia div[style*="display: table-row"] > div:last-child { color: #214c88 !important; }
#jinrizuijia div[style*="color: #9933FF"] { background: #edf3fc; border-bottom-color: #cdd9ec; }
.cold-stats .red { color: #b51f32; }
.cold-stats tr:nth-child(even) { background: #f3f7fc; }

.tc-scenic-poster { margin: 14px 6px 0; border: 1px solid #b58a3f; background: #fff5db; }
.tc-scenic-poster a, .tc-scenic-poster img { display: block; width: 100%; }
.tc-scenic-poster img { height: auto; }
.tc-scenic-poster figcaption { padding: 5px; color: #79501f; text-align: center; font-size: 12px; }

#adly-data-flow span[style*="background-color: red"],
#adly-data-flow span[style*="background-color:red"],
#jinrizuijia span[style*="background-color: #765314"],
#jinrizuijia span[style*="background-color: #666"] {
    color: #8a5315 !important;
    background: #fff0aa !important;
}

/* 少量泰国文化细节，保留中文资料阅读的主体。 */
[lang="th"] { font-family: Thonburi, Tahoma, sans-serif; font-weight: 400; }
.tc-country-label { display: inline-flex; align-items: center; gap: 6px; }
.tc-thai-flag { display: inline-block; flex: 0 0 auto; width: 23px; height: 15px; border: 1px solid #d6c9b4; background: linear-gradient(to bottom, #a71930 0 16.666%, #fff 16.666% 33.333%, #26356e 33.333% 66.666%, #fff 66.666% 83.333%, #a71930 83.333%); }
.tc-scenic-poster .tc-thai-caption { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 5px; border-top: 1px solid #c6a263; color: #79501f; font-size: 12px; line-height: 1.8; }
.tc-thai-caption [lang="th"] { color: #8a191f; font-size: 17px; }
.tc-scenic-poster .tc-thai-caption img { width: 36px; height: 22px; }
