:root {
  --brand: #9e3d2e;
  --brand-dark: #7b291e;
  --ink: #29201c;
  --muted: #66574e;
  --page: #f8f5ef;
  --surface: #fffdf9;
  --line: #e7ded2;
  --soft: #f5e5db;
  --tblr-primary: var(--brand);
  --tblr-primary-rgb: 158, 61, 46;
  --tblr-body-bg: var(--page);
  --tblr-body-color: var(--ink);
  --tblr-border-color: var(--line);
  --tblr-link-color: var(--brand);
  --tblr-link-hover-color: var(--brand-dark);
  --tblr-bg-surface: var(--surface);
  --tblr-font-sans-serif: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

body {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

img { max-width: 100%; }
:where(h1, h2, h3, p, a) { overflow-wrap: anywhere; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }

.btn { min-height: 38px; font-weight: 650; }
.btn-primary {
  --tblr-btn-color: white;
  --tblr-btn-bg: var(--brand);
  --tblr-btn-border-color: var(--brand);
  --tblr-btn-hover-color: white;
  --tblr-btn-hover-bg: var(--brand-dark);
  --tblr-btn-hover-border-color: var(--brand-dark);
}
.btn-outline-secondary {
  --tblr-btn-color: var(--ink);
  --tblr-btn-border-color: #d8cbbd;
  --tblr-btn-hover-color: var(--brand-dark);
  --tblr-btn-hover-bg: var(--soft);
  --tblr-btn-hover-border-color: #cfab9c;
}

.site-shell, .container-body { width: min(calc(100% - 48px), 1192px); margin-inline: auto; }
.container-body { flex: 1 0 auto; padding: 0; margin-top: 34px; margin-bottom: 64px; }
.site-header { flex: none; height: auto; min-height: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: none; padding: 0; }
.site-header-inner { display: flex; align-items: center; column-gap: 34px; min-height: 69px; }
.site-brand { gap: 10px; padding: 0; margin: 0; color: var(--ink); font-size: 17px; font-weight: 800; white-space: nowrap; }
.site-brand:hover { color: var(--brand); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 35px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: white;
  font-family: 'Songti SC', SimSun, serif;
  font-size: 20px;
}
.site-header .site-nav { min-height: 0; flex-direction: row; align-items: center; gap: 4px; }
.site-nav .nav-link { display: flex; justify-content: center; min-height: 40px; padding: 8px 12px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav [aria-current] { background: var(--soft); color: var(--brand-dark); }
.site-nav [aria-current] { font-weight: 750; }
.site-search-link { margin-left: auto; gap: 7px; color: var(--ink); border: 1px solid var(--line); }
.site-search-link:hover { background: var(--soft); color: var(--brand-dark); border-color: #cfab9c; }
.skip-link:focus { position: absolute; z-index: 30; top: 8px; left: 8px; padding: 8px 12px; background: var(--surface); }
.site-footer { flex: none; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 23px; }
.site-footer-inner a { margin-left: auto; }

.hero-box {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(24px, 5.4vw, 80px);
  padding: clamp(28px, 4.7vw, 64px);
  border: 1px solid #e5d1c0;
  border-top: 4px solid var(--brand);
  border-radius: 16px;
  background: #f2e4d6;
}
.hero-main h1 {
  margin: 0;
  font: 800 clamp(38px, 5.25vw, 75px)/1.08 'Songti SC', 'Noto Serif CJK SC', SimSun, serif;
  letter-spacing: -.065em;
}
.hero-main h1 span { margin-left: .07em; color: var(--brand-dark); }
.hero-main p { margin: 15px 0 24px; color: var(--muted); font-size: clamp(14px, 1.35vw, 18px); line-height: 1.6; }
.query-form { display: flex; gap: 8px; width: min(100%, 560px); }
.query-form .input-icon { flex: 1; min-width: 0; }
.query-form .form-control { height: 48px; width: 100%; background: var(--surface); border-color: #d7c5b8; font-size: 16px; }
.query-form .input-icon-addon { color: var(--muted); }
.query-form .btn { flex: none; min-width: 74px; font-size: 15px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #9e3d2e22; }
.hero-entries { display: grid; gap: 12px; }
.entry-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.7vw, 20px);
  padding: 16px;
  border: 1px solid #ddcbbc;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.entry-card:hover { border-color: #ae7761; background: #fff8f1; text-decoration: none; }
.entry-icon, .track-ico, .software-icon { display: grid; place-items: center; flex: none; border-radius: 8px; background: var(--soft); color: var(--brand-dark); }
.entry-icon { width: 46px; height: 46px; font-size: 21px; }
.entry-content strong, .entry-content small { display: block; }
.entry-content strong { font-size: 17px; line-height: 1.4; }
.entry-content small { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.entry-arrow { color: var(--brand); }

.list-section { margin-top: 36px; scroll-margin-top: 16px; }
.sec-title, .relates-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.24;
}
.tracks-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.track { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 9px; border-radius: 10px; padding: 10px 11px; color: var(--ink); }
.track:hover { border-color: #ae7761; text-decoration: none; }
.track-ico { width: 34px; height: 34px; grid-row: span 2; font-size: 15px; }
.track-name { font-size: 13.5px; font-weight: 750; }
.track small { color: var(--muted); font-size: 11.5px; }

.filter-box { border-radius: 12px; padding: 6px 15px; margin-bottom: 13px; }
.fb-row { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; }
.fb-row + .fb-row { border-top: 1px solid var(--line); }
.fb-label { flex: none; color: var(--muted); font-size: 13px; font-weight: 650; }
.fb-pills, .rc-chips, .article-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { min-height: 32px; padding: 4px 8px; gap: 4px; border-radius: 7px; border-color: transparent; font-size: 12.5px; box-shadow: none; }
.pill > span { color: var(--muted); font-size: 11px; margin-left: 1px; }
.pill:hover, .pill.on { background: var(--soft); color: var(--brand-dark); border-color: #ead1c3; }
.pill.on { font-weight: 800; }
.pill.on > span { color: var(--brand-dark); }
.list-result { min-height: 1.4em; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.list-result:empty { display: none; }
.list-result b { color: var(--brand-dark); }
.res-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 15px; }
.res-card, .software-card, .software-result { overflow: hidden; min-width: 0; border-radius: 12px; }
.res-card:hover, .software-card:target, .software-result:hover { border-color: #c48975; }
.rc-thumb { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.rc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rc-body { display: flex; flex-direction: column; gap: 9px; padding: 13px 14px; }
.rc-title { margin: 0; font-size: 15.5px; line-height: 1.48; font-weight: 750; }
.rc-title a { color: var(--ink); }
.rc-title a:hover { color: var(--brand-dark); }
.res-card .rc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-card .rc-title:focus-within { overflow: visible; -webkit-line-clamp: unset; }
.res-card .rc-title a:focus-visible { outline-offset: -2px; text-decoration: underline; }
.chip { max-width: 100%; border: 0; border-radius: 5px; white-space: normal; padding: 4px 6px; text-align: left; font-size: 11px; line-height: 1.2; }
.chip-c { background: var(--soft); color: var(--brand-dark); font-weight: 750; }
.chip-t { background: #f3efe8; color: #5e5046; }
.rc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; margin-top: auto; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.rc-meta i, .mr3 { margin-right: 4px; }
.mr6 { margin-right: 6px; }
.rc-badge { color: #5b4a3b; }
.load-more-box { text-align: center; margin-block: 25px 8px; }
.load-more-box .btn { min-width: 124px; }
.empty-tip { text-align: center; background: var(--surface); padding: 35px 15px; border: 1px dashed #d8cbbd; border-radius: 12px; color: var(--muted); }

.page-intro { margin: 0 0 28px; }
.page-intro h1 { margin: 0 0 10px; font-size: clamp(29px, 4vw, 44px); line-height: 1.2; font-weight: 800; }
.page-intro p { color: var(--muted); margin-bottom: 15px; }
.search-options { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); }
.search-options .form-select { width: 150px; background-color: var(--surface); border-color: #d7c5b8; color: var(--ink); }
.software-result .card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 128px; padding: 16px; }
.software-result p { margin: 0; color: var(--muted); font-size: 13px; }
.software-result-link { margin-top: auto; font-size: 12px; font-weight: 650; }

.platform-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.platform-nav .btn { gap: 7px; }
.platform-nav .btn span { color: var(--muted); font-size: 12px; }
.software-section { margin-top: 24px; }
.software-section, .software-card { scroll-margin-top: 14px; }
.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.software-card .card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 15px; }
.software-card:target { box-shadow: 0 0 0 2px #9e3d2e33; }
.software-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); }
.software-icon { width: 30px; height: 30px; font-size: 16px; }
.software-platform { font-size: 12.5px; font-weight: 650; }
.software-card h3 { color: var(--ink); font-size: 17px; line-height: 1.35; margin: 9px 0 11px; }
.software-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.software-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; }
.software-actions .btn { min-height: 36px; padding-inline: 8px; gap: 4px; font-size: 12px; }

.breadcrumb-box { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.cat-head, .article, .nf-box, .go-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cat-head { margin: 0 0 16px; padding: 20px; display: flex; align-items: center; gap: 14px; }
.cat-head-ico { display: grid; place-items: center; width: 48px; aspect-ratio: 1; flex: none; border-radius: 10px; background: var(--soft); color: var(--brand-dark); font-size: 21px; }
.cat-head h1 { margin: 0 0 5px; font-size: 25px; }
.cat-head p { margin: 0; color: var(--muted); }
.article { max-width: 900px; margin-inline: auto; padding: clamp(16px, 4vw, 34px); }
.article-title { margin: 0 0 12px; font-size: clamp(25px, 4vw, 36px); line-height: 1.35; font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: 5px 13px; margin: 13px 0 18px; color: var(--muted); font-size: 12px; }
.article-content { line-height: 1.82; font-size: 15px; overflow-wrap: anywhere; }
.article-content img { height: auto; }
.article-content pre, .article-content table { max-width: 100%; overflow-x: auto; }
.article-end { text-align: center; margin-top: 20px; color: var(--muted); }
.muted-2-color { color: var(--muted); }
.relates-box { margin-top: 26px; }
.relates-title { font-size: 20px; }

.res-box { border: 1px solid #e0c6b6; border-radius: 13px; background: #faf0e8; overflow: hidden; margin: 0 0 24px; }
.res-head { color: var(--brand-dark); background: var(--soft); padding: 11px 14px; font-weight: 750; }
.res-head i { margin-right: 5px; }
.res-body { padding: 14px; }
.res-tip { margin: 0 0 10px; color: var(--muted); }
.res-actions, .go-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.but, .float-cta { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 40px; border: 1px solid #d8cbbd; padding: 7px 13px; border-radius: 8px; color: var(--ink); background: var(--surface); font-weight: 700; text-align: center; }
.but:hover { text-decoration: none; background: var(--soft); }
.but.jb-pink, .but.primary, .float-cta { background: var(--brand); border-color: var(--brand); color: white; }
.but.jb-pink:hover, .but.primary:hover, .float-cta:hover { background: var(--brand-dark); color: white; text-decoration: none; }
.pan-pwd { font-size: 12px; padding-left: 6px; border-left: 1px solid var(--line); color: var(--brand-dark); }
.step-box { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.step-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); }
.step-item .n { color: var(--brand-dark); font-weight: 750; }
.step-item h5 { margin: 3px 0; }
.step-item p { color: var(--muted); font-size: 12px; margin: 0; }
.promo-banner { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-banner h4, .promo-banner p { margin: 0; }
.float-cta { display: none; position: fixed; inset: auto 12px max(12px, env(safe-area-inset-bottom)); z-index: 9; box-shadow: 0 4px 20px #43221842; }
.float-cta.show { display: flex; }
.has-float-cta .site-footer { padding-bottom: 55px; }
.go-wrap { width: min(100%, 560px); margin-inline: auto; }
.go-card, .nf-box { padding: clamp(19px, 5vw, 32px); text-align: center; }
.go-actions { justify-content: center; }
.go-bar { height: 6px; margin: 16px 0 9px; background: var(--soft); border-radius: 10px; overflow: hidden; }
.go-bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.go-note { color: var(--muted); margin: 12px 0 0; }

@media (max-width: 980px) {
  .res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tracks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-box { gap: 24px; }
}

@media (max-width: 720px) {
  .site-shell, .container-body { width: calc(100% - 30px); }
  .site-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding-top: 9px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; margin: 0 -3px 5px; }
  .site-nav .nav-link { min-height: 37px; padding: 7px 10px; font-size: 13px; }
  .site-search-link { grid-column: 2; grid-row: 1; min-height: 38px; }
  .container-body { margin-top: 19px; margin-bottom: 42px; }
  .hero-box { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px 14px; border-radius: 13px; }
  .hero-main h1 { font-size: clamp(34px, 8.8vw, 55px); }
  .hero-main p { margin: 8px 0 13px; }
  .hero-entries { grid-template-columns: 1fr; gap: 6px; }
  .entry-card { gap: 10px; padding: 8px 11px; }
  .entry-icon { width: 34px; height: 34px; font-size: 16px; }
  .entry-content strong { font-size: 14px; }
  .entry-content small { font-size: 11.5px; margin-top: 2px; }
  .list-section { margin-top: 24px; }
  .sec-title { font-size: 19px; margin-bottom: 10px; }
  .tracks-grid { gap: 6px; margin-bottom: 11px; }
  .track { gap: 1px 5px; padding: 6px 7px; }
  .track-ico { width: 22px; height: 26px; font-size: 12px; }
  .track-name { font-size: 12px; }
  .filter-box { padding: 4px 9px; }
  .fb-row { display: block; padding: 4px 0; }
  .fb-label { display: block; margin: 2px 0; font-size: 11px; }
  .pill { min-height: 32px; padding-inline: 5px; font-size: 11.5px; }
  .res-grid, .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .software-card:only-child { grid-column: 1 / -1; }
  .software-card .card-body, .software-result .card-body { padding: 10px; }
  .software-actions .btn { min-height: 40px; }
  .step-box { grid-template-columns: 1fr; gap: 5px; }
  .step-item { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 4px; }
  .step-item .n { grid-row: span 2; }
  .step-item h5 { margin: 0; }
  .rc-body { padding: 9px; }
  .rc-title { font-size: 13.5px; }
  .rc-meta { font-size: 10.5px; }
  .site-footer-inner a { margin-left: 0; }
}

@media (max-width: 360px) {
  .site-nav { gap: 1px; }
  .site-nav .nav-link { padding-inline: 8px; }
  .software-grid { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .track-ico { display: none; }
}
