/* 群芳阁 · qfg360.lat
   design tokens 取自本地保存站点的主题样式表
   （强调色 #f04452、面板描边 #e9ebef、圆角 9px、Microsoft YaHei 14px、容器 1240px）。
   全站只做浅色底。 */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F5F6F8;
  --tint: #FFF0F2;
  --ink: #303133;
  --ink-2: #444A51;
  --ink-3: #555A61;
  --nav-ink: #25292E;
  --muted: #5F656D;
  --line: #E9EBEF;
  --line-2: #ECEFF1;
  --accent: #F04452;
  --accent-deep: #B3121F;
  --accent-fill: #D93240;
  --accent-fill-hover: #B8242F;
  --orange: #A34A00;
  --orange-tint: #FFF1E4;
  --green: #22681D;
  --green-tint: #E7F7E6;
  --dz-blue: #2F6FA8;
  --dz-bar: #F2F2F2;
  --dz-bar-line: #DDE6EE;
  --r-panel: 9px;
  --r-chip: 4px;
  --r-tag: 3px;
  --r-pill: 999px;
  --shadow-panel: 0 2px 10px rgba(30, 35, 40, .035);
  --shadow-lift: 0 6px 16px rgba(240, 68, 82, .13);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, Arial, sans-serif;
  --container: 1240px;
  --cta-space: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: calc(var(--cta-space) + 8px);
  background-color: #F5F6F8;
  color: #444A51;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding-left: 1.25em; }
li { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--dz-blue); text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--accent-fill); color: #fff; padding: 10px 16px; }
.skip:focus { left: 0; }

/* toptb */
.toptb { background: var(--dz-bar); border-bottom: 1px solid var(--dz-bar-line); font-size: 12px; }
.toptb .in { width: 100%; max-width: var(--container); margin: 0 auto; padding: 5px 12px; display: flex; align-items: center; gap: 14px; }
.toptb a { color: var(--ink-3); }
.toptb a:hover { color: var(--accent-deep); }
.toptb .r { margin-left: auto; display: flex; gap: 14px; }

/* header */
.hd { background: #fff; border-bottom: 1px solid var(--line); }
.hd .in { width: 100%; max-width: var(--container); margin: 0 auto; padding: 10px 12px; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; display: block; }
.hd-login { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hd-login .field {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  border-radius: var(--r-chip); padding: 5px 9px; background: #fff; color: var(--muted);
}
.hd-login .field input { border: 0; outline: 0; width: 96px; font-size: 13px; color: var(--ink-2); background: transparent; }
.btn-login {
  border: 0; cursor: pointer; border-radius: var(--r-chip);
  background: var(--accent-fill); color: #fff; padding: 7px 15px; font-size: 13px;
}
.btn-login:hover { background: var(--accent-fill-hover); }
.hd-login .field, .hd-login .btn-login { display: none; }
.hd-login-link { font-size: 13px; color: var(--dz-blue); }
.hd-reg { font-size: 13px; color: var(--dz-blue); }
.hd-reg:hover { color: var(--accent-deep); }
.burger {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-chip);
  cursor: pointer; color: var(--ink-2); flex: none;
}
.burger:hover { color: var(--accent-deep); }

/* nav */
.nv { background: #fff; border-bottom: 1px solid var(--line); }
.nv .in { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; display: flex; align-items: center; overflow-x: auto; }
.nv ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nv a {
  display: flex; align-items: center; height: 46px; padding: 0 18px;
  font-size: 15px; color: var(--nav-ink); white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nv a:hover { color: var(--accent-deep); }
.nv a[aria-current="page"] { color: var(--accent-deep); border-bottom-color: var(--accent-deep); font-weight: 700; }
.nv .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nv .srch { position: relative; display: none; }
.nv .srch input {
  width: 210px; height: 32px; padding: 0 34px 0 11px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--r-chip); color: var(--ink-2);
}
.nv .srch .go {
  position: absolute; right: 4px; top: 0; height: 32px; width: 26px; border: 0; cursor: pointer;
  background: transparent; color: var(--accent-fill); display: inline-flex; align-items: center; justify-content: center;
}
.search-out {
  position: absolute; left: 0; right: 0; top: 38px; z-index: 70; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: 0 6px 18px rgba(0, 0, 0, .1); overflow: hidden;
}
.search-out[hidden] { display: none; }
.search-out a { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.search-out a:last-child { border-bottom: 0; }
.search-out a:hover { background: var(--tint); }
.search-out b { display: block; font-size: 13px; color: var(--ink); }
.search-out span { font-size: 12px; color: var(--muted); }
.search-out .none { padding: 9px 12px; font-size: 13px; color: var(--muted); }

/* drawer */
.drawer[hidden] { display: none; }
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(37, 41, 46, .45); }
.drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(84vw, 320px); padding: 12px 14px 26px; overflow-y: auto; background: #fff;
  border-left: 1px solid var(--line); box-shadow: -10px 0 26px rgba(0, 0, 0, .16);
  animation: drawer-in .3s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; margin-bottom: 8px; }
.drawer-head span { font-size: 13px; color: var(--muted); }
.drawer-x { margin-left: auto; width: 34px; height: 34px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.drawer-srch { margin-bottom: 10px; }
.drawer-srch input { width: 100%; height: 34px; padding: 0 10px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r-chip); }
.drawer-group { margin-bottom: 12px; }
.drawer-group h2 { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 400; }
.drawer-group a { display: flex; align-items: center; min-height: 42px; padding: 0 8px; font-size: 15px; color: var(--ink-2); border-radius: var(--r-chip); }
.drawer-group a:hover { background: var(--tint); color: var(--accent-deep); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 14px 0 0; }
.feature { display: flex; flex-direction: column; }
.feat-title {
  display: flex; align-items: center; height: 32px; font-size: 16px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.feat-title span { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.slider { position: relative; min-height: 278px; flex: 1; border-radius: 10px; overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-panel);
}
.slide.on { opacity: 1; z-index: 1; }
.slide .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: var(--r-chip); background: var(--accent-fill); color: #fff; font-size: 12px; }
.badge.ghost { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.slide-t { font-size: 21px; line-height: 1.35; margin-bottom: 8px; }
.slide p { font-size: 13px; color: var(--muted); }
.slide .go-in { margin-top: 14px; font-size: 13px; color: var(--accent-deep); }
.dots { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 2px 0; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #D6DAE0; cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--accent); }
.arrows { display: flex; gap: 8px; }
.arrow {
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff;
  font-size: 17px; line-height: 1; color: var(--ink-3); cursor: pointer;
}
.arrow:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.side { display: grid; grid-template-rows: auto auto; gap: 10px; }
.panel, .shortcuts, .citybar, .section, .live, .board { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); }
.panel { padding: 12px 15px; }
.panel-title, .section-title { display: flex; align-items: center; font-size: 17px; font-weight: 700; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.more:hover { color: var(--accent-deep); }
.mini { margin: 0; padding: 0; list-style: none; }
.mini li { display: grid; grid-template-columns: 30px 1fr 62px; gap: 7px; align-items: center; height: 26px; color: var(--ink-3); }
.mini .rank { display: inline-flex; width: 22px; height: 18px; align-items: center; justify-content: center; border-radius: var(--r-tag); background: var(--accent-fill); color: #fff; font-size: 11px; }
.mini .subject { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini time { font-size: 12px; color: var(--muted); text-align: right; }

/* live strip */
.live { margin: 10px 0; padding: 9px 15px; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; color: var(--muted); font-size: 13px; }
.live .eye { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240, 68, 82, .1); }
.live b { color: var(--accent-deep); font-weight: 700; }

/* shortcuts */
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-bottom: 10px; }
.shortcut { display: flex; align-items: center; gap: 11px; padding: 13px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.shortcut i { display: flex; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); color: var(--accent-deep); font-size: 20px; font-style: normal; }
.shortcut.o i { background: var(--orange-tint); color: var(--orange); }
.shortcut.g i { background: var(--green-tint); color: var(--green); }
.shortcut b { display: block; font-size: 15px; color: var(--ink); }
.shortcut span { display: block; font-size: 12px; color: var(--muted); }

/* citybar */
.citybar { display: flex; align-items: center; gap: 9px; padding: 9px 14px; margin-bottom: 10px; flex-wrap: wrap; }
.citybar h3 { font-size: 14px; margin-right: 2px; }
.city {
  min-width: 50px; padding: 4px 10px; border-radius: var(--r-chip); background: var(--surface-2);
  color: var(--muted); text-align: center; font-size: 12px; border: 1px solid transparent; cursor: pointer;
}
.city:hover { color: var(--accent-deep); background: var(--tint); }
.city[aria-pressed="true"] { background: var(--accent-fill); color: #fff; }
.city-more { margin-left: auto; color: var(--muted); font-size: 12px; }
.city-more:hover { color: var(--accent-deep); }
[data-extra][hidden] { display: none; }

/* section grid */
.sg { display: grid; grid-template-columns: 1fr; gap: 10px; }
.section { padding: 11px 14px; }
.section-title { margin-bottom: 5px; }
.section-link { color: var(--ink); }
.thread {
  display: grid; grid-template-columns: 1fr; gap: 2px 7px; align-items: center;
  padding: 7px 0; border-top: 1px solid var(--line-2);
}
.thread[hidden] { display: none; }
.thread-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 14px; }
.thread:hover .thread-subject { color: var(--accent-deep); }
.thread-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.thread-tag { padding: 1px 5px; border-radius: var(--r-tag); background: var(--surface-2); color: var(--muted); font-size: 12px; }

/* board blocks (inner pages) */
.board { margin-bottom: 10px; overflow: hidden; }
.bm-h { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 34px; background: var(--dz-bar); border-bottom: 1px solid var(--dz-bar-line); }
.bm-h h2 { font-size: 14px; }
.bm-h .more { margin-left: auto; font-size: 12px; }
.bm-c { padding: 12px; }
.bm-c > p + p { margin-top: 8px; }

/* filter chips row */
.frow { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); margin-bottom: 10px; flex-wrap: wrap; box-shadow: var(--shadow-panel); }
.frow .lb { font-size: 13px; color: var(--muted); }
.fchip { border: 1px solid var(--line); background: #fff; color: var(--ink-3); border-radius: var(--r-chip); padding: 4px 11px; font-size: 12px; cursor: pointer; }
.fchip:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.fchip[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }

/* tables */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
table { width: 100%; min-width: 540px; border-collapse: collapse; }
caption { caption-side: top; text-align: left; padding: 9px 12px 0; font-size: 12px; color: var(--muted); }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; font-size: 14px; border-bottom: 1px solid var(--line-2); }
thead th { background: var(--dz-bar); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* prose */
.block { margin-bottom: 14px; }
.block h2 { margin-bottom: 7px; }
.block h3 { margin: 12px 0 5px; }
.block p { color: var(--ink-2); margin-bottom: 8px; }
.block ul, .block ol { color: var(--ink-2); margin-bottom: 8px; }
.block li { margin-bottom: 4px; }
.block li b { color: var(--ink); }
.callout { background: var(--tint); border: 1px solid #F7CDD3; border-radius: var(--r-panel); padding: 10px 12px; margin: 10px 0; font-size: 14px; color: var(--ink-2); }
.callout.blue { background: #F1F6FA; border-color: #D3E2EE; }
.steps { counter-reset: step; display: grid; gap: 8px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 10px 12px 10px 40px; font-size: 14px; color: var(--ink-2); }
.steps li::before {
  content: counter(step); position: absolute; left: 10px; top: 10px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent-fill); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.steps li b { display: block; color: var(--ink); margin-bottom: 1px; }

details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 11px 13px; margin-bottom: 8px; box-shadow: var(--shadow-panel); }
details.faq summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "\25BE"; color: var(--accent-fill); flex: none; }
details.faq[open] summary::after { content: "\25B4"; }
details.faq p { margin-top: 7px; font-size: 14px; color: var(--ink-2); }
details.faq p + p { margin-top: 6px; }

.jump { display: grid; gap: 8px; }
.jump a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 11px 12px; box-shadow: var(--shadow-panel); }
.jump a:hover { box-shadow: var(--shadow-lift); }
.jump b { display: block; font-size: 14px; color: var(--ink); }
.jump span { font-size: 13px; color: var(--muted); }

.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 12px 13px; margin-bottom: 8px; box-shadow: var(--shadow-panel); }
.entry h3 { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-size: 14px; }
.entry h3 em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent-deep); background: var(--tint); border-radius: var(--r-tag); padding: 2px 6px; }
.entry p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 12px 0 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs .sep { color: #C4C8CE; }
.page-h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.page-h1 .cnt { font-size: 12px; color: var(--muted); }
.lede { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }

/* footer */
.ft { margin-top: 16px; background: #fff; border-top: 1px solid var(--line); }
.ft .in { width: 100%; max-width: var(--container); margin: 0 auto; padding: 16px 12px 20px; }
.ft-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ft-brand img { height: 30px; width: auto; }
.ft-brand a { font-size: 15px; font-weight: 700; color: var(--ink); }
.ft-brand a:hover { color: var(--accent-deep); }
.ft-cols { display: grid; gap: 14px; margin-bottom: 12px; }
.ft-col h2 { font-size: 12px; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.ft-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.ft-col a:hover { color: var(--accent-deep); }
.ft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 10px; }
.ft-bar .pipe { color: #CDD2D8; }
.ft-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ft-copy { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* back to top */
.to-top {
  position: fixed; right: 14px; bottom: calc(var(--cta-space) + 10px); z-index: 70;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink-3); cursor: pointer; box-shadow: var(--shadow-panel);
}
.to-top:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.to-top[hidden] { display: none; }

/* sole xunfang CTA */
.site-cta {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; justify-content: center;
  width: min(500px, calc(100% - 32px)); min-height: 56px; padding: 0 22px;
  border-radius: var(--r-pill); background: var(--accent-fill); color: #fff;
  font-size: 17px; font-weight: 800; letter-spacing: .01em; text-align: center;
  box-shadow: 0 8px 22px rgba(217, 50, 64, .3), 0 2px 6px rgba(0, 0, 0, .12);
  overflow: hidden; transition: background-color .25s var(--ease);
}
.site-cta:hover, .site-cta:focus-visible { background: var(--accent-fill-hover); color: #fff; }
.site-cta:active { background: var(--accent-fill-hover); }
.site-cta .cta-text { position: relative; z-index: 2; }
.site-cta::before {
  content: ""; position: absolute; inset: -12% -6%;
  background: radial-gradient(70% 120% at 22% 50%, rgba(74, 10, 18, .26) 0%, rgba(74, 10, 18, .11) 48%, rgba(74, 10, 18, 0) 76%);
  opacity: 0; transform: scaleX(.98);
  animation: cta-seam 2.7s cubic-bezier(.2, .7, .3, 1) infinite;
  z-index: 0; pointer-events: none;
}
.site-cta::after {
  content: ""; position: absolute; left: 16%; right: 16%; bottom: 9px; height: 2px;
  background: rgba(255, 255, 255, .76); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  animation: cta-keyline 2.7s cubic-bezier(.2, .7, .3, 1) infinite;
  z-index: 1; pointer-events: none;
}
@keyframes cta-seam {
  0%, 50% { opacity: 0; transform: scaleX(.98); }
  66% { opacity: 1; transform: scaleX(1.03); }
  88%, 100% { opacity: 0; transform: scaleX(1.07); }
}
@keyframes cta-keyline {
  0%, 56% { transform: scaleX(0); opacity: 0; }
  66% { opacity: 1; }
  82% { transform: scaleX(1); }
  92%, 100% { transform: scaleX(1); opacity: 0; }
}

/* route progress */
.route-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130;
  background: linear-gradient(90deg, #F04452, #F79AA2, #F04452);
  background-size: 200% 100%; animation: route-run .9s ease-in-out infinite;
}
.route-bar[hidden] { display: none; }
@keyframes route-run { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.narrow { max-width: 800px; }

/* tablet */
@media (min-width: 640px) {
  .wrap { padding: 0 16px; }
  .hd .in { padding: 10px 16px; }
  .nv .in { padding: 0 16px; }
  .toptb .in { padding: 5px 16px; }
  .shortcuts { grid-template-columns: repeat(4, 1fr); }
  .hd-login .field, .hd-login .btn-login { display: flex; }
  .hd-login-link { display: none; }
  .jump { grid-template-columns: repeat(2, 1fr); }
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
  .ft .in { padding: 16px 16px 20px; }
  h1 { font-size: 26px; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
  .sg { grid-template-columns: 1fr 1fr; }
  .jump { grid-template-columns: repeat(3, 1fr); }
  .ft-cols { grid-template-columns: repeat(4, 1fr); }
  .thread { grid-template-columns: 1fr 52px 56px; }
}
@media (min-width: 1240px) {
  .nv .srch { display: block; }
  .hd-login .field { display: flex; }
}

/* 窄屏：标题不截断，改自然换行 */
@media (max-width: 959px) {
  .thread-subject, .mini .subject { white-space: normal; overflow: visible; text-overflow: clip; }
  .mini li { height: auto; min-height: 26px; padding: 2px 0; }
  .thread { align-items: start; }
  .live { white-space: normal; align-items: flex-start; }
}

/* mobile CTA anchoring */
@media (max-width: 767px) {
  .site-cta {
    left: 14px; right: 14px; transform: none; width: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 15px; min-height: 56px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .site-cta::before { animation: none; opacity: .15; transform: scaleX(1); }
  .site-cta::after { animation: none; transform: scaleX(1); opacity: .6; }
  .drawer-panel { animation: none; }
  .route-bar { animation: none; }
  .slide { transition: none; }
}
