* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
nav { background: #1e293b; color: #fff; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
nav a { color: #e2e8f0; font-size: 14px; }
nav a:hover { color: #fff; }
nav .brand { font-weight: bold; font-size: 16px; }
h1, h2, h3 { margin-bottom: 12px; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
th, td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }
th { background: #e2e8f0; font-weight: 600; }
tr:nth-child(even) { background: #f8fafc; }
.card { background: #fff; border-radius: 6px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h3 { margin-bottom: 8px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; color: #475569; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd5e1; border-radius: 4px; padding: 6px 8px; font-size: 14px; }
.field textarea { min-height: 60px; resize: vertical; }
.btn { display: inline-block; padding: 6px 14px; border-radius: 4px; font-size: 14px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #475569; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mastery-new { color: #94a3b8; }
.mastery-familiar { color: #f59e0b; font-weight: 600; }
.mastery-mastered { color: #16a34a; font-weight: 600; }
.source-unknown { color: #94a3b8; }
.source-real { color: #7c3aed; font-weight: 600; }
.source-mock { color: #0891b2; font-weight: 600; }
.source-prediction { color: #dc2626; font-weight: 600; }
.search-bar { margin-bottom: 16px; }
.search-bar form { display: flex; gap: 8px; }
.search-bar input { flex: 1; }
.point-item { border-left: 3px solid #2563eb; padding-left: 12px; margin-bottom: 10px; }
.point-item .point-name { font-weight: 600; color: #1e293b; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; background: #e2e8f0; color: #475569; }
.empty { color: #94a3b8; padding: 20px; text-align: center; }
.flash { background: #fef3c7; border: 1px solid #f59e0b; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
.hint { color: #64748b; margin-bottom: 12px; }
.problem-card { border-top: 3px solid #2563eb; }
.problem-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.problem-head h2 { margin-bottom: 0; margin-right: auto; }
.recite-fields { margin-top: 8px; }
.recite-fields details { margin-bottom: 4px; border-left: 2px solid #cbd5e1; padding-left: 8px; }
.recite-fields summary { cursor: pointer; color: #475569; font-weight: 600; font-size: 14px; padding: 4px 0; list-style: none; }
.recite-fields summary::before { content: "▸ "; }
.recite-fields details[open] summary::before { content: "▾ "; }
.recite-answer { padding: 6px 0 2px 0; color: #1e293b; line-height: 1.6; }
.paper-source { background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 16px; white-space: pre-wrap; word-break: break-word; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.8; }
.essay-para { margin-bottom: 14px; text-indent: 2em; line-height: 1.8; }
.reviewed { color: #16a34a; font-weight: 600; }
.unreviewed { color: #94a3b8; }
