body.china-redesign.light{background:#f8f5f2!important;color:#241713!important}body.china-redesign{padding-bottom:0!important}body.china-redesign header.top{position:relative!important;background:linear-gradient(90deg,#530505 30%,#710909bb 65%,#71090944),url('/assets/cn-wall.webp') right center/auto 100% no-repeat,#710909!important;overflow:visible!important}body.china-redesign .top-inner{max-width:1500px;margin:auto;padding:10px 20px!important;min-height:95px;gap:12px}body.china-redesign .brand img{width:76px!important;height:76px!important;flex:none}body.china-redesign .brand strong{font-size:clamp(20px,3vw,42px);text-transform:uppercase;color:white!important}body.china-redesign .brand small,body.china-redesign #clock,body.china-redesign .head-right button{color:white!important}body.china-redesign .head-right .today{background:#650606!important}body.china-redesign nav#nav{position:static!important;inset:auto!important;transform:none!important;margin:0 0 12px!important;width:100%!important;max-width:none!important;display:flex!important;border-radius:8px!important;background:linear-gradient(#a60008,#680000)!important;box-shadow:none!important;gap:4px;padding:4px!important}body.china-redesign nav#nav>a{color:white!important;padding:10px 5px!important;display:flex!important;align-items:center;justify-content:center;gap:7px}body.china-redesign nav#nav>a.active{background:#e31520!important;color:white!important}body.china-redesign .cn-grid{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(0,1fr);gap:18px;align-items:start} .cn-grid>*{min-width:0}.china-redesign .cn-grid .panel{margin:0 0 18px!important;border-radius:14px!important;overflow:hidden;box-shadow:0 3px 9px #0002;padding:14px!important}.china-redesign .cn-result{background:linear-gradient(125deg,#670000,#a80a0a,#490000)!important;color:white!important;border:1px solid #e4b54a!important}.cn-result-head{text-align:center;padding:4px 0 14px}.cn-result-head span{display:inline-block;background:#df1520;border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700}.cn-result-head h2{font-size:clamp(23px,3vw,38px);color:#ffda74!important;margin:5px 0!important}.cn-result-head p{color:white!important;margin:0}.cn-medals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cn-medals>div{background:linear-gradient(130deg,#ffe18a,#e5a31a);color:#211500;border:2px solid #ffe5a1;border-radius:12px;text-align:center;padding:10px 2px}.cn-medals>div:nth-child(2){background:linear-gradient(130deg,#f6f7fa,#aeb1ba);border-color:#e5e5e5}.cn-medals>div:nth-child(3){background:linear-gradient(130deg,#ffd0a0,#d67d3e);border-color:#ffc998}.cn-medals h3,.cn-extras h3{margin:0;font-size:clamp(13px,2vw,22px)}.cn-medals strong{font-size:clamp(22px,4vw,55px);font-variant-numeric:tabular-nums;color:#160d08!important}.cn-extras{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.cn-extras>div{background:#fff;border-radius:10px;overflow:hidden;border:3px solid white}.cn-extras h3{background:#154e91;color:white;text-align:center;padding:6px}.cn-digits{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.cn-digits span{color:#141414;background:#f3f3f5;border:1px solid #ddd;text-align:center;padding:9px 1px;font-size:clamp(10px,1.3vw,19px);font-weight:800}.china-redesign .cn-explorer{background:linear-gradient(90deg,#710509 30%,#71050988),url('/assets/cn-timeline.webp') right top/auto 110px no-repeat,#710509!important;color:white!important}.cn-explorer h2,.cn-explorer p{color:white!important}.cn-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.china-redesign .cn-shortcuts a{background:#bd1642;color:white!important;padding:18px 8px;border-radius:10px;text-align:center;font-weight:700}.cn-shortcuts a:nth-child(2){background:#a94a00}.cn-shortcuts a:nth-child(3){background:#6430b1}.cn-shortcuts a:nth-child(4){background:#075a9e}.cn-articles>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.cn-articles>div>a{border:1px solid #d6c7c3;border-radius:10px;overflow:hidden;display:block;text-decoration:none}.cn-articles img{width:100%;height:auto;display:block}.cn-articles strong{display:block;padding:10px;font-size:14px}.cn-articles h2 a{font-size:13px;float:right}.china-redesign .cn-side .panel>h2,.china-redesign .cn-articles>h2{background:linear-gradient(90deg,#b5000a,#720000);color:white!important;padding:12px;margin:-14px -14px 14px!important;font-size:19px}.china-redesign .cn-articles h2 a{color:white!important}.china-redesign .cn-side .countdown{margin:0!important;padding:10px!important}.cn-side .count-layout{display:block!important}.cn-side .count-unit{min-width:0!important;flex:1;padding:6px!important}.cn-side .count-unit b{font-size:25px!important}.cn-side #count{gap:5px!important}.cn-complete progress{width:100%;accent-color:#188b37}.cn-complete #cnTotal{font-size:25px}.china-redesign .china-faq details{border:1px solid #cdbbb7;border-radius:8px;padding:10px;margin:8px 0}.china-redesign .china-faq summary{cursor:pointer;font-weight:700}.china-redesign.light .china-faq details{background:#fff;color:#251919}.china-redesign #chinaTimelineTitle{color:inherit}.china-redesign #chinaTimelineTitle~ol li{padding:7px;border-bottom:1px solid #bfa39c66}.china-redesign .wrap{padding-bottom:20px!important}@media(max-width:850px){body.china-redesign .cn-grid{grid-template-columns:1fr}.cn-shortcuts,.cn-articles>div{grid-template-columns:repeat(2,1fr)}body.china-redesign .top-inner{flex-wrap:wrap}body.china-redesign .head-right{flex-wrap:wrap}body.china-redesign nav#nav>a{font-size:11px;flex-direction:column}.cn-extras{grid-template-columns:1fr}.cn-digits span{font-size:15px}.cn-medals strong{font-size:clamp(20px,6vw,42px)}}
/* V27: final cascade, restore original floating app navigation. */
body.china-redesign{padding-bottom:110px!important}body.china-redesign main.wrap{width:100%!important;max-width:2200px!important;box-sizing:border-box!important;padding:18px clamp(12px,2vw,36px) 110px!important}body.china-redesign header.top{background:linear-gradient(90deg,#590000 15%,#710000e8 35%,#71000022 75%),url('/assets/cn-wall.webp') center right/cover no-repeat!important;border-bottom:3px solid #e8b947!important}body.china-redesign header.top .top-inner{min-height:112px;padding:14px 24px!important}body.china-redesign nav#nav{position:fixed!important;top:auto!important;left:50%!important;right:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;transform:translateX(-50%)!important;width:min(96vw,1050px)!important;max-width:1050px!important;margin:0!important;z-index:2140!important;box-shadow:0 8px 28px #0006!important;border-radius:18px!important;padding:7px!important}body.china-redesign nav#nav>a{flex:1 0 0!important;min-width:0!important;flex-direction:column!important;font-size:22px!important}body.china-redesign nav#nav>a span{font-size:14px!important}body.china-redesign .cn-grid{grid-template-columns:minmax(0,2.3fr) minmax(0,1fr);gap:22px}body.china-redesign .cn-grid .panel.cn-result{background:radial-gradient(ellipse at 90% 0%,#a92b0c 0%,transparent 55%),linear-gradient(125deg,#640000,#a40808 55%,#530000)!important;color:#fff!important;padding:22px!important}body.china-redesign .cn-result-head h2{color:#ffe08a!important}body.china-redesign .cn-result-head p{color:#fff!important;font-size:17px}body.china-redesign .cn-medals h3{color:#241400!important}body.china-redesign .cn-medals strong{font-size:clamp(25px,4vw,64px)}body.china-redesign .cn-extras h3{color:#fff!important;background:#124c91!important}body.china-redesign .cn-digits span{font-size:clamp(12px,1.25vw,22px);padding:12px 1px}body.china-redesign .cn-grid .panel.cn-explorer{background:linear-gradient(90deg,#720008 15%,#720008a0 65%,#72000833),url('/assets/cn-timeline.webp') right top/cover no-repeat!important;color:#fff!important;padding:22px!important}body.china-redesign .cn-explorer h2{color:#fff!important;font-size:clamp(24px,3vw,38px);margin:0 0 8px}body.china-redesign .cn-explorer p{color:#fff!important;font-size:17px;margin:0 0 20px}body.china-redesign .cn-shortcuts a{display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:100px;font-size:18px;box-shadow:inset 0 0 0 1px #ffffff55}body.china-redesign .cn-shortcuts small{font-size:14px;color:#fff!important;font-weight:500}body.china-redesign .cn-side .countdown .count-info p,body.china-redesign .cn-side .countdown .count-info h2,body.china-redesign .cn-side .countdown #status{color:#fff!important}body.china-redesign .cn-side .countdown .count-unit small{color:#4b2924!important}body.china-redesign .cn-side .panel>h2,body.china-redesign .cn-articles>h2{font-size:22px!important}body.china-redesign .cn-articles strong{font-size:17px;line-height:1.4}body.china-redesign .cn-articles img{aspect-ratio:2.3;object-fit:cover}body.china-redesign .china-faq summary{font-size:16px;line-height:1.45}body.china-redesign .china-faq details p{font-size:15px;line-height:1.6}body.china-redesign .cn-grid .panel{box-shadow:0 4px 12px #0002}body.china-redesign .cn-complete p{font-size:15px}body.china-redesign .cn-grid #chinaTimelineTitle~ol{font-size:16px;line-height:1.6} @media(max-width:850px){body.china-redesign .cn-grid{grid-template-columns:1fr}body.china-redesign .cn-grid .panel.cn-result,body.china-redesign .cn-grid .panel.cn-explorer{padding:12px!important}body.china-redesign .cn-medals strong{font-size:clamp(20px,5.8vw,42px)}body.china-redesign nav#nav>a span{font-size:11px!important}body.china-redesign nav#nav>a{font-size:18px!important}body.china-redesign .cn-shortcuts a{font-size:15px;min-height:80px}body.china-redesign header.top .top-inner{min-height:75px;padding:8px 12px!important;flex-wrap:wrap!important}body.china-redesign .cn-digits span{font-size:clamp(10px,3vw,17px)}}

/* V28: footer contrast, independent of theme */
html body main footer { background: #650b10 !important; color: #ffffff !important; border: 1px solid #a66c26 !important; border-radius: 12px; padding: 22px 16px !important; text-align: center; line-height: 1.65; font-size: 14px; }
html body main footer :is(p,span,strong,small) { color: #ffffff !important; }
html body main footer a { color: #ffe6a3 !important; }
html body main footer a.btn.btn-danger { display: inline-block; background: #a51620 !important; color: #ffffff !important; border: 1px solid #e8b95b !important; border-radius: 8px; padding: 8px 14px; margin: 8px; text-decoration: none; }
html body main footer a.btn.btn-danger:hover { background: #800f17 !important; color: #ffffff !important; }
html body main footer a:focus-visible { outline: 2px solid #ffe6a3; outline-offset: 3px; }
