:root { --bg: #f5f3ed; --panel: #fffdf8; --ink: #1f2a24; --muted: #6b756e; --line: #ddd4c6; --accent: #0f766e; --exact: #0f766e; --high: #b7791f; --low: #3b82a0; --irrelevant: #b42318; } body { margin: 0; font-family: "IBM Plex Sans", "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at top left, #f0e6d6 0, transparent 28%), linear-gradient(180deg, #f9f6f0 0%, #f0ece3 100%); } .app { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; } .sidebar { border-right: 1px solid var(--line); padding: 20px; background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); } .main { padding: 24px; } h1, h2 { margin: 0 0 12px; } .muted { color: var(--muted); } .query-list { max-height: 60vh; overflow: auto; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 8px; } .query-item { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 500; } .query-item:hover { background: #eef6f4; } .toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; } input[type=text] { flex: 1 1 420px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 15px; } button { border: 0; background: var(--accent); color: white; padding: 12px 16px; border-radius: 14px; cursor: pointer; font-weight: 600; } button.secondary { background: #d9e6e3; color: #12433d; } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; } .metric-context { margin: 0 0 12px; line-height: 1.5; } .metric-section { margin-bottom: 18px; } .metric-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; } .metric-section-head h3 { margin: 0; font-size: 14px; color: #12433d; } .metric-section-head p { margin: 0; color: var(--muted); font-size: 12px; } .metric-grid { margin-bottom: 0; } .metric { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; } .metric .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; } .metric .value { font-size: 24px; font-weight: 700; margin-top: 4px; } .results { display: grid; gap: 10px; } .result { display: grid; grid-template-columns: 110px 100px 1fr; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px; } .badge { display: inline-block; padding: 8px 10px; border-radius: 999px; color: white; font-weight: 700; text-align: center; } .label-exact-match { background: var(--exact); } .label-high-relevant { background: var(--high); } .label-low-relevant { background: var(--low); } .label-irrelevant { background: var(--irrelevant); } .badge-unknown { background: #637381; } .thumb { width: 100px; height: 100px; object-fit: cover; border-radius: 14px; background: #e7e1d4; } .title { font-size: 16px; font-weight: 700; margin-bottom: 4px; } .title-zh { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; line-height: 1.4; } .options { color: var(--muted); line-height: 1.5; font-size: 14px; } .section { margin-bottom: 28px; } .history { font-size: 13px; line-height: 1.5; } .history-list { max-height: 42vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; } .history-item { display: block; width: 100%; border: 1px solid var(--line); background: var(--panel); text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--ink); font-size: 13px; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; } .history-item:hover { background: #eef6f4; border-color: #b8d4cd; } .history-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .history-item .hid { font-weight: 700; font-size: 12px; word-break: break-all; color: #12433d; } .history-item .hmeta { color: var(--muted); font-size: 11px; margin-top: 4px; } .history-item .hstats { margin-top: 6px; font-size: 12px; color: var(--ink); line-height: 1.45; } .history-item .hstats span { color: var(--muted); } .report-modal-root { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; } .report-modal-root.is-open { display: flex; } .report-modal-backdrop { position: absolute; inset: 0; background: rgba(31, 42, 36, 0.45); backdrop-filter: blur(4px); } .report-modal-dialog { position: relative; z-index: 1; width: min(920px, 100%); max-height: min(92vh, 900px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px rgba(31, 42, 36, 0.18); } .report-modal-head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); } .report-modal-head h3 { margin: 0; font-size: 15px; font-weight: 700; word-break: break-all; } .report-modal-head .head-actions { display: flex; gap: 8px; flex-shrink: 0; } .report-modal-head button { padding: 8px 12px; font-size: 13px; border-radius: 10px; } .report-modal-meta { flex: 0 0 auto; padding: 10px 18px; font-size: 12px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,0.9); } .report-modal-body { flex: 1 1 auto; overflow: auto; padding: 18px 22px 22px; font-size: 14px; line-height: 1.55; } .batch-report-md h1 { font-size: 1.35rem; margin: 0 0 0.75rem; color: #12433d; } .batch-report-md h2 { font-size: 1.05rem; margin: 1.35rem 0 0.6rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line); color: #1a5249; } .batch-report-md h2:first-of-type { margin-top: 0; } .batch-report-md h3 { font-size: 0.95rem; margin: 1rem 0 0.4rem; color: var(--ink); font-weight: 700; } .batch-report-md ul { margin: 0.35rem 0 0.5rem; padding-left: 1.25rem; } .batch-report-md li { margin: 0.2rem 0; } .batch-report-md code { font-size: 0.88em; background: #e8e4d8; padding: 0.12em 0.35em; border-radius: 4px; } .report-modal-body.report-modal-loading, .report-modal-body.report-modal-error { color: var(--muted); font-style: italic; } .tips { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; line-height: 1.6; } .tip { margin-bottom: 6px; color: var(--muted); } @media (max-width: 960px) { .app { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .metric-section-head { flex-direction: column; align-items: flex-start; } } @media (max-width: 640px) { .main, .sidebar { padding: 16px; } .result { grid-template-columns: 1fr; } .thumb { width: 100%; max-width: 180px; height: auto; aspect-ratio: 1 / 1; } }