/* 智易时代资料中心 · 全站样式（浅色 / 蓝白 / 简洁） */
:root {
  --brand: #0070c0;
  --brand-dark: #005a9b;
  --brand-soft: #eef4fb;
  --gold: #b8860b;
  --text: #1f2d3d;
  --muted: #6b7c8f;
  --line: #e3ebf3;
  --bg: #f6f9fc;
  --card: #ffffff;
  --shadow: 0 2px 14px rgba(16, 52, 88, .07);
  --shadow-lg: 0 12px 40px rgba(16, 52, 88, .16);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* 表单控件固定深色文字，避免继承了深蓝区块（.hero）的白字导致「白底白字」 */
button, input, select, textarea { font: inherit; color: var(--text); }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand-text strong { font-size: 19px; color: var(--brand-dark); letter-spacing: .3px; }
.brand-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.header-dot { width: 7px; height: 7px; border-radius: 50%; background: #35b37e; }

/* ---------- 首屏搜索 ---------- */
.main-area { padding: 26px 0 60px; min-height: calc(100vh - 210px); }
.hero {
  background: linear-gradient(118deg, #0064ad 0%, #0080d6 58%, #2b9be0 100%);
  border-radius: 14px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px;
  border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); pointer-events: none;
}
.hero-inner { padding: 36px 44px 30px; position: relative; z-index: 1; }
.hero-label { font-size: 11px; letter-spacing: 3px; opacity: .72; font-weight: 600; }
.hero h1 { margin: 4px 0 6px; font-size: 32px; letter-spacing: 2px; font-weight: 600; }
.hero p { margin: 0 0 22px; font-size: 14px; opacity: .9; }
.search-row { max-width: 720px; }
.search-box { display: flex; align-items: center; background: #fff; border-radius: 8px; padding: 5px 5px 5px 16px; box-shadow: 0 6px 20px rgba(0, 30, 60, .16); }
.search-box svg { color: #8fa4b8; flex: none; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 12px; font-size: 15px;
  background: transparent; color: var(--text); -webkit-text-fill-color: var(--text); caret-color: var(--brand);
  -webkit-appearance: none; appearance: none;
}
.search-box input::placeholder { color: #8fa4b8; opacity: 1; -webkit-text-fill-color: #8fa4b8; }
.search-box input::-webkit-input-placeholder { color: #8fa4b8; opacity: 1; }
/* 浏览器自动填充时也会把文字染成别的颜色，这里强制拉回深色 */
.search-box input:-webkit-autofill,
.search-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 60px #fff inset;
  box-shadow: 0 0 0 60px #fff inset;
}
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box:focus-within { box-shadow: 0 6px 20px rgba(0, 30, 60, .16), 0 0 0 3px rgba(255, 255, 255, .55); }
.search-box button { border: 0; background: var(--brand); color: #fff; padding: 10px 28px; border-radius: 6px; font-weight: 600; flex: none; }
.search-box button:hover { background: var(--brand-dark); }
.quick-tags { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.quick-tags span { opacity: .75; }
.quick-tags a { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); padding: 3px 12px; border-radius: 20px; transition: .2s; }
.quick-tags a:hover { background: #fff; color: var(--brand-dark); }

/* ---------- 布局 ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 26px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-block, .side-tip, .content, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-block { padding: 18px 16px; }
.side-block h3 { margin: 0 0 12px; font-size: 15px; padding-left: 11px; border-left: 3px solid var(--brand); line-height: 1.3; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { margin: 2px 0; }
.cat-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; padding: 9px 12px; border-radius: 7px; text-align: left; color: #44586c; transition: .15s; }
.cat-list button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.cat-list button.active { background: var(--brand); color: #fff; font-weight: 600; }
.cat-list .cnt { font-size: 12px; opacity: .7; }
.side-tip { padding: 18px; background: #fbfdff; }
.side-tip h4 { margin: 0 0 8px; font-size: 14px; color: var(--brand-dark); }
.side-tip p { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.side-tip-sub { padding-top: 8px; border-top: 1px dashed var(--line); }

.content { padding: 18px 20px 24px; min-height: 420px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.result-title { display: flex; align-items: baseline; gap: 10px; }
.result-title strong { font-size: 17px; }
.result-title span { font-size: 13px; color: var(--muted); }
.sort-wrap { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort-wrap select { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; outline: none; }
.sort-wrap select:focus { border-color: var(--brand); }

/* ---------- 资料卡片 ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-card { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 17px 17px 15px; display: flex; flex-direction: column; gap: 10px; transition: .2s; cursor: pointer; min-height: 180px; }
.doc-card:hover { border-color: #9ec9ec; box-shadow: 0 8px 22px rgba(0, 90, 155, .12); transform: translateY(-2px); }
.doc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { font-size: 12px; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 9px; border-radius: 4px; white-space: nowrap; }
.file-type { font-size: 11px; color: #9aa9b8; letter-spacing: .5px; }
.doc-card h3 { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.doc-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #94a3b2; border-top: 1px dashed var(--line); padding-top: 10px; }
.tag-mini { color: var(--gold); }
.loading-line { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; grid-column: 1 / -1; }
.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 6px; color: #4a5c6e; }
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 详情页 ---------- */
.crumb { font-size: 13px; color: var(--muted); margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb a { color: var(--brand); }
.crumb a:hover { text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.panel h2 { font-size: 15px; margin: 0 0 14px; padding-left: 11px; border-left: 3px solid var(--brand); line-height: 1.3; }
.doc-title { margin: 0 0 10px; font-size: 25px; line-height: 1.45; font-weight: 600; }
.doc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.meta-row b { color: var(--text); font-weight: 600; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; padding: 11px 24px; font-weight: 600; border: 1px solid var(--brand); transition: .18s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; border-color: var(--line); color: #4a5c6e; }
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.summary-text { margin: 0; color: #3d4f60; line-height: 1.95; }
.point-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.point-list li { position: relative; padding-left: 20px; color: #415468; font-size: 14px; }
.point-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); opacity: .75; }
.kv-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--brand-soft); color: var(--brand-dark); border-radius: 5px; padding: 5px 12px; font-size: 13px; }
.chip.gold { background: #fbf4e3; color: #8a6508; }
.detail-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.qr-panel { text-align: center; padding: 20px 18px 18px; }
.qr-panel h2 { justify-content: center; display: flex; border-left: 0; padding-left: 0; margin-bottom: 6px; }
.qr-panel .qr-hint { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.qr-canvas-wrap { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
#qr-canvas { display: block; width: 100%; height: auto; }
.qr-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.qr-actions .btn { width: 100%; padding: 9px 14px; font-size: 14px; }
.qr-url { font-size: 11px; color: #9aa9b8; word-break: break-all; margin-top: 10px; line-height: 1.5; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { color: #40566a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list a:hover { color: var(--brand); }

/* ---------- 预览弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-mask { position: absolute; inset: 0; background: rgba(12, 30, 48, .62); }
.modal-panel { position: relative; width: min(1100px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.modal-head strong { font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; flex: none; white-space: nowrap; }
.modal-actions a { color: var(--brand); }
.icon-btn { border: 0; background: transparent; font-size: 18px; color: var(--muted); padding: 2px 6px; }
.modal-body { flex: 1; min-height: 0; background: #e9edf2; }
/* PDF.js 预览：连续滚动的长页面，只渲染视口附近几页 */
.pdf-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); flex: none; font-size: 13px; }
.pdf-btn { border: 1px solid var(--line); background: #fff; color: #4a5c6e; border-radius: 6px; padding: 5px 12px; font-size: 13px; }
.pdf-btn:hover { border-color: var(--brand); color: var(--brand); }
.pdf-page { min-width: 74px; text-align: center; color: var(--text); font-weight: 600; flex: none; }
.pdf-slider { flex: 1; min-width: 80px; max-width: 340px; accent-color: var(--brand); cursor: pointer; }
.pdf-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; flex: none; }
.pdf-status { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: auto; }
.pdf-body { overflow: auto; -webkit-overflow-scrolling: touch; padding: 14px; }
.pdf-pages { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.pdf-page-wrap { position: relative; flex: none; background: #fff; box-shadow: 0 2px 12px rgba(16, 52, 88, .18); max-width: 100%; }
.pdf-page-canvas { display: block; max-width: 100%; height: auto !important; }
.pdf-page-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa9b8; font-size: 13px; background: #fff; }
.pdf-page-wrap.is-rendered .pdf-page-loading { display: none; }
.pdf-message { margin: 40px auto; text-align: center; background: #fff; border-radius: 10px; padding: 32px 28px; max-width: 420px; box-shadow: var(--shadow); }
.pdf-message strong { display: block; font-size: 16px; margin-bottom: 8px; }
.pdf-message p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 18px; }

.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(24, 42, 60, .94); color: #fff; padding: 11px 22px; border-radius: 7px; font-size: 14px; z-index: 90; box-shadow: var(--shadow-lg); }

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-inner strong { color: #40566a; font-weight: 600; }
.footer-inner p { margin: 2px 0 0; }
.footer-right { display: flex; gap: 14px; align-items: center; }
.footer-right a { color: #b9c5d0; }
.footer-right a:hover { color: var(--brand); }

/* ---------- 后台通用 ---------- */
.admin-body { background: #f4f7fa; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header .header-inner { height: 64px; }
.admin-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 60px; }
.login-card { max-width: 400px; margin: 90px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 34px 32px; text-align: center; }
.login-card img { width: 62px; height: 62px; object-fit: contain; margin-bottom: 10px; }
.login-card h1 { font-size: 20px; margin: 0 0 6px; color: var(--brand-dark); }
.login-card p { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.login-card input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 11px 13px; outline: none; margin-bottom: 14px; }
.login-card input:focus { border-color: var(--brand); }
.login-card .btn { width: 100%; }
.login-err { color: #c0392b; font-size: 13px; min-height: 20px; margin: 0 0 8px; }
.login-tip { font-size: 12px; color: #9aa9b8; margin-top: 18px; line-height: 1.7; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 16px 18px; }
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card strong { display: block; font-size: 25px; color: var(--brand-dark); line-height: 1.4; margin-top: 2px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; padding: 10px 20px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; }
.tabs button:hover { color: var(--brand); }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 22px 24px; }
.admin-panel h2 { font-size: 16px; margin: 0 0 16px; }
.admin-panel h3 { font-size: 14px; margin: 24px 0 12px; color: #40566a; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; outline: none; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.7; }
.field-hint { font-size: 12px; color: #9aa9b8; }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: #4a5c6e; }
.btn-sm:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm.danger { color: #c0392b; }
.btn-sm.danger:hover { border-color: #c0392b; }
.btn-sm.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-sm.primary:hover { background: var(--brand-dark); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { background: #f8fbfe; color: #5c7185; font-weight: 600; white-space: nowrap; }
table.data tr:hover td { background: #fbfdff; }
table.data td.actions { white-space: nowrap; }
table.data td.actions button { margin-right: 6px; }
.cell-title { max-width: 320px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.notice { background: #fff8e8; border: 1px solid #f2dfae; color: #8a6508; padding: 11px 15px; border-radius: 7px; font-size: 13px; margin-bottom: 18px; }
.notice.info { background: var(--brand-soft); border-color: #cfe2f5; color: var(--brand-dark); }
.notice.flash { border-color: #e0b34d; box-shadow: 0 0 0 3px rgba(224, 179, 77, .28); }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-toolbar input { border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px; outline: none; min-width: 240px; }
.admin-toolbar input:focus { border-color: var(--brand); }
.cat-manage-list { list-style: none; margin: 0; padding: 0; }
.cat-manage-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 8px; }
.cat-manage-list .cat-name { flex: 1; font-weight: 600; }
.cat-manage-list .cat-count { color: var(--muted); font-size: 13px; }
.log-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.log-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 16px; }
.log-list time { color: #9aa9b8; white-space: nowrap; }
.log-list b { color: var(--brand-dark); font-weight: 600; min-width: 110px; display: inline-block; }

/* 编辑弹层 */
.edit-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.edit-mask { position: absolute; inset: 0; background: rgba(12, 30, 48, .55); }
.edit-panel { position: relative; width: min(640px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 24px 26px; }
.edit-panel h2 { font-size: 17px; margin: 0 0 18px; }
.edit-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .qr-panel { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .wrap, .admin-wrap { width: calc(100% - 28px); }
  .header-inner { height: 64px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small, .header-meta { display: none; }
  .hero-inner { padding: 26px 20px 24px; }
  .hero h1 { font-size: 25px; }
  .search-box button { padding: 10px 16px; }
  .layout { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
  .sidebar { flex-direction: column; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-list button { width: auto; }
  .side-tip { display: none; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: auto; }
  .content { padding: 14px; }
  .panel { padding: 18px; }
  .doc-title { font-size: 21px; }
  .point-list { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 0; }
  .modal-panel { width: 100%; height: 100vh; max-height: none; border-radius: 0; }
  .modal-head { padding: 10px 12px; gap: 10px; }
  .modal-actions { gap: 10px; }
  .pdf-toolbar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .pdf-slider { flex-basis: 100%; order: 3; max-width: none; }
  .pdf-status { order: 4; max-width: 100%; margin-left: 0; }
  .pdf-body { padding: 8px; }
  .pdf-pages { gap: 10px; }
  .form-row { flex-direction: column; align-items: stretch; }
  .tabs { overflow-x: auto; }
  .tabs button { padding: 10px 14px; white-space: nowrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
