.site-adbar {background:#102c3b;color:#fff;font-size:14px}
.site-adbar[hidden],#siteAdPause[hidden],#siteAdAdminOpen[hidden],{display:none}
.site-adbar-inner {display:flex;align-items:center;gap:12px;min-height:37px}
.site-ad-label {background:#fff2;color:#fff;padding:2px 7px;border-radius:4px;font-size:11px;white-space:nowrap}
.site-ad-track {flex:1;min-width:0;overflow:hidden;line-height:1.5}
.site-ad-track a,.site-ad-track span {display:block;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-ad-track .site-ad-enter {animation:site-ad-fade var(--site-ad-interval,10s) both}
.site-adbar button {color:inherit;background:transparent;border:1px solid #fff6;border-radius:4px;padding:3px 7px;font-size:12px;white-space:nowrap}
@keyframes site-ad-fade {
  0%{opacity:0;transform:translateY(4px)}
  8%,92%{opacity:1;transform:translateY(0)}
  100%{opacity:0;transform:translateY(-4px)}
}
.site-feature-ad {background:#0b1f28;border-bottom:1px solid #1d3a46;color:#d9e7ec}
.site-feature-ad-inner {display:flex;align-items:center;gap:14px;padding:10px 0;min-height:0}
.site-feature-ad-copy {flex:1;min-width:0}
.site-feature-ad-copy small {display:inline-block;background:#fff2;color:#fff;padding:2px 7px;border-radius:4px;font-size:11px;margin-bottom:6px}
.site-feature-ad-copy strong {display:block;font-size:15px;color:#fff;margin-bottom:4px}
.site-feature-ad-copy p {margin:0;font-size:13px;line-height:1.45;color:#b7cbd3}
.site-feature-ad-window {position:relative;flex:0 0 auto;width:min(118px,28vw);max-height:200px;aspect-ratio:784/1168;background:#07151a;border-radius:10px;overflow:hidden;border:1px solid #2a4a57;box-shadow:0 6px 18px #0005}
.site-feature-ad-window video {display:block;width:100%;height:100%;object-fit:cover;background:#07151a}
.site-feature-ad-window button {position:absolute;right:6px;bottom:6px;border:0;border-radius:5px;background:#000a;color:#fff;font-size:11px;padding:4px 7px}
.tea-break-dialog {width:min(92vw,540px);max-height:90dvh;margin:auto;border:1px solid #cedae1;border-radius:14px;padding:18px;background:#fff;color:#102c3b}
.tea-break-dialog::backdrop {background:#09212bcc}
.tea-break-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}
.tea-break-head h2 {font-size:22px;margin:0;color:#102c3b}
.tea-break-head small {color:#486570}
.tea-break-head button {border:0;background:#edf4f6;border-radius:6px;font-size:22px;line-height:1;padding:6px 10px}
.tea-break-dialog video {display:block;width:100%;max-height:65dvh;background:#07151a;border-radius:8px}
.tea-break-dialog form {display:grid;gap:8px;margin-block:14px}
.tea-break-dialog form p {margin:0;font-size:13px;color:#486570}
.tea-break-dialog textarea {width:100%;resize:vertical;border:1px solid #adbec5;border-radius:6px;padding:8px}
.tea-break-dialog form button,#siteAdAdminOpen {justify-self:start;background:#104652;color:#fff;border:0;border-radius:6px;padding:7px 12px;margin-top:6px}
@media(max-width:720px){
  .site-feature-ad-inner{align-items:flex-start}
  .site-feature-ad-window{width:min(104px,30vw);max-height:180px}
}
@media(max-width:540px){
      .site-adbar-inner{gap:6px}
  .site-feature-ad-copy strong{font-size:14px}
  .site-feature-ad-copy p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .site-ad-track .site-ad-enter{animation:none}
  .site-feature-ad-window video{animation:none}
}

/* Responsive top layout: isolated from catalogue aside/grid rules. */
.site-adbar-inner{flex-wrap:nowrap}
.site-adbar-inner .site-ad-label,.site-adbar-inner button{flex:0 0 auto}
.site-ad-track{flex:1 1 0;width:0}
header .header{height:auto;min-height:89px;gap:18px;padding-block:16px;flex-wrap:wrap}
header .logo{flex:0 0 auto;white-space:nowrap}
header .header-actions{flex:0 0 auto;white-space:nowrap;gap:12px}
header nav{order:3;flex:1 0 100%;justify-content:center;gap:28px}
header nav a{padding:8px 0}
.site-feature-ad{display:block;width:100%;height:auto;padding:14px 0;border:0;border-bottom:1px solid #1d3a46}
.site-feature-ad-inner{display:flex;justify-content:center;align-items:center;gap:28px;padding:0;max-width:760px;min-width:0}
.site-feature-ad-copy{flex:0 1 340px;min-width:180px;order:2}
.site-feature-ad-copy strong{font-size:22px;line-height:1.5;word-break:normal}
.site-feature-ad-copy p{font-size:14px}
.site-feature-ad-window{order:1;flex:0 0 134px;width:134px;height:200px;max-height:none;aspect-ratio:auto}
.site-feature-ad-window video{height:100%;width:100%;object-fit:contain}
.fixed-ai-help{top:auto;bottom:calc(20px + env(safe-area-inset-bottom));right:20px}
@media(min-width:1600px){header nav{order:initial;flex:1 1 auto;gap:18px}header nav a{padding:12px 0}}
@media(max-width:1100px){header nav{display:none}header .header{min-height:82px}.site-feature-ad-inner{gap:22px}}
@media(max-width:650px){
 header .header{display:flex;flex-direction:column;align-items:flex-start;min-height:0;gap:12px;padding-block:12px}
 header .logo{font-size:22px}header .header>.logo strong{font-size:15px}
 header .header-actions{display:flex;width:100%;justify-content:space-between;gap:8px}
 header .header-actions button,header .header-actions #accountBtn{font-size:12px;line-height:1.4;white-space:nowrap}
 header .header-actions .bag{padding:7px 9px} .site-feature-ad{padding:14px 0}
 .site-feature-ad-inner{gap:16px;align-items:center}
 .site-feature-ad-window{flex-basis:108px;width:108px;height:162px}
 .site-feature-ad-copy{flex:1 1 0;min-width:0}
 .site-feature-ad-copy strong{font-size:17px;white-space:nowrap;letter-spacing:0}
 .site-feature-ad-copy p{font-size:12px;line-height:1.6}
 .site-feature-ad-window button{font-size:10px;padding:4px;right:4px;bottom:4px}
 .fixed-ai-help{top:auto;bottom:calc(12px + env(safe-area-inset-bottom));right:12px;padding:10px 12px;font-size:12px}
 .fixed-ai-help small{display:none}
 .fixed-shuishu{padding:10px 12px;font-size:12px}
 .ai-chat-panel{top:24px;bottom:calc(65px + env(safe-area-inset-bottom))}
 .hero h1{font-size:36px;letter-spacing:-1px}.hero-actions{flex-wrap:wrap}.hero-line{flex-wrap:wrap}
}

.ads-admin-open{color:#104652;border:1px solid #bfd7dc;background:#eef6f7;border-radius:7px;padding:7px 9px;font-size:12px;font-weight:650;white-space:nowrap}
.ads-admin-open[hidden]{display:none}
@media(max-width:650px){.ads-admin-open{font-size:11px;padding:7px}}
