
:root { --paper:#f4f2ec; --ink:#282c31; --accent:#785940; --panel:#fff; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"Microsoft YaHei",sans-serif; line-height:1.85; }
a { color:inherit; text-underline-offset:4px; }
button,input,textarea { font:inherit; }
button { padding:9px 15px; border:1px solid var(--accent); border-radius:7px; background:transparent; color:inherit; cursor:pointer; }
input[type=search],textarea { width:100%; padding:12px 14px; background:var(--panel); border:1px solid #8895a555; color:inherit; border-radius:7px; }
textarea { min-height:100px; }
img { display:block; max-width:100%; height:auto; }
main { width:min(1200px,calc(100% - 40px)); margin:30px auto 60px; }
h1 { font-size:clamp(27px,3.8vw,42px); line-height:1.45; margin:20px 0; overflow-wrap:anywhere; }
h2 { font-size:24px; line-height:1.55; margin:30px 0 14px; }
h3 { font-size:19px; line-height:1.6; }
p,td,dd { overflow-wrap:anywhere; }
section { min-width:0; }
nav { display:flex; flex-wrap:wrap; gap:14px 23px; }
body>header { padding:22px max(20px,calc((100% - 1200px)/2)); border-bottom:1px solid #8895a544; }
.swq-brand { font-size:28px; font-weight:800; text-decoration:none; white-space:nowrap; }
body>header nav { margin-top:15px; font-size:14px; }
.swq-hero { margin:24px 0; }
.swq-hero img { width:100%; aspect-ratio:16/9; object-fit:contain; border-radius:9px; }
.swq-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; list-style:none; padding:0; }
.swq-card { overflow:hidden; border:1px solid #8895a533; border-radius:10px; background:var(--panel); }
.swq-card>a { display:block; text-decoration:none; height:100%; }
.swq-card img { width:100%; aspect-ratio:16/9; object-fit:contain; }
.swq-card div { padding:15px 18px; }
.swq-card h2,.swq-card h3 { font-size:20px; margin:8px 0; }
.swq-card p { font-size:14px; }
.swq-card small { color:var(--accent); }
.swq-meta,.swq-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; gap:14px; }
.swq-facts div,.swq-meta li { padding:13px; background:var(--panel); border:1px solid #8895a533; list-style:none; }
dt { font-weight:700; } dd { margin:5px 0 15px; }
table { border-collapse:collapse; width:100%; margin:20px 0; font-size:14px; }
td,th { border:1px solid #8895a566; padding:12px; text-align:left; vertical-align:top; }
details { padding:14px 0; border-bottom:1px solid #8895a533; }
summary { cursor:pointer; color:var(--accent); font-weight:600; }
.swq-related { border-top:1px solid #8895a544; margin-top:35px; padding-top:10px; }
.swq-related ul { padding-left:22px; } .swq-related li { margin:9px 0; }
.swq-footer { display:flex; justify-content:space-between; gap:20px; padding:25px max(20px,calc((100% - 1200px)/2)); border-top:1px solid #8895a544; font-size:14px; }
.swq-credits { max-width:1200px; margin:auto; padding:0 20px 25px; font-size:12px; }
[hidden] { display:none!important; }
.swq-seal{border-top:9px solid #785940}.swq-seal>div{letter-spacing:8px}.swq-paper{display:grid;grid-template-columns:55px minmax(0,1fr);max-width:1040px;gap:28px}.swq-margin{writing-mode:vertical-rl;letter-spacing:5px;color:#785940;padding-top:30px}.swq-scroll{padding:25px 35px;background:#fffcf5;border:1px solid #c6baa6}.swq-chapters>section{border-bottom:1px dashed #b8ab95;padding-bottom:20px}.swq-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px) {
  .swq-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sy-portal,.bj-portal,.syz-journal,.tzd-wiki,.hyz-cyber-grid { display:block; }
  .sy-rank,.bj-left,.syz-follow,.tzd-fixed,.hyz-visual { position:static; margin-bottom:25px; }
  .bj-left,.tzd-fixed nav { flex-direction:row; }
  .bj-terms { margin-top:35px; }
}
@media(max-width:620px) {
  main { width:calc(100% - 28px); margin-top:20px; }
  body>header { padding:18px 15px; }
  nav { gap:11px 16px; }
  .swq-cards { grid-template-columns:1fr; }
  .swq-meta,.swq-facts { grid-template-columns:1fr; }
  .dxs-cards { columns:1; }
  .sc-opening,.poet-split { display:block; }
  .sc-bar,.dxs-head>div,.syz-brandline,.hyz-console>div,.bj-top { display:block; }
  .swq-paper { display:block; } .swq-margin { display:none; }
  .swq-scroll,.kpb-serial { padding:15px; }
  .tzd-entry>table,.tzd-entry .tzd-infobox { float:none;width:100%;margin:20px 0; }
  .bj-card>a,.jlx-card>a { display:block; }
  .poet-caption { padding:0;border:0; }
  .hyz-crumb { flex-wrap:wrap; }
}

/* Daily section: align to content column, 2026-11-17. */
@media (min-width:621px){.swq-paper > .swq-daily{grid-column:2;min-width:0}}
