/* WorkLog 活动记录 — 样式 */ :root { --bg: #f4f6fa; --card: #ffffff; --ink: #1f2430; --muted: #6b7280; --line: #e5e8ef; --primary: #4361ee; --primary-ink: #ffffff; --primary-soft: #eef1fd; --ok: #12805c; --ok-soft: #e2f5ec; --warn: #b45309; --warn-soft: #fdf1e0; --bad: #b42323; --bad-soft: #fdeaea; --radius: 14px; --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px -12px rgba(17, 24, 39, .12); } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", 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(67, 97, 238, .15); } 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: .15s; } .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 { filter: brightness(1.08); color: #fff; } .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: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); } .topbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 20px; } .brand { font-weight: 700; font-size: 17px; 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: 1080px; margin: 0 auto; padding: 24px 20px 60px; } .container.narrow { max-width: 640px; } .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .page-head h2 { margin: 0 0 2px; font-size: 22px; } .page-head p { margin: 0; } .filters { display: flex; gap: 8px; flex-wrap: wrap; } .filters input, .filters select { min-width: 130px; } .stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; } .stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 96px; box-shadow: var(--shadow); } .stat b { display: block; font-size: 20px; } .stat span { color: var(--muted); font-size: 12px; } .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: 12px; } .acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: .15s; } .acard:hover { border-color: #c9d4f5; } .acard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .acard h3 { margin: 0; font-size: 17px; cursor: pointer; } .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 dashed 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: #e9f0fb; color: #275bd6; } .tag.pri { background: #f0e9fb; color: #6d3fc0; } .tag.joined { background: #e8f1fd; color: #1d5bbf; } .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: .15s; } .mcard:hover { border-color: #c9d4f5; transform: translateY(-2px); } .mcard-top { display: flex; align-items: center; gap: 12px; } .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #4361ee, #7c3aed); color: #fff; 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: flex; gap: 14px; margin-top: 12px; } .mcard-stats div b { font-size: 16px; } .mcard-stats div span { display: block; font-size: 12px; color: var(--muted); } .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; display: flex; align-items: center; justify-content: center; padding: 24px; } .auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow); } .auth-title { margin: 0; font-size: 24px; text-align: center; } .auth-sub { text-align: center; color: var(--muted); margin: 6px 0 18px; font-size: 13px; } .tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 18px; } .tab { flex: 1; border: none; background: transparent; padding: 8px; border-radius: 8px; font-weight: 500; color: var(--muted); } .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: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 9px; padding: 8px; } .auth-mode.active { border-color: var(--primary); background: var(--primary-soft); 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; margin-top: 0; } .code-row button { flex: none; white-space: nowrap; } .code-row button:disabled { opacity: .55; cursor: not-allowed; } .form-card { margin-bottom: 14px; } .form-card h3 { margin: 0 0 4px; font-size: 16px; } .form-row { display: flex; gap: 10px; } .form-row > * { flex: 1; } .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 dashed 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 { display: none; } #new-activity-btn { 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: #f9fafb; color: #6b7280; 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; }