/* First comparison pass: kai365 desktop palette and geometry. */
:root { --accent:#609aeb; --accent-light:#8bb5f1; --accent-dark:#3b84eb; --primary:#3b84eb; --primary-dark:#3375d2; --bg-body:#eaebee; --text-primary:#37393b; --text-secondary:#5f5f5f; --border-color:#e8ebf1; --radius-lg:12px; --shadow-card:0 2px 10px #37393b0f; }
body {font-family:Tahoma,"Microsoft YaHei",Arial,sans-serif;background:#eaebee;background-image:none;font-size:13px;}
.navbar {height:54px;background:linear-gradient(90deg,#3b84eb,#609aeb);box-shadow:0 4px 12px #609aeb1a;padding:0;}
.navbar::after {display:none;}
.navbar-inner {max-width:1225px;padding:0;gap:20px;}
.navbar-brand,.navbar-brand:hover {color:#fff;text-shadow:none;font-size:24px;}
.navbar-brand img {height:42px;filter:none;}
.navbar-menu {flex:1;justify-content:flex-end;gap:0;}
.navbar-menu a {color:#fff;border-radius:0;padding:0 17px;line-height:54px;font-size:15px;font-weight:400;}
.navbar-menu a.active,.navbar-menu a:hover {color:#fff;background:#3376d3;}
.navbar-menu a.active::after {display:none;}
.main-container {max-width:1225px;padding:0;margin:68px auto 24px;}
.main-layout {gap:14px;}
.main-layout>.main-content {min-width:0;flex:1;}
.main-layout>.sidebar {width:324px;flex:0 0 324px;}
.card,.lottery-section {border:1px solid #e8ebf1;border-radius:12px;box-shadow:0 2px 10px #37393b0f;}
.card::before {display:none;}
.card-header,.sidebar-card .card-header {background:#fff;color:#37393b;border-bottom:1px solid #e8ebf1;font-size:16px;padding:14px 18px;font-weight:500;}
.card-header i {color:#609aeb;}
.lottery-section-header {background:#fff;padding:0 20px;height:46px;border-bottom:1px solid #e8ebf1;}
.lottery-section-header:hover {background:#f8fafc;}
.lottery-section-title {color:#37393b;font-size:16px;font-weight:500;}
.lottery-section-title i,.lottery-section-toggle {color:#609aeb;}
.home-marquee {border:1px solid #e8ebf1;height:40px;border-radius:8px;box-shadow:none;}
.home-marquee-icon {color:#609aeb;background:#f2f7ff;}
.home-controls {display:flex;align-items:center;gap:0;min-height:46px;background:#fcfcfc;border-bottom:1px solid #e8ebf1;overflow:auto;}
.home-category {border:0;background:transparent;padding:0 16px;height:46px;white-space:nowrap;color:#5f5f5f;cursor:pointer;font:inherit;font-size:14px;}
.home-category:hover {color:#3b84eb;background:#f2f8ff;}
.home-category.active {color:#3b84eb;box-shadow:inset 0 -3px #609aeb;background:#fff;}
.home-search {margin:0 14px 0 auto;flex-shrink:0;width:150px;height:30px;border:1px solid #e8ebf1;border-radius:6px;padding:0 10px;background:#fff;font:inherit;outline:none;}
.home-search:focus {border-color:#609aeb;}
.lottery-grid {padding:10px 20px 12px;gap:10px;}
#homeLotteryGrid .lottery-card {border:1px solid #e8ebf1;border-radius:12px;padding:16px 14px;gap:12px;min-height:145px;flex-wrap:wrap;background:#fff;}
#homeLotteryGrid .lottery-card:hover {border-color:#609aeb;box-shadow:0 10px 25px #609aeb14;transform:translateY(-2px);}
#homeLotteryGrid .lottery-card::before {display:none;}
.lottery-card-logo-wrap {width:76px;height:76px;flex:0 0 76px;}
.lottery-card-logo {width:76px;height:76px;object-fit:contain;}
.lottery-card-logo-fallback {background:#eff6ff;color:#609aeb;border-radius:12px;}
.lottery-card-info h3 {font-size:18px;color:#37393b;font-weight:500;}
.lottery-card-info .period {color:#5f5f5f;font-size:13px;}
.lottery-card-info .schedule {font-size:12px;color:#9e9e9e;}
.lottery-card-countdown-line .countdown-value {color:#e8632c;}
#homeLotteryGrid .lottery-card-numbers {flex:1 1 100%;margin:0 0 0 88px;justify-content:flex-start;min-width:0;}
.lottery-card-links {display:flex;gap:20px;margin-left:88px;align-items:center;}
.lottery-card-links a {font-size:12px;color:#5f5f5f;}
.lottery-card-links a:hover {color:#3b84eb;}
.lottery-card-links .lottery-history-link {color:#3b84eb;}
.nav-cat-title {background:#fff;color:#37393b;border-bottom:1px solid #e8ebf1;font-weight:500;}
.nav-cat-title i {color:#609aeb;}
.footer {background:#4d5056;color:#ddd;}
.fixed-left-nav {display:none;}
.home-filter-empty {padding:36px;text-align:center;color:#9e9e9e;}
@media (max-width:1270px) {.main-container{width:calc(100% - 32px);} .navbar-inner{padding:0 16px;} .navbar-menu a{padding:0 10px;font-size:14px;}}
@media (max-width:900px) {.main-layout>.sidebar{display:none;} .main-layout>.main-content{width:100%;} .navbar-menu a{padding:0 8px;font-size:13px;}}
@media (max-width:768px) {.navbar{height:54px;} .navbar-right-btns{display:flex;} .navbar-brand{font-size:20px;} .main-container{width:100%;padding:0 8px;margin-top:64px;} .home-controls{flex-wrap:wrap;} .home-category{padding:0 12px;height:42px;font-size:13px;} .home-search{width:calc(100% - 24px);margin:8px 12px;} .lottery-grid{padding:8px;gap:8px;} #homeLotteryGrid .lottery-card{min-height:120px;padding:12px;gap:10px;} .lottery-card-logo-wrap,.lottery-card-logo{width:48px;height:48px;flex-basis:48px;} #homeLotteryGrid .lottery-card-numbers{margin-left:0;} .lottery-card-links{margin-left:0;} .lottery-card-info h3{font-size:16px;} }
/* Desktop masthead and practical shortcuts, second comparison pass. */
#desktopHeader{background:#fff;height:86px;}
.desktop-header-inner{max-width:1225px;margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;}
.desktop-brand{display:flex;align-items:center;gap:18px;}
.desktop-brand img{max-width:180px;height:58px;object-fit:contain;}
.desktop-brand strong{font-size:32px;color:#3b84eb;font-weight:800;}
.desktop-brand>span{font-size:13px;color:#9e9e9e;border-left:1px solid #e8ebf1;padding-left:18px;}
.desktop-header-tools{display:flex;align-items:center;gap:18px;color:#9e9e9e;font-size:12px;}
.desktop-header-tools button{border:1px solid #609aeb;color:#3b84eb;background:#fff;border-radius:4px;padding:7px 12px;cursor:pointer;font:inherit;}
.desktop-header-tools button:hover{background:#eff6ff;}
.desktop-header-tools button:disabled{opacity:.5;cursor:wait;}
.desktop-header-tools a:hover{color:#3b84eb;}
.navbar{position:sticky;top:0;}
.main-container{margin-top:14px;}
.hot-lottery-list{padding:6px 18px 12px;}
.hot-lottery-list>a{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #f1f5f9;font-size:14px;}
.hot-lottery-list>a:last-child{border-bottom:0;}
.hot-entry{font-size:12px;color:#9e9e9e;}
.hot-lottery-list>a:hover,.hot-lottery-list>a:hover .hot-entry{color:#3b84eb;}
.lottery-favorite{border:0;background:none;color:#b9c1ce;cursor:pointer;font-size:26px;padding:0 5px;line-height:1;}
.lottery-favorite.saved,.lottery-favorite:hover{color:#e8632c;}
.lottery-card-actions{display:flex;align-items:center;gap:8px;}
.navbar-rate-btn,.navbar-market-btn{color:#fff;border-color:#ffffff66;background:#ffffff15;}
.navbar-toggle{color:#fff;}
.mobile-menu{background:#fff;}
.mobile-menu>a{color:#37393b;}
.mobile-menu>a.active{color:#3b84eb;}
.layui-layer-title{background:linear-gradient(90deg,#3b84eb,#609aeb)!important;}
@media(max-width:1270px){.desktop-header-inner{padding:0 16px;}}
@media(max-width:900px){.desktop-header-tools time,.desktop-brand>span{display:none;}}
@media(max-width:768px){#desktopHeader{display:none;}.navbar{position:fixed;}.main-container{margin-top:64px;}.hot-entry{font-size:11px;}}
/* Hall and result panel: restrained blue surfaces and compact result typography. */
:root{--ball-red:#f12d35;--ball-blue:#184dd5;--ball-green:#009204;--accent-glow:#609aeb33;--shadow-accent:0 4px 14px #609aeb25;}
.ball{width:32px;height:32px;font-family:Tahoma,Arial,sans-serif;font-size:16px;font-weight:500;box-shadow:2px 3px 5px #0000000d;text-shadow:none;border:1px solid #c5cbd6;}
.ball::after{display:none;}
.ball-red{background:#f12d35;border-color:#f12d35;}
.ball-blue{background:#184dd5;border-color:#184dd5;}
.ball-green{background:#009204;border-color:#009204;}
.ball-ssc{background:#e35858;border-color:#e35858;}
.ball-other{background:#6092e9;border-color:#6092e9;}
.ball-pk10{border-radius:4px;box-shadow:2px 3px 5px #0000000d;}
.ball-plus{color:#9e9e9e;font-weight:400;text-shadow:none;}
.zodiac{font-size:12px;color:#5f5f5f;font-weight:400;}
.ball-row{gap:6px;flex-wrap:wrap;}
.lot-hub{background:#fff;border:1px solid #e8ebf1;border-radius:12px;box-shadow:0 2px 10px #37393b0f;}
.lot-hub-tabs{background:#fcfcfc;border-bottom:1px solid #e8ebf1;}
.lot-hub-tab{color:#5f5f5f;font-weight:400;}
.lot-hub-tab.active,.lot-hub-tab:hover{color:#3b84eb;background:#eff6ff;}
.lot-cat-label{color:#37393b;background:#f8fafc;}
.lot-cat-type:hover{color:#3b84eb;background:#eff6ff;}
.lottery-type-item:hover{background:#eff6ff;}
.hall-controls{background:#fff;border:1px solid #e8ebf1;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;min-height:54px;}
.hall-category-list{display:flex;overflow:auto;min-width:0;}
.hall-category{border:0;background:none;color:#5f5f5f;cursor:pointer;font:inherit;font-size:14px;white-space:nowrap;height:54px;padding:0 12px;}
.hall-category.active{color:#3b84eb;box-shadow:inset 0 -3px #609aeb;}
.hall-category:hover{color:#3b84eb;}
.hall-search{border:1px solid #e8ebf1;border-radius:6px;padding:0 10px;height:30px;width:150px;flex:none;font:inherit;}
#lotLotteryGrid.grid-mode{display:grid;grid-template-columns:1fr;padding:14px;background:#fff;border:1px solid #e8ebf1;border-top:0;border-radius:0 0 12px 12px;gap:12px;}
#lotLotteryGrid .lottery-card{border:1px solid #e8ebf1;border-radius:12px;padding:0;display:block;background:#fff;overflow:hidden;}
#lotLotteryGrid .lottery-card::before{display:none;}
#lotLotteryGrid .lottery-card-topbar{background:#f8fafc;color:#37393b;padding:12px 18px;border-bottom:1px solid #e8ebf1;font-size:16px;font-weight:500;}
#lotLotteryGrid .lottery-card-header{padding:16px 18px 8px;}
#lotLotteryGrid .lottery-card-body{padding:8px 18px 18px;}
#lotLotteryGrid .lottery-logo{width:64px;height:64px;object-fit:contain;}
.status-countdown,.countdown-value,.detail-countdown .countdown-timer{color:#e8632c;}
.lottery-detail-card,.history-section{background:#fff;border:1px solid #e8ebf1;border-radius:12px;box-shadow:0 2px 10px #37393b0f;}
.history-header{background:#fff;border-bottom:1px solid #e8ebf1;}
.history-header h3,.history-header h3 i{color:#37393b;font-weight:500;}
.history-table thead th{background:#f8fafc;color:#5f5f5f;font-weight:400;border-bottom:1px solid #e8ebf1;}
.history-table tbody tr:first-child,.history-table tbody tr:nth-child(even){background:#fff;}
.history-table tbody tr:hover{background:#f2f8ff;}
.date-quick-btn.active{background:#609aeb;color:#fff;border-color:#609aeb;}
.btn-primary{background:#609aeb;box-shadow:none;font-weight:500;}
.btn-primary:hover{background:#3b84eb;box-shadow:none;}
.tag-accent{background:#eff6ff;color:#3b84eb;border-color:#dbeafe;}
.tab-item:hover{background:#f2f8ff;}
.detail-countdown .countdown-timer .cd-num{background:#fff7ed;color:#e8632c;border-color:#ffedd5;box-shadow:none;}
@media(max-width:768px){.hall-controls{padding:8px;flex-direction:column;align-items:stretch;gap:4px;}.hall-category{height:42px;padding:0 10px;font-size:13px;}.hall-search{width:100%;}.hall-category-list{width:100%;}#lotLotteryGrid.grid-mode{padding:8px;}.ball{width:28px;height:28px;font-size:14px;}#lotLotteryGrid .lottery-card-body{padding:8px 12px 14px;}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}
.home-hero{height:230px;background:#fff;border:1px solid #e8ebf1;border-radius:12px;padding:15px;margin-bottom:14px;position:relative;overflow:hidden;}
.home-hero[hidden],.hero-slide[hidden]{display:none;}
.hero-slides,.hero-slide{height:100%;width:100%;display:block;}
.hero-slide img{width:100%;height:100%;object-fit:contain;display:block;border-radius:6px;}
.hero-dots{display:flex;gap:7px;position:absolute;bottom:22px;left:50%;transform:translateX(-50%);padding:5px 8px;border-radius:16px;background:#00000025;}
.hero-dots button{border:0;width:8px;height:8px;padding:0;background:#ffffff90;border-radius:50%;cursor:pointer;}
.hero-dots button.active{background:#609aeb;}
.retry-draws{border:1px solid #609aeb;color:#3b84eb;background:#fff;padding:6px 18px;border-radius:6px;margin-top:12px;font:inherit;cursor:pointer;}
.retry-draws:hover{background:#eff6ff;}
[aria-busy=true]{opacity:.65;pointer-events:none;}
#homeLotteryGrid .lottery-card-info{width:auto;flex:1;min-width:0;}
#homeLotteryGrid .lottery-card-countdown-line{flex-wrap:wrap;}
#homeLotteryGrid .lottery-card-actions{margin-left:auto;}
.sidebar-card .empty-state{padding:24px 12px;min-height:90px;font-size:12px;}
.home-category:focus-visible,.hall-category:focus-visible,.lottery-favorite:focus-visible,.hero-dots button:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid #3b84eb;outline-offset:3px;}
#homeLotteryGrid .home-filter-empty[hidden],#hallFilterEmpty[hidden]{display:none;}
@media(max-width:768px){.home-hero{height:140px;padding:8px;margin-bottom:10px;}.hero-dots{bottom:14px;}#homeLotteryGrid .lottery-card-info .period{white-space:normal;}#homeLotteryGrid .lottery-card-countdown-line .countdown-label{white-space:normal;}.lottery-card-links{flex-wrap:wrap;gap:12px;}.main-layout>.main-content{min-width:0;}}

.rules-sidebar-title{background:linear-gradient(90deg,#3b84eb,#609aeb);}

.dividends-table thead{background:linear-gradient(90deg,#3b84eb,#609aeb);}

.ranking-column-header{background:linear-gradient(90deg,#3b84eb,#609aeb);}

.about-section-header{background:linear-gradient(90deg,#3b84eb,#609aeb);}

.layui-layer-title{background:linear-gradient(90deg,#3b84eb,#609aeb);}
.nav-lottery-group{display:flex;align-items:center;}
.nav-lottery-group>a{padding-right:5px;}
.nav-dropdown-toggle{border:0;background:none;color:#fff;height:54px;width:25px;padding:0;font-size:10px;cursor:pointer;}
.nav-dropdown-toggle:hover,.nav-dropdown-toggle[aria-expanded=true]{background:#3376d3;}
.nav-lottery-dropdown{position:absolute;top:54px;left:0;right:0;background:#fff;border-bottom:1px solid #e8ebf1;box-shadow:0 20px 50px #0f172a14;max-height:70vh;overflow:auto;z-index:1001;}
.nav-lottery-dropdown[hidden]{display:none;}
.nav-dropdown-inner{max-width:1225px;margin:auto;padding:14px 0 18px;}
.nav-dropdown-row{display:flex;align-items:flex-start;min-height:44px;}
.nav-dropdown-row>strong{width:152px;flex:0 0 152px;padding:8px 16px;color:#37393b;font-size:16px;font-weight:400;}
.nav-dropdown-row>div{flex:1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px 12px;padding:4px 0 8px;border-bottom:1px solid #ededed;}
.nav-dropdown-row a{padding:4px 8px;font-size:13px;color:#5f5f5f;border-radius:4px;}
.nav-dropdown-row a:hover{color:#3b84eb;background:#eff6ff;}
.nav-dropdown-footer{display:flex;justify-content:flex-end;gap:24px;padding:14px 8px 0;}
.nav-dropdown-footer a{color:#3b84eb;font-size:13px;}
.footer-links{display:flex;justify-content:center;gap:28px;flex-wrap:wrap;margin-bottom:20px;}
.footer-links a{color:#ddd;font-size:13px;}
.footer-links a:hover{color:#fff;}
.footer-inner{max-width:1225px;margin:auto;line-height:1.9;}
.rules-nav-item.active{background:#eff6ff;color:#3b84eb;border-color:#609aeb;}
@media(max-width:1270px){.nav-dropdown-inner{padding:12px 16px;}.nav-dropdown-row>div{grid-template-columns:repeat(5,minmax(0,1fr));}}
@media(max-width:768px){.nav-lottery-dropdown{display:none!important;}.footer-links{gap:12px 20px;}.footer{padding:24px 16px;}}
.detail-tools{display:flex;align-items:center;flex-wrap:wrap;gap:0;background:#fff;border:1px solid #e8ebf1;border-radius:12px;margin:14px 0;padding:0 16px;min-height:54px;}
.detail-tools>a,.detail-tools>button{border:0;background:none;font:inherit;font-size:14px;color:#5f5f5f;cursor:pointer;padding:16px;white-space:nowrap;}
.detail-tools>.active{color:#3b84eb;box-shadow:inset 0 -3px #609aeb;}
.detail-tools>a:hover,.detail-tools>button:hover{background:#f2f8ff;color:#3b84eb;}
.detail-tools>button:disabled{opacity:.5;cursor:wait;}
.detail-tools>select{margin-left:auto;width:170px;height:32px;border:1px solid #e8ebf1;border-radius:6px;background:#fff;color:#5f5f5f;padding:0 8px;font:inherit;}
#detailHistory{scroll-margin-top:68px;}
@media(min-width:901px) and (max-width:1024px){.main-layout{flex-direction:row;}.main-layout>.sidebar{width:280px;flex-basis:280px;}}
@media(max-width:768px){.detail-tools{padding:6px 8px;}.detail-tools>a,.detail-tools>button{padding:12px 10px;font-size:13px;}.detail-tools>select{margin:6px 0;width:100%;}.mobile-menu-close{color:#5f5f5f;}}
.analysis-controls{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:20px 24px;border-bottom:1px solid #e8ebf1;}
.analysis-controls label{display:flex;align-items:center;gap:8px;font-size:13px;}
.analysis-controls select{height:34px;max-width:200px;border:1px solid #e8ebf1;border-radius:6px;background:#fff;padding:0 10px;color:#5f5f5f;}
.analysis-tabs{display:flex;border-bottom:1px solid #e8ebf1;padding:0 20px;overflow:auto;}
.analysis-tabs button{border:0;background:none;white-space:nowrap;font:inherit;font-size:14px;padding:16px 20px;color:#5f5f5f;cursor:pointer;}
.analysis-tabs button.active{color:#3b84eb;box-shadow:inset 0 -3px #609aeb;}
.analysis-summary{padding:14px 24px;background:#f8fafc;color:#64748b;font-size:12px;}
.analysis-content{padding:20px 24px;}
.analysis-chart-scroll,.analysis-table-scroll{overflow:auto;}
.analysis-chart{width:100%;height:260px;display:block;background:#fff;}
.analysis-chart text{font-size:12px;fill:#64748b;}
.analysis-table{width:100%;border-collapse:collapse;text-align:center;white-space:nowrap;font-size:13px;}
.analysis-table th{background:#f8fafc;font-weight:400;color:#5f5f5f;}
.analysis-table th,.analysis-table td{padding:12px;border:1px solid #e8ebf1;}
.analysis-table tbody tr:hover{background:#f2f8ff;}
.analysis-hint{font-size:13px;color:#64748b;margin-bottom:18px;}
.heat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.heat-cell{display:flex;align-items:center;gap:12px;border:1px solid #e8ebf1;border-radius:8px;padding:14px;}
.heat-cell strong{color:#3b84eb;font-size:18px;width:28px;}
.heat-track{height:8px;background:#eef2f7;border-radius:4px;flex:1;overflow:hidden;}
.heat-track span{height:100%;background:#609aeb;display:block;border-radius:4px;}
.heat-cell>span{font-size:12px;color:#64748b;}
.road-grid{display:grid;grid-template-columns:repeat(auto-fill,36px);gap:8px;padding:16px;background:#f8fafc;border-radius:8px;margin-bottom:20px;}
.road-bead{width:34px;height:34px;border:2px solid;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;}
.road-bead.odd{color:#e35858;}.road-bead.even{color:#6092e9;}.road-bead.missing{color:#94a3b8;}
@media(max-width:768px){.analysis-controls{padding:12px;gap:12px;}.analysis-controls label{width:100%;justify-content:space-between;}.analysis-controls select{width:65%;max-width:none;}.analysis-content{padding:12px;}.analysis-summary{padding:12px;}.analysis-tabs{padding:0 4px;}.analysis-tabs button{padding:14px 12px;font-size:13px;}.heat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.heat-cell{padding:10px;gap:6px;}}
#siteAssist{position:fixed;left:calc(50% + 640px);bottom:120px;width:68px;background:#fff;border:1px solid #e8ebf1;border-radius:12px;box-shadow:0 4px 16px #0f172a0a;overflow:hidden;z-index:990;}
#siteAssist>a,#siteAssist>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;min-height:68px;border:0;border-bottom:1px solid #e8ebf1;background:#fff;color:#9e9e9e;cursor:pointer;font:inherit;font-size:11px;}
#siteAssist i{font-size:22px;}
#siteAssist>a:hover,#siteAssist>button:hover{color:#3b84eb;background:#f2f8ff;}
#siteAssist>button{border-bottom:0;}
@media(max-width:1430px){#siteAssist{display:none;}}
.road-grid{grid-template-rows:repeat(6,36px);grid-auto-flow:column;grid-auto-columns:36px;grid-template-columns:none;overflow:auto;justify-content:start;}
