@font-face { font-family: "DM Sans"; src: url("./fonts/dm-sans.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("./fonts/instrument-serif.ttf") format("truetype"); font-display: swap; }
:root { --paper: #f3f0e7; --surface: #fdfbf6; --ink: #242d27; --muted: #697266; --forest: #244f3b; --line: #d8d9cc; --sage: #e5eadd; --danger: #9b3d31; --body: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif; --display: "Instrument Serif", "Songti SC", "SimSun", serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--body); }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button, input, textarea { border-radius: 7px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #a37141; outline-offset: 3px; }
input, textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 11px 13px; color: var(--ink); min-width: 0; }
input:focus, textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
textarea { resize: vertical; line-height: 1.8; }
label { display: grid; gap: 7px; margin-block: 18px; font-size: 13px; font-weight: 600; }
h1,h2,p { margin: 0; }
.topbar { min-height: 85px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 3.5vw; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -.7px; }
.brand > span { margin-left: -8px; color: var(--forest); }
.brand small { font-size: 10px; letter-spacing: .13em; padding-left: 12px; color: var(--muted); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.primary, .secondary, .quiet, .danger { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 16px; border: 1px solid transparent; font-size: 13px; font-weight: 600; }
.primary { background: var(--forest); color: var(--surface); }
.primary:hover:not(:disabled) { background: #193e2e; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--forest); }
.quiet { background: transparent; border-color: var(--line); color: var(--forest); }
.danger { background: transparent; color: var(--danger); margin-left: auto; }
.eyebrow { color: var(--forest); font-size: 10px; letter-spacing: .13em; font-weight: 650; }
.connection { width: min(1180px, calc(100% - 60px)); margin: 65px auto; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 90px; }
.connection-copy { padding-block: 30px; }
.connection h1 { font: 400 clamp(38px, 4.4vw, 64px)/1.3 var(--display); letter-spacing: -.035em; margin: 25px 0; white-space: pre-line; }
:lang(zh-CN) .connection h1 { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: 0; text-wrap: balance; }
.lead { font-size: 17px; color: var(--muted); max-width: 440px; line-height: 1.9; }
.connection-features { border-top: 1px solid var(--line); display: grid; gap: 15px; margin-top: 42px; padding-top: 24px; font-size: 12px; color: var(--forest); }
.connection-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 25px 60px -50px #244f3b77; }
.connection-card h2 { font: 400 30px/1.35 var(--display); margin-top: 10px; }
.connection-card .primary { width: 100%; margin-top: 22px; }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.trust-note { background: var(--sage); border-left: 3px solid var(--forest); padding: 13px 15px; margin-top: 20px; font-size: 12px; }
.trust-note p { margin-top: 4px; }
.help { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; font-size: 12px; color: var(--muted); }
.help summary { cursor: pointer; color: var(--forest); }
.help p { margin-top: 10px; }
.error { color: var(--danger); font-size: 13px; margin-block: 12px; overflow-wrap: anywhere; }
.error:empty { margin: 0; }
.workspace { display: grid; grid-template-columns: 210px minmax(270px, .8fr) minmax(340px, 1.3fr); min-height: calc(100vh - 85px); }
.sidebar { padding: 30px 24px; background: #eaece2; border-right: 1px solid var(--line); min-width: 0; }
.sidebar h2 { font: 400 26px/1.4 var(--display); margin-top: 10px; overflow-wrap: anywhere; }
.scope { font-size: 11px; margin-top: 8px; color: var(--muted); }
.sidebar nav { display: grid; gap: 6px; margin-top: 30px; }
.filter { text-align: left; padding: 11px 14px; background: transparent; border: 0; color: var(--muted); font-size: 13px; }
.filter.active { background: var(--forest); color: var(--surface); }
.sidebar-note { margin-top: 55px; font-size: 10px; color: var(--forest); }
.sidebar-note p { color: var(--muted); overflow-wrap: anywhere; margin-top: 7px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--forest); border-radius: 50%; margin-right: 7px; }
.collection { border-right: 1px solid var(--line); padding: 28px 22px; min-width: 0; }
.collection-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.collection h1 { font: 400 29px/1.35 var(--display); margin-top: 8px; }
.search-label { margin-block: 22px 14px; }
.create-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.create-actions button { flex: 1; padding-inline: 10px; white-space: nowrap; }
#collection-status { margin-block: 17px; }
.items { display: grid; gap: 10px; }
.item { display: block; width: 100%; padding: 17px; border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink); }
.item:hover { border-color: var(--forest); }
.item.active { border-color: var(--forest); box-shadow: inset 3px 0 var(--forest); background: #edf1e7; }
.item strong { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.item small { display: block; margin-top: 7px; font-size: 11px; color: var(--muted); }
.detail { padding: 30px; min-width: 0; background: #f8f6ef; }
.empty-detail { min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; color: var(--muted); }
.empty-mark { font: 76px/1 var(--display); color: #bac8b6; }
.empty-detail h2 { font: 400 26px/1.5 var(--display); color: var(--ink); }
.empty-detail p { font-size: 13px; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--forest); }
.file-description { margin-block: 20px; padding: 25px; border: 1px dashed var(--line); border-radius: 10px; font: 26px var(--display); }
.card-fields { display: grid; gap: 8px; margin-block: 20px; }
.card-fields p { background: var(--sage); border-radius: 6px; padding: 10px 12px; font-size: 12px; overflow-wrap: anywhere; }
.card-fields strong { display: block; margin-bottom: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 20px; padding: 10px; z-index: 30; background: var(--surface); }
.skip:focus { top: 10px; }
.noscript { padding: 25px; }
.auth-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.auth-tabs button[aria-pressed="true"] { background: var(--forest); color: var(--surface); }
@media (max-width: 1050px) { .connection { gap: 40px; } .workspace { grid-template-columns: 165px minmax(240px, .8fr) minmax(300px, 1fr); } .sidebar { padding-inline: 16px; } .detail { padding: 24px; } }
@media (max-width: 800px) { .connection { grid-template-columns: 1fr; max-width: 580px; gap: 25px; margin-block: 25px; } .connection-copy { padding-block: 12px; } .connection-features { display: none; } .workspace { grid-template-columns: 1fr; } .sidebar { padding: 18px 22px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar nav { display: flex; flex-wrap: wrap; margin-top: 15px; } .sidebar-note { margin-top: 14px; } .sidebar-note p { display: inline; margin-left: 8px; } .collection { border-right: 0; border-bottom: 1px solid var(--line); } .items { max-height: 330px; overflow-y: auto; } .empty-detail { min-height: 220px; } }
@media (max-width: 480px) { .topbar { flex-wrap: wrap; padding: 16px 20px; gap: 12px; } .top-actions { width: 100%; justify-content: space-between; gap: 10px; } .connection { width: calc(100% - 40px); } .connection-card { padding: 23px; } .connection h1 { font-size: 36px; } .lead { font-size: 15px; } .detail { padding: 22px; } }
