/* OPAC2 新版馆藏目录检索：配色跟随 OEM 主色(html.o-<css_name>) */
html {
	--o2: #12ABD8; --o2-dark: #0E96C0; --o2-ink: #0B6E8E; --o2-soft: #E6F6FB; --o2-line: #BFE6F3;
	--o2-text: #1F2A33; --o2-sub: #5B6873; --o2-mute: #8A96A0; --o2-bd: #E3E8EC; --o2-bg: #F4F6F8;
	--o2-ok: #1E8E5A; --o2-ok-bg: #E7F6EE; --o2-warn: #B5621A; --o2-warn-bg: #FFF1E3; --o2-danger: #C8372D; --o2-danger-bg: #FDECEA;
	--o2-radius: 10px; --o2-tabbar: 60px;
}
html.o-hbzc { --o2: #9774FF; --o2-dark: #8A63F5; --o2-ink: #5B3FC4; --o2-soft: #F1ECFF; --o2-line: #DCD0FF; }
html.o-dgtulian { --o2: #3F91B8; --o2-dark: #357FA4; --o2-ink: #24607E; --o2-soft: #E8F4FB; --o2-line: #C6DFEC; }

body.o2 { margin: 0; background: var(--o2-bg); color: var(--o2-text); font-size: 14px; line-height: 1.6;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	min-height: 100vh; display: flex; flex-direction: column; }
.o2 main { flex: 1 0 auto; }
.o2 a { color: var(--o2-dark); text-decoration: none; }
.o2 a:hover { color: var(--o2-ink); }
.o2 a:focus-visible, .o2 button:focus-visible, .o2 input:focus-visible, .o2 select:focus-visible { outline: 2px solid var(--o2); outline-offset: 2px; }
.o2 h1, .o2 h2, .o2 h3 { margin: 0; font-weight: 700; color: var(--o2-text); }
.o2 [hidden] { display: none !important; }
.o2-ico { flex: none; vertical-align: middle; }
.o2-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.o2-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.o2-skip:focus { left: 8px; }

/* 按钮 */
.o2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 8px;
	border: 1px solid var(--o2-dark); background: var(--o2-dark); color: #fff !important; font-size: 14px; font-weight: 600; cursor: pointer;
	white-space: nowrap; line-height: 1; transition: background .15s, border-color .15s; font-family: inherit; }
.o2-btn:hover { background: var(--o2-ink); border-color: var(--o2-ink); }
.o2-btn[disabled] { opacity: .6; cursor: default; }
.o2-btn-ghost { background: #fff; color: var(--o2-ink) !important; border-color: var(--o2-line); }
.o2-btn-ghost:hover { background: var(--o2-soft); border-color: var(--o2); }
.o2-btn-ghost.on { background: var(--o2-soft); border-color: var(--o2); }
.o2-btn-ghost.on .o2-ico { fill: currentColor; }
.o2-btn-light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.o2-btn-light:hover { background: rgba(255,255,255,.28); border-color: #fff; }
.o2-btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.o2-btn-block { width: 100%; min-height: 44px; font-size: 16px; }
.o2-link { background: none; border: 0; padding: 0; color: var(--o2-dark); cursor: pointer; font-size: 13px; font-family: inherit; }
.o2-link:hover { color: var(--o2-ink); text-decoration: underline; }

/* 顶部 */
.o2-header { background: var(--o2); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.o2-header-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.o2-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; min-width: 0; }
.o2-brand-mark { width: 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--o2-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.o2-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.o2-brand-text b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-brand-text small { font-size: 12px; opacity: .85; }
.o2-nav { display: flex; gap: 4px; flex: 1; }
.o2-nav a { color: #fff !important; padding: 0 14px; height: 36px; line-height: 36px; border-radius: 8px; opacity: .92; white-space: nowrap; }
.o2-nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.o2-nav a.on { background: rgba(255,255,255,.22); opacity: 1; font-weight: 600; }
.o2-user { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.o2-user a { color: #fff !important; }
.o2-user-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.o2-user-out { opacity: .85; font-size: 13px; }

/* 检索框 */
.o2-search { display: flex; align-items: stretch; background: #fff; border-radius: 10px; border: 1px solid var(--o2-line); overflow: hidden; box-shadow: 0 2px 8px rgba(15,40,60,.06); max-width: 760px; }
.o2-search-field { border: 0; border-right: 1px solid var(--o2-bd); background: var(--o2-soft); color: var(--o2-ink); padding: 0 10px; font-size: 14px; min-width: 96px; font-family: inherit; cursor: pointer; }
.o2-search input[type=search] { flex: 1; min-width: 0; border: 0; padding: 0 14px; height: 48px; font-size: 16px; outline: none; font-family: inherit; color: var(--o2-text); }
.o2-search-btn { border: 0; background: var(--o2-dark); color: #fff; padding: 0 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; }
.o2-search-btn:hover { background: var(--o2-ink); }

/* 首页 */
.o2-hero { background: linear-gradient(160deg, var(--o2) 0%, var(--o2-ink) 100%); color: #fff; padding: 48px 0 56px; }
.o2-hero-m { display: none; }
.o2-hero-t { color: #fff !important; font-size: 30px; margin-bottom: 20px !important; letter-spacing: .5px; }
.o2-hero .o2-search { border-color: transparent; box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.o2-hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; }
.o2-hero-links a { color: #fff !important; opacity: .92; }
.o2-hero-links a:hover { opacity: 1; text-decoration: underline; }
.o2-hero-stat { opacity: .85; }
.o2-home { margin-top: -28px; position: relative; display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; }
.o2-card { background: #fff; border: 1px solid var(--o2-bd); border-radius: var(--o2-radius); padding: 20px; box-sizing: border-box; }
.o2-h1 { font-size: 22px; }
.o2-h2 { font-size: 17px; }
.o2-h2 small { font-weight: 400; color: var(--o2-mute); font-size: 13px; }
.o2-h3 { font-size: 15px; margin: 24px 0 12px !important; }
.o2-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.o2-sec-h a { font-size: 13px; }
.o2-empty { color: var(--o2-mute); text-align: center; padding: 24px 0; margin: 0; }
.o2-empty-big { text-align: center; color: var(--o2-mute); padding: 56px 16px; }
.o2-empty-big p { font-size: 16px; color: var(--o2-sub); margin: 12px 0 4px; }
.o2-tip { color: var(--o2-mute); font-size: 13px; margin: 0; }
.o2-center { text-align: center; }

.o2-status { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--o2-bd); border-radius: var(--o2-radius); overflow: hidden; }
.o2-status a { display: flex; flex-direction: column; align-items: center; padding: 14px 4px; color: var(--o2-sub) !important; border-left: 1px solid var(--o2-bd); }
.o2-status a:first-child { border-left: 0; }
.o2-status a:hover { background: var(--o2-soft); }
.o2-status b { font-size: 24px; line-height: 1.2; color: var(--o2-ink); }
.o2-status span { font-size: 13px; }
.o2-status a.warn b { color: var(--o2-warn); }
.o2-status a.danger b { color: var(--o2-danger); }

.o2-login-tip { display: flex; align-items: center; gap: 14px; }
.o2-login-tip-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--o2-soft); color: var(--o2-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.o2-login-tip-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.o2-login-tip-t small { color: var(--o2-mute); font-size: 13px; }

.o2-services .o2-h2 { margin-bottom: 14px; }
.o2-svc-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.o2-svc-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: 10px; color: var(--o2-text) !important; font-size: 13px; text-align: center; }
.o2-svc-grid a:hover { background: var(--o2-soft); }
.o2-svc-grid a > span { width: 46px; height: 46px; border-radius: 12px; background: var(--o2-soft); color: var(--o2-ink); display: inline-flex; align-items: center; justify-content: center; }

.o2-home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.o2-home-cols > * { min-width: 0; }
.o2-shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 14px; }
.o2-shelf-item { display: flex; flex-direction: column; min-width: 0; color: var(--o2-text) !important; }
.o2-shelf-item:hover .o2-shelf-t { color: var(--o2-ink); }
.o2-shelf-t { font-size: 13px; font-weight: 600; margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o2-shelf-a { font-size: 12px; color: var(--o2-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-cover { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--o2-soft); border: 1px solid var(--o2-bd); box-sizing: border-box; }

.o2-rank { list-style: none; margin: 0; padding: 0; }
.o2-rank li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--o2-bd); }
.o2-rank li:first-child { border-top: 0; padding-top: 0; }
.o2-rank-n { width: 22px; height: 22px; border-radius: 6px; background: var(--o2-bg); color: var(--o2-sub); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.o2-rank-n.top { background: var(--o2); color: #fff; }
.o2-rank a { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--o2-text) !important; }
.o2-rank a:hover .o2-rank-t { color: var(--o2-ink); }
.o2-rank-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-rank-a { font-size: 12px; color: var(--o2-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-rank-c { font-size: 12px; color: var(--o2-mute); white-space: nowrap; }

/* 标签 */
.o2-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.o2-tag-ok { background: var(--o2-ok-bg); color: var(--o2-ok); }
.o2-tag-warn { background: var(--o2-warn-bg); color: var(--o2-warn); }
.o2-tag-danger { background: var(--o2-danger-bg); color: var(--o2-danger); }
.o2-tag-muted { background: var(--o2-bg); color: var(--o2-mute); }

/* 检索结果 */
.o2-subhead { background: #fff; border-bottom: 1px solid var(--o2-bd); padding: 16px 0; }
.o2-adv-sum { margin: 10px 0 0; font-size: 13px; color: var(--o2-sub); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.o2-adv-sum span { background: var(--o2-soft); color: var(--o2-ink); border-radius: 4px; padding: 0 6px; }
.o2-op { color: var(--o2-warn); font-weight: 600; }
.o2-results { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 32px; align-items: start; }
.o2-results > .o2-alert, .o2-results > .o2-empty-big { grid-column: 1 / -1; }
.o2-alert { background: var(--o2-danger-bg); color: var(--o2-danger); border-radius: 8px; padding: 12px 16px; }
.o2-facets { background: #fff; border: 1px solid var(--o2-bd); border-radius: var(--o2-radius); padding: 14px 16px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; box-sizing: border-box; }
.o2-facets-h { display: none; }
.o2-switch { display: flex; align-items: center; gap: 10px; color: var(--o2-text) !important; font-weight: 600; padding: 4px 0 12px; border-bottom: 1px solid var(--o2-bd); }
.o2-switch i { width: 34px; height: 20px; border-radius: 10px; background: #CBD3D9; position: relative; flex: none; transition: background .15s; }
.o2-switch i:after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.o2-switch.on i { background: var(--o2-dark); }
.o2-switch.on i:after { left: 16px; }
.o2-facet { padding: 12px 0 4px; border-bottom: 1px solid var(--o2-bd); }
.o2-facet:last-child { border-bottom: 0; }
.o2-facet h3 { font-size: 13px; color: var(--o2-sub); margin-bottom: 6px !important; }
.o2-facet ul { list-style: none; margin: 0; padding: 0; }
.o2-facet li a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--o2-text) !important; font-size: 13px; }
.o2-facet li a:hover .o2-facet-l { color: var(--o2-ink); }
.o2-chk { width: 14px; height: 14px; border: 1px solid #B7C1C9; border-radius: 3px; flex: none; position: relative; box-sizing: border-box; }
.o2-facet li a.on .o2-chk { background: var(--o2-dark); border-color: var(--o2-dark); }
.o2-facet li a.on .o2-chk:after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.o2-facet li a.on .o2-facet-l { font-weight: 600; color: var(--o2-ink); }
.o2-facet-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-facet-n { color: var(--o2-mute); font-size: 12px; }
.o2-facet .o2-more-item { display: none; }
.o2-facet.open .o2-more-item { display: list-item; }
.o2-facet .o2-link { margin: 2px 0 6px; }

.o2-list-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.o2-count { flex: 1; margin: 0; color: var(--o2-sub); }
.o2-count b { color: var(--o2-text); font-size: 16px; }
.o2-filter-btn { display: none; }
.o2-sort { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--o2-sub); white-space: nowrap; }
.o2-sort select { height: 34px; border: 1px solid var(--o2-bd); border-radius: 8px; padding: 0 8px; background: #fff; font-family: inherit; color: var(--o2-text); }
.o2-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.o2-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--o2-soft); color: var(--o2-ink) !important; border: 1px solid var(--o2-line); font-size: 13px; }
.o2-chip i { font-style: normal; font-size: 15px; opacity: .7; }
.o2-chip:hover { border-color: var(--o2); }
.o2-items { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--o2-bd); border-radius: var(--o2-radius); }
.o2-item { display: flex; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--o2-bd); }
.o2-item:first-child { border-top: 0; }
.o2-item-cover { width: 76px; flex: none; }
.o2-item-b { flex: 1; min-width: 0; }
.o2-item-t { font-size: 16px !important; line-height: 1.45; margin-bottom: 4px !important; }
.o2-item-t a { color: var(--o2-text) !important; }
.o2-item-t a:hover { color: var(--o2-ink) !important; text-decoration: underline; }
.o2-item-a { margin: 0; color: var(--o2-sub); }
.o2-item-p { margin: 0; color: var(--o2-mute); font-size: 13px; }
.o2-item-s { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--o2-sub); }
.o2-calino b { color: var(--o2-text); font-family: Consolas, Menlo, monospace; }
.o2-where { display: inline-flex; align-items: center; gap: 3px; }
.o2-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 4px; }
.o2-pager a, .o2-pager span { min-width: 36px; height: 36px; line-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--o2-bd); background: #fff; text-align: center; box-sizing: border-box; color: var(--o2-text) !important; }
.o2-pager a:hover { border-color: var(--o2); color: var(--o2-ink) !important; }
.o2-pager .o2-cur { background: var(--o2-dark); border-color: var(--o2-dark); color: #fff !important; font-weight: 600; }
.o2-pager .o2-disabled { color: var(--o2-mute) !important; }
.o2-pager .o2-gap { border: 0; background: none; min-width: 0; padding: 0 2px; }
.o2-mask { display: none; }

/* 书目详情 */
.o2-book { padding-top: 20px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.o2-back { font-size: 13px; }
.o2-book-head { display: flex; gap: 28px; }
.o2-book-cover { width: 180px; flex: none; }
.o2-book-info { flex: 1; min-width: 0; }
.o2-book-t { font-size: 22px !important; line-height: 1.4; }
.o2-book-a { color: var(--o2-sub); margin: 6px 0 0; font-size: 15px; }
.o2-book-s { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 12px 0 0; }
.o2-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 16px 0 0; font-size: 14px; }
.o2-meta dt { color: var(--o2-mute); font-weight: 400; }
.o2-meta dd { margin: 0; word-break: break-word; }
.o2-book-act { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.o2-tabs-card { padding: 0; }
.o2-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--o2-bd); padding: 0 12px; overflow-x: auto; }
.o2-tabs button { border: 0; background: none; padding: 14px 12px 12px; font-size: 15px; color: var(--o2-sub); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; }
.o2-tabs button.on { color: var(--o2-ink); border-bottom-color: var(--o2-dark); font-weight: 700; }
.o2-tabpane { padding: 16px 20px 20px; }
.o2-hold-sum { margin: 0 0 10px; color: var(--o2-sub); }
.o2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.o2-table th { text-align: left; font-weight: 600; color: var(--o2-sub); background: var(--o2-bg); padding: 9px 12px; white-space: nowrap; }
.o2-table td { padding: 10px 12px; border-top: 1px solid var(--o2-bd); vertical-align: middle; }
.o2-table tr:hover td { background: #FAFCFD; }
.o2-table .o2-num { text-align: right; }
.o2-sub { display: block; color: var(--o2-mute); font-size: 12px; }
.o2-abstract { margin: 0; line-height: 1.9; text-indent: 2em; }
.o2-marc { margin: 0; background: var(--o2-bg); border: 0; border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; font-family: Consolas, Menlo, "Courier New", monospace; color: var(--o2-text); max-height: 520px; overflow: auto; }

/* 新书 / 热门 */
.o2-lists, .o2-adv, .o2-my, .o2-login { padding-top: 24px; padding-bottom: 32px; }
.o2-page-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.o2-seg { display: inline-flex; background: #fff; border: 1px solid var(--o2-bd); border-radius: 9px; padding: 3px; }
.o2-seg a { padding: 0 14px; height: 32px; line-height: 32px; border-radius: 7px; color: var(--o2-sub) !important; white-space: nowrap; }
.o2-seg a.on { background: var(--o2-dark); color: #fff !important; font-weight: 600; }
.o2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.o2-gcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--o2-bd); border-radius: var(--o2-radius); padding: 12px; color: var(--o2-text) !important; min-width: 0; }
.o2-gcard:hover { border-color: var(--o2-line); box-shadow: 0 4px 14px rgba(15,40,60,.08); }
.o2-gcard-n { position: absolute; left: 6px; top: 6px; z-index: 1; min-width: 24px; height: 24px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.o2-gcard-n.top { background: var(--o2-dark); }
.o2-gcard-t { font-weight: 600; font-size: 14px; line-height: 1.4; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o2-gcard-a { font-size: 12px; color: var(--o2-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-gcard-s { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.o2-gcard-s small { color: var(--o2-mute); font-size: 12px; }

/* 高级检索 */
.o2-adv-form { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.o2-adv-row { display: flex; gap: 10px; align-items: center; }
.o2-adv-form select, .o2-adv-form input[type=text], .o2-adv-form input[type=number] { height: 40px; border: 1px solid var(--o2-bd); border-radius: 8px; padding: 0 10px; font-size: 14px; background: #fff; font-family: inherit; color: var(--o2-text); box-sizing: border-box; }
.o2-adv-form select:focus, .o2-adv-form input:focus { border-color: var(--o2); outline: none; box-shadow: 0 0 0 3px var(--o2-soft); }
.o2-adv-op { width: 84px; flex: none; }
.o2-adv-op-first { display: inline-flex; align-items: center; justify-content: center; height: 40px; color: var(--o2-sub); font-weight: 600; }
.o2-adv-f { width: 120px; flex: none; }
.o2-adv-q { flex: 1; min-width: 0; }
.o2-adv-more { flex-wrap: wrap; padding-top: 4px; }
.o2-adv-label { width: 84px; text-align: center; color: var(--o2-sub); font-weight: 600; }
.o2-adv-more input[type=number] { width: 120px; }
.o2-check { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 12px; font-weight: 400; cursor: pointer; }
.o2-adv-act { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--o2-bd); padding-top: 14px; }

.o2-clc .o2-tip { margin-bottom: 12px; }
.o2-clc-tree, .o2-clc-tree ul { list-style: none; margin: 0; padding: 0; }
.o2-clc-tree ul { padding-left: 26px; }
.o2-clc-tree li { position: relative; }
.o2-clc-tree li > a { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 6px; margin-left: 26px; color: var(--o2-text) !important; }
.o2-clc-tree li > a:hover { background: var(--o2-soft); }
.o2-clc-tree li > a b { color: var(--o2-ink); font-family: Consolas, Menlo, monospace; min-width: 28px; }
.o2-clc-tg { position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border: 0; background: none; cursor: pointer; border-radius: 4px; color: var(--o2-sub); padding: 0; }
.o2-clc-tg:before { content: ""; position: absolute; left: 8px; top: 7px; border: solid currentColor; border-width: 0 2px 2px 0; width: 7px; height: 7px; transform: rotate(-45deg); transition: transform .15s; }
.o2-clc-tg[aria-expanded=true]:before { transform: rotate(45deg); left: 8px; top: 6px; }
.o2-clc-tg:hover { background: var(--o2-soft); color: var(--o2-ink); }
.o2-clc-tg.leaf { visibility: hidden; }
.o2-clc-tree .o2-clc-msg { color: var(--o2-mute); font-size: 13px; padding: 4px 8px 4px 26px; }

/* 登录 */
.o2-login { display: flex; justify-content: center; }
.o2-login-card { width: 100%; max-width: 400px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.o2-login-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--o2-soft); color: var(--o2-ink); display: inline-flex; align-items: center; justify-content: center; }
.o2-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 600; font-size: 13px; color: var(--o2-sub); }
.o2-field input { height: 44px; border: 1px solid var(--o2-bd); border-radius: 8px; padding: 0 12px; font-size: 16px; font-weight: 400; color: var(--o2-text); font-family: inherit; }
.o2-field input:focus { border-color: var(--o2); outline: none; box-shadow: 0 0 0 3px var(--o2-soft); }
.o2-form-err { margin: 0; color: var(--o2-danger); background: var(--o2-danger-bg); border-radius: 6px; padding: 8px 12px; font-size: 13px; }

/* 我的图书馆 */
.o2-my { display: flex; flex-direction: column; gap: 16px; }
.o2-dzcard { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--o2) 0%, var(--o2-ink) 100%); border: 0; color: #fff; }
.o2-dz-av { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.6); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: none; }
.o2-dz-b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.o2-dz-b b { font-size: 18px; }
.o2-dz-b small { opacity: .85; }
.o2-dz-out { color: #fff !important; display: inline-flex; align-items: center; gap: 4px; opacity: .9; white-space: nowrap; }
.o2-my-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.o2-my-body > *, .o2-results > * { min-width: 0; }
.o2-my-nav { background: #fff; border: 1px solid var(--o2-bd); border-radius: var(--o2-radius); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.o2-my-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--o2-text) !important; }
.o2-my-nav a:hover { background: var(--o2-bg); }
.o2-my-nav a.on { background: var(--o2-soft); color: var(--o2-ink) !important; font-weight: 700; }
.o2-my-main .o2-h2 { margin-bottom: 14px; }
.o2-loans { list-style: none; margin: 0; padding: 0; }
.o2-loan { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--o2-bd); }
.o2-loan:first-child { border-top: 0; padding-top: 0; }
.o2-loan .o2-cover { width: 56px; flex: none; }
.o2-loan-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.o2-loan-t { font-weight: 700; color: var(--o2-text) !important; font-size: 15px; }
.o2-loan-t:hover { color: var(--o2-ink) !important; }
.o2-loan-a { color: var(--o2-mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-loan-d { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--o2-sub); }
.o2-loan-d small { color: var(--o2-mute); }
.o2-loan.over .o2-loan-d b { color: var(--o2-danger); }
.o2-loan.soon .o2-loan-d b { color: var(--o2-warn); }
.o2-profile { max-width: 520px; margin-top: 0; }
.o2-pwd { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.o2-pwd .o2-btn { align-self: flex-start; }

/* 页脚、手机标签栏 */
.o2-footer { text-align: center; color: var(--o2-mute); font-size: 12px; padding: 18px 0; border-top: 1px solid var(--o2-bd); background: #fff; }
.o2-footer a { color: var(--o2-sub); }
.o2-tabbar { display: none; }

/* 平板 */
@media (max-width: 1100px) {
	.o2-shelf { grid-template-columns: repeat(4, 1fr); }
	.o2-home-cols { grid-template-columns: minmax(0, 1fr) 300px; }
	.o2-svc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
	.o2-home-cols { grid-template-columns: minmax(0, 1fr); }
	.o2-shelf { grid-template-columns: repeat(6, 1fr); }
	.o2-nav a { padding: 0 10px; }
}

/* 手机 */
@media (max-width: 767px) {
	body.o2 { padding-bottom: calc(var(--o2-tabbar) + env(safe-area-inset-bottom)); }
	.o2-wrap { padding: 0 12px; }
	.o2-header-in { height: 52px; gap: 12px; }
	.o2-nav, .o2-user-out { display: none; }
	.o2-brand { flex: 1; }
	.o2-brand-mark { width: 32px; height: 32px; }
	.o2-brand-text b { font-size: 15px; }
	.o2-brand-text small { display: none; }
	.o2-user-name span { max-width: 6em; overflow: hidden; text-overflow: ellipsis; }
	.o2-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--o2-bd); height: var(--o2-tabbar); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(15,40,60,.05); }
	.o2-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--o2-mute) !important; font-size: 11px; }
	.o2-tabbar a[aria-current=page] { color: var(--o2-dark) !important; font-weight: 700; }
	.o2-footer { padding: 14px 0; }

	.o2-search-field { min-width: 0; width: 84px; font-size: 13px; padding: 0 4px; }
	.o2-search input[type=search] { height: 44px; padding: 0 10px; }
	.o2-search-btn { padding: 0 14px; }
	.o2-search-btn span { display: none; }

	/* 手机首页：参照读者门户 */
	.o2-page-home .o2-header { display: none; }
	.o2-hero { padding: 20px 0 44px; border-radius: 0 0 22px 22px; }
	.o2-hero-m { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
	.o2-hero-m > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
	.o2-hero-m b { font-size: 18px; }
	.o2-hero-m small { opacity: .85; font-size: 12px; }
	.o2-hero-t { display: none; }
	.o2-hero-links { display: none; }
	.o2-home { margin-top: -30px; gap: 12px; }
	.o2-card { padding: 16px; }
	.o2-status { box-shadow: 0 4px 14px rgba(15,40,60,.08); }
	.o2-status b { font-size: 22px; }
	.o2-status span { font-size: 12px; }
	.o2-svc-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
	.o2-svc-grid a { font-size: 12px; padding: 8px 0; }
	.o2-svc-grid a > span { width: 44px; height: 44px; }
	.o2-shelf { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; }
	.o2-shelf-item { flex: 0 0 31%; scroll-snap-align: start; }
	.o2-rank-c { display: none; }

	/* 结果：分面变为抽屉 */
	.o2-subhead { padding: 12px 0; }
	.o2-results { grid-template-columns: minmax(0, 1fr); padding-top: 12px; gap: 0; }
	.o2-filter-btn { display: inline-flex; }
	.o2-count { white-space: nowrap; font-size: 13px; }
	.o2-count b { font-size: 15px; }
	.o2-sort span { display: none; }
	.o2-sort select { max-width: 120px; }
	.o2-facets { position: fixed; top: 0; bottom: 0; left: auto; right: 0; width: 84%; max-width: 340px; max-height: none; border-radius: 0; z-index: 60; transform: translateX(105%); transition: transform .2s; padding: 0 16px 16px; }
	.o2-facets-h { display: flex; align-items: center; justify-content: space-between; height: 52px; position: sticky; top: 0; background: #fff; z-index: 1; border-bottom: 1px solid var(--o2-bd); margin-bottom: 8px; }
	.o2-facets-close { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--o2-sub); padding: 4px 8px; }
	.o2-facets-on .o2-facets { transform: none; box-shadow: -8px 0 24px rgba(0,0,0,.15); }
	.o2-facets-on .o2-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
	.o2-facet li a { padding: 7px 0; }
	.o2-item { padding: 14px 12px; gap: 12px; }
	.o2-item-cover { width: 64px; }
	.o2-item-t { font-size: 15px !important; }
	.o2-item-p { display: none; }

	/* 详情 */
	.o2-book { padding-top: 12px; gap: 12px; }
	.o2-book-head { flex-direction: column; align-items: center; gap: 16px; }
	.o2-book-cover { width: 140px; }
	.o2-book-info { width: 100%; }
	.o2-book-t { font-size: 19px !important; text-align: center; }
	.o2-book-a { text-align: center; }
	.o2-book-s { justify-content: center; }
	.o2-meta { grid-template-columns: 5.5em minmax(0, 1fr); gap: 4px 10px; font-size: 13px; }
	.o2-book-act { position: sticky; bottom: calc(var(--o2-tabbar) + env(safe-area-inset-bottom) + 8px); z-index: 5; }
	.o2-book-act .o2-btn { flex: 1; min-height: 46px; font-size: 15px; }
	.o2-tabpane { padding: 12px; }

	/* 表格变卡片 */
	.o2-table thead { display: none; }
	.o2-table, .o2-table tbody, .o2-table tr, .o2-table td { display: block; width: 100%; box-sizing: border-box; }
	.o2-table tr { border: 1px solid var(--o2-bd); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
	.o2-table td { border: 0; padding: 3px 0; display: flex; gap: 10px; text-align: left !important; }
	.o2-table td:before { content: attr(data-th); color: var(--o2-mute); width: 5.5em; flex: none; }
	.o2-table td > a, .o2-table td > span { min-width: 0; }

	.o2-lists, .o2-adv, .o2-my, .o2-login { padding-top: 14px; }
	.o2-h1 { font-size: 19px; }
	.o2-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.o2-adv-row { flex-wrap: wrap; gap: 8px; }
	.o2-adv-op, .o2-adv-op-first { width: 72px; }
	.o2-adv-f { flex: 1; width: auto; }
	.o2-adv-q { flex: 1 0 100%; }
	.o2-adv-label { width: auto; }
	.o2-adv-more input[type=number] { flex: 1; width: auto; min-width: 0; }
	.o2-check { margin: 4px 0 0; flex: 1 0 100%; }
	.o2-adv-act .o2-btn { flex: 1; }

	.o2-my { gap: 12px; }
	.o2-my-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.o2-my-nav { flex-direction: row; overflow-x: auto; padding: 4px; }
	.o2-my-nav a { flex: none; padding: 8px 12px; }
	.o2-my-nav .o2-ico { display: none; }
	.o2-dz-out span { display: none; }
	.o2-loan { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 6px 12px; }
	.o2-loan .o2-btn { grid-column: 2; justify-self: start; }
	.o2-login-card { padding: 24px 18px; }
}

/* 电子读者证、挂失 */
.o2-btn-danger { background: var(--o2-danger); border-color: var(--o2-danger); }
.o2-btn-danger:hover { background: #A82C23; border-color: #A82C23; }
.o2-ecard { position: relative; max-width: 340px; margin: 4px auto 12px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--o2-line); box-shadow: 0 8px 24px rgba(15,40,60,.10); text-align: center; padding-bottom: 14px; }
.o2-ecard-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: linear-gradient(135deg, var(--o2) 0%, var(--o2-ink) 100%); color: #fff; text-align: left; }
.o2-ecard-h .o2-brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.o2-ecard-h b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-ecard-tag { font-size: 12px; opacity: .9; white-space: nowrap; }
.o2-ecard-qr { width: 220px; height: 220px; margin: 16px auto 4px; }
.o2-ecard-qr svg { width: 100%; height: 100%; display: block; }
.o2-ecard-code { font-family: Consolas, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--o2-text); }
.o2-ecard-name { margin-top: 2px; font-weight: 600; display: flex; flex-direction: column; }
.o2-ecard-name small { font-weight: 400; color: var(--o2-mute); font-size: 12px; }
.o2-ecard-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 10px; border-radius: 12px; background: var(--o2-soft); color: var(--o2-ink); font-size: 12px; font-family: Consolas, Menlo, monospace; }
.o2-ecard-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--o2-ok); animation: o2-pulse 1.2s ease-in-out infinite; }
@keyframes o2-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.o2-ecard.invalid .o2-ecard-qr { filter: blur(4px); opacity: .4; }
.o2-ecard-mask { position: absolute; inset: 52px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.7); color: var(--o2-danger); }
.o2-ecard-mask b { font-size: 22px; border: 2px solid var(--o2-danger); border-radius: 8px; padding: 2px 14px; transform: rotate(-8deg); }
.o2-lose { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .o2-ecard-live i { animation: none; } }

/* 二期：横幅、公告、荐购、检索历史 */
.o2-svc-grid { grid-template-columns: repeat(6, 1fr); }
.o2-home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.o2-banner { position: relative; border-radius: var(--o2-radius); overflow: hidden; background: var(--o2-soft); aspect-ratio: 8 / 3; max-height: 360px; width: 100%; }
.o2-banner-track, .o2-banner-slide, .o2-banner-slide a { position: absolute; inset: 0; display: block; }
.o2-banner-slide { opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.o2-banner-slide.on { opacity: 1; visibility: visible; }
.o2-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o2-banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.o2-banner-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.35); cursor: pointer; transition: width .2s; }
.o2-banner-dots button.on { width: 20px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .o2-banner-slide { transition: none; } }

.o2-notice-list { list-style: none; margin: 0; padding: 0; }
.o2-notice-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--o2-bd); }
.o2-notice-list li:first-child { border-top: 0; padding-top: 0; }
.o2-notice-list a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--o2-text) !important; }
.o2-notice-list a:hover .o2-notice-t { color: var(--o2-ink); text-decoration: underline; }
.o2-notice-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-notice-list time { color: var(--o2-mute); font-size: 12px; white-space: nowrap; }
.o2-notice-list-lg li { padding: 12px 0; font-size: 15px; }
.o2-notice { max-width: 860px; margin-top: 10px; }
.o2-notice .o2-h1 { line-height: 1.45; margin-bottom: 6px !important; }
.o2-notice-body { margin-top: 18px; line-height: 1.9; font-size: 15px; word-break: break-word; }

.o2-rec-form { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.o2-rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.o2-rec-wide { grid-column: 1 / -1; }
.o2-field textarea { border: 1px solid var(--o2-bd); border-radius: 8px; padding: 8px 12px; font-size: 15px; font-weight: 400; color: var(--o2-text); font-family: inherit; resize: vertical; }
.o2-field textarea:focus { border-color: var(--o2); outline: none; box-shadow: 0 0 0 3px var(--o2-soft); }
.o2-req { color: var(--o2-danger); font-style: normal; }
.o2-rec-form > .o2-btn { align-self: flex-start; }
.o2-rec-hold { background: var(--o2-warn-bg); border-radius: 8px; padding: 10px 14px; color: var(--o2-text); }
.o2-rec-hold ul { margin: 6px 0; padding-left: 18px; }
.o2-rec-hold small { color: var(--o2-mute); }
.o2-rec-st { flex: none; align-self: flex-start; min-width: 56px; text-align: center; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--o2-bg); color: var(--o2-sub); }
.o2-rec-st.st0 { background: var(--o2-warn-bg); color: var(--o2-warn); }
.o2-rec-st.st1 { background: var(--o2-soft); color: var(--o2-ink); }
.o2-rec-st.st3 { background: var(--o2-ok-bg); color: var(--o2-ok); }
.o2-rec-reply { font-size: 13px; color: var(--o2-ink); background: var(--o2-soft); border-radius: 6px; padding: 4px 8px; margin-top: 4px; align-self: flex-start; }
.o2-rec-cta { margin-top: 16px; }

.o2-sl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.o2-sl { list-style: none; margin: 0; padding: 0; }
.o2-sl li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--o2-bd); }
.o2-sl li:first-child { border-top: 0; }
.o2-sl a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--o2-text) !important; }
.o2-sl a .o2-ico { color: var(--o2-mute); }
.o2-sl a:hover .o2-sl-t { color: var(--o2-ink); text-decoration: underline; }
.o2-sl-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-sl-n, .o2-sl time { color: var(--o2-mute); font-size: 12px; white-space: nowrap; }
.o2-sl-del { border: 0; background: none; color: var(--o2-mute); padding: 4px; border-radius: 6px; cursor: pointer; line-height: 0; }
.o2-sl-del:hover { color: var(--o2-danger); background: var(--o2-danger-bg); }

@media (max-width: 1100px) {
	.o2-svc-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767px) {
	.o2-svc-grid { grid-template-columns: repeat(4, 1fr); }
	.o2-banner { border-radius: 12px; }
	.o2-home-side { gap: 12px; }
	.o2-rec-grid { grid-template-columns: minmax(0, 1fr); }
	.o2-sl time { display: none; }
	.o2-recs .o2-loan { grid-template-columns: 56px minmax(0, 1fr); }
}

/* 分类浏览：左侧类目树 + 右侧结果(只刷新右侧) */
.o2-clc-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.o2-clc-wrap > * { min-width: 0; }
.o2-clc-wrap .o2-clc { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.o2-clc-tree li > a.on { background: var(--o2-dark); color: #fff !important; }
.o2-clc-tree li > a.on b { color: #fff; }
.o2-clc-tree li > a span { min-width: 0; }
.o2-clc-res { position: relative; }
.o2-clc-res.loading .o2-clc-res-body { opacity: .45; pointer-events: none; transition: opacity .15s; }
.o2-clc-res .o2-empty-big { background: #fff; border: 1px solid var(--o2-bd); border-radius: var(--o2-radius); }
.o2-clc-res-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.o2-clc-res-t { flex: 1 1 100%; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.o2-clc-res-t b { font-size: 20px; color: var(--o2-ink); font-family: Consolas, Menlo, monospace; }
.o2-clc-res-t span { font-size: 17px; font-weight: 700; color: var(--o2-text); }
.o2-clc-res-h .o2-count { flex: 0 1 auto; }
.o2-clc-res-h .o2-switch { border: 0; background: none; padding: 0; border-bottom: 0; font-family: inherit; font-size: 14px; cursor: pointer; }
.o2-clc-open { display: none; }

@media (max-width: 900px) {
	.o2-clc-wrap { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.o2-clc-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.o2-clc-open { display: inline-flex; margin-bottom: 12px; }
	.o2-clc-wrap .o2-clc { position: fixed; top: 0; bottom: 0; left: 0; width: 86%; max-width: 360px; max-height: none; border-radius: 0; z-index: 60; transform: translateX(-105%); transition: transform .2s; padding: 0 12px 16px; }
	.o2-clc-wrap .o2-clc .o2-tip { margin: 8px 0; }
	.o2-clc-on .o2-clc-wrap .o2-clc { transform: none; box-shadow: 8px 0 24px rgba(0,0,0,.15); }
	.o2-clc-on .o2-clc-wrap .o2-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
	.o2-clc-res-t b { font-size: 17px; }
	.o2-clc-res-t span { font-size: 15px; }
}

/* 结果条目充实：角标、简介、主题词、馆藏展开 */
.o2-item-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.o2-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.o2-badge-new { background: var(--o2-ok-bg); color: #17734A; }
.o2-badge-hot { background: var(--o2-danger-bg); color: #B3261E; }
.o2-item-abs { margin: 6px 0 0; color: var(--o2-sub); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o2-item-subj { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.o2-item-subj a { font-size: 12px; padding: 1px 10px; border-radius: 12px; background: var(--o2-soft); color: var(--o2-ink) !important; }
.o2-item-subj a:hover { background: var(--o2-line); }
.o2-lendn { color: var(--o2-mute); }
.o2-item-act { flex: none; display: flex; flex-direction: column; gap: 8px; }
.o2-item-act i { font-style: normal; font-size: 11px; }
.o2-item-copies { margin-top: 10px; font-size: 13px; color: var(--o2-sub); }
.o2-copies { font-size: 13px; }
.o2-copies th, .o2-copies td { padding: 7px 10px; }

/* 分类概况 */
.o2-clc-sum { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.o2-clc-sum .o2-clc-res-t { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.o2-clc-sum h2 { font-size: 21px; display: flex; gap: 10px; align-items: baseline; }
.o2-clc-sum h2 b { color: var(--o2-ink); font-family: Consolas, Menlo, monospace; }
.o2-clc-sum .o2-clc-res-t a { font-size: 13px; }
.o2-clc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.o2-clc-stat { background: var(--o2-soft); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; }
.o2-clc-stat b { font-size: 22px; line-height: 1.3; color: var(--o2-ink); }
.o2-clc-stat span { font-size: 13px; color: var(--o2-sub); }
.o2-clc-stat.ok { background: var(--o2-ok-bg); }
.o2-clc-stat.ok b { color: #17734A; }
.o2-clc-stat.new { background: var(--o2-warn-bg); }
.o2-clc-stat.new b { color: #9A4D10; }
.o2-clc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.o2-clc-bar .o2-count { flex: 1 1 auto; }
.o2-clc-bar .o2-switch { border: 0; background: none; padding: 0; font-family: inherit; font-size: 14px; cursor: pointer; }
.o2-viewsw { display: inline-flex; border: 1px solid var(--o2-bd); border-radius: 8px; overflow: hidden; background: #fff; }
.o2-viewsw button { width: 40px; height: 34px; border: 0; background: #fff; color: var(--o2-sub); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.o2-viewsw button[aria-pressed=true] { background: var(--o2-dark); color: #fff; }
.o2-grid-res { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.o2-gcard-badge { position: absolute; left: 6px; top: 6px; z-index: 1; }

@media (max-width: 767px) {
	.o2-item { flex-wrap: wrap; }
	.o2-item-b { flex: 1 1 calc(100% - 76px); }
	.o2-item-act { flex-direction: row; width: 100%; padding-left: 76px; box-sizing: border-box; }
	.o2-item-abs { font-size: 12px; }
	.o2-clc-sum { padding: 14px; gap: 10px; }
	.o2-clc-sum h2 { font-size: 18px; }
	.o2-clc-stats { gap: 8px; }
	.o2-clc-stat { padding: 6px 8px; text-align: center; }
	.o2-clc-stat b { font-size: 17px; }
	.o2-clc-stat span { font-size: 11px; }
	.o2-clc-bar { gap: 8px 12px; }
	.o2-clc-bar .o2-count { flex-basis: 100%; }
	.o2-grid-res { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 书目详情(改版)：主栏 + 侧栏 */
.o2-book { display: block; }
.o2-book .o2-back { display: inline-block; margin-bottom: 10px; }
.o2-book-cols { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.o2-book-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.o2-book-side { flex: 1 1 300px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.o2-book-head { display: block; padding: 20px 24px; }
.o2-book-title { display: flex; align-items: flex-start; gap: 12px; }
.o2-book-title .o2-book-t { flex: 1; min-width: 0; font-size: 22px !important; line-height: 1.45; text-align: left; }
.o2-type { display: inline-block; font-size: 13px; font-weight: 700; color: var(--o2-ink); background: var(--o2-soft); border-radius: 4px; padding: 1px 8px; margin-right: 10px; vertical-align: 3px; }
.o2-book-tools { display: flex; gap: 6px; flex: none; }
.o2-icon-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--o2-bd); background: #fff; color: var(--o2-sub); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.o2-icon-btn:hover { border-color: var(--o2); color: var(--o2-ink); }
.o2-icon-btn.on { border-color: var(--o2-dark); background: var(--o2-soft); color: var(--o2-ink); }
.o2-icon-btn[data-o2=collect].on .o2-ico { fill: currentColor; }
.o2-pop { margin-top: 12px; border: 1px solid var(--o2-line); background: var(--o2-soft); border-radius: 8px; padding: 12px 14px; }
.o2-pop-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.o2-cite { margin: 8px 0 0; font-family: "Songti SC", SimSun, serif; font-size: 15px; word-break: break-word; user-select: all; }
.o2-qr-pop { display: flex; align-items: center; gap: 14px; }
.o2-qr { width: 132px; height: 132px; flex: none; background: #fff; }
.o2-qr svg { width: 100%; height: 100%; display: block; }
.o2-book-head .o2-tabs { padding: 0; margin-top: 14px; }
.o2-book-head .o2-tabpane { padding: 16px 0 0; }
.o2-book-info { display: flex; gap: 28px; }
.o2-book-info .o2-meta { flex: 1; min-width: 0; margin: 0; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 14px; }
.o2-meta-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.o2-book-info .o2-book-cover { width: 150px; flex: none; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.o2-book-abs { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--o2-bd); }
.o2-book-abs p { margin: 6px 0 0; line-height: 1.9; color: #3A4654; }
.o2-net p { margin: 0 0 10px; line-height: 1.9; color: #3A4654; text-indent: 2em; }
.o2-net p.o2-tip { text-indent: 0; margin-bottom: 8px; }

.o2-hold-card { padding: 18px 24px 20px; }
.o2-hold-h { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.o2-hold-h .o2-h2 { flex: 1; }
.o2-hold-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.o2-hold-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--o2-sub); }
.o2-hold-tools select, .o2-hold-find input { height: 32px; border: 1px solid var(--o2-bd); border-radius: 6px; padding: 0 8px; background: #fff; font: inherit; font-size: 13px; color: var(--o2-text); }
.o2-hold-find input { width: 130px; }
.o2-table-wrap { overflow-x: auto; }
.o2-hold { min-width: 620px; font-size: 13px; }
.o2-hold-no { color: var(--o2-mute); }
.o2-hold-pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.o2-hold-pager:empty { display: none; }
.o2-hold-pager .o2-pager { margin: 0; }
.o2-pager button { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--o2-bd); background: #fff; color: var(--o2-text); font: inherit; font-size: 13px; cursor: pointer; }
.o2-pager button:hover:not([disabled]) { border-color: var(--o2); color: var(--o2-ink); }
.o2-pager button.o2-cur { background: var(--o2-dark); border-color: var(--o2-dark); color: #fff; font-weight: 700; }
.o2-pager button[disabled] { color: var(--o2-mute); cursor: default; }

.o2-side-card { padding: 16px 18px; }
.o2-side-card .o2-h2 { font-size: 15px; margin-bottom: 10px; }
.o2-side-card .o2-sec-h { margin-bottom: 6px; }
.o2-side-card .o2-sec-h .o2-h2 { margin-bottom: 0; }
.o2-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.o2-res a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--o2-bd); border-radius: 8px; color: var(--o2-text) !important; font-size: 13px; }
.o2-res a:hover { border-color: var(--o2); background: var(--o2-soft); text-decoration: none; }
.o2-res-mark { width: 24px; height: 24px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #37474F; }
.o2-res-douban .o2-res-mark { background: #2E7D32; }
.o2-res-dangdang .o2-res-mark { background: #C62828; }
.o2-res-jd .o2-res-mark { background: #B71C1C; }
.o2-chart { width: 100%; height: auto; display: block; }
.o2-dist { display: flex; align-items: center; gap: 16px; }
.o2-dist svg { flex: none; }
.o2-dist-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.o2-dist-legend li { display: flex; align-items: center; gap: 8px; }
.o2-dist-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.o2-dist-legend span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-dist-legend small { color: var(--o2-mute); width: 36px; text-align: right; }
.o2-related { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.o2-related a { display: flex; gap: 10px; color: var(--o2-text) !important; }
.o2-related a:hover b { text-decoration: underline; }
.o2-related .o2-cover { width: 48px; flex: none; }
.o2-related span { display: flex; flex-direction: column; min-width: 0; }
.o2-related b { color: var(--o2-ink); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o2-related small { font-size: 12px; color: var(--o2-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 767px) {
	.o2-book-head { padding: 16px; }
	.o2-book-title { flex-direction: column; }
	.o2-book-title .o2-book-t { font-size: 19px !important; text-align: left; }
	.o2-book-tools { width: 100%; }
	.o2-book-tools .o2-icon-btn { flex: 1; height: 42px; }
	.o2-book-info { flex-direction: column-reverse; gap: 14px; }
	.o2-book-info .o2-book-cover { width: 100%; }
	.o2-book-info .o2-book-cover .o2-cover { width: 130px; }
	.o2-book-info .o2-meta { grid-template-columns: 5.5em minmax(0, 1fr); font-size: 13px; }
	.o2-book-side { max-width: none; flex-basis: 100%; }
	.o2-hold-card { padding: 14px; }
	.o2-hold { min-width: 0; }
	.o2-hold-find input { width: 110px; }
	.o2-hold-pager { justify-content: center; }
	.o2-qr-pop { flex-direction: column; text-align: center; }
}

/* 宽屏：内容区最宽 1600px(1920 等宽屏两侧留白约 160px)；新书通报默认 6 列 2 行，宽屏 8 列 2 行 */
.o2-wrap { max-width: 1600px; padding: 0 24px; }
.o2-shelf-item:nth-child(n+13) { display: none; }
@media (min-width: 1440px) {
	.o2-shelf { grid-template-columns: repeat(8, 1fr); }
	.o2-shelf-item:nth-child(n+13) { display: flex; }
	.o2-home-cols { grid-template-columns: minmax(0, 1fr) 400px; }
	.o2-search { max-width: 900px; }
	.o2-hero-t { font-size: 34px; }
	.o2-results { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
	.o2-clc-wrap { grid-template-columns: 360px minmax(0, 1fr); gap: 24px; }
	.o2-my-body { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
	.o2-book-cols { gap: 24px; }
	.o2-book-side { max-width: 400px; flex-basis: 400px; }
	.o2-item-cover { width: 84px; }
	.o2-grid-res, .o2-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 767px) {
	.o2-wrap { padding: 0 12px; }
	.o2-shelf-item:nth-child(n+13) { display: flex; }
}

/* 高级检索：左表单 + 右侧说明/最近检索/更多入口 */
.o2-adv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.o2-adv-wrap > * { min-width: 0; }
.o2-adv-wrap .o2-adv-form { max-width: none; padding: 24px 28px; gap: 14px; }
.o2-adv-wrap .o2-adv-f { width: 150px; }
.o2-adv-wrap .o2-adv-form select, .o2-adv-wrap .o2-adv-form input[type=text], .o2-adv-wrap .o2-adv-form input[type=number] { height: 44px; font-size: 15px; }
.o2-adv-wrap .o2-adv-op, .o2-adv-wrap .o2-adv-label { width: 92px; }
.o2-adv-wrap .o2-adv-op-first { height: 44px; }
.o2-adv-wrap .o2-adv-more input[type=number] { width: 140px; }
.o2-adv-wrap .o2-adv-act { padding-top: 16px; }
.o2-adv-wrap .o2-adv-act .o2-btn { min-height: 42px; padding: 0 22px; }
.o2-adv-side { display: flex; flex-direction: column; gap: 16px; }
.o2-adv-help { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.o2-adv-help dt { font-weight: 700; color: var(--o2-ink); margin-top: 6px; }
.o2-adv-help dt:first-child { margin-top: 0; }
.o2-adv-help dd { margin: 0; color: var(--o2-sub); line-height: 1.7; }
.o2-adv-ops { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--o2-bd); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.o2-adv-ops li { display: flex; gap: 10px; align-items: baseline; }
.o2-adv-ops b { flex: none; min-width: 40px; text-align: center; padding: 0 6px; border-radius: 4px; background: var(--o2-soft); color: var(--o2-ink); font-size: 12px; }
.o2-adv-ops span { color: var(--o2-sub); }
.o2-sl-mini li { padding: 8px 0; gap: 8px; }
.o2-sl-mini .o2-sl-t { font-size: 13px; }
.o2-adv-links { display: flex; flex-direction: column; gap: 6px; }
.o2-adv-links a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: var(--o2-bg); color: var(--o2-text) !important; }
.o2-adv-links a:hover { background: var(--o2-soft); color: var(--o2-ink) !important; text-decoration: none; }
.o2-adv-links .o2-ico { color: var(--o2-ink); }
@media (min-width: 1440px) {
	.o2-adv-wrap { grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; }
}
@media (max-width: 1100px) {
	.o2-adv-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 767px) {
	.o2-adv-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.o2-adv-wrap .o2-adv-form { padding: 16px; }
	.o2-adv-wrap .o2-adv-f { width: auto; }
	.o2-adv-wrap .o2-adv-op, .o2-adv-wrap .o2-adv-op-first { width: 72px; }
	.o2-adv-wrap .o2-adv-label { width: auto; }
	.o2-adv-wrap .o2-adv-more input[type=number] { width: auto; }
	.o2-adv-side { gap: 12px; }
}

/* 书目页扫码：悬浮在按钮下方，不占版面 */
.o2-qr-anchor { position: relative; display: inline-flex; }
.o2-qr-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 25; width: 172px; box-sizing: border-box; padding: 12px 12px 10px; background: #fff; border: 1px solid var(--o2-bd); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 40, 60, .18); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 0; }
.o2-qr-pop[hidden] { display: none; }
.o2-qr-pop::before { content: ""; position: absolute; top: -7px; right: 13px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--o2-bd); border-top: 1px solid var(--o2-bd); transform: rotate(45deg); }
.o2-qr-pop .o2-qr { width: 148px; height: 148px; display: block; }
.o2-qr-pop .o2-tip { font-size: 12px; line-height: 1.4; }
@media (max-width: 767px) {
	.o2-qr-anchor { flex: 1; }
	.o2-qr-anchor .o2-icon-btn { flex: 1; width: 100%; }
	.o2-qr-pop { flex-direction: column; }
}

/* 结果列表的收藏爱心 */
.o2-item-act { align-items: flex-end; }
.o2-fav { width: 34px; height: 34px; }
.o2-fav:hover { color: #D6336C; border-color: #F3B5C9; }
.o2-fav.on { color: #D6336C; border-color: #F3B5C9; background: #FFF0F5; }
.o2-fav.on .o2-ico { fill: currentColor; }
@media (max-width: 767px) {
	.o2-item-act { align-items: center; }
	.o2-item-act .o2-fav { margin-left: auto; }
}

/* 高级检索：右侧只留检索说明，与左侧表单等高 */
.o2-adv-wrap { align-items: stretch; }
.o2-adv-side > .o2-side-card { flex: 1; display: flex; flex-direction: column; }
.o2-adv-side .o2-adv-ops { margin-top: auto; }
.o2-adv-side .o2-adv-help { margin-bottom: 12px; }

/* 切换语种 */
.o2-lang { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.o2-lang:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.o2-hero-m .o2-lang { display: none; }
@media (max-width: 767px) {
	.o2-user .o2-lang span { display: none; }
	.o2-user .o2-lang { width: 34px; padding: 0; justify-content: center; }
	.o2-hero-m { position: relative; }
	.o2-hero-m .o2-lang { display: inline-flex; margin-left: auto; height: 30px; }
}

/* 读者登录：弹窗 + 登录页共用的卡片 */
body.o2-modal-on { overflow: hidden; }
.o2-lmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.o2-lmodal[hidden] { display: none; }
.o2-lmodal-mask { position: absolute; inset: 0; background: rgba(12, 22, 36, .48); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: o2-fade .18s ease-out; }
.o2-lmodal-box { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(12, 22, 36, .28); animation: o2-pop .2s ease-out; }
.o2-lmodal-x { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--o2-bg); color: var(--o2-sub); font-size: 22px; line-height: 1; cursor: pointer; }
.o2-lmodal-x:hover { background: var(--o2-soft); color: var(--o2-ink); }
@keyframes o2-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes o2-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o2-lmodal-mask, .o2-lmodal-box { animation: none; } }

.o2-lbox { display: flex; flex-direction: column; padding: 36px 36px 24px; position: relative; overflow: hidden; }
.o2-lbox::before { content: ""; position: absolute; top: -90px; right: -90px; width: 220px; height: 220px; border-radius: 50%; background: var(--o2-soft); z-index: 0; }
.o2-lbox > * { position: relative; z-index: 1; }
.o2-lbox-logo { width: 64px; height: 64px; border-radius: 50%; padding: 4px; box-sizing: border-box; background: linear-gradient(135deg, var(--o2) 0%, var(--o2-ink) 100%); box-shadow: 0 8px 22px rgba(15, 40, 60, .18); }
.o2-lbox-logo span { width: 100%; height: 100%; border-radius: 50%; background: #fff; color: var(--o2-ink); display: flex; align-items: center; justify-content: center; }
.o2-lbox-t { margin: 20px 0 2px !important; font-size: 28px; font-weight: 800; color: var(--o2-ink) !important; letter-spacing: 1px; }
.o2-lbox-sub { margin: 0 0 22px; color: var(--o2-sub); font-size: 14px; }
.o2-lbox-field { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--o2-sub); }
.o2-lbox-input { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; margin-bottom: 14px; border-radius: 10px; background: #F1F5F9; border: 1.5px solid transparent; box-sizing: border-box; transition: border-color .15s, background .15s, box-shadow .15s; }
.o2-lbox-input .o2-ico { color: var(--o2-mute); flex: none; }
.o2-lbox-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--o2-text); }
.o2-lbox-input:focus-within { background: #fff; border-color: var(--o2); box-shadow: 0 0 0 4px var(--o2-soft); }
.o2-lbox-input:focus-within .o2-ico { color: var(--o2-ink); }
.o2-lbox-eye { border: 0; background: none; padding: 4px; color: var(--o2-mute); cursor: pointer; display: inline-flex; border-radius: 6px; }
.o2-lbox-eye:hover { color: var(--o2-ink); }
.o2-lbox-vc { display: flex; gap: 10px; align-items: stretch; }
.o2-lbox-vc .o2-lbox-input { flex: 1; min-width: 0; margin-bottom: 0; }
.o2-lbox-vcimg { flex: none; width: 120px; height: 48px; padding: 0; border: 1.5px solid var(--o2-bd); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.o2-lbox-vcimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o2-lbox-vcimg:hover { border-color: var(--o2); }
.o2-lbox-refresh { align-self: flex-end; margin: 6px 0 4px; border: 0; background: none; padding: 0; color: var(--o2-dark); font: inherit; font-size: 13px; cursor: pointer; }
.o2-lbox-refresh:hover { color: var(--o2-ink); text-decoration: underline; }
.o2-lbox .o2-form-err { margin: 6px 0 0; }
.o2-lbox-btn { margin: 18px auto 0; width: 100%; height: 50px; border: 0; border-radius: 25px; background: linear-gradient(120deg, var(--o2) 0%, var(--o2-ink) 100%); color: #fff; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: 2px; cursor: pointer; box-shadow: 0 10px 24px rgba(15, 40, 60, .22); transition: transform .12s, box-shadow .12s, filter .12s; }
.o2-lbox-btn:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(15, 40, 60, .28); }
.o2-lbox-btn:active { transform: translateY(1px); }
.o2-lbox-btn[disabled] { opacity: .75; cursor: default; }
.o2-lbox-help { margin: 16px 0 0; text-align: center; color: var(--o2-mute); font-size: 13px; }
.o2-lbox-foot { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--o2-dark); opacity: .85; }

/* 登录页：同一张卡片居中 */
.o2-login { display: flex; justify-content: center; padding-top: 32px; padding-bottom: 48px; }
.o2-lbox-page { width: 100%; max-width: 420px; border-radius: 22px; background: #fff; border: 1px solid var(--o2-bd); box-shadow: 0 18px 48px rgba(15, 40, 60, .12); overflow: hidden; }

@media (max-width: 767px) {
	.o2-lmodal { align-items: flex-end; padding: 0; }
	.o2-lmodal-box { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); animation-name: o2-sheet; }
	@keyframes o2-sheet { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
	.o2-lbox { padding: 28px 20px 20px; }
	.o2-lbox-t { font-size: 24px; margin-top: 14px !important; }
	.o2-lbox-logo { width: 56px; height: 56px; }
	.o2-login { padding-top: 16px; }
	.o2-lbox-page { border-radius: 18px; }
}

/* 列表展开的馆藏：每页 5 册 */
.o2-copies-pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.o2-copies-pager .o2-pager { margin: 0; gap: 4px; }
.o2-copies-pager .o2-pager button { min-width: 30px; height: 30px; padding: 0 8px; font-size: 12px; }
@media (max-width: 767px) {
	.o2-copies-pager { justify-content: center; }
}

/* 登录卡片：焦点框只画在外层输入框上，内部 input 不再另画一圈 */
.o2 .o2-lbox-input input,
.o2 .o2-lbox-input input:focus,
.o2 .o2-lbox-input input:focus-visible { outline: none; box-shadow: none; border: 0; padding: 0; margin: 0; }

/* 右上角装饰圆改用背景绘制：不再超出卡片，聚焦输入框时卡片不会横向滚动 */
.o2-lbox { overflow: visible; background: radial-gradient(circle at 100% 0, var(--o2-soft) 0, var(--o2-soft) 130px, transparent 131px); }
.o2-lbox::before { display: none; }

/* 手机端抽屉菜单(桌面不显示) */
.o2-menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.o2-menu-btn:hover { background: rgba(255, 255, 255, .24); }
.o2-drawer[hidden] { display: none; }
.o2-drawer { position: fixed; inset: 0; z-index: 150; }
.o2-drawer-mask { position: absolute; inset: 0; background: rgba(12, 22, 36, .45); animation: o2-fade .18s ease-out; }
.o2-drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 82%; max-width: 320px; background: #fff; display: flex; flex-direction: column; overflow-y: auto; box-shadow: 8px 0 28px rgba(12, 22, 36, .2); animation: o2-drawer-in .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
@keyframes o2-drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .o2-drawer-panel, .o2-drawer-mask { animation: none; } }
body.o2-drawer-on { overflow: hidden; }
.o2-drawer-h { display: flex; align-items: center; gap: 10px; padding: 16px 12px 14px 16px; border-bottom: 1px solid var(--o2-bd); }
.o2-drawer-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--o2) 0%, var(--o2-ink) 100%); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.o2-drawer-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.o2-drawer-who b { font-size: 16px; color: var(--o2-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-drawer-who small { font-size: 12px; color: var(--o2-mute); }
.o2-drawer-x { width: 40px; height: 40px; border: 0; background: none; color: var(--o2-sub); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.o2-drawer-x:hover { background: var(--o2-bg); }
.o2-drawer-login { margin: 14px 16px 0; min-height: 44px; }
.o2-drawer-list, .o2-drawer-sub { list-style: none; margin: 0; padding: 0; }
.o2-drawer-list { padding: 10px 10px 4px; }
.o2-drawer-list a, .o2-drawer-gh, .o2-drawer-sub a, .o2-drawer-act { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; color: var(--o2-text) !important; font-size: 15px; background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
.o2-drawer-list a .o2-ico, .o2-drawer-gh .o2-ico, .o2-drawer-sub a .o2-ico, .o2-drawer-act .o2-ico { color: var(--o2-sub); flex: none; }
.o2-drawer-list a:hover, .o2-drawer-gh:hover, .o2-drawer-sub a:hover, .o2-drawer-act:hover { background: var(--o2-bg); text-decoration: none; }
.o2-drawer-list a.on, .o2-drawer-sub a.on { background: var(--o2-dark); color: #fff !important; font-weight: 700; }
.o2-drawer-list a.on .o2-ico, .o2-drawer-sub a.on .o2-ico { color: #fff; }
.o2-drawer-sec { margin: 8px 24px 4px; padding-top: 12px; border-top: 1px solid var(--o2-bd); font-size: 12px; font-weight: 700; color: var(--o2-mute); letter-spacing: 1px; }
.o2-drawer-grp { padding: 0 10px; }
.o2-drawer-gh span { flex: 1; }
.o2-drawer-gh i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--o2-sub); transition: transform .15s; }
.o2-drawer-grp.open .o2-drawer-gh { color: var(--o2-ink) !important; font-weight: 700; }
.o2-drawer-grp.open .o2-drawer-gh i { transform: rotate(180deg); }
.o2-drawer-sub { padding: 2px 0 6px 18px; }
.o2-drawer-sub a { min-height: 42px; font-size: 14px; }
.o2-drawer-foot { margin-top: auto; padding: 12px 10px 18px; border-top: 1px solid var(--o2-bd); }
.o2-drawer-copy { margin: 10px 14px 0; font-size: 12px; color: var(--o2-mute); }

@media (max-width: 767px) {
	.o2-menu-btn { display: inline-flex; }
	.o2-user .o2-lang, .o2-user .o2-user-name { display: none; }
	.o2-user { gap: 8px; }
	.o2-header .o2-btn-light { min-height: 36px; padding: 0 12px; }
	.o2-hero-m .o2-hero-menu { margin-left: auto; }
	/* 我的图书馆：横向滚动的页签由抽屉菜单代替 */
	.o2-my-nav { display: none; }
}

/* 结果条目右侧：第一行 收藏/引用/复制链接，第二行 馆藏 + 可借 */
.o2-item-act { flex-direction: column; align-items: flex-end; gap: 12px; min-width: 150px; }
.o2-item-tools { display: flex; gap: 6px; }
.o2-item-tools .o2-icon-btn { width: 34px; height: 34px; }
.o2-item-tools .o2-icon-btn.on:not(.o2-fav) { border-color: var(--o2-dark); background: var(--o2-soft); color: var(--o2-ink); }
.o2-item-hold { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.o2-cite-pop { position: absolute; z-index: 60; width: 340px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 12px 14px; background: #fff; border: 1px solid var(--o2-bd); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 40, 60, .18); }
.o2-cite-pop .o2-cite { margin: 8px 0 0; font-size: 14px; }
@media (max-width: 767px) {
	.o2-item-act { flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
	.o2-item-act .o2-fav { margin-left: 0; }
}

/* 结果条目：扫码查看(悬浮二维码) */
.o2-qr-float { width: 172px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.o2-qr-float .o2-qr { width: 148px; height: 148px; display: block; background: #fff; }
.o2-qr-float .o2-qr svg { width: 100%; height: 100%; display: block; }
.o2-qr-float .o2-tip { font-size: 12px; line-height: 1.4; }

/* 检索框内的“高级检索”入口(放在检索按钮左侧) */
.o2-search-adv { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; margin: 8px 0; border-left: 1px solid var(--o2-bd); color: var(--o2-sub) !important; font-size: 14px; white-space: nowrap; text-decoration: none !important; }
.o2-search-adv .o2-ico { color: var(--o2); }
.o2-search-adv:hover { color: var(--o2-ink) !important; }
.o2-search-adv:hover .o2-ico { color: var(--o2-ink); }
@media (max-width: 767px) {
	.o2-search-adv { padding: 0 10px; }
	.o2-search-adv span { display: none; }
}

/* ===== 精选书单：首页栏目、书单页、书单详情 ===== */
.o2-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 书单封面：前 4 本书拼图，不足 4 本用第一本，没有封面时显示书单名 */
.o2-bl-cover { position: relative; display: grid; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--o2-soft); box-shadow: 0 4px 14px rgba(15, 40, 60, .14); }
.o2-bl-cover.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 2px; background: #E6EBEF; }
.o2-bl-cover .o2-cover { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.o2-bl-cover.grid .o2-cover { border-radius: 3px; }
.o2-bl-cover.none { background: linear-gradient(160deg, var(--o2) 0%, var(--o2-ink) 100%); color: #fff; align-items: end; padding: 14px; box-sizing: border-box; }
.o2-bl-cover-t { font-weight: 700; font-size: 16px; line-height: 1.35; word-break: break-all; text-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* 首页栏目 */
.o2-home-bl-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.o2-home-bl-i { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--o2-text) !important; text-decoration: none !important; }
.o2-home-bl-i .o2-bl-cover { transition: transform .15s, box-shadow .15s; }
.o2-home-bl-i:hover .o2-bl-cover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 40, 60, .18); }
.o2-home-bl-i b { margin-top: 4px; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o2-home-bl-i:hover b { color: var(--o2-ink); }
.o2-home-bl-i small { color: var(--o2-mute); font-size: 13px; }

/* 书单页 */
.o2-bls { padding-top: 24px; padding-bottom: 32px; }
.o2-bls-h { align-items: center; }
.o2-bls-ht { flex: 1 1 260px; }
.o2-bls-ht .o2-h1 { margin: 0 !important; }
.o2-sub { margin: 2px 0 0; color: var(--o2-sub); font-size: 14px; }
.o2-bls-search { position: relative; width: 280px; max-width: 100%; margin: 0; }
.o2-bls-search .o2-ico { position: absolute; left: 12px; top: 12px; color: var(--o2-mute); }
.o2-bls-search input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px 0 36px; border: 1px solid var(--o2-bd); border-radius: 8px; background: #fff; font: inherit; color: var(--o2-text); }
.o2-bls-search input:focus { outline: none; border-color: var(--o2); box-shadow: 0 0 0 3px var(--o2-soft); }
.o2-bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.o2-bl-card { display: flex; gap: 18px; padding: 18px; background: #fff; border: 1px solid var(--o2-bd); border-radius: 12px; color: var(--o2-text) !important; text-decoration: none !important; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.o2-bl-card:hover { border-color: var(--o2-line); box-shadow: 0 6px 18px rgba(15, 40, 60, .08); }
.o2-bl-card .o2-bl-cover { flex: none; width: 108px; height: 144px; aspect-ratio: auto; }
.o2-bl-card-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.o2-bl-card-t { font-size: 17px; line-height: 1.4; color: var(--o2-ink); word-break: break-all; }
.o2-bl-card-i { color: var(--o2-sub); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.o2-bl-card-m { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--o2-mute); font-size: 13px; }

/* 书单详情 */
.o2-bl { padding-top: 18px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.o2-bl-crumb { font-size: 13px; color: var(--o2-mute); }
.o2-bl-head { display: flex; gap: 28px; align-items: flex-start; padding: 26px; border-radius: 14px; background: linear-gradient(120deg, var(--o2-soft) 0%, #F7FAFC 100%); border: 1px solid var(--o2-bd); }
.o2-bl-cover-lg { flex: none; width: 168px; height: 224px; aspect-ratio: auto; border-radius: 10px; }
.o2-bl-head-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.o2-bl-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--o2-ink); background: #fff; border: 1px solid var(--o2-line); padding: 1px 10px; border-radius: 12px; }
.o2-bl-title { margin: 0 !important; font-size: 28px !important; line-height: 1.3; word-break: break-all; }
.o2-bl-intro { margin: 0; color: var(--o2-sub); font-size: 15px; max-width: 820px; white-space: pre-line; }
.o2-bl-stat { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--o2-sub); font-size: 13px; }
.o2-bl-stat b { color: var(--o2-text); font-size: 17px; }
.o2-bl-acts { margin: 4px 0 0; }
.o2-bl-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; background: #fff; border-radius: 10px; border: 1px solid var(--o2-bd); }
.o2-bl-qr .o2-qr { width: 120px; height: 120px; display: block; }
.o2-bl-qr .o2-qr svg { width: 100%; height: 100%; display: block; }
.o2-bl-qr .o2-tip { font-size: 12px; color: var(--o2-sub); }
.o2-bl-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.o2-bl-bar .o2-h2 { flex: 1; margin: 0 !important; }
.o2-bl-toggle { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--o2-bd); border-radius: 8px; background: #fff; color: var(--o2-sub) !important; font-size: 14px; text-decoration: none !important; }
.o2-bl-toggle i { width: 16px; height: 16px; border: 1.5px solid #9AA6B1; border-radius: 4px; box-sizing: border-box; position: relative; }
.o2-bl-toggle.on { border-color: var(--o2); color: var(--o2-ink) !important; background: var(--o2-soft); }
.o2-bl-toggle.on i { background: var(--o2-dark); border-color: var(--o2-dark); }
.o2-bl-toggle.on i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.o2-item-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--o2-soft); color: var(--o2-text); font-size: 13px; line-height: 1.6; max-width: 760px; }
.o2-item-note b { color: var(--o2-ink); }

@media (max-width: 1279px) {
	.o2-bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.o2-home-bl-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.o2-home-bl-row > :nth-child(n+5) { display: none; }
}
@media (max-width: 767px) {
	.o2-home-bl-row { display: flex; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
	.o2-home-bl-row > :nth-child(n+5) { display: flex; }
	.o2-home-bl-i { flex: none; width: 120px; scroll-snap-align: start; }
	.o2-home-bl-i b { font-size: 14px; }
	.o2-bls-search { width: 100%; }
	.o2-bl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.o2-bl-card { padding: 14px; gap: 14px; }
	.o2-bl-card .o2-bl-cover { width: 84px; height: 112px; }
	.o2-bl-card-t { font-size: 16px; }
	.o2-bl-card-i { -webkit-line-clamp: 2; }
	.o2-bl-head { padding: 18px 16px; gap: 16px; flex-wrap: wrap; border-radius: 12px; }
	.o2-bl-cover-lg { width: 96px; height: 128px; }
	.o2-bl-head-b { flex: 1 1 180px; gap: 6px; }
	.o2-bl-title { font-size: 21px !important; }
	.o2-bl-intro { font-size: 13px; }
	.o2-bl-tag, .o2-bl-qr { display: none; }
	.o2-bl-bar .o2-h2 { flex-basis: 100%; }
}
/* 手机：结果条目右侧的图标行和“馆藏/可借”放不下时换行，避免横向溢出 */
@media (max-width: 767px) {
	.o2-item-act { flex-wrap: wrap; row-gap: 10px; }
}

/* 分类浏览未选类目：全部馆藏 · 最新入库 */
.o2-clc-res-t .o2-clc-all-tip { font-size: 13px; font-weight: 400; color: var(--o2-mute); }

/* 电子读者证 EC2：倒计时、获取失败时的重试按钮 */
.o2-ecard-cd { min-height: 20px; margin-top: 6px; text-align: center; font-size: 13px; color: var(--o2-sub); font-variant-numeric: tabular-nums; }
.o2-ecard-retry { width: 100%; height: 100%; min-height: 180px; padding: 16px; border: 1px dashed var(--o2-line); border-radius: 10px; background: var(--o2-soft); color: var(--o2-ink); font: inherit; font-size: 14px; cursor: pointer; }
.o2-ecard-retry:hover { border-color: var(--o2); }

/* 首页：左栏 精选书单 + 新书通报，右栏 本馆公告 + 热门借阅；两栏拉伸到同样高度，各栏最后一块填满 */
.o2-home-cols { align-items: stretch; }
.o2-home-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.o2-home-main > .o2-home-new, .o2-home-side > .o2-home-hot { flex: 1 1 auto; }
.o2-home-main .o2-home-bl-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.o2-home-main .o2-home-bl-row > :nth-child(5) { display: flex; }
.o2-home-main .o2-home-bl-row > :nth-child(n+6) { display: none; }
/* 本馆公告：超过 3 条时只显示 3 条高度，自动向上滚动(鼠标悬停或键盘聚焦时暂停) */
.o2-notice-box { position: relative; overflow: hidden; }
.o2-notice-box.ticking .o2-notice-list { transition: transform .45s ease; }
@media (max-width: 1100px) {
	.o2-home-main .o2-home-bl-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.o2-home-main .o2-home-bl-row { display: flex; }
	.o2-home-main .o2-home-bl-row > :nth-child(n+6) { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
	.o2-notice-box.ticking .o2-notice-list { transition: none; }
}
.o2-notice-box.ticking .o2-notice-list li { padding: 8px 0; border-top: 0; border-bottom: 1px dashed var(--o2-bd); }
/* 首页左栏精选书单：五组，封面固定宽度(不随屏宽变大)，平均分布，避免左栏过高、右栏底部留白 */
.o2-home-main .o2-home-bl-row { grid-template-columns: repeat(5, minmax(0, 170px)); justify-content: space-between; }

/* 热门借阅前三名：金、银、铜奖牌(圆形金属渐变 + 顶部小绶带)，中间仍显示 1、2、3 */
.o2-medal { width: 26px; min-width: 26px; height: 26px; border-radius: 50% !important; isolation: isolate; overflow: visible; font-size: 13px; font-weight: 800; text-shadow: 0 1px 0 rgba(255,255,255,.55); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), inset 0 -2px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.22); }
.o2-rank-n.o2-medal { position: relative; }
.o2-medal::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -7px; width: 14px; height: 12px; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.o2-medal-1 { background: radial-gradient(circle at 35% 30%, #FFF6C2 0%, #F6CB45 42%, #C8921B 100%) !important; color: #5C3D00 !important; }
.o2-medal-2 { background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #CDD4DB 45%, #8E9AA6 100%) !important; color: #2F3A45 !important; }
.o2-medal-3 { background: radial-gradient(circle at 35% 30%, #FFE0C4 0%, #DE9759 45%, #A2602D 100%) !important; color: #4A2408 !important; }
.o2-medal-1::before { background: linear-gradient(90deg, #E04B3F 0 50%, #C23A30 50% 100%); }
.o2-medal-2::before { background: linear-gradient(90deg, #3D7FD9 0 50%, #2C66B8 50% 100%); }
.o2-medal-3::before { background: linear-gradient(90deg, #2FA36B 0 50%, #22855A 50% 100%); }
/* 其余名次的序号与奖牌同宽，标题左边对齐 */
.o2-rank-n { width: 26px; height: 26px; }

/* 书目详情 MARC：表格排版，字段号主题色、指示符橙色、子字段标识(■ + 代码)红色、控制字段(00X)灰色 */
.o2-marc-tbl { width: 100%; border-collapse: collapse; }
.o2-marc-tbl tr { border-top: 1px solid rgba(0,0,0,.05); }
.o2-marc-tbl tr:first-child { border-top: 0; }
.o2-marc-tbl tr:hover { background: rgba(255,255,255,.7); }
.o2-marc-tbl th { width: 48px; padding: 3px 8px 3px 4px; text-align: left; vertical-align: top; font-weight: 700; color: var(--o2-ink); }
.o2-marc-tbl td { padding: 3px 6px; vertical-align: top; }
.o2-marc-tbl td.o2-marc-ind { width: 30px; color: #B85C00; font-weight: 700; white-space: pre; }
.o2-marc-tbl td.o2-marc-ctl { color: var(--o2-sub); }
.o2-marc-sf { color: #C42B2B; font-weight: 700; }

/* 公告详情：正文卡片 + 右侧最新公告 */
.o2-nd { padding-top: 18px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.o2-nd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.o2-nd-art { padding: 0 !important; overflow: hidden; }
.o2-nd-h { padding: 28px 36px 22px; background: linear-gradient(120deg, var(--o2-soft) 0%, #fff 70%); border-bottom: 1px solid var(--o2-bd); }
.o2-nd-tags { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.o2-nd-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 12px; background: #fff; border: 1px solid var(--o2-line); color: var(--o2-ink); font-size: 12px; font-weight: 700; }
.o2-nd-t { margin: 0 !important; font-size: 28px !important; line-height: 1.4; color: var(--o2-text); word-break: break-word; }
.o2-nd-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--o2-sub); font-size: 13px; }
.o2-nd-meta time { display: inline-flex; align-items: center; gap: 6px; }
.o2-nd-body { padding: 28px 36px 8px; font-size: 16px; line-height: 1.95; color: #2B3640; max-width: 860px; }
.o2-nd-body p { margin: 0 0 1.1em; word-break: break-word; }
.o2-nd-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 36px 30px; border-top: 1px dashed var(--o2-bd); margin-top: 12px; }
.o2-nd-nav-i { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 1px solid var(--o2-bd); border-radius: 10px; color: var(--o2-text) !important; text-decoration: none !important; min-width: 0; transition: border-color .15s, background .15s; }
.o2-nd-nav-i small { color: var(--o2-mute); font-size: 12px; }
.o2-nd-nav-i b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.o2-nd-nav-i:hover { border-color: var(--o2-line); background: var(--o2-soft); }
a.o2-nd-nav-i:hover b { color: var(--o2-ink); }
.o2-nd-next { text-align: right; }
.o2-nd-nav-i.is-none b { color: var(--o2-mute); font-weight: 400; }
.o2-nd-side .o2-card { position: sticky; top: 16px; }
.o2-nd-list { list-style: none; margin: 0 0 14px; padding: 0; }
.o2-nd-list li { border-top: 1px dashed var(--o2-bd); }
.o2-nd-list li:first-child { border-top: 0; }
.o2-nd-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px; margin: 0 -10px; border-radius: 8px; color: var(--o2-text) !important; text-decoration: none !important; }
.o2-nd-list a:hover { background: var(--o2-bg); }
.o2-nd-list a:hover .o2-nd-list-t { color: var(--o2-ink); }
.o2-nd-list-t { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.5; overflow: hidden; }
.o2-nd-list-t .o2-tag { flex: none; }
.o2-nd-list time { color: var(--o2-mute); font-size: 12px; }
.o2-nd-list li.on a { background: var(--o2-soft); }
.o2-nd-list li.on .o2-nd-list-t { color: var(--o2-ink); font-weight: 700; }
.o2-nd-all { width: 100%; }
@media (max-width: 1000px) {
	.o2-nd-cols { grid-template-columns: minmax(0, 1fr); }
	.o2-nd-side .o2-card { position: static; }
}
@media (max-width: 767px) {
	.o2-nd-h { padding: 20px 18px 16px; }
	.o2-nd-t { font-size: 22px !important; }
	.o2-nd-body { padding: 20px 18px 4px; font-size: 15px; line-height: 1.85; }
	.o2-nd-nav { grid-template-columns: minmax(0, 1fr); padding: 14px 18px 20px; }
	.o2-nd-next { text-align: left; }
}
