/* FlipperGuide+ 全站样式 · 大厂文档软件风（平直、克制、Flipper 橙） */
:root {
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-sink: #f3f0e9;
  --ink: #1f2328;
  --ink-2: #57606a;
  --ink-3: #8b9199;
  --line: #e3dfd5;
  --line-strong: #d4cfc2;
  --accent: #ff8200;
  --accent-ink: #b25b00;
  --accent-soft: #fff3e4;
  --mark: #ffe1a8;
  --blue: #1f6feb;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-pop: 0 8px 30px rgba(31, 35, 40, .16);
  --font: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
html[data-theme="dark"] {
  --bg: #14161a;
  --bg-elev: #1b1e24;
  --bg-sink: #23262e;
  --ink: #e6e8eb;
  --ink-2: #a8b0b9;
  --ink-3: #6e767f;
  --line: #2b303a;
  --line-strong: #3a404c;
  --accent: #ff9a3c;
  --accent-ink: #ffb570;
  --accent-soft: #2c2318;
  --mark: #6b4d1f;
  --blue: #58a6ff;
  --shadow-pop: 0 8px 30px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--mark); color: var(--ink); }

/* 对爬虫可见、对用户不可见（AI 来源声明专用，勿作他用） */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 主题相关显隐 */
.dark-only { display: none !important; }
html[data-theme="dark"] .dark-only { display: block !important; }
html[data-theme="dark"] .light-only { display: none !important; }
html[data-theme="dark"] .ic-sun { display: none; }
html:not([data-theme="dark"]) .ic-moon { display: none; }
.only-mobile { display: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block; width: 28px; height: 28px;
  border-radius: 6px; object-fit: cover;
}
.brand-name { font-size: 16px; letter-spacing: -.2px; }
.topnav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.topnav > a, .nav-pop > a, .nav-btn {
  display: inline-block; color: var(--ink-2); font-size: 14px; padding: 6px 11px;
  border-radius: var(--radius-sm); border: none; background: none;
  transition: color .12s, background .12s;
}
.topnav > a:hover, .nav-pop > a:hover, .nav-btn:hover,
.nav-pop.on > a {
  color: var(--ink); background: var(--bg-sink); text-decoration: none;
}
.topact { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink-2); border-radius: var(--radius-sm);
  transition: color .12s, border-color .12s;
}
.icon-btn:hover { color: var(--accent-ink); border-color: var(--accent); }
#speak-btn { display: none; }
body[data-page="doc"] #speak-btn { display: inline-flex; }
#speak-btn.on { color: #fff; background: var(--accent); border-color: var(--accent); }

/* 桌面悬停弹层（教程视频 / 交流群） */
.nav-pop { position: relative; display: inline-flex; }
.pop-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  width: 232px; padding: 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-pop); z-index: 80;
}
.pop-title { display: block; font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; margin-bottom: 8px; }
.pop-panel img { display: block; width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .nav-pop:hover .pop-panel, .nav-pop:focus-within .pop-panel { display: block; }
}

/* ---------- 布局 ---------- */
.layout {
  max-width: 1200px; margin: 0 auto; padding: 28px 20px 72px;
  display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 44px;
}
.sidebar { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 6px; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* ---------- 目录 TOC ---------- */
.toc > ul { list-style: none; }
.toc summary { list-style: none; cursor: pointer; border-radius: var(--radius-sm); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px; color: var(--ink-2);
  font-size: 14px; font-weight: 600; border-radius: var(--radius-sm);
}
.toc summary:hover a { background: var(--bg-sink); color: var(--ink); text-decoration: none; }
.toc li.cur > details > summary a { color: var(--accent-ink); }
.toc-num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); min-width: 20px; }
.toc details ul { list-style: none; padding: 2px 0 6px 20px; }
.toc details ul a {
  display: block; padding: 4px 10px; font-size: 13px;
  color: var(--ink-2); border-left: 2px solid var(--line);
  transition: color .12s, border-color .12s;
}
.toc details ul a:hover { color: var(--ink); border-color: var(--accent); text-decoration: none; }
.toc details ul a.active { color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* ---------- 正文 ---------- */
.content { max-width: 780px; min-width: 0; }
.chapter-tag {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: .5px; margin-bottom: 6px;
}
.content h1 {
  font-size: 28px; font-weight: 750; letter-spacing: -.3px;
  line-height: 1.35; margin-bottom: 18px;
}
.content h2 {
  font-size: 20px; font-weight: 700; letter-spacing: -.2px;
  margin: 2.2em 0 .8em; padding-left: 11px; position: relative;
  line-height: 1.4;
}
.content h2::before {
  content: ""; position: absolute; left: 0; top: .34em; bottom: .34em;
  width: 3px; border-radius: 2px; background: var(--accent);
}
.content h2 .anchor {
  position: absolute; left: -20px; opacity: 0; color: var(--ink-3);
  font-weight: 400; transition: opacity .12s;
}
.content h2:hover .anchor { opacity: 1; }
.content p { margin: 0 0 1.05em; color: var(--ink); text-align: justify; }
.content p a { word-break: break-all; }

.table-wrap {
  overflow-x: auto; margin: 1.3em 0 1.7em;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev);
}
.content table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.content th, .content td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.content thead th {
  background: var(--bg-sink); font-weight: 700; font-size: 13px;
  color: var(--ink-2); white-space: nowrap;
}
.content tbody tr:last-child td { border-bottom: none; }
.content tbody tr:hover td { background: var(--accent-soft); }

mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
mark.cur { outline: 2px solid var(--accent); }

/* 朗读中高亮的段落 */
.reading {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
  border-radius: 3px;
}

/* ---------- 上一章/下一章 ---------- */
.prevnext {
  display: flex; justify-content: space-between; gap: 14px;
  margin: 44px 0 8px; padding-top: 22px; border-top: 1px solid var(--line);
}
.prevnext a {
  display: inline-block; padding: 9px 16px; max-width: 48%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-elev); color: var(--ink); font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .12s, color .12s;
}
.prevnext a:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 52px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3); line-height: 1.8;
}
.site-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.site-meta a { color: var(--ink-2); }
.yinian-logo { height: 15px; width: auto; vertical-align: -3px; }
.home > .site-footer, .ask > .site-footer { max-width: 880px; margin-left: auto; margin-right: auto; }

/* ---------- 首页 hero（左文右图） ---------- */
.home { max-width: 1024px; margin: 0 auto; padding: 40px 20px 72px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px; align-items: center; padding: 24px 0 8px;
}
.hero-kicker {
  font-family: var(--mono); font-size: 13px; color: var(--accent-ink);
  letter-spacing: 2px; margin-bottom: 12px;
}
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; }
.hero .accent { color: var(--accent); }
.hero-sub {
  margin-top: 16px; max-width: 560px;
  color: var(--ink-2); font-size: 15px; line-height: 1.85;
}
.hero-meta { margin-top: 12px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.hero-actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-fig { text-align: center; }
.hero-device { width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(31, 35, 40, .14)); }
html[data-theme="dark"] .hero-device { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink);
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #e67400; color: #fff; }
html[data-theme="dark"] .btn.primary:hover { background: #ff8a1a; }
.btn.ghost { background: transparent; }

/* 首页说明（明显） */
.notice {
  margin: 34px auto 0; max-width: 1024px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14px; line-height: 1.9; color: var(--ink);
}
.notice .fg-link { color: var(--blue); font-weight: 600; }
.notice .fg-link:hover { text-decoration: underline; }

/* 目录：一行一行列表 */
.section-title { font-size: 20px; font-weight: 700; margin: 48px 0 16px; }
.chap-list {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}
.chap-row {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  color: var(--ink); transition: background .12s;
}
.chap-row:last-child { border-bottom: none; }
.chap-row:hover { background: var(--accent-soft); text-decoration: none; }
.chap-num {
  flex: none; width: 28px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent-ink);
}
.chap-body { flex: 1; min-width: 0; }
.chap-title { display: block; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.chap-ex {
  display: block; font-size: 13px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chap-meta { flex: none; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- 问 AI 页 ---------- */
.ask { max-width: 760px; margin: 0 auto; padding: 44px 20px 72px; }
.ask-device { display: block; width: 220px; height: auto; margin: 0 auto 18px; }
.ask-card h1 { font-size: 26px; font-weight: 750; margin-bottom: 10px; }
.ask-desc { color: var(--ink-2); font-size: 14.5px; margin-bottom: 10px; }
.ask-quota { font-size: 13px; color: var(--accent-ink); font-family: var(--mono); margin-bottom: 16px; }
.ask-input-wrap {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}
.ask-input-wrap:focus-within { border-color: var(--accent); }
.ask textarea {
  width: 100%; border: none; outline: none; resize: vertical;
  padding: 14px 16px; font: inherit; font-size: 15px; line-height: 1.7;
  background: transparent; color: var(--ink); min-height: 110px;
}
.ask-input-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg-sink);
}
.ask-count { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.ask-answer {
  margin-top: 20px; padding: 18px 20px;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--bg-elev);
  font-size: 15px; line-height: 1.9;
}
.ask-answer p { margin-bottom: .8em; }
.ask-answer p:last-child { margin-bottom: 0; }
.ask-answer .thinking { color: var(--ink-3); }
.ask-answer.error { border-left-color: #d64545; }
.ask-tip { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 搜索 ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 22, 26, .45);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 12vh 16px 16px;
}
.search-overlay[hidden] { display: none; }
.search-box {
  width: 640px; max-width: 100%; max-height: 70vh;
  display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.search-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3);
}
.search-input-row input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--ink); font: inherit; font-size: 16px;
}
.search-close {
  border: none; background: transparent; color: var(--ink-3);
  font-size: 22px; line-height: 1; padding: 2px 6px; border-radius: var(--radius-sm);
}
.search-close:hover { color: var(--ink); background: var(--bg-sink); }
.search-status { padding: 8px 16px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.search-results { list-style: none; overflow-y: auto; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results li:last-child { border-bottom: none; }
.search-results a { display: block; padding: 11px 16px; color: var(--ink); }
.search-results a:hover { background: var(--accent-soft); text-decoration: none; }
.sr-path { display: block; font-size: 12px; color: var(--accent-ink); margin-bottom: 3px; font-weight: 600; }
.sr-snippet { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.sr-empty { padding: 24px 16px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* ---------- 页内匹配条 / toast / devbanner ---------- */
.matchbar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop); font-size: 13px;
}
.matchbar[hidden] { display: none; }
.matchbar #match-count { color: var(--ink-2); font-family: var(--mono); padding: 0 6px; }
.matchbar button {
  border: 1px solid var(--line); background: var(--bg-sink); color: var(--ink);
  border-radius: 999px; padding: 5px 12px; font-size: 13px;
}
.matchbar button:hover { border-color: var(--accent); color: var(--accent-ink); }

.toast {
  position: fixed; top: 68px; left: 50%; transform: translateX(-50%);
  z-index: 150; padding: 9px 18px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--bg);
  font-size: 14px; box-shadow: var(--shadow-pop);
  animation: toast-in .16s ease;
}
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.devbanner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 10px 16px; text-align: center; font-size: 13.5px;
  background: #d64545; color: #fff;
}
body.devtools-open .devbanner { display: block; }
body.devtools-open .content,
body.devtools-open .home,
body.devtools-open .ask { filter: blur(10px); user-select: none; pointer-events: none; }

/* ---------- 续读通知条（非阻塞，5 秒自动关） ---------- */
.resume-bar {
  position: fixed; top: 66px; right: 16px; z-index: 120;
  display: flex; align-items: center; gap: 10px;
  max-width: 380px; padding: 10px 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop); font-size: 13px;
  animation: mcard-in .16s ease;
}
.resume-bar[hidden] { display: none; }
.rb-text { color: var(--ink-2); min-width: 0; }
.rb-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.rb-go {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); padding: 4px 12px; font-size: 13px; font-weight: 600;
}
.rb-go:hover { background: #e67400; }
html[data-theme="dark"] .rb-go:hover { background: #ff8a1a; }
.rb-close { border: none; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; padding: 2px 4px; }
.rb-close:hover { color: var(--ink); }

/* ---------- 桌面右键功能菜单 ---------- */
.ctx-menu {
  position: fixed; z-index: 160; min-width: 172px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-pop);
  padding: 5px; display: flex; flex-direction: column;
}
.ctx-menu[hidden] { display: none; }
.ctx-menu a, .ctx-menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; font-size: 13.5px; color: var(--ink);
  background: none; border: none; border-radius: 4px; font-family: inherit;
}
.ctx-menu a:hover, .ctx-menu button:hover { background: var(--bg-sink); text-decoration: none; }

/* ---------- 模态（Cookie / 扫码 共用） ---------- */
.modal {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(20, 22, 26, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.mcard {
  position: relative; width: 100%; max-width: 400px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-pop);
  padding: 22px;
  animation: mcard-in .16s ease;
}
@keyframes mcard-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mtitle { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.mtext { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.mactions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.mclose {
  position: absolute; top: 10px; right: 12px;
  border: none; background: none; color: var(--ink-3);
  font-size: 22px; line-height: 1; padding: 4px 6px; border-radius: var(--radius-sm);
}
.mclose:hover { color: var(--ink); background: var(--bg-sink); }
.qr-card { max-width: 320px; text-align: center; }
.qr-card .mtitle { padding-right: 24px; }
.qr-img {
  display: block; width: 100%; max-height: 320px; object-fit: contain;
  border-radius: var(--radius-sm); background: #fff; margin: 6px 0 14px;
}
.qr-go { width: 100%; }

/* ---------- 移动端功能菜单 ---------- */
.mobile-nav {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 70;
  background: var(--bg-elev); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; padding: 6px 0;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a, .mobile-nav button {
  display: block; width: 100%; text-align: left;
  padding: 12px 22px; font-size: 15px; color: var(--ink);
  background: none; border: none; font-family: inherit;
}
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--bg-sink); text-decoration: none; }
/* 功能菜单里仅文档页有意义的项目 */
body:not([data-page="doc"]) .m-doc-only { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar {
    position: fixed; inset: 56px auto 0 0; z-index: 60;
    width: 300px; max-width: 84vw; max-height: none; padding: 18px 16px;
    background: var(--bg-elev); border-right: 1px solid var(--line);
    transform: translateX(-100%); transition: transform .18s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .only-mobile { display: inline-flex; }
  /* 手机端顶栏只保留三个点功能按钮，其余功能全部收进菜单 */
  #search-btn, #theme-btn, #speak-btn { display: none !important; }
  .content { max-width: 100%; padding-top: 6px; }
  .topnav { display: none; }
  .resume-bar { top: 60px; left: 10px; right: 10px; max-width: none; padding: 8px 10px; font-size: 12.5px; }
  .hero { grid-template-columns: 1fr; gap: 24px; text-align: center; padding-top: 12px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-fig { max-width: 440px; margin: 0 auto; width: 100%; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1; justify-content: center; }
  .prevnext { flex-direction: column; }
  .prevnext a { max-width: 100%; }
  .chap-row { gap: 12px; padding: 12px 14px; }
  .chap-ex { display: none; }
  .mcard { padding: 18px; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}
