:root {
  --lb-blue: #1677b7;
  --lb-blue-dark: #0f5f8f;
  --lb-blue-deep: #0f4264;
  --lb-blue-soft: #eef7ff;
  --lb-blue-border: #c9e4f8;
  --lb-blue-muted: #eaf5ff;
}
* { box-sizing: border-box; }
body { margin: 0; color: #222; background: #f3f5f7; font: 14px/1.65 "Microsoft YaHei", Arial, sans-serif; }
a { color: #1c66ad; text-decoration: none; }
a:hover { color: var(--lb-blue); }
img { max-width: 100%; display: block; }
.lb-wrap { width: 1200px; max-width: calc(100% - 32px); margin: 0 auto; }
.lb-topbar { height: 38px; background: #f4f4f4; color: #555; border-bottom: 1px solid #e6e6e6; }
.lb-topbar .lb-wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.lb-toplinks a { color: #444; margin: 0 8px; }
.lb-toplinks em { color: #aaa; font-style: normal; }
.lb-header { background: #fff; }
.lb-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; gap: 28px; }
.lb-brand { display: flex; align-items: center; gap: 14px; color: #0f4264; min-width: 330px; }
.lb-logo { display: grid; place-items: center; width: 72px; height: 72px; border: 3px solid #1d83b4; border-radius: 50%; font-weight: 700; color: #1d83b4; font-size: 24px; }
.lb-brand strong { display: block; font-size: 30px; letter-spacing: 2px; color: #12608a; }
.lb-brand small { display: block; font-size: 14px; color: #777; text-transform: uppercase; }
.lb-search { flex: 1; display: flex; align-items: center; gap: 0; min-width: 0; }
.lb-search input { flex: 1; min-width: 0; height: 54px; border: 2px solid var(--lb-blue); border-right: 0; padding: 0 16px; font-size: 16px; outline: none; }
.lb-search button { width: 116px; height: 54px; border: 0; background: var(--lb-blue); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.lb-search a { margin-left: 18px; color: #222; font-weight: 700; }
.lb-nav { background: #fff; border-bottom: 3px solid var(--lb-blue); }
.lb-nav .lb-wrap { display: flex; align-items: center; gap: 12px; }
.lb-nav a, .lb-nav-toggle { display: inline-flex; align-items: center; height: 56px; padding: 0 20px; color: #111; font-size: 18px; font-weight: 700; border: 0; background: transparent; }
.lb-nav-toggle { background: var(--lb-blue); color: #fff; border-radius: 6px 6px 0 0; }
.lb-nav a.active, .lb-nav a:hover { color: var(--lb-blue); }
.lb-main { padding: 26px 0 42px; }
.lb-alert { padding: 12px 16px; margin-bottom: 16px; background: var(--lb-blue-soft); border: 1px solid var(--lb-blue-border); color: var(--lb-blue-dark); }
.lb-dashboard, .lb-panel { min-width: 0; background: #fff; border: 1px solid #e6e9ee; border-radius: 4px; margin-bottom: 24px; }
.lb-hero { min-height: 300px; padding: 38px; display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: center; background: linear-gradient(90deg, #fff 0%, var(--lb-blue-soft) 100%); }
.lb-kicker { margin: 0 0 10px; color: var(--lb-blue); font-weight: 700; }
.lb-hero h1 { margin: 0; font-size: 42px; color: #111; letter-spacing: 2px; }
.lb-hero p { margin: 12px 0 24px; max-width: 680px; color: #555; font-size: 17px; }
.lb-hero-actions { display: flex; gap: 12px; }
.lb-btn, button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 1px solid #d8dde5; background: #fff; color: #333; border-radius: 3px; cursor: pointer; font: inherit; }
.lb-btn-primary, button[type=submit] { background: var(--lb-blue); border-color: var(--lb-blue); color: #fff; }
.lb-proof-card { padding: 28px; background: #fff; border: 1px solid var(--lb-blue-border); box-shadow: 0 10px 30px rgba(22,119,183,.12); }
.lb-proof-card strong { display: block; color: var(--lb-blue); font-size: 30px; margin-bottom: 8px; }
.lb-proof-card span, .lb-proof-card small { display: block; color: #555; margin-top: 6px; }
.lb-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #eef0f3; }
.lb-metrics.compact { border: 0; grid-template-columns: repeat(4, 1fr); }
.lb-metrics div { padding: 20px 24px; border-right: 1px solid #eef0f3; background: #fff; }
.lb-metrics div:last-child { border-right: 0; }
.lb-metrics strong { display: block; font-size: 28px; color: var(--lb-blue); line-height: 1.1; }
.lb-metrics span { color: #666; }
.lb-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-bottom: 24px; align-items: stretch; min-width: 0; overflow: hidden; }
.lb-scroll-panel, .lb-news-panel { min-width: 0; background: #fff; border: 1px solid #e6e9ee; border-radius: 4px; padding: 22px 24px; overflow: hidden; }
.lb-scroll-window { position: relative; overflow: hidden; overflow: clip; max-width: 100%; contain: paint; padding: 4px 0 2px; }
.lb-scroll-window:before, .lb-scroll-window:after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 48px; pointer-events: none; }
.lb-scroll-window:before { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%); }
.lb-scroll-window:after { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 100%); }
.lb-scroll-track { display: flex; width: max-content; gap: 16px; animation: lb-scroll-books 34s linear infinite; }
.lb-scroll-window:hover .lb-scroll-track { animation-play-state: paused; }
.lb-scroll-card { display: grid; flex: 0 0 142px; grid-template-rows: 188px auto auto auto; gap: 7px; color: #333; }
.lb-scroll-card img { width: 142px; height: 188px; object-fit: cover; border: 1px solid #dfe7ef; background: #f5f8fb; box-shadow: 0 8px 18px rgba(15,95,143,.08); }
.lb-scroll-card strong { min-height: 42px; overflow: hidden; color: #16364f; font-size: 14px; line-height: 1.45; }
.lb-scroll-card span, .lb-scroll-card em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #777; font-size: 12px; font-style: normal; }
.lb-news-panel ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lb-news-panel li { padding-bottom: 12px; border-bottom: 1px solid #edf0f3; }
.lb-news-panel li:last-child { padding-bottom: 0; border-bottom: 0; }
.lb-news-panel li a { display: -webkit-box; overflow: hidden; color: #333; white-space: normal; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes lb-scroll-books {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}
.lb-grid-two { display: grid; grid-template-columns: 304px 1fr; gap: 24px; margin-bottom: 24px; }
.lb-panel { padding: 24px; }
.lb-panel h2 { margin: 0 0 16px; font-size: 20px; color: #222; }
.lb-section-title, .lb-table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.lb-section-title h2 { margin: 0; }
.lb-subject-list { display: grid; gap: 1px; border: 1px solid #edf0f3; }
.lb-subject-list a { display: block; padding: 10px 12px; color: #333; background: #fff; border-bottom: 1px solid #edf0f3; }
.lb-subject-list strong { display: inline-block; width: 28px; color: var(--lb-blue); }
.lb-catalog-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.lb-catalog-side { background: #fff; border: 1px solid #e6e9ee; }
.lb-catalog-main { min-width: 0; }
.lb-catalog-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e6e9ee; }
.lb-catalog-tabs a { text-align: center; padding: 12px 8px; color: #333; background: #f7f8fa; font-weight: 700; }
.lb-catalog-tabs a.active { background: #fff; color: #111; border-top: 3px solid var(--lb-blue); padding-top: 9px; }
.lb-catalog-tabs.compact { margin: -24px -24px 16px; }
.lb-discipline-list { padding: 14px 18px; }
.lb-discipline-list.compact { padding: 0; }
.lb-discipline-list section { padding: 8px 0 11px; border-bottom: 1px solid #edf0f3; }
.lb-discipline-list section:last-child { border-bottom: 0; }
.lb-discipline-list h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; }
.lb-discipline-list h3 a { color: #111; }
.lb-discipline-list section.open h3 a, .lb-discipline-list h3 a:hover { color: var(--lb-blue); }
.lb-discipline-list p { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.lb-discipline-list p a { color: #555; font-size: 13px; }
.lb-discipline-list p a.active, .lb-discipline-list p a:hover { color: var(--lb-blue); }
.lb-clc-list { display: grid; padding: 10px 18px; }
.lb-clc-list a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 9px 0; color: #333; border-bottom: 1px solid #edf0f3; }
.lb-clc-list a:last-child { border-bottom: 0; }
.lb-clc-list strong { color: #111; }
.lb-clc-list span { color: #555; }
.lb-clc-list a.active strong, .lb-clc-list a.active span, .lb-clc-list a:hover strong, .lb-clc-list a:hover span { color: var(--lb-blue); }
.lb-clc-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; margin-top: 14px; border-top: 1px solid #edf0f3; }
.lb-clc-shortcuts a { display: grid; place-items: center; width: 28px; height: 28px; background: #f7f8fa; border: 1px solid #e5e9ef; color: #333; }
.lb-check-inline { display: inline-flex; align-items: center; gap: 5px; color: #555; }
.lb-result-list { display: grid; }
.lb-result-item { display: grid; grid-template-columns: 24px 116px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid #edf0f3; }
.lb-result-item:first-child { border-top: 0; }
.lb-result-cover img { width: 96px; height: 132px; object-fit: cover; border: 1px solid #e3e6eb; background: #f4f4f4; }
.lb-result-body { min-width: 0; }
.lb-result-body h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.35; }
.lb-result-body p { margin: 4px 0; color: #555; }
.lb-stars { color: var(--lb-blue); font-weight: 700; margin-bottom: 6px; }
.lb-stars span { color: #777; font-weight: 400; }
.lb-summary { color: #666; line-height: 1.75; }
.lb-book-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lb-book-card { min-width: 0; }
.lb-book-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f0f0f0; border: 1px solid #eee; }
.lb-book-card h3 { margin: 10px 0 6px; font-size: 15px; line-height: 1.35; height: 42px; overflow: hidden; }
.lb-book-card p, .lb-book-card span { margin: 0; color: #777; font-size: 13px; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-tags.vertical { display: grid; }
.lb-tags a { padding: 8px 12px; background: #f7f8fa; color: #333; border: 1px solid #e8ebef; border-radius: 3px; }
.lb-tags span { margin-left: 8px; color: var(--lb-blue); }
.lb-rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; }
.lb-rank-grid a { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; color: #333; border-bottom: 1px solid #edf0f3; }
.lb-rank-grid b { display: grid; place-items: center; width: 22px; height: 22px; background: var(--lb-blue); color: #fff; border-radius: 50%; }
.lb-rank-grid em { color: #888; font-style: normal; }
.lb-breadcrumb { padding: 14px 16px; margin: -24px -24px 20px; background: #f6f6f6; color: #666; border-bottom: 1px solid #e8ebef; }
.lb-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.lb-filter label { display: grid; min-width: 0; gap: 6px; color: #555; font-weight: 700; }
.lb-filter input, .lb-filter select, .lb-form textarea, .lb-inline-form input, .qty { min-width: 0; min-height: 40px; border: 1px solid #d8dde5; padding: 0 10px; font: inherit; outline: none; }
.lb-filter label.wide { min-width: 0; grid-column: span 2; }
.lb-filter > button, .lb-filter > .lb-btn { align-self: end; min-width: 0; }
.lb-note { color: var(--lb-blue-dark); margin: 14px 0 0; }
.lb-table-wrap { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; background: #fff; }
.lb-table th, .lb-table td { border: 1px solid #e3e6eb; padding: 10px 12px; vertical-align: middle; }
.lb-table th { background: #f6f7f9; color: #435160; font-weight: 700; white-space: nowrap; }
.lb-table td { color: #333; }
.lb-actions a { margin-right: 8px; }
.lb-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.lb-pagination a { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d8dde5; background: #fff; color: #333; }
.lb-pagination a.active { background: var(--lb-blue); color: #fff; border-color: var(--lb-blue); }
.lb-detail { display: grid; grid-template-columns: 260px 1fr; gap: 28px; background: #fff; border: 1px solid #e6e9ee; padding: 28px; margin-bottom: 24px; }
.lb-detail-cover img { width: 240px; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid #e3e6eb; }
.lb-detail-info h1 { margin: 0 0 18px; font-size: 28px; }
.lb-detail-info dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; margin: 0; }
.lb-detail-info dt { color: #777; }
.lb-detail-info dd { margin: 0; }
.lb-detail-actions { display: flex; gap: 12px; margin-top: 24px; }
.lb-form { display: grid; gap: 14px; }
.lb-form textarea { padding: 10px; resize: vertical; }
.lb-book-desc { color: #555; }
.lb-evidence-list { margin: 0; padding-left: 18px; color: #555; }
.lb-evidence-list li { margin-bottom: 8px; }
.lb-inline-form { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.lb-inline-form input { width: 340px; }
.lb-user-card { display: flex; align-items: center; gap: 18px; padding: 8px 0; }
.lb-user-card strong { font-size: 22px; color: var(--lb-blue); }
.lb-list { display: grid; gap: 8px; }
.lb-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f3; color: #333; }
.lb-list span { color: #888; }
.lb-status { display: inline-flex; padding: 2px 8px; background: #eaf5ff; color: #12608a; border: 1px solid #cfe5f8; border-radius: 10px; white-space: nowrap; }
.lb-admin-shell { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.lb-admin-side { background: #3c5f7a; min-height: 620px; color: #fff; padding: 18px 0; }
.lb-admin-side strong { display: block; padding: 0 22px 18px; font-size: 20px; }
.lb-admin-side a { display: block; padding: 14px 22px; color: #dbe8f2; border-left: 4px solid transparent; }
.lb-admin-side a.active, .lb-admin-side a:hover { background: #6494bd; color: #fff; border-left-color: #fff; }
.lb-admin-main { min-width: 0; }
.lb-footer { background: #263238; color: #cfd8dc; padding: 28px 0; }
.lb-footer .lb-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .lb-header-inner, .lb-topbar .lb-wrap, .lb-section-title, .lb-table-toolbar, .lb-inline-form { flex-direction: column; align-items: stretch; }
  .lb-brand { min-width: 0; }
  .lb-search { width: 100%; }
  .lb-nav .lb-wrap { overflow-x: auto; }
  .lb-hero, .lb-showcase, .lb-grid-two, .lb-detail, .lb-admin-shell, .lb-catalog-layout { grid-template-columns: 1fr; }
  .lb-metrics, .lb-metrics.compact, .lb-book-row, .lb-rank-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-filter { grid-template-columns: 1fr; }
  .lb-filter label.wide { grid-column: auto; }
  .lb-admin-side { min-height: 0; }
  .lb-result-item { grid-template-columns: 24px 82px 1fr; gap: 12px; }
  .lb-result-cover img { width: 78px; height: 108px; }
  .lb-scroll-card { flex-basis: 126px; grid-template-rows: 168px auto auto auto; }
  .lb-scroll-card img { width: 126px; height: 168px; }
}
