:root {
  --ink: #2a1814;
  --brick: #a33b2a;
  --brick-deep: #7f2e22;
  --paper: #f3ebe1;
  --paper-2: #e8ddd0;
  --bone: #faf6f0;
  --accent: #a33b2a;
  --muted: #6f584c;
  --line: #d4c4b4;
  --soft: #fffdf9;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e5d8c8 0%, var(--paper) 16%, var(--bone) 100%);
  line-height: 1.8;
}
a { color: var(--brick-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.15rem; }

.site-header {
  background: var(--brick-deep); color: #faf6f0;
  border-bottom: 3px solid #c9a06a;
}
.site-header a { color: #faf6f0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; letter-spacing: .04em; text-decoration: none;
}
.brand img { border-radius: 8px; background: #fff; }
.nav-desktop { display: flex; gap: 1rem; flex-wrap: wrap; font-family: "Segoe UI", "PingFang SC", sans-serif; font-size: .92rem; }
.menu-toggle {
  display: none; border: 1px solid #c9a06a; background: transparent;
  color: #fff; border-radius: 8px; padding: .4rem .7rem; cursor: pointer;
}
#mobile-nav {
  display: none; flex-direction: column; gap: .35rem;
  padding: .5rem 1.15rem 1rem; background: #5e2219;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}
#mobile-nav.open { display: flex; }
#mobile-nav a { padding: .3rem 0; }

.mag-masthead {
  padding: 1.5rem 0 1rem; border-bottom: 2px solid var(--brick);
  margin-bottom: 1.1rem;
}
.mag-kicker {
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--muted); margin: 0 0 .35rem;
}
.mag-masthead h1 {
  margin: 0 0 .55rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.25; font-weight: 700;
}
.mag-deck {
  margin: 0; max-width: 46rem; color: var(--muted);
  font-family: "Segoe UI", "PingFang SC", sans-serif; font-size: 1.02rem;
}

.mag-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem;
  margin: 1.2rem 0 1.5rem;
}
.mag-feature {
  background: var(--soft); border: 1px solid var(--line);
  padding: 0; overflow: hidden;
}
.mag-feature img { width: 100%; display: block; }
.mag-feature-body { padding: 1rem 1.1rem 1.2rem; }
.mag-feature-body h2 {
  margin: 0 0 .5rem; font-size: 1.35rem; border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
}
.mag-side {
  display: flex; flex-direction: column; gap: .9rem;
}
.mag-side article {
  background: var(--paper-2); border: 1px solid var(--line); padding: .85rem 1rem;
}
.mag-side h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--brick-deep); }
.mag-side p { margin: 0; font-family: "Segoe UI", "PingFang SC", sans-serif; font-size: .95rem; color: var(--muted); }

.mag-pull {
  margin: 1.4rem 0; padding: 1rem 1.2rem;
  border-left: 4px solid var(--brick);
  background: #efe4d6;
  font-size: 1.15rem; font-style: italic;
}
.mag-section { padding: .4rem 0 1rem; }
.mag-section h2 {
  margin: 0 0 .7rem; font-size: 1.4rem;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  color: var(--brick-deep);
}
.mag-prose p {
  margin: 0 0 1rem;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mag-figure {
  margin: 1rem 0 1.2rem; border: 1px solid var(--line); background: #fff;
}
.mag-figure img { width: 100%; display: block; }
.mag-figure figcaption {
  padding: .5rem .8rem; font-size: .88rem; color: var(--muted);
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  border-top: 1px solid var(--line);
}
.mag-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .85rem; margin: 1rem 0;
}
.mag-cols figure {
  margin: 0; border: 1px solid var(--line); background: #fff;
}
.mag-cols img { width: 100%; display: block; }
.mag-cols figcaption {
  padding: .45rem .6rem; font-size: .82rem; color: var(--muted);
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}
.mag-peers {
  display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}
.mag-peers a {
  border: 1px solid var(--line); background: #fff; padding: .4rem .75rem; color: var(--brick-deep);
}
.faq-list details {
  border-top: 1px solid var(--line); padding: .65rem 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.site-footer {
  margin-top: 2rem; background: var(--brick-deep); color: #f0e4d8;
  padding: 1.4rem 0 2rem; font-family: "Segoe UI", "PingFang SC", sans-serif; font-size: .9rem;
}
.site-footer a { color: #f5d7b8; }
.page-hero { padding: 1.3rem 0 .5rem; border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.page-hero h1 { margin: 0 0 .35rem; font-size: 1.55rem; }
.prose p { margin: 0 0 1rem; font-family: "Segoe UI", "PingFang SC", sans-serif; }
.err-box {
  text-align: center; padding: 2.2rem 1rem; border: 1px solid var(--line);
  background: #fff; margin: 1rem 0;
}
.btn {
  display: inline-block; padding: .5rem 1rem; background: var(--brick); color: #fff;
  font-family: "Segoe UI", "PingFang SC", sans-serif; text-decoration: none;
}
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-block; }
  .mag-grid { grid-template-columns: 1fr; }
  .mag-cols { grid-template-columns: 1fr; }
}


/* SEO keyword highlight */
strong.kw,.kw{
  color:var(--accent,var(--brand,#e86a2c));
  font-weight:800;
}
mark.kw{
  background:color-mix(in srgb, var(--brand,#e86a2c) 16%, transparent);
  color:inherit;
  padding:0 .12em;
  border-radius:3px;
}
h1 .kw,h2 .kw,h3 .kw{color:var(--brand,#e86a2c)}

/* UNIQUE_HAMBURGER_THEME_START */

/* === unique chrome: hamburger-only + theme === */
:root{--bg:#f2e6db;--paper:#fbf4ec;--ink:#2a1710;--muted:#7a5646;--line:#e2cbb8;--soft:#fff8f1;--brand:#b91c1c;--brand2:#dc2626;--accent:#7f1d1d;--header-bg:#fbf4ec;--radius:0;--shadow:none;--font:"Palatino Linotype","Songti SC","SimSun",serif;}
body{font-family:var(--font)}
.site-header{
  position:sticky;top:0;z-index:50;
  background:var(--header-bg, var(--paper));
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.site-header .brand{color:var(--ink)}
.site-header .brand span{color:var(--ink)}
.nav-desktop{display:none!important}
.menu-toggle{display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;padding:0;cursor:pointer;
  border:1px solid var(--line);background:transparent;color:inherit;
  border-radius:var(--radius);
}
.menu-toggle .burger{
  width:20px;height:14px;display:flex;flex-direction:column;justify-content:space-between;
}
.menu-toggle .burger i{
  display:block;height:2px;width:100%;background:currentColor;border-radius:2px;
  transition:transform .22s ease,opacity .22s ease;
}
.menu-toggle[aria-expanded="true"] .burger i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] .burger i:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] .burger i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
#mobile-nav{
  display:none;flex-direction:column;gap:.25rem;
  padding:.65rem 1rem 1rem;border-top:1px solid var(--line);
  background:var(--paper);color:var(--ink);
}
#mobile-nav.open{display:flex}
#mobile-nav a{
  padding:.7rem .55rem;border-radius:calc(var(--radius) / 2);
  color:var(--ink);font-weight:700;
}
#mobile-nav a:hover{background:color-mix(in srgb, var(--brand) 12%, transparent)}
.theme-brick-mag .site-header{/* marker */}

.site-header{border-bottom:3px solid var(--brand)}.menu-toggle{border-radius:0;border:1px solid var(--brand);color:var(--brand)}
/* UNIQUE_HAMBURGER_THEME_END */

/* DESKTOP_ADAPT_START */


html{ -webkit-text-size-adjust:100%; }
img,video{ max-width:100%; height:auto; }
.header-inner,.wrap,.site-main,.footer-inner,.ads-head{
  width:100%;
  margin-left:auto;margin-right:auto;
  box-sizing:border-box;
}
.header-inner{
  max-width:var(--desk-max, var(--max, 1120px));
  padding:.85rem clamp(1rem, 3vw, 1.75rem);
  min-height:64px;
}
.site-main,.wrap,.footer-inner,.ads-head{
  max-width:var(--desk-max, var(--max, 1120px));
  padding-left:clamp(1rem, 3vw, 1.75rem);
  padding-right:clamp(1rem, 3vw, 1.75rem);
}
@media (min-width:1280px){
  :root{ --desk-max:1240px; }
  body{ font-size:17.5px; }
}
@media (min-width:1440px){
  :root{ --desk-max:1320px; }
}



@media (min-width:901px){
  .mag-masthead{ padding:1.75rem 0 1.1rem; }
  .mag-grid{ display:grid; grid-template-columns:1.25fr .75fr; gap:1.5rem; align-items:start; }
  .mag-cols{ display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
  .mag-section.mag-prose{ max-width:none; }
}

/* DESKTOP_ADAPT_END */

/* DESKTOP_ADAPT_PATCH */
@media (max-width:900px){
  #mobile-nav.open{
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
  }
  .header-inner,.site-main,.wrap,.footer-inner,.ads-head{
    padding-left:1rem;
    padding-right:1rem;
  }
}
@media (min-width:901px){
  .ads-head .ads-wrap{ max-width:100%; }
  #ads{ justify-content:center; gap:16px 20px; }
  /* cinema full-bleed frames stay edge-to-edge */
  body[data-template="cinema"] .cine-frame{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }
  body[data-template="dark-band"] .band-hero,
  body[data-template="dark-band"] .band-dark,
  body[data-template="dark-band"] .band-light{
    width:100%;
  }
}


/* UNIQUE_VISUAL_SKIN_START */
body{
  background:
    linear-gradient(#b91c1c 0 0) top / 100% 8px no-repeat,
    #efe2d5 !important;
}
.site-header{
  background:#fbf4ec!important;border-bottom:1px solid #7f1d1d!important;
}
.mag-masthead{border-bottom:6px solid #b91c1c!important}
.mag-kicker{color:#b91c1c!important;background:#ffe4e4;display:inline-block;padding:.15rem .45rem}
.mag-grid{
  background:#fffaf4!important;border:1px solid #e2cbb8!important;padding:1.2rem!important;
  box-shadow:0 12px 0 #b91c1c22!important;
}
.mag-feature-body h2,.mag-section h2{color:#7f1d1d!important;font-family:"Palatino Linotype",serif!important}
.mag-pull{background:#fff1f1!important;border-left:6px solid #b91c1c!important;padding:1rem!important}
.site-footer{background:#7f1d1d!important;color:#ffe4e4!important;border:0!important}
.site-footer a{color:#fecaca!important}
/* UNIQUE_VISUAL_SKIN_END */

/* UNIQUE_SKIN_V2_START */
.mag-grid{gap:1.75rem!important}
.mag-side{background:#fff1f1!important;padding:1rem!important;border:1px solid #e2cbb8}
/* UNIQUE_SKIN_V2_END */


/* DESKTOP_NAV_TOP_START */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:nowrap;
}
#mobile-nav{
  display:none;
  flex-direction:column;
  gap:.25rem;
  width:100%;
  order:3;
  padding:.55rem 0 .85rem;
  border-top:1px solid var(--line, #e5e5e5);
  background:var(--paper, #fff);
}
#mobile-nav.open{display:flex}
.menu-toggle{display:inline-flex}

@media (min-width:901px){
  .menu-toggle{display:none!important}
  .header-inner{flex-wrap:nowrap;align-items:center}
  #mobile-nav,
  #mobile-nav.open{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-end;
    gap:.15rem .75rem;
    width:auto;
    max-width:none;
    order:0;
    margin-left:auto;
    margin-right:0;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #mobile-nav a{
    padding:.35rem .45rem!important;
    white-space:nowrap;
    border-radius:0!important;
    background:transparent!important;
    color:inherit!important;
    font-weight:700;
  }
  #mobile-nav a:hover{
    color:var(--brand, var(--accent))!important;
    background:transparent!important;
    text-decoration:underline;
  }
}
@media (max-width:900px){
  .header-inner{flex-wrap:wrap}
  .menu-toggle{display:inline-flex!important;margin-left:auto}
  #mobile-nav{
    display:none;
    width:100%;
    order:3;
    flex-direction:column!important;
    align-items:stretch!important;
  }
  #mobile-nav.open{display:flex!important}
}
/* DESKTOP_NAV_TOP_END */
