/* DH_CJ home v4: compact screenshot-matched landing page.
   Replaces the previous portal hero/search/shortcuts ONLY on index.php. */
html{scroll-behavior:smooth}
body.home-v4{margin:0;min-height:100vh;background:#f5f1e8;color:#403a30;
 font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
 -webkit-font-smoothing:antialiased;padding-bottom:60px;box-sizing:border-box;overflow-x:hidden}
body.home-v4 *,body.home-v4 *::before,body.home-v4 *::after{box-sizing:border-box}
body.home-v4 button{font-family:inherit}
body.home-v4 a{color:inherit;text-decoration:none}
body.home-v4 button:focus-visible,body.home-v4 a:focus-visible,body.home-v4 input:focus-visible{
 outline:3px solid #a77c3e;outline-offset:3px}
body.home-v4::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse at 23% 48%,rgba(216,199,158,.16),transparent 25%),
 radial-gradient(ellipse at 77% 70%,rgba(220,208,179,.18),transparent 30%);
 opacity:.9}
.home4-shell{width:min(858px,calc(100% - 22px));margin:0 auto}
.home4-header{height:51px;border:1px solid #e9deca;border-radius:12px;
 background:rgba(255,253,248,.75);display:flex;align-items:center;gap:14px;
 padding:5px 13px;margin-bottom:10px;box-shadow:0 3px 13px rgba(81,63,33,.035)}
.home4-brand{display:flex;align-items:center;gap:8px;min-width:0}
.home4-brand img{width:40px;height:40px;object-fit:contain;flex-shrink:0}
.home4-brand-text{display:flex;flex-direction:column;gap:1px}
.home4-brand-text strong{font-size:20px;line-height:1;font-weight:900;white-space:nowrap;color:#b49b74;
 text-shadow:0 1px 1px rgba(255,255,255,.95)}
.home4-brand-text small{font-size:9px;color:#c9b99e;letter-spacing:1px;white-space:nowrap}
.home4-header-sparkles{font-size:13px;letter-spacing:6px;color:#b7a9cd;margin-left:20px;opacity:.85}
.home4-header-sparkles b{color:#e5b851}
.home4-login{margin-left:auto;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;
 min-height:32px;padding:5px 10px;border-radius:9px;border:1px solid #e6d9bf!important;
 background:#fffdfa!important;color:#574936!important;font-size:11px!important;font-weight:650;
 box-shadow:0 2px 7px rgba(110,85,44,.10);cursor:pointer}
.home4-login i{font-size:17px;color:#ab7b3d}
.home4-main{padding:0}
.home4-hero{width:100%;aspect-ratio:858/367;overflow:hidden;border-radius:12px;
 background:#1b120a;box-shadow:0 2px 6px rgba(52,34,13,.08)}
.home4-hero>a,.home4-hero>img,.home4-hero a>img{display:block;width:100%;height:100%}
.home4-hero img{object-fit:cover;object-position:center}
.home4-notice{margin:8px 14px 0;height:34px;border:1px solid #e6d9c1;border-radius:12px;
 background:rgba(255,255,255,.83);display:flex;align-items:center;gap:10px;
 padding:0 12px;box-shadow:0 2px 6px rgba(82,64,36,.04)}
.home4-notice-dot{flex:0 0 auto;width:9px;height:9px;background:#a78143;border-radius:50%;
 box-shadow:0 0 0 5px #f3eddf,0 0 0 7px #fbf8f0}
.home4-notice-text{min-width:0;flex:1;text-align:right;font-size:11px;color:#67594b;
 overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home4-ticker{margin:9px 12px 0;height:59px;overflow:hidden;
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 2%,#000 98%,transparent 100%);
 mask-image:linear-gradient(90deg,transparent 0,#000 2%,#000 98%,transparent 100%)}
.home4-ticker-track{display:flex;align-items:center;width:max-content;animation:home4-marquee 25s linear infinite}
.home4-ticker:hover .home4-ticker-track,.home4-ticker:focus-within .home4-ticker-track{animation-play-state:paused}
.home4-ticker-group{display:flex;align-items:center;flex-shrink:0;gap:11px;padding-right:11px;height:59px}
.home4-ticker-item{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;
 width:46px;height:46px;border:0;padding:0;border-radius:50%;background:#fff;
 box-shadow:0 1px 4px rgba(75,53,29,.15);cursor:pointer;transition:transform .16s}
.home4-ticker-item:hover{transform:scale(1.09)}
.home4-ticker-item img{display:block;width:46px;height:46px;object-fit:cover;border-radius:50%;
 border:2px solid #fff}
.home4-empty-logo{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;
 color:#f9e5aa;background:linear-gradient(135deg,#30254c,#8c62ad);font-size:18px;font-weight:bold}
@keyframes home4-marquee{from{transform:translateX(0)}to{transform:translateX(-33.333333%)}}
.home4-platforms{margin:11px 14px 0}
.home4-platforms h1{margin:0;text-align:center;font-size:22px;line-height:1.35;
 font-weight:850;letter-spacing:.2px;color:#40392d}
.home4-title-line{width:94px;height:2px;margin:7px auto 12px;
 background:linear-gradient(90deg,transparent,#8e6a34,transparent)}
.home4-platform-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home4-platform-card{position:relative;min-width:0;height:80px;display:flex;align-items:center;
 gap:7px;padding:12px 8px 10px 9px;overflow:hidden;text-align:left;
 border:1px solid #e9dcc7!important;border-radius:14px!important;background-color:#fffdf9!important;
 background-image:url("../picture/home-v4/card-ornament.svg")!important;background-size:cover!important;
 box-shadow:0 3px 8px rgba(79,58,29,.075);cursor:pointer;
 transition:transform .16s ease,box-shadow .16s ease}
.home4-platform-card:hover{transform:translateY(-2px);box-shadow:0 7px 15px rgba(87,63,26,.13)}
.home4-platform-icon{flex:0 0 49px;width:49px;height:49px;object-fit:cover;border-radius:50%;
 border:2px solid #fff;box-shadow:0 1px 5px rgba(67,47,24,.14);position:relative;z-index:1}
.home4-icon-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#5d346c,#bf924b);color:white}
.home4-platform-copy{position:relative;z-index:1;display:flex;flex-direction:column;gap:3px;
 min-width:0;flex:1;padding-right:66px}
.home4-platform-copy strong{font-size:13px;line-height:1.25;font-weight:800;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#433a2b}
.home4-platform-copy small{font-size:10px;line-height:1.23;color:#8b7b62;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 line-clamp:2;overflow:hidden;min-height:12px}
.home4-badge{position:absolute;top:5px;right:6px;z-index:2;display:inline-block;
 color:#fff;font-size:9px;font-weight:750;line-height:1;padding:3px 6px;
 border-radius:4px;box-shadow:0 1px 4px rgba(37,26,15,.20)}
.home4-badge-hot{background:linear-gradient(110deg,#f83a44,#d71923)}
.home4-badge-hot::before{content:"♨ ";font-size:9px}
.home4-badge-official{background:linear-gradient(110deg,#1b91ef,#0868d5)}
.home4-badge-official::before{content:"✓ ";font-size:9px}
.home4-badge-recommend{background:linear-gradient(110deg,#9960ff,#7140d7)}
.home4-badge-recommend::before{content:"★ ";font-size:9px}
.home4-card-action{position:absolute;z-index:2;right:8px;top:50%;transform:translateY(-24%);
 min-width:64px;max-width:75px;min-height:24px;display:inline-flex;align-items:center;
 justify-content:center;text-align:center;padding:3px 7px;border-radius:18px;
 border:1px solid #d4ac67;color:#fff6e4;background:linear-gradient(#6e4b2d,#2b190e 55%,#56381d);
 box-shadow:inset 0 0 0 1px #8c6a40,0 2px 5px rgba(58,32,11,.18);
 font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home4-empty{grid-column:1/-1;text-align:center;padding:45px 12px;background:#fffdf9;
 border:1px solid #e9dcc7;border-radius:12px;font-size:13px;color:#8d7b5e}
.home4-bottom{position:fixed;z-index:700;bottom:9px;left:50%;transform:translateX(-50%);
 width:min(858px,calc(100% - 22px));height:36px;display:flex;justify-content:space-around;
 align-items:center;border-radius:22px;border:1px solid #e9ddc7;
 background:rgba(255,253,249,.96);box-shadow:0 -6px 20px rgba(76,53,24,.11);
 backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.home4-bottom a{height:45px;min-width:54px;display:flex;flex-direction:column;
 align-items:center;justify-content:center;gap:0;color:#5f513a!important;font-size:10px;font-weight:700}
.home4-bottom i{font-size:22px;color:#b18144;filter:drop-shadow(0 2px 1px rgba(84,53,20,.20));
 transform:translateY(-5px)}
.home4-bottom a span{margin-top:-4px}
.home4-bottom a.is-active i{color:#8b592a}
.home4-support{position:fixed;right:16px;bottom:68px;z-index:710;
 min-height:38px;display:flex;align-items:center;gap:8px;padding:7px 13px;
 border-radius:22px;border:1px solid #e7d8be!important;background:#fffefa!important;
 color:#463622!important;font-size:12px!important;font-weight:700;
 box-shadow:0 3px 15px rgba(78,55,28,.14);cursor:pointer}
.home4-support i{font-size:19px;color:#ad7d3f}
.home4-modal[hidden]{display:none!important}
.home4-modal{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;
 background:rgba(23,18,14,.48);padding:20px}
.home4-modal-panel{width:min(360px,100%);background:#fffdfa;border:1px solid #e8d4b0;
 border-radius:18px;padding:26px 22px;text-align:center;box-shadow:0 25px 70px rgba(0,0,0,.2)}
.home4-modal-icon{font-size:35px;color:#b48748}
.home4-modal-panel h2{margin:9px 0;font-size:19px;color:#352819}
.home4-modal-panel p{font-size:14px;color:#74644f;line-height:1.7;margin:0 0 18px}
.home4-modal-panel button{border:0;border-radius:20px;background:#4a321b;color:#fff;
 padding:9px 30px;font-size:13px;font-weight:700;cursor:pointer}
body.home-v4 .user-center-popup{z-index:15100!important}
@media (max-width:760px){
 .home4-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home4-platform-card{height:87px}
 .home4-platform-copy{padding-right:62px}
 .home4-platform-icon{width:44px;height:44px;flex-basis:44px}
 .home4-platform-copy strong{font-size:12px}
 .home4-platform-copy small{font-size:9px}
 .home4-card-action{min-width:59px;font-size:9px}
}
@media (max-width:540px){
 body.home-v4{padding-bottom:70px}
 .home4-shell{width:calc(100% - 16px)}
 .home4-header{height:48px;padding:4px 9px;margin-bottom:8px}
 .home4-brand img{width:35px;height:35px}
 .home4-brand-text strong{font-size:16px}
 .home4-brand-text small{font-size:8px}
 .home4-header-sparkles{font-size:10px;letter-spacing:2px;margin-left:2px}
 .home4-login{font-size:10px!important;padding:4px 7px;min-height:29px}
 .home4-hero{border-radius:10px}
 .home4-notice{margin:7px 5px 0;height:30px;padding:0 10px}
 .home4-notice-text{font-size:10px}
 .home4-ticker{margin:7px 3px 0;height:53px}
 .home4-ticker-group{height:53px;gap:8px;padding-right:8px}
 .home4-ticker-item,.home4-ticker-item img,.home4-empty-logo{width:43px;height:43px}
 .home4-ticker-item{flex-basis:43px}
 .home4-platforms{margin:8px 5px 0}
 .home4-platforms h1{font-size:20px}
 .home4-title-line{margin:6px auto 11px}
 .home4-platform-grid{grid-template-columns:1fr;gap:9px}
 .home4-platform-card{height:82px;padding-left:12px}
 .home4-platform-icon{width:52px;height:52px;flex-basis:52px}
 .home4-platform-copy strong{font-size:14px}
 .home4-platform-copy small{font-size:11px}
 .home4-card-action{font-size:11px;min-width:76px}
 .home4-platform-copy{padding-right:90px}
 .home4-bottom{width:calc(100% - 16px);height:53px;bottom:max(8px,env(safe-area-inset-bottom))}
 .home4-bottom a{height:53px;min-width:50px;font-size:11px}
 .home4-bottom i{font-size:22px;transform:translateY(0)}
 .home4-bottom a span{margin-top:1px}
 .home4-support{bottom:calc(75px + env(safe-area-inset-bottom));right:12px;min-height:36px;font-size:11px!important}
}
@media (prefers-reduced-motion:reduce){
 .home4-ticker-track{animation:none!important}
 .home4-platform-card,.home4-ticker-item{transition:none}
}


/* 2026-10-29: Larger desktop layout and readable two-column mobile layout.
   The mobile dark-gold treatment follows the user's latest reference image. */
.home4-shell{width:min(1020px,calc(100% - 28px))}
.home4-header{height:61px;padding:7px 17px;gap:16px;margin-bottom:12px}
.home4-brand img{width:47px;height:47px}
.home4-brand-text strong{font-size:23px}
.home4-brand-text small{font-size:10px}
.home4-login{font-size:12px!important;min-height:36px;padding:6px 13px}
.home4-hero{border-radius:14px}
.home4-notice{height:42px;margin:10px 16px 0;padding:0 15px}
.home4-notice-text{font-size:12px}
.home4-ticker{height:71px;margin:11px 13px 0}
.home4-ticker-group{height:71px;gap:13px;padding-right:13px}
.home4-ticker-item,.home4-ticker-item img,.home4-empty-logo{width:55px;height:55px}
.home4-ticker-item{flex-basis:55px}
.home4-platforms{margin:15px 16px 0}
.home4-platforms h1{font-size:25px}
.home4-title-line{margin:9px auto 15px;width:110px}
.home4-platform-grid{gap:13px}
.home4-platform-card{height:101px;gap:10px;padding:15px 11px}
.home4-platform-icon{width:61px;height:61px;flex-basis:61px}
.home4-platform-copy{gap:5px;padding-right:78px}
.home4-platform-copy strong{font-size:15px}
.home4-platform-copy small{font-size:11.5px;line-height:1.35}
.home4-badge{font-size:10px;top:6px;right:7px}
.home4-card-action{min-width:74px;max-width:83px;min-height:27px;font-size:11px;right:10px}
.home4-bottom{width:min(1020px,calc(100% - 28px));height:49px;bottom:10px}
.home4-bottom a{height:49px;min-width:74px;font-size:11px}
.home4-bottom i{font-size:24px;transform:translateY(-1px)}
.home4-bottom a span{margin-top:0}
.home4-support{bottom:78px;right:18px;min-height:42px;font-size:13px!important}
@media(max-width:760px){
 .home4-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home4-platform-card{height:109px}
 .home4-platform-icon{width:54px;height:54px;flex-basis:54px}
 .home4-platform-copy{padding-right:76px}
 .home4-platform-copy strong{font-size:14px}
 .home4-platform-copy small{font-size:10.5px}
}
@media(max-width:540px){
 body.home-v4{background:#1c1912!important;color:#f4e7cc;padding-bottom:84px}
 body.home-v4::before{background:radial-gradient(ellipse at 25% 15%,rgba(140,105,50,.12),transparent 60%);
 opacity:1}
 .home4-shell{width:calc(100% - 12px)}
 .home4-header{height:62px;padding:7px 10px;margin-bottom:9px;gap:9px;
   background:rgba(64,53,34,.97)!important;border-color:#625032!important;
   box-shadow:0 2px 14px rgba(0,0,0,.24)}
 .home4-brand img{width:45px;height:45px}
 .home4-brand-text strong{font-size:19px;color:#f4db9b}
 .home4-brand-text small{font-size:9px;color:#c4a778}
 .home4-header-sparkles{margin-left:0;letter-spacing:2px;color:#a89267}
 .home4-login{font-size:11px!important;min-height:35px;padding:5px 9px;
   background:#443621!important;color:#f6e8c9!important;border-color:#80663e!important}
 .home4-login i{color:#e9c47b}
 .home4-hero{aspect-ratio:2.12;border-radius:11px}
 .home4-notice{height:42px;margin:9px 5px 0;padding:0 13px;
   background:#3b3122!important;border-color:#655335!important}
 .home4-notice-dot{width:8px;height:8px;background:#2d71cf;box-shadow:0 0 0 4px #3b3122}
 .home4-notice-text{font-size:11px;color:#c7bba7;text-align:left}
 .home4-ticker{height:69px;margin:10px 3px 0}
 .home4-ticker-group{height:69px;gap:10px;padding-right:10px}
 .home4-ticker-item,.home4-ticker-item img,.home4-empty-logo{width:54px;height:54px}
 .home4-ticker-item{flex-basis:54px;background:#2d241b}
 .home4-ticker-item img{border:2px solid #8c7247}
 .home4-platforms{margin:12px 5px 0}
 .home4-platforms h1{font-size:24px;color:#f7e9c8}
 .home4-title-line{margin:9px auto 14px;background:linear-gradient(90deg,transparent,#d0ad6d,transparent)}
 .home4-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 9px}
 .home4-platform-card{
   height:122px;display:grid;grid-template-columns:53px minmax(0,1fr);
   grid-template-rows:75px 27px;column-gap:7px;row-gap:2px;
   align-items:start;padding:9px 8px;
   background-color:#3b3222!important;
   background-image:linear-gradient(105deg,rgba(67,54,35,.92),rgba(49,41,30,.90)),url("../picture/home-v4/card-ornament.svg")!important;
   border-color:#6e5737!important;border-radius:14px!important;
   box-shadow:0 3px 9px rgba(0,0,0,.20)}
 .home4-platform-icon{grid-column:1;grid-row:1;width:53px;height:53px;flex-basis:53px;margin-top:16px;
   border-color:#b99a60}
 .home4-platform-copy{grid-column:2;grid-row:1;min-width:0;padding:16px 0 0;gap:5px}
 .home4-platform-copy strong{font-size:13px;color:#fff4db;line-height:1.2}
 .home4-platform-copy small{font-size:10px;line-height:1.3;color:#cbb99c;-webkit-line-clamp:3}
 .home4-badge{top:5px;right:6px;font-size:10px;padding:4px 6px}
 .home4-card-action{top:auto;bottom:8px;right:9px;transform:none;
   min-width:70px;max-width:90px;min-height:27px;font-size:11px}
 .home4-empty{background:#3b3222;color:#e6d0ac;border-color:#6e5737}
 .home4-bottom{width:calc(100% - 12px);height:63px;bottom:max(7px,env(safe-area-inset-bottom));
   background:rgba(28,23,17,.98)!important;border-color:#75603e!important;
   box-shadow:0 -4px 22px rgba(0,0,0,.38)}
 .home4-bottom a{height:63px;min-width:55px;color:#e8d1a3!important;font-size:12px}
 .home4-bottom i{font-size:27px;color:#d8b06d;transform:translateY(0)}
 .home4-bottom a span{margin-top:2px}
 .home4-bottom a.is-active i{color:#f2d089}
 .home4-support{bottom:calc(85px + env(safe-area-inset-bottom));right:12px;
   min-height:40px;padding:8px 13px;font-size:12px!important;
   background:#403321!important;color:#f3e4c4!important;border-color:#80643c!important}
 .home4-support i{color:#e9bd78}
}
@media(max-width:365px){
 .home4-platform-grid{gap:9px 7px}
 .home4-platform-card{height:122px;grid-template-columns:47px minmax(0,1fr);column-gap:5px;padding:9px 6px}
 .home4-platform-icon{width:47px;height:47px;flex-basis:47px;margin-top:19px}
 .home4-platform-copy strong{font-size:12px}
 .home4-platform-copy small{font-size:9px}
 .home4-card-action{min-width:65px;font-size:10px}
 .home4-brand-text strong{font-size:17px}
}

/* Always-moving site announcement, including short text */
.home4-notice-window{flex:1;min-width:0;overflow:hidden;white-space:nowrap;position:relative}
.home4-notice-marquee{display:flex;align-items:center;width:max-content;min-width:200%;gap:80px;animation:ngNoticeMove 18s linear infinite;will-change:transform}
.home4-notice-marquee span{display:inline-block;flex:0 0 auto;min-width:calc(50% - 40px);font-size:12px;color:#67594b;text-align:center;white-space:nowrap}
@keyframes ngNoticeMove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:600px){.home4-notice-marquee{animation-duration:14s}.home4-notice-marquee span{font-size:11px}}
