/* Knowledge list and search. City cards and homepage news have separate styles. */
.kb-main {
  background: #f5f7fa;
  padding-bottom: 42px;
}
.kb-container { max-width: 1600px; }
.kb-hero { padding: 24px 0 30px; background: linear-gradient(180deg, #eef5ff 0%, #f5f7fa 100%); }
.kb-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; color: #627797; font-size: 13px; }
.kb-breadcrumb a:hover { color: #1265ff; }
.kb-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.kb-hero h1 { margin: 0 0 8px; color: #102447; font-size: 38px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.kb-hero p { margin: 0; color: #637895; font-size: 16px; line-height: 1.7; }
.kb-search { display: flex; width: 435px; flex-shrink: 0; overflow: hidden; border: 1px solid #dbe7f8; border-radius: 8px; background: #fff; }
.kb-search:focus-within { border-color: #1265ff; box-shadow: 0 0 0 3px #1265ff14; }
.kb-search input { width: 0; min-width: 0; flex: 1; height: 46px; padding: 0 16px; border: 0; outline: 0; color: #203957; background: transparent; font: inherit; font-size: 14px; }
.kb-search input::placeholder { color: #8798af; }
.kb-search button { display: grid; place-items: center; width: 60px; flex-shrink: 0; border: 0; border-radius: 7px; color: #fff; background: #0763fa; cursor: pointer; }
.kb-search button:hover { background: #0856dc; }
.kb-search svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.kb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.kb-content { padding-top: 18px; }
.kb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.kb-filters a { display: inline-flex; align-items: center; justify-content: center; min-width: 106px; min-height: 40px; padding: 7px 22px; border-radius: 10px; color: #3c5377; font-size: 15px; font-weight: 500; }
.kb-filters a:hover { color: #1265ff; background: #e5efff; }
.kb-filters a.is-active { color: #fff; background: linear-gradient(130deg, #127aff, #0760f8); box-shadow: 0 4px 12px #1265ff14; }
.kb-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; align-items: start; gap: 24px; }
.kb-results, .kb-side-card { min-width: 0; border: 1px solid #e3e9f1; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px #16386903; }
.kb-results { padding: 0 24px; }
.kb-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid #e8eef7; }
.kb-results-heading h2 { margin: 0; color: #132b50; font-size: 17px; line-height: 1.5; font-weight: 600; }
.kb-results-heading > span, .kb-results-heading > a { flex-shrink: 0; color: #657b99; font-size: 13px; }
.kb-results-heading > a:hover { color: #1265ff; }
.kb-article { display: grid; grid-template-columns: 260px minmax(0,1fr); align-items: center; gap: 25px; padding: 16px 0; border-bottom: 1px solid #e8eef7; }
.kb-article:last-child { border-bottom: 0; }
.kb-thumb { position: relative; display: block; align-self: center; aspect-ratio: 16/9; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg, #e5f0ff, #dcecff); }
.kb-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.kb-thumb img[hidden] { display: none; }
.kb-thumb:hover img { transform: scale(1.025); }
.kb-cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #4477b3; font-size: 12px; }
.kb-cover-fallback svg { width: 30px; height: 30px; fill: none; stroke: #3b83ee; stroke-width: 1.4; }
.kb-article-copy { min-width: 0; }
.kb-article h3 { margin: 0 0 7px; color: #102747; font-size: 20px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.kb-article h3 a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kb-article h3 a:hover { color: #1265ff; }
.kb-summary { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0 0 9px; color: #6b7d96; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.kb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #71829a; font-size: 12px; line-height: 1.5; }
.kb-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 5px; color: #0864e8; background: #edf5ff; font-size: 12px; font-weight: 600; }
.kb-tag:hover { background: #dfeeff; }
.kb-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kb-author:empty { display: none; }
.kb-meta time::before { content: '·'; margin-right: 10px; }
.kb-page-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; padding: 17px 0; border-top: 1px solid #e8eef7; color: #657b99; font-size: 13px; }
.kb-page-count { white-space: nowrap; }
.kb-pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kb-pagination a, .kb-pagination > span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 6px 10px; border: 1px solid #dce7f6; border-radius: 5px; background: #fff; color: #30598b; }
.kb-pagination a:hover { color: #1265ff; border-color: #9fc5ff; }
.kb-pagination .page-num-current { color: #fff; background: #0867ff; border-color: #0867ff; }
.kb-pagination .page-num-current:hover { color: #fff; }
.kb-pagination .is-disabled { color: #9aabc1; background: #f7faff; }
.kb-pagination span.page-num { min-width: 20px; padding-inline: 3px; border: 0; }
.kb-sidebar { display: grid; gap: 18px; min-width: 0; }
.kb-side-card { padding: 22px; }
.kb-side-card h2, .kb-contact h2 { display: flex; align-items: center; gap: 13px; margin: 0 0 18px; color: #102747; font-size: 21px; line-height: 1.5; font-weight: 600; }
.kb-side-card h2 svg { width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: #1265ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kb-start-links { display: grid; gap: 10px; }
.kb-start-links:empty::after { content: '入门指南正在更新中'; padding: 18px 0; color: #71829a; font-size: 14px; }
.kb-start-links > a { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 11px 13px; border: 1px solid #e2ecfb; border-radius: 8px; background: linear-gradient(110deg, #f9fcff, #f6faff); }
.kb-start-links > a:hover { border-color: #bad6ff; background: #f0f6ff; }
.kb-step { color: #1265ff; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kb-start-links strong { display: block; color: #1167e8; font-size: 15px; font-weight: 600; line-height: 1.5; }
.kb-start-links small { display: block; margin-top: 2px; color: #7c8da7; font-size: 12px; line-height: 1.5; }
.kb-chevron { margin-left: auto; color: #8399b9; font-size: 23px; }
.kb-contact { position: relative; overflow: hidden; padding: 27px 24px 25px; border: 1px solid #193657; border-radius: 12px; color: #fff; background: radial-gradient(ellipse at 120% 35%, #173960 0, #112b4b 43%, transparent 44%), linear-gradient(135deg, #102743, #0b1b30); }
.kb-contact h2 { color: #fff; margin-bottom: 10px; font-size: 21px; }
.kb-contact h2 svg { width: 30px; height: 30px; color: #c9ecff; }
.kb-contact > p { margin: 0 0 23px; color: #c9d4e3; font-size: 14px; line-height: 1.7; }
.kb-contact button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; padding: 10px 15px; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(120deg, #076bff, #0552e5); font-family: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.kb-contact button:hover { background: #1374ff; }
.kb-contact button svg { width: 29px; height: 29px; }
.kb-phone { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; }
.kb-phone > svg { width: 25px; height: 25px; margin-top: 2px; flex-shrink: 0; }
.kb-phone strong { display: block; color: #fff; font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; }
.kb-phone small { display: block; margin-top: 6px; color: #a7bdd8; font-size: 14px; line-height: 1.5; }
.kb-search-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 14px 0; border-bottom: 1px solid #e8eef7; color: #687e9a; font-size: 14px; overflow-wrap: anywhere; }
.kb-search-status strong { color: #1c5cbc; font-weight: 500; }
.kb-search-status > span { margin-left: auto; }
.kb-empty { display: flex; min-height: 340px; padding: 50px 24px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kb-empty h3 { margin: 0 0 12px; color: #2c476b; font-size: 22px; font-weight: 600; }
.kb-empty p { max-width: 410px; margin: 0 0 24px; color: #7487a0; font-size: 15px; line-height: 1.8; }
.kb-empty > a { color: #1766ee; font-size: 15px; }
.kb-main a:focus-visible, .kb-main button:focus-visible { outline: 3px solid #71a4ff; outline-offset: 3px; }

@media (max-width:1199px) {
  .kb-search { width: 350px; }
  .kb-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 18px; }
  .kb-results { padding-inline: 20px; }
  .kb-article { grid-template-columns: 28% minmax(0,1fr); gap: 18px; }
  .kb-article h3 { font-size: 18px; }
  .kb-summary { font-size: 13px; }
  .kb-side-card { padding: 19px; }
  .kb-start-links > a { padding: 10px; gap: 10px; }
  .kb-start-links small { font-size: 12px; }
  .kb-contact { padding: 24px 20px; }
}
@media (max-width:991px) {
  .kb-hero-row { gap: 22px; }
  .kb-hero h1 { font-size: 34px; }
  .kb-hero p { font-size: 14px; }
  .kb-search { width: 320px; }
  .kb-layout { grid-template-columns: minmax(0,1fr); }
  .kb-article { grid-template-columns: 26% minmax(0,1fr); }
  .kb-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kb-start { grid-column: 1/-1; }
  .kb-start-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .kb-start-links > a { gap: 10px; }
  .kb-start-links small { font-size: 12px; }
}
@media (max-width:767px) {
  .kb-main { padding-bottom: 28px; }
  .kb-hero { padding: 19px 0 24px; }
  .kb-breadcrumb { font-size: 12px; margin-bottom: 14px; }
  .kb-hero-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .kb-hero h1 { font-size: 30px; }
  .kb-hero p { font-size: 14px; }
  .kb-search { width: 100%; }
  .kb-search input { height: 44px; font-size: 16px; padding-inline: 12px; }
  .kb-search input::placeholder { font-size: 13px; }
  .kb-search button { width: 52px; }
  .kb-content { padding-top: 16px; }
  .kb-filters { gap: 8px; margin-bottom: 14px; }
  .kb-filters a { min-width: 0; min-height: 38px; padding: 7px 18px; font-size: 14px; border-radius: 8px; }
  .kb-results { padding-inline: 16px; border-radius: 12px; }
  .kb-results-heading { min-height: 51px; }
  .kb-results-heading h2 { font-size: 16px; }
  .kb-results-heading > span, .kb-results-heading > a { font-size: 12px; }
  .kb-article { grid-template-columns: 96px minmax(0,1fr); align-items: start; gap: 10px 14px; padding: 17px 0; }
  .kb-article-copy { display: contents; }
  .kb-thumb { align-self: start; aspect-ratio: 16/9; border-radius: 6px; }
  .kb-article h3 { grid-column: 2; align-self: center; margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; }
  .kb-summary { grid-column: 1/-1; margin: 0; font-size: 13px; line-height: 1.65; }
  .kb-meta { grid-column: 1/-1; font-size: 12px; gap: 5px 8px; }
  .kb-meta time::before { margin-right: 8px; }
  .kb-tag { font-size: 12px; min-height: 24px; padding: 3px 8px; }
  .kb-cover-fallback { gap: 3px; }
  .kb-cover-fallback > span { display: none; }
  .kb-cover-fallback svg { width: 26px; height: 26px; }
  .kb-page-footer { padding: 16px 0; gap: 12px; font-size: 12px; }
  .kb-pagination { gap: 6px; }
  .kb-pagination a, .kb-pagination > span { min-width: 32px; min-height: 34px; padding: 5px 8px; }
  .kb-pagination span.page-num { min-width: 12px; }
  .kb-sidebar { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .kb-start { grid-column: auto; }
  .kb-side-card { padding: 20px; border-radius: 12px; }
  .kb-side-card h2, .kb-contact h2 { font-size: 20px; }
  .kb-start-links { grid-template-columns: minmax(0,1fr); }
  .kb-start-links > a { gap: 15px; padding: 12px 14px; }
  .kb-start-links small { font-size: 12px; }
  .kb-contact { padding: 24px; }
  .kb-search-status { font-size: 13px; }
  .kb-search-status > span { width: 100%; margin: 3px 0 0; }
  .kb-empty { min-height: 290px; padding-inline: 12px; }
  .kb-empty h3 { font-size: 20px; }
  .kb-empty p { font-size: 14px; }
}
@media (max-width:359px) {
  .kb-results { padding-inline: 13px; }
  .kb-article { grid-template-columns: 80px minmax(0,1fr); gap: 10px 12px; }
  .kb-article h3 { font-size: 15px; }
  .kb-filters a { padding-inline: 15px; }
  .kb-meta { column-gap: 6px; }
  .kb-meta time::before { margin-right: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  .kb-thumb img { transition: none; }
  .kb-thumb:hover img { transform: none; }
}

/* This view already has an inline consultation card; keep article text unobstructed. */
body[data-page="newslist"] .floating-actions { display: none; }

/* The list uses inline consultation, so the region links can use the full content width. */
body[data-page="newslist"] .region-strip > .container { padding-right: 0; }
