* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f6f6f8; color: #26215c; font-size: 14px; line-height: 1.7; }
.hidden { display: none !important; }
.muted { color: #9996a8; font-size: 13px; }
.small { font-size: 12px; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
h2 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
input, textarea, select { width: 100%; padding: 10px 14px; border: 1px solid #e3e1ec; border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline: none; border-color: #7f77dd; box-shadow: 0 0 0 3px rgba(127,119,221,.12); }
textarea { resize: vertical; }
label { display: block; margin: 12px 0 4px; font-size: 13px; color: #5f5e5a; }
.btn { padding: 8px 18px; border: 1px solid #e3e1ec; border-radius: 10px; background: #fff; color: #3c3489; cursor: pointer; font-size: 13px; font-family: inherit; transition: all .15s; }
.btn:hover { background: #eeedfe; border-color: #afa9ec; }
.btn.primary { background: #534ab7; color: #fff; border-color: #534ab7; }
.btn.primary:hover { background: #3c3489; }
.btn.small { padding: 4px 12px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; margin-top: 14px; }
.btn.danger { color: #a32d2d; }
.btn:disabled { opacity: .5; cursor: wait; }
.row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.right { justify-content: flex-end; }
.chip { display: inline-block; padding: 2px 12px; background: #eeedfe; color: #534ab7; border-radius: 20px; font-size: 12px; }
.chip.green { background: #e1f5ee; color: #0f6e56; }
.badge { background: #eeedfe; color: #534ab7; border-radius: 10px; padding: 0 7px; font-size: 11px; margin-left: auto; }
.logo-mark { width: 56px; height: 56px; border-radius: 16px; background: #534ab7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px; }
.logo-mark.small { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; margin: 0; flex-shrink: 0; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: #fff; border-radius: 20px; padding: 44px 40px; width: 360px; text-align: center; border: 1px solid #eceaf3; box-shadow: 0 8px 40px rgba(38,33,92,.06); }
.login-card h1 { font-size: 22px; }
.login-card input { margin-top: 26px; text-align: center; }
.login-card .small { margin-top: 18px; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex-shrink: 0; background: #fff; border-right: 1px solid #eceaf3; display: flex; flex-direction: column; padding: 24px 14px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 24px; }
.side-title { font-weight: 600; font-size: 15px; }
.side-sub { font-size: 11px; color: #9996a8; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: none; background: none; border-radius: 10px; font-size: 14px; color: #5f5e5a; cursor: pointer; font-family: inherit; text-align: left; width: 100%; }
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #d3d1c7; flex-shrink: 0; }
.nav-item:hover { background: #f6f6f8; }
.nav-item.active { background: #eeedfe; color: #3c3489; font-weight: 500; }
.nav-item.active .dot { background: #534ab7; }
.side-foot { border-top: 1px solid #f1efe8; padding-top: 12px; }

.main { flex: 1; padding: 40px 44px 80px; max-width: 980px; }
.page-head { margin-bottom: 24px; }
.page-head p { color: #9996a8; font-size: 13px; margin-top: 4px; }
.card { background: #fff; border: 1px solid #eceaf3; border-radius: 16px; padding: 22px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(38,33,92,.03); }
.manual-card { background: #fbfbfe; }
.empty { text-align: center; color: #9996a8; padding: 48px 0; font-size: 13px; }

.inbox-card .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.inbox-card .time { margin-left: auto; font-size: 12px; color: #9996a8; }
.inbox-input { background: #f6f5fc; border-left: 3px solid #7f77dd; border-radius: 0 10px 10px 0; padding: 14px 18px; white-space: pre-wrap; font-size: 14px; margin-bottom: 16px; }
.ver-tabs { display: inline-flex; background: #f1efe8; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.ver-tab { border: none; background: none; padding: 5px 16px; border-radius: 8px; font-size: 12px; cursor: pointer; color: #5f5e5a; font-family: inherit; }
.ver-tab.active { background: #fff; color: #3c3489; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ver-content { white-space: pre-wrap; background: #fbfbfe; border: 1px solid #f1effa; border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
.inbox-sec-title { font-size: 13px; font-weight: 500; color: #534ab7; margin: 18px 0 8px; }
.sug-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f6f5fa; }
.sug-item:last-child { border-bottom: none; }
.sug-item .text { flex: 1; font-size: 13px; }
.sug-item .ops { display: flex; gap: 6px; flex-shrink: 0; opacity: .35; transition: opacity .15s; }
.sug-item:hover .ops { opacity: 1; }
.sug-num { color: #7f77dd; font-weight: 500; font-size: 13px; }
.ext-list { background: #eaf3de; border-radius: 10px; padding: 14px 18px; }
.ext-item { font-size: 13px; color: #27500a; padding: 4px 0; }

.toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.toolbar select { width: 140px; flex-shrink: 0; }
.toolbar .btn { flex-shrink: 0; }
.prompt-card .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.prompt-card .title { font-weight: 500; font-size: 15px; }
.prompt-card .content { white-space: pre-wrap; color: #444441; max-height: 120px; overflow: hidden; margin: 8px 0; font-size: 13px; }
.prompt-card .foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prompt-card .used { margin-left: auto; font-size: 12px; color: #9996a8; }

.combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.combo-grid input, .combo-grid textarea { margin-bottom: 10px; }
.picker { max-height: 420px; overflow-y: auto; }
.picker-item { padding: 12px; border: 1px solid #f1effa; border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all .12s; }
.picker-item:hover { border-color: #afa9ec; background: #fbfbfe; }
.picker-item .t { font-weight: 500; font-size: 13px; }
.picker-item .c { font-size: 12px; color: #9996a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-bar { margin: 12px 0; min-height: 60px; }
.combo-item { display: flex; align-items: center; gap: 8px; background: #eeedfe; border-radius: 10px; padding: 9px 14px; margin-bottom: 8px; }
.combo-item .t { flex: 1; font-size: 13px; }
.combo-item .n { color: #7f77dd; font-weight: 500; font-size: 12px; }
.combo-item button { border: none; background: none; cursor: pointer; color: #534ab7; font-size: 12px; padding: 2px 6px; }
.share-result { margin-top: 14px; background: #eaf3de; padding: 14px; border-radius: 10px; }
.saved-combo { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f6f5fa; }
.saved-combo .t { flex: 1; }

.link-card .q { color: #5f5e5a; margin: 6px 0; font-size: 13px; }
.link-card .url { font-family: Menlo, monospace; color: #185fa5; font-size: 13px; }
.link-card .stats { display: flex; gap: 18px; color: #9996a8; font-size: 12px; margin: 10px 0 4px; }
.status-off { color: #a32d2d; font-size: 12px; }

.connect-card h3 { margin-bottom: 12px; }
.connect-desc { color: #5f5e5a; font-size: 13px; margin: 8px 0 14px; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.flow-item { background: #fbfbfe; border: 1px solid #f1effa; border-radius: 10px; padding: 14px; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.flow-n { width: 22px; height: 22px; border-radius: 50%; background: #534ab7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

.file-card .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.file-card .title { font-weight: 500; font-size: 14px; word-break: break-all; }
.file-card .stats { font-size: 12px; margin: 6px 0 4px; }

.modal-mask { position: fixed; inset: 0; background: rgba(38,33,92,.3); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 18px; padding: 26px; width: 520px; max-width: 100%; max-height: 90vh; overflow-y: auto; }
.modal.center { text-align: center; width: 300px; }
#qrBox { display: flex; justify-content: center; margin: 16px 0; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #2c2c2a; color: #fff; padding: 10px 26px; border-radius: 26px; font-size: 13px; z-index: 200; }

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 14px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { border: none; display: flex; }
  .main { padding: 20px; }
  .combo-grid, .flow { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
}
