Files

733 lines
37 KiB
CSS

/* WorkLog 活动记录 — 样式 */
:root {
--bg: #f5f7f5;
--card: #ffffff;
--ink: #263c35;
--muted: #67776f;
--line: #e1e8e3;
--primary: #28664f;
--primary-ink: #ffffff;
--primary-soft: #eaf3ed;
--ok: #12805c;
--ok-soft: #e2f5ec;
--warn: #b45309;
--warn-soft: #fdf1e0;
--bad: #b42323;
--bad-soft: #fdeaea;
--radius: 12px;
--shadow: 0 2px 5px rgba(35, 64, 48, .025);
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--ink);
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
font-size: 15px;
line-height: 1.55;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }
button { font: inherit; cursor: pointer; }
input, select, textarea {
font: inherit;
color: var(--ink);
background: #fff;
border: 1px solid var(--line);
border-radius: 10px;
padding: 9px 12px;
outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40, 102, 79, .14); }
textarea { width: 100%; resize: vertical; }
.btn {
border: 1px solid var(--line);
background: #fff;
color: var(--ink);
border-radius: 10px;
padding: 9px 16px;
font-weight: 500;
transition: border-color .18s ease-out, background-color .18s ease-out, box-shadow .18s ease-out;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: #205640; border-color: #205640; color: #fff; }
.btn.small { padding: 4px 12px; font-size: 13px; }
.btn.danger { color: var(--bad); border-color: #f2c4c4; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* ---------- 顶栏 ---------- */
#topbar {
position: sticky;
top: 0;
z-index: 50;
background: var(--card);
border-bottom: 1px solid var(--line);
}
.topbar-inner {
max-width: 1160px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 28px;
padding: 16px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.6px; white-space: nowrap; }
#nav { display: flex; gap: 4px; flex: 1; }
#nav a {
color: var(--muted);
text-decoration: none;
padding: 7px 12px;
border-radius: 9px;
font-weight: 500;
}
#nav a:hover { color: var(--ink); background: var(--primary-soft); }
#nav a.active { color: var(--primary); background: var(--primary-soft); }
.topbar-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
#topbar-name { font-weight: 600; font-size: 14px; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; }
/* ---------- 布局 ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 40px 28px 72px; }
.container.narrow { max-width: 640px; }
.page-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 24px;
}
.page-head h2 { margin: 0 0 8px; font-size: 28px; font-weight: 650; letter-spacing: -.8px; }
.page-head p { margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { min-width: 130px; }
.stats-row { display: flex; flex-wrap: wrap; margin-bottom: 28px; padding: 20px 0; border-block: 1px solid var(--line); }
.stats-row:empty { display: none; }
.stat {
flex: 1;
min-width: 96px;
padding: 0 24px;
border-right: 1px solid var(--line);
}
.stat:first-child { padding-left: 4px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 28px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.8px; margin-bottom: 5px; }
.stat span { color: var(--muted); font-size: 13px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
border: 1px solid var(--line);
background: #fff;
border-radius: 999px;
padding: 4px 12px;
font-size: 13px;
color: var(--muted);
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active:hover { color: #fff; }
/* ---------- 卡片列表 ---------- */
.card-list { display: flex; flex-direction: column; gap: 16px; }
.acard {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 24px 26px;
box-shadow: var(--shadow);
transition: border-color .18s ease-out, background-color .18s ease-out, box-shadow .18s ease-out;
}
.acard:hover { border-color: #adc6b8; box-shadow: 0 4px 16px rgba(35, 64, 48, .045); }
.acard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acard h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.activity-title { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; }
.acard h3:hover { color: var(--primary); }
.acard-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.meta-item { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.acard-desc { margin: 10px 0 0; color: #3d4351; font-size: 14px; white-space: pre-wrap; }
.acard-foot {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--line);
}
.faces { display: flex; align-items: center; }
.face {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--primary);
color: #fff;
font-size: 12px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #fff;
margin-left: -8px;
cursor: pointer;
}
.face:first-child { margin-left: 0; }
.face.more { background: #e7eaf3; color: var(--muted); }
.face:hover { transform: translateY(-2px); }
.faces-label { margin-left: 8px; font-size: 13px; color: var(--muted); }
.acard-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
display: inline-block;
padding: 2px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 500;
}
.tag.cat { background: var(--primary-soft); color: var(--primary); }
.tag.pub { background: #f0f4f1; color: #56705e; }
.tag.pri { background: #f0e9fb; color: #6d3fc0; }
.tag.joined { background: #edf2f9; color: #416594; }
.tag.attended { background: var(--ok-soft); color: var(--ok); }
.tag.absent { background: var(--bad-soft); color: var(--bad); }
.tag.full { background: #f1f2f6; color: var(--muted); }
/* ---------- 成员 ---------- */
.member-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
gap: 12px;
}
.mcard {
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 16px;
box-shadow: var(--shadow);
cursor: pointer;
transition: border-color .18s ease-out, background-color .18s ease-out, box-shadow .18s ease-out;
}
.mcard:hover { border-color: #adc6b8; background: #fcfdfc; }
.mcard-top { display: flex; align-items: center; gap: 12px; }
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
background: #e5efe8;
color: var(--primary);
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
font-size: 17px;
flex: none;
}
.mcard b { display: block; }
.mcard .muted { margin-top: 2px; }
.mcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mcard-stats div b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mcard-stats small { margin-left: 4px; font-size: 11px; color: var(--muted); font-weight: 400; }
.mcard-stats div span { display: block; font-size: 12px; color: var(--muted); }
.stats-help { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.stats-help summary { width: fit-content; cursor: pointer; padding: 6px 0; border-radius: 4px; }
.stats-help summary:hover { color: var(--primary); }
.stats-help summary:focus-visible { outline: 3px solid #28664f80; outline-offset: 4px; }
.stats-help dl { margin: 10px 0; display: grid; gap: 10px; }
.stats-help dl > div { display: flex; align-items: baseline; gap: 16px; }
.stats-help dt { min-width: 4em; color: var(--ink); font-weight: 600; }
.stats-help dd { margin: 0; line-height: 1.7; }
.stats-help p { margin: 10px 0 0; line-height: 1.7; }
.mcard-bio { margin-top: 10px; font-size: 13px; color: #3d4351; }
/* ---------- 个人主页 ---------- */
.profile-header {
display: flex;
align-items: center;
gap: 16px;
background: var(--card);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 20px;
box-shadow: var(--shadow);
margin-bottom: 14px;
}
.profile-header .avatar { width: 60px; height: 60px; font-size: 24px; }
.profile-header h2 { margin: 0; font-size: 20px; }
.profile-header p { margin: 3px 0 0; }
/* ---------- 认证页 ---------- */
.auth-wrap { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: clamp(48px, 8vw, 120px); max-width: 1100px; margin: auto; padding: 56px 32px; }
.auth-card {
width: 100%;
max-width: 420px;
background: var(--card);
border: 1px solid var(--line);
border-radius: 20px;
padding: 36px 32px;
box-shadow: var(--shadow);
}
.auth-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; letter-spacing: -.8px; }
.auth-sub { color: var(--muted); margin: 10px 0 28px; font-size: 13px; }
.tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; border: none; background: transparent; padding: 8px 10px; border-radius: 8px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.auth-modes { display: flex; gap: 8px; margin-top: 14px; }
.auth-mode { flex: 1; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 8px; }
.auth-mode.active { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.auth-links { display: flex; justify-content: flex-end; margin-top: 5px; }
.text-link { border: 0; padding: 3px 0; background: transparent; color: var(--primary); font: inherit; font-size: 13px; cursor: pointer; }
.text-link:hover { text-decoration: underline; }
/* ---------- 表单 ---------- */
form label, .form-card label { display: block; margin-top: 14px; font-size: 13px; color: #3d4351; font-weight: 500; }
form input, form select, form textarea, .form-card input, .form-card select { width: 100%; margin-top: 5px; }
.hint-inline { color: var(--muted); font-weight: 400; }
.form-error { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 8px; }
.form-hint { font-size: 12px; margin-top: -6px; }
.code-row { display: flex; gap: 8px; margin-top: 5px; }
.code-row input { flex: 1; min-width: 0; margin-top: 0; }
.code-row button { flex: none; white-space: nowrap; }
.code-row button:disabled { opacity: .55; cursor: not-allowed; }
.form-card { margin-bottom: 20px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card > .btn { margin-top: 24px; }
.form-card h3 { margin: 0 0 4px; font-size: 16px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; min-width: 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.checkline { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.checkline input { width: auto; margin: 0; }
/* ---------- 弹层 ---------- */
.modal-mask {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, .45);
display: flex;
align-items: flex-start;
justify-content: center;
padding: 40px 16px;
z-index: 100;
overflow-y: auto;
}
.modal {
background: var(--card);
border-radius: 18px;
width: 100%;
max-width: 560px;
padding: 24px;
box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .35);
animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { margin: 0 0 4px; font-size: 18px; }
.modal .modal-sub { margin: 0 0 10px; }
/* 详情 */
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; font-size: 14px; }
.detail-meta span.lbl { color: var(--muted); font-size: 12px; display: block; }
.detail-desc {
background: var(--bg);
border-radius: 10px;
padding: 12px 14px;
font-size: 14px;
white-space: pre-wrap;
margin: 12px 0;
}
.p-list { margin: 8px 0 0; padding: 0; list-style: none; }
.p-list li {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
border-top: 1px solid var(--line);
font-size: 14px;
}
.p-list li:first-child { border-top: none; }
.p-list .grow { flex: 1; }
.p-list .who { cursor: pointer; }
.p-list .who:hover { color: var(--primary); }
.p-list select { padding: 4px 8px; font-size: 13px; width: auto; }
.p-list .note { color: var(--muted); font-size: 12px; }
.add-member-row { display: flex; gap: 8px; margin-top: 12px; }
.add-member-row input { flex: 1; }
/* ---------- 空态 / 加载 ---------- */
.empty {
text-align: center;
color: var(--muted);
padding: 60px 20px;
border: 1px dashed var(--line);
border-radius: var(--radius);
background: rgba(255, 255, 255, .6);
}
/* ---------- Toast ---------- */
.toast {
position: fixed;
left: 50%;
bottom: 36px;
transform: translateX(-50%);
background: #1f2430;
color: #fff;
padding: 10px 18px;
border-radius: 999px;
font-size: 14px;
z-index: 200;
box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4);
}
.toast.err { background: var(--bad); }
/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
#nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #fff;
border-bottom: 1px solid var(--line);
flex-direction: column;
padding: 8px;
}
#nav.open { display: flex; }
.menu-toggle { display: block; margin-left: auto; }
.topbar-user { margin-left: auto; }
#topbar-name { display: none; }
.detail-meta { grid-template-columns: 1fr; }
}
/* 成员简表 */
#members-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; overflow: hidden; }
#members-table th, #members-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border, #e5e7eb); font-size: 14px; }
#members-table th { background: #edf2ee; color: var(--muted); font-weight: 600; font-size: 13px; }
#members-table tbody tr:last-child td { border-bottom: none; }
#members-table tbody tr:hover { background: #f9fafb; }
/* 审核 */
.badge { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.review-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.review-row:last-child { border-bottom: none; }
.review-row .grow { flex: 1; }
.tag.pending { background: #fef3c7; color: #92400e; }
.review-add { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.review-add input { flex: 1; margin-top: 0; }
/* 强制设置密码层 */
#force-password-overlay {
position: fixed; inset: 0; z-index: 90;
background: rgba(15, 23, 42, .55);
display: flex; align-items: center; justify-content: center;
}
#force-password-overlay.hidden { display: none; }
#force-password-form {
width: min(400px, calc(100vw - 32px));
background: #fff; border-radius: 14px; padding: 26px 24px;
box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
#force-password-form h3 { margin: 0 0 6px; }
#force-password-form p { margin: 0 0 14px; }
/* 品牌:一本打开的记录册,用 CSS 绘制以避免依赖外部资源。 */
.brand-mark {
display: inline-block;
width: 30px;
height: 32px;
flex: none;
position: relative;
background: var(--primary);
border-radius: 5px 9px 9px 5px;
}
.brand-mark::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 1px solid #ffffff50; }
.brand-mark::after { content: ""; position: absolute; left: 12px; right: 6px; top: 11px; height: 5px; border-block: 1.5px solid #ffffffd9; }
.brand-caption { font-size: 12px; font-weight: 400; letter-spacing: 1px; color: var(--muted); margin-left: 8px; padding-left: 18px; border-left: 1px solid var(--line); }
.auth-intro h2 { font-size: clamp(32px, 3.3vw, 44px); font-weight: 600; line-height: 1.55; letter-spacing: -1.5px; margin: 56px 0 18px; }
.auth-intro > p { font-size: 16px; line-height: 1.9; color: var(--muted); margin: 0; }
.auth-intro-foot { display: block; color: var(--muted); font-size: 12px; letter-spacing: 3px; margin-top: 36px; }
.auth-note { position: relative; width: 290px; max-width: 100%; margin-top: 40px; padding: 24px 28px; background: #edf2ed; border: 1px solid #dce6dd; border-left: 4px solid #9db8a4; border-radius: 3px 14px 14px 3px; }
.note-label { font-size: 12px; color: #5b7463; letter-spacing: 1px; }
.note-line { height: 1px; background: #d3dfd5; margin-top: 17px; }
.note-line.short { width: 65%; }
.note-check { position: absolute; right: 20px; bottom: 15px; color: var(--primary); font-size: 22px; }
.btn, input, select { min-height: 42px; }
input, select, textarea { transition: border-color .18s ease-out, box-shadow .18s ease-out; }
input::placeholder, textarea::placeholder { color: #87928b; opacity: 1; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #28664f80; outline-offset: 4px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.btn-ghost { background: transparent; }
.btn.sm { min-height: 32px; }
.acard-top > div, .mcard-top > div, .profile-header > div { min-width: 0; }
.acard-desc, .meta-item, .mcard b, .profile-header h2, .p-list .grow { overflow-wrap: anywhere; }
.acard-desc { line-height: 1.8; }
.acard-foot { margin-top: 18px; padding-top: 16px; }
.face:nth-child(3n + 2) { background: #678374; }
.face:nth-child(3n) { background: #84745c; }
.face.more { background: #e7eee8; color: var(--muted); }
.auth-card .btn.block { margin-top: 8px; min-height: 46px; }
#public-loan-form h3 { margin: 4px 0 6px; }
#public-loan-form > p:first-of-type { line-height: 1.7; margin: 0 0 18px; }
#public-loan-form textarea { min-height: 96px; }
.auth-card .form-error:empty, .auth-card .form-hint:empty { display: none; }
.auth-card .form-hint { margin-top: 10px; line-height: 1.7; }
.auth-card .auth-links { margin-bottom: 16px; }
.empty { border-style: solid; padding: 64px 24px; line-height: 1.9; }
.toast { max-width: calc(100vw - 32px); width: max-content; text-align: center; }
#force-password-overlay { padding-block: 24px; overflow-y: auto; }
#force-password-form { margin-block: auto; }
@media (min-width: 761px) {
.page-head { align-items: center; }
#feed-view .page-head { display: grid; grid-template-columns: 1fr; gap: 24px; }
#feed-view .filters { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
#feed-q { flex: 1; }
}
@media (max-width: 960px) {
.auth-wrap { grid-template-columns: 1fr 400px; gap: 36px; }
.brand-caption { display: none; }
.topbar-inner { gap: 16px; }
#nav a { padding-inline: 10px; }
}
@media (max-width: 760px) {
.auth-wrap { display: flex; justify-content: center; padding: 32px 20px; }
.auth-intro { display: none; }
.auth-card { padding: 28px 24px; }
.topbar-inner { gap: 10px; padding: 12px 16px; }
.brand { font-size: 18px; gap: 8px; }
.brand-mark { width: 26px; height: 28px; }
.topbar-user { margin-left: auto; }
.menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; margin-left: 0; color: var(--ink); border-radius: 8px; }
#nav { padding: 12px 16px; box-shadow: 0 8px 12px #263c3508; }
#nav a { padding: 12px; }
#logout-btn { min-height: 42px; }
#new-activity-btn { font-size: 13px; padding: 9px 10px; }
.container { padding: 28px 16px 56px; }
.page-head { align-items: stretch; gap: 20px; }
.page-head > div:first-child { width: 100%; }
.page-head h2 { font-size: 25px; }
.filters { width: 100%; gap: 8px; }
.filters input { width: 100%; flex-basis: 100%; }
.filters select { flex: 1; min-width: 0; }
.stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; padding: 20px 0; }
.stat { min-width: 0; padding: 0 20px; }
.stat:nth-child(odd) { padding-left: 4px; }
.stat:nth-child(even), .stat:last-child { border-right: 0; }
.stat b { font-size: 25px; }
.acard { padding: 20px; }
.acard-meta { gap: 8px 10px; margin-top: 12px; }
.meta-item { max-width: 100%; }
.acard-actions .btn { min-height: 42px; }
.member-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
#members-table { table-layout: fixed; }
#members-table th, #members-table td { padding: 12px 8px; font-size: 13px; overflow-wrap: anywhere; }
.stats-help summary { min-height: 44px; display: list-item; align-content: center; }
.form-row { flex-direction: column; gap: 0; }
.form-card { padding: 22px; }
.modal-mask { padding: 16px 10px; }
.modal { padding: 22px 18px; }
.p-list li { flex-wrap: wrap; }
.add-member-row input { min-width: 0; }
}
@media (max-width: 380px) {
.topbar-inner { gap: 5px; padding-inline: 10px; }
.brand { gap: 5px; font-size: 16px; }
.brand .brand-mark { width: 22px; height: 26px; }
#new-activity-btn { padding-inline: 8px; }
.auth-wrap { padding: 20px 12px; }
.auth-card { padding: 28px 20px; }
.code-row { gap: 6px; }
.code-row .btn { padding-inline: 10px; }
}
.duty-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; margin-bottom: 24px; background: var(--primary-soft); border: 1px solid #d5e5da; border-radius: var(--radius); }
.duty-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.duty-label { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 13px; }
.on-duty .duty-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
#duty-names { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.duty-time { width: 100%; color: var(--muted); font-size: 12px; }
.duty-clock { text-align: right; flex: none; border-left: 1px solid #cbded1; padding-left: 24px; }
.duty-clock > span { display: block; color: var(--muted); font-size: 12px; }
.duty-clock strong { display: block; font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
@media (max-width: 520px) {
.duty-banner { align-items: stretch; padding: 18px; gap: 16px; flex-direction: column; }
.duty-clock { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; padding: 12px 0 0; border-left: 0; border-top: 1px solid #cbded1; }
.duty-clock strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.duty-reminders { flex-basis: 100%; min-width: 0; }
.duty-reminders:empty { display: none; }
.duty-reminder-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; margin-top: 4px; border-top: 1px solid #cbded1; }
.duty-reminder-row > div { min-width: 0; overflow-wrap: anywhere; }
.duty-reminder-row .muted { display: block; margin-top: 5px; }
.duty-reminder-row .btn { flex: none; min-height: 40px; }
#change-email-panel summary { cursor: pointer; font-weight: 600; padding-block: 6px; }
#change-email-panel summary:focus-visible { outline: 3px solid #28664f80; outline-offset: 4px; }
#change-email-form .form-hint { margin: 8px 0 0; overflow-wrap: anywhere; }
#change-email-result:empty { display: none; }
.duty-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.settings-divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
@media (max-width: 520px) { .duty-reminder-row { flex-wrap: wrap; } .duty-row-actions { width: 100%; } }
.photo-preview { margin:14px 0; }
.photo-preview-summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#f7faf8; color:var(--muted); font-size:13px; }
.photo-preview-summary strong { color:var(--text); }
.selected-photo-summary:empty { display:none; }
.activity-photos { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; margin:12px 0 0; }
.activity-photos:empty { display:none; }
.activity-materials { margin:12px 0; display:flex; flex-direction:column; gap:8px; }
.activity-materials > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.upload-progress { margin:16px 0; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--primary-soft); }
.upload-progress p { margin:0 0 8px; font-size:13px; overflow-wrap:anywhere; }
.upload-progress progress { display:block; width:100%; height:12px; accent-color:var(--primary); }
.activity-photos img { display:block; width:100%; aspect-ratio:4/3; height:auto; object-fit:cover; border-radius:8px; border:1px solid var(--line); cursor:zoom-in; background:#edf2ee; }
.activity-photos img.photo-loading { background:linear-gradient(110deg,#edf2ee 8%,#f8faf8 18%,#edf2ee 33%); background-size:200% 100%; animation:photo-shimmer 1.4s linear infinite; }
.activity-photos img.photo-error { display:grid; place-items:center; padding:10px; color:var(--muted); font-size:12px; cursor:default; }
@keyframes photo-shimmer { to { background-position-x:-200%; } }
.center-toolbar { margin-bottom:24px; }
.center-export { margin:0 0 24px; padding:16px 20px; border:1px solid var(--line); background:var(--card); border-radius:12px; }
.center-export summary { cursor:pointer; font-weight:600; }
.center-export label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:13px; }
.center-export .filters { align-items:flex-end; }
.center-shortcuts { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; width:100%; padding:22px 24px; background:var(--primary-soft); border:1px solid #d5e5da; border-radius:12px; }
.center-shortcuts strong { font-size:18px; }
.center-shortcuts p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.center-shortcut-actions { display:flex; flex-wrap:wrap; gap:10px; }
.center-shortcut-actions a { text-decoration:none; display:inline-flex; align-items:center; }
.center-tabs { max-width:500px; margin-bottom:24px; }
.center-check-status { padding:18px 20px; background:var(--primary-soft); border:1px solid #d5e5da; border-radius:12px; margin-bottom:20px; }
.center-subhead { margin-top:32px; }
.center-duty-head { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:18px; }
.center-duty-head h3 { margin:4px 0 7px; font-size:24px; letter-spacing:-.4px; }
.center-duty-head p { margin:0; }
.center-duty-kicker { color:var(--primary); font-size:12px; font-weight:650; letter-spacing:1.4px; }
.center-duty-nav { display:flex; flex-wrap:wrap; gap:8px; }
.center-duty-nav .btn { min-height:38px; padding:7px 13px; }
.center-duty-current { margin-bottom:12px; }
.center-duty-live { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; background:linear-gradient(110deg,#e7f2eb,#f3f8f4); border:1px solid #cfe2d4; border-radius:14px; }
.center-duty-live b { font-size:17px; }
.center-duty-live p { margin:4px 0 0; color:var(--muted); }
.center-duty-live > span { color:var(--primary); font-weight:600; font-variant-numeric:tabular-nums; }
.center-duty-live-dot { display:inline-block; width:8px; height:8px; margin-right:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 5px #12805c18; }
.center-duty-idle { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; padding:16px 20px; background:#f7f9f7; border:1px solid var(--line); border-radius:14px; }
.center-duty-idle span { color:var(--muted); font-size:13px; }
.center-duty-rule { display:flex; gap:8px 14px; align-items:baseline; flex-wrap:wrap; padding:12px 16px; border-left:3px solid #c49b65; background:#fbf8f2; color:var(--muted); font-size:13px; }
.center-duty-rule strong { color:var(--ink); }
.center-duty-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.center-duty-day { min-width:0; overflow:hidden; background:var(--card); border:1px solid var(--line); border-radius:13px; box-shadow:var(--shadow); }
.center-duty-day.is-today { border-color:#9abda8; box-shadow:0 0 0 2px #28664f12; }
.center-duty-day > header { display:flex; align-items:baseline; gap:8px; padding:12px 15px; background:#f4f8f5; border-bottom:1px solid var(--line); }
.center-duty-day > header b { font-size:16px; }
.center-duty-day > header span { color:var(--muted); font-size:12px; }
.center-duty-day > header em { margin-left:auto; padding:2px 7px; border-radius:999px; background:var(--primary); color:#fff; font-size:11px; font-style:normal; }
.center-duty-slot { display:grid; grid-template-columns:96px minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px 15px; border-bottom:1px solid #edf1ee; }
.center-duty-slot:last-child { border-bottom:0; }
.center-duty-slot.is-active { background:#edf7f0; }
.center-duty-slot.is-past { opacity:.68; }
.center-duty-slot > div:first-child b,.center-duty-slot > div:first-child span { display:block; }
.center-duty-slot > div:first-child span { color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.center-duty-people { display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
.center-duty-name { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:7px; background:#edf3ef; color:var(--ink); font-size:13px; }
.center-duty-name small { color:var(--warn); font-size:10px; }
.center-duty-leave { flex:none; }
.center-duty-slot .btn[disabled] { min-height:32px; }
.timetable-mine { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:24px 0; }
.timetable-card { min-width:0; padding:22px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.timetable-card h3 { margin:0 0 12px; }
.timetable-card p { overflow-wrap:anywhere; }
.timetable-card .form-actions { justify-content:flex-start; flex-wrap:wrap; }
.timetable-member { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; }
.timetable-member .acard-actions { flex-wrap:wrap; }
.timetable-editor { max-width:860px; width:100%; }
.timetable-review-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:16px 0; }
.timetable-review-toolbar .muted { margin-left:auto; }
.timetable-review-stage { display:grid; align-items:center; position:relative; }
.timetable-source { grid-area:1 / 1; display:grid; justify-items:center; max-height:66vh; min-height:200px; overflow:auto; margin:0; padding:8px; border:1px solid var(--line); border-radius:12px; background:#f5f7f5; }
.timetable-source img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(66vh - 20px); object-fit:contain; }
.timetable-review-stage.is-expanded .timetable-source { display:block; }
.timetable-review-stage.is-expanded .timetable-source img { width:100%; max-height:none; }
.timetable-review-panel { grid-area:1 / 1; z-index:1; width:calc(100% - 16px); max-height:calc(66vh - 16px); overflow:auto; justify-self:center; padding:14px; border:0; border-radius:12px; background:transparent; box-shadow:none; }
.timetable-review-panel[hidden] { display:none; }
.timetable-review-stage.is-peeking .timetable-review-panel { visibility:hidden; pointer-events:none; }
#timetable-peek-image[hidden],#timetable-review-actions[hidden] { display:none; }
.timetable-review-panel .timetable-grid-wrap { margin:0 0 10px; }
.timetable-review-panel .timetable-grid { min-width:0; table-layout:fixed; }
.timetable-review-panel .timetable-grid th,.timetable-review-panel .timetable-grid td { padding:6px; min-width:0; border-color:rgba(38,60,53,.15); }
.timetable-review-panel .timetable-grid th { background:rgba(255,255,255,.28); text-shadow:0 0 3px #fff,0 1px 2px #fff; }
.timetable-review-panel .timetable-grid small { display:block; font-size:10px; font-weight:400; }
.timetable-review-panel .timetable-grid td[data-status] { background:transparent; }
.timetable-status-button { display:block; width:100%; min-height:42px; padding:6px 3px; border:1px solid rgba(40,102,79,.65); border-radius:8px; background:rgba(255,255,255,.12); color:var(--primary); font-size:13px; font-weight:700; text-shadow:0 0 3px #fff,0 1px 2px #fff; }
.timetable-grid td[data-status=busy] .timetable-status-button { border-color:rgba(185,28,28,.75); background:rgba(254,226,226,.14); color:#991b1b; }
.timetable-grid td[data-status=unknown] .timetable-status-button { border-color:rgba(180,83,9,.65); background:rgba(255,247,231,.14); color:#92400e; }
.timetable-status-button:hover { outline:2px solid currentColor; outline-offset:1px; }
.timetable-status-button:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.timetable-status-button:disabled { opacity:1; cursor:default; }
#timetable-review-actions { margin-top:12px; }
#timetable-review-actions .form-actions { margin-top:10px; }
.timetable-recognition-notes { margin-top:12px; font-size:13px; }
.timetable-recognition-notes summary { cursor:pointer; color:var(--muted); }
.timetable-grid-wrap { overflow-x:auto; margin:16px 0; }
.timetable-grid { border-collapse:collapse; width:100%; min-width:680px; font-size:13px; }
.timetable-grid th,.timetable-grid td { border:1px solid var(--line); padding:10px; vertical-align:top; }
.timetable-grid th { background:var(--primary-soft); }
.timetable-grid td { min-width:110px; }
.timetable-grid td[data-status=unknown] { background:#fff7e7; }
.timetable-grid td[data-status=busy] { background:#fff1f2; color:#991b1b; }
.timetable-grid td[data-status=busy] select { background:#fee2e2; border-color:#fca5a5; color:#991b1b; font-weight:600; }
.timetable-grid td[data-status=busy] select:focus { border-color:#b91c1c; box-shadow:0 0 0 3px rgba(185,28,28,.14); }
.timetable-grid td[data-status=free] { background:var(--primary-soft); }
.timetable-grid textarea { margin-top:6px; font-size:12px; min-width:0; }
.timetable-editor .form-actions { flex-wrap:wrap; }
#timetables-view .center-export .checkline { flex-direction:row; align-items:center; align-self:center; margin:0; }
#timetables-view .timetable-admin-key-field { flex:1 1 230px; min-width:190px; }
#timetables-view #timetable-admin-key { width:100%; }
#timetable-confirmed-only { min-width:18px; min-height:18px; width:18px; height:18px; flex:0 0 18px; padding:0; }
.timetable-warnings { padding:12px 14px; background:#fff7e7; border-radius:8px; font-size:13px; }
.timetable-text { white-space:pre-wrap; overflow-wrap:anywhere; max-height:220px; overflow:auto; }
@media (max-width:600px) { .timetable-mine { grid-template-columns:1fr; } .timetable-member { flex-wrap:wrap; } .timetable-member .acard-actions { width:100%; } }
@media (max-width:760px) {
.center-duty-grid { grid-template-columns:1fr; }
.center-duty-slot { grid-template-columns:84px minmax(0,1fr); }
.center-duty-slot > .btn { grid-column:2; justify-self:start; }
.center-duty-live { align-items:flex-start; flex-direction:column; }
}
@media (max-width:600px) {
.timetable-review-toolbar .muted { flex-basis:100%; margin-left:0; }
.timetable-review-panel { width:calc(100% - 8px); padding:7px; }
.timetable-review-panel .timetable-grid th,.timetable-review-panel .timetable-grid td { padding:4px 2px; font-size:11px; }
.timetable-review-panel .timetable-grid small { font-size:9px; }
.timetable-status-button { font-size:12px; }
}
.center-history { margin-top:28px; }
.center-history summary { cursor:pointer; padding:12px 0; }
.center-history .acard { margin-top:12px; }
/* ---------- 设备使用教程 ---------- */
.tutorial-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; align-items:start; }
.tutorial-card { display:flex; flex-direction:column; gap:10px; padding:14px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.tutorial-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.tutorial-head b { font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.tutorial-head .tag { max-width:100%; overflow-wrap:anywhere; white-space:normal; }
.tutorial-video { display:block; width:100%; aspect-ratio:16/9; background:#101613; border-radius:10px; }
.tutorial-note { margin:0; font-size:13px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.tutorial-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:auto; }
.tutorial-meta .muted { min-width:0; overflow-wrap:anywhere; }
@media (max-width:760px) { .tutorial-grid { grid-template-columns:1fr; } }
@media (min-width:761px) and (max-width:1000px) { .topbar-inner { flex-wrap:wrap; } #nav { order:3; flex-basis:100%; } }