:root { --orange:#ff8510; --blue:#12a7f4; --ink:#151112; --paper:#f4f4f4; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-width:1120px; color:var(--paper); background:#252526; font-family:"Microsoft YaHei","Noto Sans SC",sans-serif; }
button,a { font:inherit; }
a { color:inherit; text-decoration:none; }
.wallpaper-shell { min-height:100vh; overflow:hidden; background-color:#292a2a; background-image:url("assets/web_bg.png"),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-position:center top,center top,center top; background-size:max(1920px,100vw) auto,60px 60px,60px 60px; background-repeat:no-repeat,repeat,repeat; background-attachment:fixed,fixed,fixed; }
.topbar { height:92px; display:grid; grid-template-columns:360px 1fr 268px; align-items:stretch; background:rgba(20,15,16,.97); border-bottom:2px solid rgba(255,255,255,.07); }
.brand { display:grid; place-items:center start; padding-left:20px; }
.brand img { width:175px; height:65px; object-fit:contain; }
.topbar > nav { display:flex; justify-content:space-around; align-items:stretch; }
.topbar > nav > a { min-width:180px; display:grid; place-items:center; position:relative; font-size:29px; font-weight:bold; letter-spacing:5px; }
.topbar > nav > a:hover,.topbar > nav > a.is-active { color:var(--orange); }
.topbar > nav > a.is-active::after { content:""; position:absolute; bottom:0; width:182px; height:6px; background:var(--orange); box-shadow:0 -3px 12px #f57d12; }
.game-download { background:url("assets/web_download_btn.png") center / 268px 91px no-repeat; }
.account-bar { height:73px; padding:0 max(78px,calc((100vw - 1740px)/2)); display:flex; align-items:center; justify-content:flex-end; gap:10px; color:#f4f4f4; font-size:22px; background:rgba(0,0,0,.3); }
.account-bar .bell { flex:0 0 28px; width:28px; height:32px; overflow:hidden; color:transparent; font-size:0; background:url("assets/web_message.png") center / 28px 32px no-repeat; }
.account-bar b { padding:2px 8px; color:#0d3110; border-radius:15px; background:#8df442; font-size:17px; }
.account-bar i { height:37px; border-left:1px solid #eee; margin:0 8px; }
.account-bar .logout { margin-left:70px; color:#1fbaff; }
.wallpaper-main { width:100%; max-width:1920px; margin:0 auto; padding:47px 20px 70px; }
.wallpaper-section h1,.wallpaper-section h2 { margin:0 0 18px 27px; font-size:29px; line-height:1; font-weight:800; letter-spacing:-1px; text-shadow:0 2px 4px rgba(0,0,0,.35); }
.wallpaper-section h1 span,.wallpaper-section h2 span { margin-left:4px; letter-spacing:-4px; }
.desktop-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px 20px; }
.wallpaper-card { position:relative; display:block; width:100%; padding:0; overflow:hidden; color:#191919; border:0; background:#555; cursor:pointer; isolation:isolate; }
.wallpaper-card::before { content:"下载原图"; position:absolute; z-index:2; inset:0; display:grid; place-items:center; color:#fff; background:rgba(3,12,18,.52); opacity:0; font-size:22px; font-weight:bold; letter-spacing:3px; transition:opacity .18s ease; }
.desktop-set-card::before { content:"选择下载尺寸"; }
.wallpaper-card::after { content:""; position:absolute; z-index:3; inset:10px; border:1px solid rgba(255,255,255,.75); opacity:0; transform:scale(.98); transition:opacity .18s ease,transform .18s ease; }
.wallpaper-card:hover::before,.wallpaper-card:focus-visible::before,.wallpaper-card:hover::after,.wallpaper-card:focus-visible::after { opacity:1; transform:scale(1); }
.wallpaper-card:focus-visible { outline:3px solid var(--orange); outline-offset:3px; }
.wallpaper-card img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .4s ease,filter .25s ease; }
.wallpaper-card:hover img { transform:scale(1.025); filter:saturate(1.08); }
.wallpaper-card-size { position:absolute; z-index:4; right:0; bottom:0; min-width:140px; padding:7px 14px; color:#181818; background:rgba(255,255,255,.88); font-size:18px; font-weight:bold; line-height:1.2; }
.wallpaper-set-index { position:absolute; z-index:4; top:0; left:0; padding:8px 15px; color:#fff; background:rgba(8,12,14,.78); border-bottom:2px solid var(--orange); font-size:15px; font-weight:bold; letter-spacing:2px; }
.desktop-card { height:auto; aspect-ratio:16/9; }
.mobile-section { margin-top:68px; }
.mobile-row { display:grid; grid-template-columns:325px 325px 1fr; gap:79px; align-items:center; }
.mobile-card { height:617px; }
.mobile-card .wallpaper-card-size { min-width:136px; font-size:18px; }
.coming-soon { justify-self:center; margin:0 120px 0 0; padding:17px 45px; min-width:416px; color:#fff; text-align:center; background:rgba(211,116,35,.74); font-size:17px; }
footer { padding:14px 25px 12px; min-height:128px; background:#060606; color:#eee; text-align:center; font-size:11px; line-height:1.75; }
footer strong { font-weight:normal; }
#resolutionDialog { width:1040px; max-width:calc(100vw - 70px); padding:0; overflow:hidden; color:#f4f4f4; border:1px solid rgba(255,255,255,.18); background:#111719; box-shadow:0 28px 100px rgba(0,0,0,.72); }
#resolutionDialog::backdrop { background:rgba(4,8,10,.76); backdrop-filter:blur(4px); }
.resolution-close { position:absolute; z-index:5; top:12px; right:14px; width:42px; height:42px; padding:0; color:#fff; border:1px solid rgba(255,255,255,.28); border-radius:50%; background:rgba(0,0,0,.52); cursor:pointer; font-size:30px; line-height:36px; }
.resolution-close:hover,.resolution-close:focus-visible { color:#111; outline:0; background:var(--orange); border-color:var(--orange); }
.resolution-preview { min-height:310px; overflow:hidden; background:#050708; }
.resolution-preview img { display:block; width:100%; height:100%; max-height:460px; aspect-ratio:16/9; object-fit:cover; }
.resolution-content { position:relative; padding:28px 34px 34px; border-top:3px solid var(--orange); background:linear-gradient(135deg,#192023 0%,#101416 72%); }
.resolution-eyebrow { margin:0 0 7px; color:var(--orange); font-size:12px; font-weight:bold; letter-spacing:5px; }
#resolutionDialog h2 { margin:0; font-size:32px; letter-spacing:2px; }
.resolution-description { margin:10px 0 23px; color:#aeb7ba; font-size:15px; }
.resolution-options { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.resolution-options button { position:relative; min-height:104px; padding:16px 20px 15px 25px; color:#fff; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.055); cursor:pointer; text-align:left; transition:transform .16s ease,border-color .16s ease,background .16s ease; }
.resolution-options button::before { content:""; position:absolute; top:14px; bottom:14px; left:0; width:4px; background:var(--orange); transform:scaleY(.45); transition:transform .16s ease; }
.resolution-options button:hover,.resolution-options button:focus-visible { transform:translateY(-2px); outline:0; border-color:var(--orange); background:rgba(255,133,16,.12); }
.resolution-options button:hover::before,.resolution-options button:focus-visible::before { transform:scaleY(1); }
.resolution-options span,.resolution-options strong,.resolution-options small { display:block; }
.resolution-options span { color:#c4cccf; font-size:13px; letter-spacing:2px; }
.resolution-options strong { margin:5px 0 4px; color:#fff; font-size:24px; letter-spacing:1px; }
.resolution-options small { color:#8e9a9e; font-size:12px; }
#downloadDialog { width:836px; max-width:calc(100vw - 80px); padding:0 17px 42px; color:#303030; border:0; background:#fff; box-shadow:0 24px 80px rgba(0,0,0,.55); }
#downloadDialog h2 { margin:12px 0 7px; text-align:center; font-size:38px; line-height:1.25; }
.dialog-rule { height:1px; background:#777; }
.dialog-actions { display:flex; justify-content:center; gap:81px; margin-top:30px; }
.dialog-actions button,.dialog-actions a { width:239px; height:68px; display:grid; place-items:center; color:#fff; border:0; cursor:pointer; font-size:28px; font-weight:bold; }
.dialog-close { background:var(--blue); }
.dialog-view { background:#df843e; }
.dialog-close:hover { background:#31b7fb; }
.dialog-view:hover { background:#f09249; }
.dialog-actions button:focus-visible,.dialog-actions a:focus-visible { outline:3px solid rgba(255,255,255,.92); outline-offset:-6px; }
#downloadDialog::backdrop { background:rgba(7,12,14,.62); }
#previewDialog { width:100vw; max-width:none; height:100vh; max-height:none; margin:0; padding:38px; overflow:hidden; border:0; background:rgba(4,7,9,.96); cursor:zoom-out; }
#previewDialog img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; user-select:none; }
#previewDialog p { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); margin:0; padding:8px 18px; color:rgba(255,255,255,.82); background:rgba(0,0,0,.58); font-size:14px; letter-spacing:1px; pointer-events:none; }
#previewDialog::backdrop { background:#030506; }
.download-status { position:fixed; z-index:30; left:50%; bottom:36px; transform:translateX(-50%); padding:12px 24px; color:#fff; border-left:4px solid var(--orange); background:rgba(9,12,14,.94); box-shadow:0 8px 30px rgba(0,0,0,.4); }
@media (max-width:1350px) {
  .topbar { grid-template-columns:270px 1fr 210px; }
  .topbar > nav > a { min-width:110px; }
  .account-bar { padding-left:50px; padding-right:50px; }
  .wallpaper-main { padding-left:22px; padding-right:22px; }
  .desktop-card { height:auto; }
  .mobile-row { grid-template-columns:285px 285px 1fr; gap:40px; }
  .mobile-card { height:570px; }
  .coming-soon { margin-right:30px; min-width:360px; padding-left:25px; padding-right:25px; }
}
@media (max-width:760px) {
  #resolutionDialog { width:calc(100vw - 24px); max-width:none; }
  .resolution-preview { min-height:0; }
  .resolution-content { padding:22px 18px 24px; }
  #resolutionDialog h2 { font-size:25px; }
  .resolution-options { grid-template-columns:1fr; gap:12px; }
  .resolution-options button { min-height:88px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
