Files
spark-tracker/static/style.css
T

447 lines
22 KiB
CSS

:root {
--bg: #f5f7fb;
--card: #ffffff;
--ink: #111827;
--muted: #6b7280;
--line: #e5e7eb;
--blue: #3b82f6;
--panel: #fafbff;
--panel2: #f7efe6;
--track: #e5e7eb;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
background: var(--bg);
color: var(--ink);
}
/* ===== 主题风格 ===== */
html.theme-dark {
--bg: #0f172a; --card: #1e293b; --ink: #e2e8f0; --muted: #94a3b8;
--line: #334155; --blue: #60a5fa; --panel: #172033; --panel2: #16233a; --track: #334155;
}
html.theme-candy {
--bg: #fff1f6; --card: #ffffff; --ink: #831843; --muted: #db2777;
--line: #fbcfe8; --blue: #ec4899; --panel: #fff6fb; --panel2: #ffe9f3; --track: #fbcfe8;
}
html.theme-ocean {
--bg: #eef6ff; --card: #ffffff; --ink: #0c4a6e; --muted: #0369a1;
--line: #bae6fd; --blue: #0ea5e9; --panel: #f0f9ff; --panel2: #e0f2fe; --track: #bae6fd;
}
/* SVG 环形进度(适配主题) */
.ring-track { stroke: var(--track); }
.ring-pct { fill: var(--ink); }
.ring-label { fill: var(--muted); }
/* 学期日历配色(CSS 类,支持暗色) */
.tc { transition: fill .2s; }
.tc-act3 { fill: #15803d; }
.tc-act2 { fill: #22c55e; }
.tc-act1 { fill: #86efac; }
.tc-week { fill: #dbeafe; }
.tc-none { fill: #eef2f7; }
.tc-today { stroke: #111827; stroke-width: 2; }
html.theme-dark .tc-week { fill: #1e3a5f; }
html.theme-dark .tc-none { fill: #243049; }
html.theme-dark .tc-today { stroke: #e2e8f0; }
html.theme-candy .tc-week { fill: #fbcfe8; }
html.theme-candy .tc-none { fill: #fde7f1; }
html.theme-ocean .tc-week { fill: #bae6fd; }
html.theme-ocean .tc-none { fill: #d6efff; }
/* 图例色块 */
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.lg.tc-act3 { background: #15803d; }
.lg.tc-act2 { background: #22c55e; }
.lg.tc-act1 { background: #86efac; }
.lg.tc-week { background: #dbeafe; }
.lg.tc-none { background: #eef2f7; }
.lg.tc-today { background: #fff; border: 2px solid #111827; }
html.theme-dark .lg.tc-week { background: #1e3a5f; }
html.theme-dark .lg.tc-none { background: #243049; }
html.theme-dark .lg.tc-today { border-color: #e2e8f0; }
html.theme-candy .lg.tc-week { background: #fbcfe8; }
html.theme-candy .lg.tc-none { background: #fde7f1; }
html.theme-ocean .lg.tc-week { background: #bae6fd; }
html.theme-ocean .lg.tc-none { background: #d6efff; }
.topbar {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line);
position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 18px; }
.topbar nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.topbar nav a:hover { color: var(--ink); }
.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero h1 { margin: 0; font-size: 26px; }
.sub { color: var(--muted); margin: 6px 0 0; }
.card {
background: var(--card); border: 1px solid var(--line); border-radius: 16px;
padding: 20px; margin: 18px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card h2 { margin: 0 0 16px; font-size: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
/* 学科 */
.subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .subjects { grid-template-columns: 1fr; } }
.subject { background: var(--panel); border-radius: 12px; padding: 14px; }
.subject-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.subject-icon { font-size: 20px; }
.subject-name { flex: 1; }
.subject-pct { color: var(--muted); font-size: 14px; }
.units { list-style: none; padding: 0; margin: 10px 0 0; }
.unit { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.unit-form { margin: 0; }
.unit-btn {
background: none; border: none; cursor: pointer; font-size: 14px; text-align: left;
color: var(--ink); padding: 2px 0;
}
.unit-2 .unit-btn { color: #111; font-weight: 600; }
.unit-1 .unit-btn { color: #374151; }
.unit-0 .unit-btn { color: var(--muted); }
.unit-date { font-size: 12px; color: var(--muted); }
/* 进度条 */
.bar { position: relative; height: 18px; background: var(--track); border-radius: 10px; margin: 8px 0; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; transition: width .4s; }
.bar-pct { position: absolute; right: 8px; top: 0; font-size: 12px; line-height: 18px; color: #fff; mix-blend-mode: difference; }
/* 读书 */
.progress-line { margin: 4px 0 8px; }
.book-list { list-style: none; padding: 0; margin: 12px 0; }
.book { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.tag-done { background: #dcfce7; color: #166534; }
.tag-reading { background: #dbeafe; color: #1e40af; }
.tag-want { background: #f3f4f6; color: #6b7280; }
.muted { color: var(--muted); font-size: 13px; }
/* 表单 */
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.row.wrap { flex-wrap: wrap; }
.row input, .row select {
padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
}
button {
background: var(--blue); color: #fff; border: none; padding: 8px 14px;
border-radius: 8px; cursor: pointer; font-size: 14px;
}
button:hover { filter: brightness(.95); }
.inline { display: inline; margin: 0; }
.mini { padding: 4px 10px; font-size: 12px; background: #eef2ff; color: #3730a3; }
.mini.danger { background: #fee2e2; color: #b91c1c; }
/* 热力图 */
.heatmap { max-width: 100%; }
.spark-empty { color: var(--muted); font-size: 13px; }
/* 健康 */
.health-charts { display: flex; gap: 20px; flex-wrap: wrap; }
.chart-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
/* 徽章 */
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.badge-on { background: #fff7ed; border: 1px solid #fed7aa; }
.badge-off { background: #f3f4f6; opacity: .6; }
.badge-icon { font-size: 24px; }
.badge-name { flex: 1; font-size: 14px; }
.badge-state { font-size: 12px; }
.badge-on .badge-state { color: #c2410c; }
.badge-off .badge-state { color: var(--muted); }
/* 后台 */
.admin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; flex: 1; }
.btn-outline { border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 13px; }
.admin-subject { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.admin-subject-head { display: flex; justify-content: space-between; align-items: center; }
.admin-units { list-style: none; padding: 0; margin: 10px 0; }
.admin-units li { padding: 4px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.unit-state { font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.unit-state.unit-2 { background: #dcfce7; color: #166534; }
.unit-state.unit-1 { background: #dbeafe; color: #1e40af; }
.unit-state.unit-0 { background: #f3f4f6; color: #6b7280; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
/* 登录 */
.login-box { max-width: 360px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.error { color: #b91c1c; }
/* hero 右侧:进度环 + 学期日历 */
.hero-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-ring { flex: 0 0 auto; }
.termcal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.termcal-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.termcal-range { color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.termcal-range-inline { color: var(--muted); font-size: 12px; font-weight: 400; }
.termcal-scroll { overflow-x: auto; max-width: 100%; }
.termcal-svg { display: block; }
.termcal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.termcal-legend i.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.lg-act3 { background: #15803d; }
.lg-act1 { background: #86efac; }
.lg-week { background: #dbeafe; }
.lg-none { background: #eef2f7; }
.lg-today { background: #fff; border: 2px solid #111827; }
/* 学科单元点阵 */
.subject-pct { margin-left: auto; }
.detail-btn { margin-left: 10px; }
.dotstrip { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 4px; }
.dotform { margin: 0; line-height: 0; }
.dot { width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(0,0,0,.06); cursor: pointer; padding: 0; transition: transform .1s; }
.dot:hover { transform: scale(1.18); }
.dot.d-done { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.subject-detail .units { margin-top: 0; }
/* 详情弹窗 */
.modal-mask {
position: fixed; inset: 0; background: rgba(17,24,39,.45);
display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
background: var(--card); border: none; border-radius: 16px; width: min(560px, 100%); max-height: 80vh;
overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); color: var(--ink); }
.modal-head span { font-weight: 700; }
.modal-body { padding: 16px 18px; }
/* 书架墙 */
.shelf { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 8px 4px 14px; border-bottom: 10px solid #b08968; background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%); border-radius: 8px; min-height: 60px; }
.book-cover { width: 110px; text-align: center; }
.book-cover img, .cover-ph {
width: 100px; height: 140px; object-fit: cover; border-radius: 4px 6px 6px 4px;
box-shadow: 2px 3px 8px rgba(0,0,0,.18); margin: 0 auto; display: block;
}
.cover-ph { display: flex; align-items: center; justify-content: center; padding: 10px; }
.cover-ph span { color: #1f2937; font-weight: 700; font-size: 14px; line-height: 1.3; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.cover-title { font-size: 12px; margin-top: 6px; color: var(--ink); max-height: 32px; overflow: hidden; }
.cover-rating { color: #f59e0b; font-size: 13px; }
.cover-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.book-cover[hidden] { display: none !important; }
/* 书架墙:搜索 / 分类 / 排序 */
.shelf-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.shelf-search {
flex: 1 1 200px; min-width: 160px; padding: 7px 10px; font-size: 14px;
border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink);
}
.shelf-search:focus { outline: none; border-color: var(--blue); }
.shelf-sort { padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip {
display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
padding: 4px 11px; font-size: 13px; line-height: 1.6;
border: 1px solid var(--line); border-radius: 999px;
background: var(--panel); color: var(--ink);
}
.chip:hover { border-color: #9ca3af; }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-n { font-size: 11px; opacity: .7; }
.chip.active .chip-n { opacity: .85; }
.shelf-empty { text-align: center; color: var(--muted); padding: 18px 0 4px; font-size: 14px; }
/* 各学科进度一览(小环一行) */
.mini-rings { display: flex; flex-wrap: wrap; gap: 14px 10px; }
.mini-ring { text-align: center; width: 92px; }
.mini-name { font-size: 12px; margin-top: 2px; font-weight: 600; line-height: 1.2; }
/* 学科轮播 */
.carousel { position: relative; }
.slide { display: flex; gap: 16px; }
.slide .subject { flex: 1; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.carousel-nav button { background: none; border: none; color: var(--muted); font-size: 13px; padding: 4px 10px; cursor: pointer; }
.carousel-nav button:hover { color: var(--ink); }
#carouselInfo { font-size: 13px; min-width: 70px; text-align: center; }
@media (max-width: 760px) {
.slide { flex-direction: column; }
}
/* 主题切换器 */
.theme-picker { margin-top: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tp-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.theme-opt {
background: var(--panel); color: var(--ink); border: 1px solid var(--line);
padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 12px;
}
.theme-opt:hover { filter: brightness(.97); }
.theme-opt.active { border-color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 30%, transparent); }
/* 后台:轮播分组 */
.group-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.group-row .row { flex: 1; }
.admin-subject-controls { display: inline-flex; align-items: center; gap: 8px; }
.admin-subject-controls select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
/* 后台:书目表格内的封面上传表单 */
.tbl .row { flex-wrap: wrap; }
.tbl input[type="file"] { max-width: 170px; }
.tbl input[name="cover_url"] { flex: 1; min-width: 110px; }
/* ===== hero 左侧:徽章轮播 ===== */
.hero-left { flex: 1 1 320px; min-width: 0; }
.badgebar { display: flex; align-items: center; min-height: 34px; margin-top: 8px; }
.badge-slide {
display: flex; align-items: center; gap: 10px;
background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
padding: 6px 14px; white-space: nowrap;
}
.badge-slide.badge-empty { background: transparent; border-style: dashed; }
.badgebar .badge-icon { font-size: 22px; }
.badgebar .badge-name { font-size: 14px; font-weight: 600; }
.badgebar .badge-state { font-size: 12px; color: #c2410c; margin-left: 2px; }
/* ===== hero 当前日期时钟 ===== */
.nowbox {
text-align: center; background: var(--panel); border: 1px solid var(--line);
border-radius: 14px; padding: 12px 18px; min-width: 158px;
}
.now-date { font-size: 16px; font-weight: 700; }
.now-week { font-size: 13px; color: var(--muted); margin-top: 2px; }
.now-time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; color: var(--blue); }
/* ===== 学科进度一览(轮播小环) ===== */
.ringcar { min-height: 150px; display: flex; align-items: center; }
.ring-slide { display: flex; gap: 18px; justify-content: space-around; align-items: center; flex-wrap: wrap; width: 100%; }
.ring-slide .mini-ring { display: flex; flex-direction: row; align-items: center; gap: 6px; width: auto; }
/* ===== 健康综合 ===== */
.healthbox { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.healthchart { display: block; width: 100%; height: auto; }
.hc-grid { stroke: var(--line); stroke-width: 1; }
.hc-axis { fill: var(--muted); }
.lgline { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.lgline + .lgline { margin-left: 12px; }
.sub.tiny { font-size: 12px; margin-top: 8px; }
.hstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.hstat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; transition: background .15s, border-color .15s; }
.hstat:hover { background: var(--card); border-color: var(--blue); }
.hs-label { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.hs-main { text-align: right; }
.hs-val { font-size: 26px; font-weight: 800; line-height: 1.1; }
.hs-val em { font-size: 13px; font-style: normal; color: var(--muted); margin-left: 3px; }
.hs-std { font-size: 12px; color: var(--muted); }
.hs-diff { margin-left: 4px; font-weight: 700; }
.hs-diff.up { color: #16a34a; }
.hs-diff.down { color: #dc2626; }
/* ===== 学科进度:任务清单 ===== */
.tasklist { list-style: none; padding: 0; margin: 10px 0 0; }
.task { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.task-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; font-size: 14px; color: var(--ink); padding: 4px 0; text-align: left; }
.task-btn:hover { opacity: .85; }
.task-ico { font-size: 16px; }
.task-title { flex: 1; }
.task-0 .task-title { color: var(--muted); }
.task-1 .task-title { color: #374151; font-weight: 600; }
.task-2 .task-title { color: #111; }
.task-flag { font-size: 11px; background: var(--blue); color: #fff; padding: 2px 8px; border-radius: 999px; }
/* ===== 书架墙 mini ===== */
.shelf-mini { margin-top: 6px; }
.shelf-row-label { font-size: 13px; color: var(--muted); margin: 10px 0 6px; font-weight: 600; }
.shelf-3 { justify-content: flex-start; gap: 14px; align-items: flex-start; }
.shelf-3 .book-cover { width: 92px; }
.shelf-3 .book-cover img, .shelf-3 .cover-ph { width: 84px; height: 118px; }
/* ===== 浮动打卡 dock ===== */
.dock { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 30; }
.dock-btn {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff;
box-shadow: 0 6px 18px rgba(0,0,0,.2); font-size: 11px; line-height: 1.2; padding: 0; border: none; cursor: pointer;
}
.dock-btn .dock-ico { font-size: 20px; }
.dock-btn.on { background: #16a34a; }
.dock-btn.pop { animation: dockpop .4s ease; }
@keyframes dockpop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* ===== 宽弹窗(书架详情) ===== */
.modal-wide { width: min(860px, 100%); }
/* ===== hero 当前日期时钟:去方框 + 居中 + 距结束小字 ===== */
.nowbox {
background: none; border: none; border-radius: 0; padding: 0; min-width: 0; text-align: center;
}
.now-date { font-size: 15px; font-weight: 700; }
.now-week { font-size: 13px; color: var(--muted); margin-top: 1px; }
.now-time { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; color: var(--blue); }
.now-left { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* ===== 进度一览 / 健康综合:压缩到约 1/3 高度 ===== */
.ringcar { min-height: auto; }
.ring-slide .mini-ring svg { width: 69px; height: 69px; }
.ring-slide .mini-name { font-size: 11px; margin-bottom: 0; text-align: left; white-space: nowrap; }
.ring-wrap { position: relative; padding-right: 30px; }
.ring-next {
position: absolute; right: 0; top: 50%; transform: translateY(-50%);
width: 26px; height: 48px; border: none; border-radius: 8px;
background: var(--blue); color: #fff; font-size: 22px; line-height: 1;
opacity: .28; cursor: pointer; transition: opacity .15s; padding: 0;
}
.ring-next:hover { opacity: .75; }
.healthbox .healthchart { height: 48px; }
.healthbox-detail .healthchart { height: 240px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.badge-slide { cursor: pointer; }
/* ===== 书架墙:仅封面 + 右下角日期 ===== */
.cover-frame { position: relative; display: inline-block; line-height: 0; }
.cover-date {
position: absolute; right: 2px; bottom: 2px;
background: rgba(17,24,39,.62); color: #fff;
font-size: 10px; padding: 1px 5px; border-radius: 4px; line-height: 1.4;
}
/* ===== 徽章详情弹窗 ===== */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }
.badge-cell { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; }
.badge-cell.locked { opacity: .5; filter: grayscale(.7); }
.bc-icon { font-size: 30px; }
.bc-name { font-weight: 700; margin-top: 6px; font-size: 14px; }
.bc-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bc-state { font-size: 12px; margin-top: 8px; color: #16a34a; }
.badge-cell.locked .bc-state { color: var(--muted); }
/* ===== 弹窗:方框背景(主题自适应卡片) ===== */
.modal-mask { background: rgba(15,23,42,.55); }
.modal { border: 1px solid var(--line); }
/* ===== 纯文字触发按钮(替代带方框的 mini 按钮) ===== */
.link-btn {
background: none; border: none; padding: 2px 4px; cursor: pointer;
color: var(--blue); font-size: 12px; font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }
/* ===== 学期 / 假期 日历切换 ===== */
.termcal-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.tctab {
background: none; border: none; cursor: pointer; padding: 4px 12px;
font-size: 14px; color: var(--muted); border-radius: 999px;
}
.tctab.active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
/* ===== 后台:重置保留选项 ===== */
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
/* ===== 书架墙提示 + 封面可点开详情 ===== */
.shelf-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.shelf-mini .book-cover { cursor: pointer; }