/* ===========================================================
   10abc笑话大全 · 样式表
   轻量、无外部依赖、移动优先
   =========================================================== */

:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --ink: #1c1c1f;
  --ink2: #45454b;
  --mut: #8a8a92;
  --line: #e9e5dd;
  --line2: #f2eee7;
  --accent: #d9552f;
  --accent-d: #b8431f;
  --soft: #fdf1eb;
  --soft2: #f5f1e9;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;
  --shadow: 0 1px 2px rgba(28, 24, 16, .04), 0 8px 24px -18px rgba(28, 24, 16, .28);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; }
::selection { background: #ffd9c9; color: #2a1409; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; border-radius: 8px; }

/* ---------------- 头部 ---------------- */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  display: flex; align-items: center; gap: 26px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 38px; width: auto; display: block; }

.nav { flex: 1 1 auto; min-width: 0; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 8px 13px; border-radius: 9px;
  font-size: 15px; color: var(--ink2); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--soft2); color: var(--ink); }
.nav a.on { background: var(--soft); color: var(--accent-d); font-weight: 600; }

.hd-search {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center;
  background: var(--soft2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 6px 0 12px;
  transition: background .15s, border-color .15s;
}
.hd-search:focus-within { background: #fff; border-color: #e0d8cc; }
.hd-search input {
  width: 176px; border: 0; background: transparent; outline: none;
  font-size: 14px; color: var(--ink); padding: 9px 4px;
  font-family: inherit;
}
.hd-search input::placeholder { color: #a5a09a; }
.hd-search button {
  border: 0; background: transparent; color: var(--mut);
  cursor: pointer; padding: 6px; display: flex; border-radius: 7px;
}
.hd-search button:hover { color: var(--accent); background: #fff; }

.announce {
  background: linear-gradient(90deg, #fff4ee 0%, #fffaf3 55%, #fdf6ee 100%);
  border-bottom: 1px solid #f4e4d8;
}
.announce-in {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; font-size: 13.5px; color: #8a4a2c;
}
.ann-tag {
  flex: 0 0 auto; font-size: 11px; letter-spacing: .08em;
  background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 5px;
  line-height: 1.5;
}
.ann-txt { font-weight: 600; }
.ann-more { margin-left: auto; color: #a98a76; font-size: 12.5px; white-space: nowrap; }

/* ---------------- 首页导语 ---------------- */
.home-lead { padding: 34px 0 4px; }
.home-lead h1 { font-size: 33px; letter-spacing: -.02em; }
.home-lead p { margin-top: 8px; color: var(--mut); font-size: 14.5px; }

/* ---------------- Hero ---------------- */
.hero {
  display: grid; grid-template-columns: 1.62fr .92fr; gap: 20px;
  margin: 22px 0 46px;
}
.daily {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 34px 26px;
  box-shadow: var(--shadow);
}
.daily::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff1e8, transparent 70%);
  pointer-events: none;
}
.daily-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pill {
  display: inline-block; font-size: 12.5px; line-height: 1.6;
  padding: 3px 10px; border-radius: 999px;
  background: var(--soft); color: var(--accent-d);
  border: 1px solid #f6dfd3; white-space: nowrap;
}
.pill-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.daily-date { font-size: 13px; color: var(--mut); }
.daily-t { font-size: 27px; line-height: 1.4; margin-bottom: 12px; }
.daily-t a:hover { color: var(--accent-d); }
.daily-b { color: var(--ink2); font-size: 16.5px; line-height: 1.95; }
.daily-b p { margin: 0 0 6px; }
.daily-b p:last-child { margin-bottom: 0; }
.daily-act { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.daily-cat { margin-top: 16px; font-size: 12.5px; color: var(--mut); }
.daily-cat a { color: var(--accent-d); }

.hero-side { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 14px; }
.side-card {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.side-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.side-k { font-size: 11.5px; letter-spacing: .06em; opacity: .72; }
.side-card strong { font-size: 19px; margin: 2px 0 2px; }
.side-s { font-size: 12.5px; opacity: .72; }
.side-go { margin-top: 7px; font-size: 12.5px; font-weight: 600; }
.side-a {
  background: linear-gradient(135deg, #e2603a 0%, #c9481f 100%);
  color: #fff; border-color: transparent;
}
.side-b { background: #fff; }
.side-b strong { color: var(--ink); }
.side-c { background: var(--soft2); border-color: #ece5d8; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 18px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; line-height: 1.5;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: #fff; color: var(--ink2); border-color: var(--line); }
.btn-ghost:hover { border-color: #d8d0c3; color: var(--ink); background: #fdfcfa; }

/* ---------------- 区块 ---------------- */
.sec { margin: 0 0 44px; }
.sec-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.sec-h h2 {
  font-size: 21px; position: relative; padding-left: 13px;
}
.sec-h h2::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 4px; height: 1em; border-radius: 3px; background: var(--accent);
}
.sec-s { font-size: 13px; color: var(--mut); }
.sec-more { font-size: 13px; color: var(--accent-d); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }

/* ---------------- 栏目卡片 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-card {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .16s ease, border-color .16s, box-shadow .16s;
}
.cat-card:hover {
  transform: translateY(-2px); border-color: #e2d8c9; box-shadow: var(--shadow);
}
.cat-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--accent-d);
  font-size: 19px; font-weight: 700;
}
.cat-card:nth-child(3n+2) .cat-ic { background: #eef4ef; color: #2f6a4f; }
.cat-card:nth-child(3n+3) .cat-ic { background: #f0f0f8; color: #4a4a86; }
.cat-tx { min-width: 0; flex: 1 1 auto; }
.cat-tx strong { display: block; font-size: 15.5px; }
.cat-tx em {
  display: block; font-style: normal; font-size: 12px; color: var(--mut);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-n {
  flex: 0 0 auto; font-size: 12px; color: #a8a299;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 两栏 ---------------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 34px; align-items: start; }
.col-main { min-width: 0; }
.col-side { position: sticky; top: 126px; display: grid; gap: 16px; }
.col-side > *, .panel, .rec li, .rec a { min-width: 0; }

/* ---------------- 笑话列表 ---------------- */
.jlist {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.jrow {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 20px; border-bottom: 1px solid var(--line2);
  transition: background .14s;
}
.jrow:last-child { border-bottom: 0; }
.jrow:hover { background: #fdfcf9; }
.jnum {
  flex: 0 0 auto; width: 24px; font-size: 13px; color: #c2bcb1;
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.jmain { flex: 1 1 auto; min-width: 0; }
.jmain h3 { font-size: 16.5px; font-weight: 600; line-height: 1.55; }
.jmain h3 a:hover { color: var(--accent-d); }
.jmain p {
  margin-top: 3px; font-size: 13px; color: var(--mut); line-height: 1.65;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.jside {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding-top: 2px;
}
.jcat {
  font-size: 12px; color: #8a7a6c; background: var(--soft2);
  padding: 1px 8px; border-radius: 6px; white-space: nowrap;
}
.jcat:hover { background: var(--soft); color: var(--accent-d); }
.jside time { font-size: 12px; color: #b3ada4; white-space: nowrap; }
.jlist-lg .jrow { padding: 17px 22px; }
.jlist-lg .jmain p { -webkit-line-clamp: 2; }

/* ---------------- 专题 ---------------- */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topic-card {
  display: block; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(160deg, #fff 55%, #fbf7f0 100%);
  border: 1px solid var(--line);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.topic-card:hover { transform: translateY(-2px); border-color: #e2d8c9; box-shadow: var(--shadow); }
.topic-n {
  display: inline-block; font-size: 11.5px; color: var(--accent-d);
  background: var(--soft); padding: 1px 8px; border-radius: 999px; margin-bottom: 8px;
}
.topic-card strong { display: block; font-size: 15.5px; line-height: 1.5; }
.topic-i { display: block; margin-top: 5px; font-size: 12.5px; color: var(--mut); line-height: 1.6; }

/* ---------------- 侧栏面板 ---------------- */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 20px;
}
.panel-h { margin-bottom: 12px; }
.panel-h h3 { font-size: 15px; }
.panel-h h3::after {
  content: ""; display: block; width: 24px; height: 2px;
  background: var(--accent); border-radius: 2px; margin-top: 7px; opacity: .8;
}
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud a {
  font-size: 13px; color: var(--ink2); background: var(--soft2);
  padding: 3px 9px; border-radius: 7px; transition: background .14s, color .14s;
}
.tagcloud a:hover { background: var(--soft); color: var(--accent-d); }
.tagcloud a i {
  font-style: normal; font-size: 11px; color: #b6b0a6; margin-left: 4px;
}

.rank li { border-bottom: 1px dashed var(--line2); }
.rank li:last-child { border-bottom: 0; }
.rank a {
  display: block; padding: 9px 0; font-size: 14px; color: var(--ink2);
  line-height: 1.55;
}
.rank a:hover { color: var(--accent-d); }

.cat-list li { border-bottom: 1px solid var(--line2); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; font-size: 14px; color: var(--ink2);
}
.cat-list a:hover { color: var(--accent-d); }
.cat-list i, .cat-list em {
  font-style: normal; font-size: 12px; color: #b6b0a6;
}
.panel-note p { font-size: 13px; color: var(--mut); line-height: 1.8; }
.panel-note strong { color: var(--ink2); }
.panel-note a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- 面包屑 / 页头 ---------------- */
.crumb {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 22px 0 0; font-size: 12.5px; color: var(--mut);
}
.crumb a:hover { color: var(--accent-d); }
.crumb span { color: #cbc5bb; }
.crumb em { font-style: normal; color: var(--ink2); }

.page-hd { padding: 16px 0 26px; }
.page-hd h1 { font-size: 30px; letter-spacing: -.02em; }
.page-hd .lead {
  margin-top: 12px; font-size: 15px; color: var(--ink2); line-height: 1.95;
  max-width: 800px;
}
.page-hd .page-meta { margin-top: 12px; font-size: 12.5px; color: var(--mut); }
.page-hd .page-meta strong { color: var(--accent-d); }
.page-hd-topic .pill { margin-bottom: 12px; }

/* ---------------- 文章 ---------------- */
.joke {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 40px 28px;
  box-shadow: var(--shadow);
}
.joke-hd { border-bottom: 1px solid var(--line2); padding-bottom: 18px; }
.joke-hd h1 { font-size: 29px; line-height: 1.42; margin-top: 12px; }
.joke-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12.5px; color: var(--mut);
}
.joke-meta .sp { color: #d5cfc5; }
.joke-body { padding: 22px 0 4px; }
.joke-body p {
  font-size: 19px; line-height: 2.05; color: #26262a;
  margin: 0 0 15px; letter-spacing: .005em;
}
.joke-body p:last-child { margin-bottom: 0; }
.joke-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.joke-tags a { font-size: 12.5px; color: #9c8578; }
.joke-tags a:hover { color: var(--accent-d); }
.joke-act {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line2);
}
.joke-tip { margin-top: 14px; font-size: 12.5px; color: var(--mut); }

/* 今日三笑 */
.daily { display: flex; flex-direction: column; }
.daily-more { margin-top: auto; padding-top: 20px; }
.dm-h {
  display: block; font-size: 11.5px; letter-spacing: .08em; color: #b09a89;
  margin-bottom: 8px;
}
.daily-more li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.daily-more li a {
  font-size: 14px; color: var(--ink2); overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; min-width: 0;
}
.daily-more li a:hover { color: var(--accent-d); }
.daily-more li em {
  flex: 0 0 auto; font-style: normal; font-size: 11.5px; color: #b3a99c;
  margin-left: auto;
}
.joke-tip a { color: var(--accent-d); }
.btn.faved { background: var(--soft); border-color: #f2d9cb; color: var(--accent-d); }

.pn {
  display: flex; gap: 12px;
  margin: 18px 0 40px;
}
.pn > * { flex: 1 1 0; min-width: 0; }
.pn .off { display: none; }
.pn a {
  display: block; padding: 14px 18px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.pn a:hover { border-color: #ddd3c4; transform: translateY(-1px); }
.pn span { display: block; font-size: 11.5px; color: var(--mut); margin-bottom: 3px; }
.pn strong {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--ink2);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.pn-r { text-align: right; }

.rec li { border-bottom: 1px dashed var(--line2); }
.rec li:last-child { border-bottom: 0; }
.rec a { display: block; padding: 10px 0; }
.rec strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); line-height: 1.5; }
.rec span {
  display: block; font-size: 12px; color: var(--mut); margin-top: 2px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.rec a:hover strong { color: var(--accent-d); }

/* ---------------- 分页 ---------------- */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 22px 0 34px;
}
.pg {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums;
}
a.pg:hover { border-color: #d9d0c2; color: var(--accent-d); }
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pg.off { color: #c6c0b6; background: #faf8f4; }
.pg.dot { border: 0; background: transparent; color: #b6b0a6; min-width: 20px; }

/* ---------------- 专题页 ---------------- */
.topics-page { display: grid; gap: 12px; padding-bottom: 50px; }
.topic-row {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.topic-row:hover { transform: translateY(-2px); border-color: #e2d8c9; box-shadow: var(--shadow); }
.topic-row-l { flex: 1 1 auto; min-width: 0; }
.topic-row h2 { font-size: 18px; }
.topic-row p { margin-top: 6px; font-size: 13.5px; color: var(--mut); line-height: 1.75; }
.topic-row .topic-n { margin: 0; flex: 0 0 auto; }
.more-topics { margin: 10px 0 50px; }
.more-topics h3 { font-size: 16px; margin-bottom: 12px; color: var(--ink2); }

/* ---------------- 搜索 / 空状态 ---------------- */
.page-search { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.page-search input {
  flex: 1 1 auto; min-width: 0; padding: 10px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  outline: none; font-family: inherit;
}
.page-search input:focus { border-color: #d8c9b8; box-shadow: 0 0 0 3px #f9efe4; }
.empty {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 40px 32px; text-align: center; color: var(--ink2);
}
.empty p + p { margin-top: 8px; font-size: 13.5px; color: var(--mut); }
.empty a { color: var(--accent-d); text-decoration: underline; }
.hot-words { padding: 6px 0 50px; }
.hot-words h3 { font-size: 16px; margin-bottom: 12px; }

/* ---------------- 静态页 / 404 ---------------- */
.page {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 38px 42px 34px; margin: 18px 0 50px; box-shadow: var(--shadow);
}
.page h1 { font-size: 30px; }
.page-lead { margin-top: 14px; font-size: 16.5px; color: var(--ink2); line-height: 1.95; }
.page h2 { font-size: 19px; margin: 30px 0 10px; }
.page p { font-size: 15.5px; color: var(--ink2); line-height: 1.95; margin: 0 0 10px; }
.page ul { margin: 8px 0 14px; padding-left: 4px; }
.page li {
  position: relative; padding-left: 18px; font-size: 15px; color: var(--ink2);
  line-height: 1.9;
}
.page li::before {
  content: ""; position: absolute; left: 2px; top: .85em;
  width: 5px; height: 5px; border-radius: 50%; background: #d9c7b6;
}
.page a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 2px; }
.page-end { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.page-end .btn { text-decoration: none; }

.nf { text-align: center; padding: 80px 0 100px; }
.nf-code {
  display: block; font-size: 86px; font-weight: 800; line-height: 1;
  color: #f0e5d8; letter-spacing: -.04em;
}
.nf h1 { font-size: 25px; margin-top: 8px; }
.nf p { margin-top: 12px; color: var(--mut); font-size: 14.5px; }
.nf-act { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }

/* ---------------- 页脚 ---------------- */
.ft {
  margin-top: 20px; background: #f6f3ec; border-top: 1px solid var(--line);
}
.ft-in {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr; gap: 30px;
  padding-top: 44px; padding-bottom: 34px;
}
.ft-brand img { height: 34px; width: auto; display: block; margin-bottom: 12px; }
.ft-brand p { font-size: 12.5px; color: #8b857b; line-height: 1.85; max-width: 330px; }
.ft-col h4 {
  font-size: 13px; color: var(--ink2); margin-bottom: 12px; letter-spacing: .02em;
}
.ft-col li { margin-bottom: 7px; }
.ft-col a { font-size: 12.5px; color: #8b857b; }
.ft-col a:hover { color: var(--accent-d); }
.ft-bot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 24px;
  border-top: 1px solid #e7e1d6;
  font-size: 12px; color: #9a948a;
}
.ft-bot a { color: #8b857b; }
.ft-bot a:hover { color: var(--accent-d); }
.ft-bot .dot { color: #c9c3b8; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; font-size: 14.5px; }
  .hd-search input { width: 150px; }
  .cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
}

@media (max-width: 940px) {
  .hd-in { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; padding-bottom: 8px; }
  .brand { order: 1; }
  .brand img { height: 34px; }
  .hd-search { order: 2; margin-left: auto; flex: 1 1 120px; min-width: 0; }
  .hd-search input { width: 100%; min-width: 0; }
  .nav { order: 3; flex: 1 0 100%; margin-top: 6px; }
  .nav ul {
    overflow-x: auto; overflow-y: hidden; gap: 4px;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 11px; }

  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .col-side { position: static; grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .ft-in { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .home-lead { padding-top: 24px; }
  .home-lead h1 { font-size: 26px; }
  .home-lead p { font-size: 13px; }
  .hero { margin: 16px 0 34px; }
  .daily { padding: 22px 20px 20px; border-radius: 16px; }
  .daily-t { font-size: 21px; }
  .daily-b { font-size: 15.5px; line-height: 1.9; }
  .daily::after { display: none; }
  .hero-side { grid-template-columns: 1fr; gap: 10px; }
  .side-card { padding: 14px 18px; }
  .side-card strong { font-size: 17px; }
  .sec { margin-bottom: 34px; }
  .sec-h h2 { font-size: 18.5px; }
  .sec-s { display: none; }
  .cat-grid { gap: 10px; }
  .cat-card { padding: 12px 13px; gap: 10px; }
  .cat-ic { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
  .cat-tx strong { font-size: 14.5px; }
  .cat-tx em { font-size: 11px; }
  .cat-n { display: none; }
  .col-side { grid-template-columns: 1fr; }
  .jrow { padding: 13px 16px; gap: 10px; }
  .jlist-lg .jrow { padding: 14px 16px; }
  .jmain h3 { font-size: 15.5px; }
  .jmain p { -webkit-line-clamp: 1; }
  .jside time { display: none; }
  .jnum { width: 20px; font-size: 12px; }
  .topic-grid { grid-template-columns: 1fr; }
  .page-hd { padding-bottom: 20px; }
  .page-hd h1 { font-size: 24px; }
  .page-hd .lead { font-size: 14px; line-height: 1.85; }
  .joke { padding: 24px 20px 22px; border-radius: 16px; }
  .joke-hd h1 { font-size: 22px; }
  .joke-body { padding-top: 18px; }
  .joke-body p { font-size: 17.5px; line-height: 2; }
  .joke-act .btn { padding: 8px 14px; font-size: 13.5px; }
  .pn { grid-template-columns: 1fr; margin-bottom: 30px; }
  .pn-r { text-align: left; }
  .page { padding: 26px 20px; border-radius: 16px; }
  .page h1 { font-size: 24px; }
  .page h2 { font-size: 17px; }
  .page p, .page li { font-size: 15px; }
  .topic-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .topic-row .topic-n { align-self: flex-start; }
  .ft-in { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
  .ft-col li { margin-bottom: 6px; }
  .ft-brand p { max-width: none; }
  .ft-bot { font-size: 11.5px; gap: 6px; }
  .nf { padding: 56px 0 70px; }
  .nf-code { font-size: 64px; }
  .nf h1 { font-size: 21px; }
}

@media (max-width: 420px) {
  .hd-search { flex: 1 1 120px; }
  .ann-more { display: none; }
  .cat-tx em { display: none; }
  .joke-body p { font-size: 17px; }
  .page-search { flex-direction: column; }
}

/* 打印与动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
