:root { color-scheme: dark; font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; background: #0b1120; color: #e5edf8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #173b67, transparent 35rem), #0b1120; }
.container { width: min(100% - 2rem, 1000px); margin: 0 auto; padding: 4rem 0; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: .25rem; font-size: clamp(1.65rem, 4vw, 2.2rem); } h2 { margin-bottom: .35rem; font-size: 1.1rem; } p { color: #a8b7cc; line-height: 1.55; }
.eyebrow { color: #69b9ff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; margin-bottom: .6rem; }
.auth-card, .card { background: rgba(15, 24, 41, .92); border: 1px solid #2b3b55; border-radius: 16px; box-shadow: 0 18px 40px #0004; }
.auth-card { width: min(100%, 430px); margin: 12vh auto; padding: 2.2rem; }
.card { margin-top: 1.15rem; padding: 1.35rem; }
.topbar, .section-title, .copy-row, .actions, .source-head, .source-meta { display: flex; gap: .75rem; align-items: center; }
.topbar, .section-title, .source-head { justify-content: space-between; } .topbar { margin-bottom: 1.5rem; } .section-title { align-items: flex-start; }
form { display: grid; gap: .9rem; } label { display: grid; gap: .4rem; color: #c5d2e5; font-size: .88rem; } input, textarea, select { width: 100%; color: #e8f0ff; background: #111c30; border: 1px solid #405471; border-radius: 8px; padding: .72rem .8rem; font: inherit; } textarea { font-family: "Cascadia Code", Consolas, monospace; resize: vertical; }
button { border: 0; border-radius: 8px; padding: .7rem 1rem; background: #1686e5; color: white; cursor: pointer; font: inherit; font-weight: 650; white-space: nowrap; } button:hover { filter: brightness(1.12); } button.secondary { background: #263850; } button.danger { background: #b43a50; } button:disabled { opacity: .55; cursor: wait; }
.inline-form { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-top: 1rem; } .source-form { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid #283a55; } .checkbox { display: flex; align-items: center; gap: .5rem; } .checkbox input { width: auto; }
.source-list { display: grid; gap: .7rem; margin-top: 1.2rem; } .source { border: 1px solid #2d405d; padding: .9rem; border-radius: 10px; background: #101a2d; } .source p { margin: .25rem 0 0; font-size: .85rem; overflow-wrap: anywhere; } .source-meta { color: #9cb0c9; font-size: .78rem; flex-wrap: wrap; } .source .error { color: #ff96a4; }
.rule-category-actions { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; margin-top: 1rem; } .rule-category-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .45rem; max-height: 24rem; overflow: auto; margin-top: 1rem; padding: .75rem; border: 1px solid #2d405d; border-radius: 8px; background: #101a2d; } .rule-category-list > p { grid-column: 1 / -1; margin: .25rem 0; font-size: .82rem; } .rule-category-item { display: flex; align-items: center; gap: .45rem; padding: .35rem .45rem; border-radius: 6px; background: #152238; overflow-wrap: anywhere; } .rule-category-item input { width: auto; } .rule-category-item small, .rule-order-item small { color: #8ab6e8; font-size: .72rem; } #show-more-rule-categories { margin-top: .75rem; } .rule-order-head { display: flex; align-items: end; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; } .rule-order-head h3 { margin: 0 0 .3rem; font-size: 1rem; } .rule-order-head p { margin: 0; font-size: .84rem; } .rule-category-order { display: grid; gap: .45rem; margin-top: .75rem; } .rule-order-item { display: flex; align-items: center; gap: .65rem; min-height: 2.7rem; padding: .45rem .65rem; background: #152238; border: 1px solid #2d405d; border-radius: 7px; } .rule-order-item > span { flex: 1; } .compact { min-width: 2.25rem; padding: .35rem .6rem; }
.status { background: #233955; color: #bad9f8; padding: .3rem .55rem; border-radius: 99px; font-size: .78rem; } .status.ok { color: #a9f1c6; background: #174631; } .status.error { color: #ffc0c8; background: #572634; } .error { min-height: 1.2em; color: #ff9eaa; margin-bottom: 0; }
pre { overflow: auto; max-height: 28rem; padding: 1rem; background: #08101e; border: 1px solid #2d405d; border-radius: 8px; font-size: .78rem; line-height: 1.45; } #toast { position: fixed; right: 1rem; bottom: 1rem; background: #143d2b; color: #c8ffe0; border: 1px solid #397c5c; border-radius: 8px; padding: .7rem .9rem; opacity: 0; transform: translateY(1rem); transition: .2s; pointer-events: none; } #toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 650px) { .container { width: min(100% - 1rem, 1000px); padding: 1.2rem 0; } .topbar, .section-title, .copy-row, .rule-order-head { align-items: stretch; flex-direction: column; } .inline-form, .rule-category-actions { grid-template-columns: 1fr; } .source-head { align-items: flex-start; flex-direction: column; } }
.rule-order-item { cursor: grab; } .rule-order-item.dragging { opacity: .45; } .rule-order-item.drag-over { border-color: #69b9ff; } .rule-order-item.drop-after { box-shadow: 0 .2rem 0 #69b9ff; }
.source-nodes { margin-top: .8rem; padding: .75rem; border: 1px solid #2d405d; border-radius: 8px; background: #0b1424; } .source-nodes p { margin: 0 0 .55rem; font-size: .8rem; } .source-nodes ul { display: grid; gap: .35rem; max-height: 18rem; overflow: auto; margin: 0; padding: 0; list-style: none; } .source-nodes li { display: flex; gap: .5rem; justify-content: space-between; padding: .4rem .5rem; border-radius: 5px; background: #152238; font-size: .82rem; } .source-nodes li span { color: #a8b7cc; overflow-wrap: anywhere; text-align: right; }
