Files

89 lines
7.1 KiB
CSS

* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; color: #eaf0f3; background: #131b24; }
body { margin: 0; }
button, input, select { font: inherit; }
.topbar { height: 68px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff12; }
.brand { display: flex; align-items: center; gap: 12px; color: #edf6f5; text-decoration: none; font-weight: 750; letter-spacing: 2px; font-size: 16px; }
.brand > span:last-child { font-size: 10px; font-weight: 500; color: #98a9b5; letter-spacing: 2px; }
.brand-icon { display: grid; place-items: center; width: 30px; height: 30px; background: #b9e7d3; color: #192b2a; border-radius: 9px 9px 9px 2px; font-size: 21px; }
.format-label { font-size: 10px; letter-spacing: 1.5px; color: #98a9b5; }
.divider { margin: 0 12px; color: #4e5d69; }
main { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100dvh - 68px); min-height: 610px; }
.sidebar { padding: 35px 26px 24px; overflow-y: auto; }
.eyebrow { color: #8ac9b1; letter-spacing: 2px; font-size: 10px; font-weight: 600; }
h1 { margin: 17px 0 10px; font-weight: 600; font-size: 32px; letter-spacing: 2px; }
.subtitle { margin: 0; font-size: 12px; color: #a8b5bf; line-height: 1.8; }
.subtitle span { color: #748796; font-size: 11px; letter-spacing: .6px; }
.tags { display: flex; gap: 7px; margin: 21px 0 26px; }
.tags span { font-size: 10px; border: 1px solid #ffffff16; border-radius: 4px; padding: 5px 7px; color: #aebdc6; }
.section { border-top: 1px solid #ffffff12; padding-top: 20px; margin-top: 24px; }
h2 { margin: 0 0 19px; font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; }
h2 span { font-size: 9px; color: #617887; letter-spacing: 1.5px; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; row-gap: 20px; }
dt { color: #8a9da9; font-size: 11px; }
dd { margin: 6px 0 0; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
fieldset { padding: 0; margin: 0; border: none; }
fieldset:disabled { opacity: .4; }
.toggle { display: flex; align-items: center; justify-content: space-between; position: relative; font-size: 12px; margin-bottom: 19px; color: #b5c3cc; cursor: pointer; }
.toggle input { position: absolute; right: 0; opacity: 0; width: 34px; height: 24px; margin: 0; }
.switch { width: 30px; height: 17px; border-radius: 12px; background: #3a4956; pointer-events: none; transition: background .15s; }
.switch::after { content: ""; display: block; background: #c3cbd1; width: 11px; height: 11px; margin: 3px; border-radius: 50%; transition: transform .15s; }
input:checked + .switch { background: #86c9ac; }
input:checked + .switch::after { background: #162b24; transform: translateX(13px); }
input:focus-visible + .switch, button:focus-visible, a:focus-visible { outline: 2px solid #b9e7d3; outline-offset: 4px; }
button { background: #ffffff07; border: 1px solid #ffffff20; color: #e0ebe8; width: 100%; padding: 11px 13px; border-radius: 6px; font-size: 12px; display: flex; justify-content: space-between; cursor: pointer; }
button:hover { background: #ffffff10; }
button:disabled { cursor: default; }
.motion-section { margin-top: 0; }
#motion-sources { display: grid; gap: 8px; }
#motion-demo { background: #b9e7d312; border-color: #8ac9b140; }
#motion-demo span { font-size: 9px; color: #8ac9b1; letter-spacing: 1px; }
.motion-name { margin: 16px 0 6px; font-size: 12px; color: #cfe1dc; overflow-wrap: anywhere; }
.motion-status { font-size: 10px; line-height: 1.8; color: #8da59e; min-height: 18px; margin: 0 0 12px; }
.motion-status.error { color: #f0b0a3; }
.playback-buttons { display: flex; gap: 8px; }
.playback-buttons button { justify-content: center; }
#motion-play { background: #b9e7d3; color: #192b2a; border-color: #b9e7d3; }
.timeline-label { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #aabcb5; margin-top: 18px; gap: 6px; }
#motion-time-text { font-variant-numeric: tabular-nums; font-size: 9px; white-space: nowrap; }
#motion-time { width: 100%; accent-color: #a0d8c1; margin: 12px 0 16px; cursor: pointer; }
#motion-time:disabled { cursor: default; }
.motion-options { display: flex; align-items: center; gap: 24px; margin-bottom: 15px; }
.motion-options .toggle { flex: 1; margin-bottom: 0; gap: 10px; }
.speed-label { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #b5c3cc; }
#motion-speed { background: #1b2932; color: #d0e4db; border: 1px solid #ffffff25; padding: 5px 3px; border-radius: 4px; font-size: 11px; }
#motion-clear { font-size: 11px; justify-content: center; color: #aebdc6; }
select:focus-visible, input[type="range"]:focus-visible { outline: 2px solid #b9e7d3; outline-offset: 3px; }
.note, .download-note { font-size: 10px; line-height: 1.9; color: #8497a5; }
.note { margin: 25px 0 20px; }
.download { display: flex; justify-content: space-between; font-size: 11px; color: #a0d8c1; text-decoration: none; }
.download:hover { text-decoration: underline; }
.download-note { font-size: 9px; }
#viewport { position: relative; overflow: hidden; min-width: 0; background: #e1e8e8; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
canvas:focus-visible { outline: 2px solid #438771; outline-offset: -3px; }
.view-label { position: absolute; z-index: 1; top: 25px; left: 26px; font-size: 10px; letter-spacing: 2px; color: #566e6a; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #588c78; }
.view-footer { position: absolute; bottom: 0; padding: 24px 26px; width: 100%; display: flex; justify-content: space-between; gap: 16px; color: #536b67; font-size: 10px; pointer-events: none; background: linear-gradient(transparent, #e1e8e8e8); }
.view-footer > span:last-child { text-align: right; line-height: 1.7; }
#status { white-space: nowrap; }
.mobile-break { display: none; }
.loading { position: absolute; z-index: 2; inset: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; background: #e1e8e8f2; color: #304841; text-align: center; padding: 35px; }
.loading[hidden], [hidden] { display: none !important; }
.loading strong { font-size: 17px; font-weight: 500; }
.loading p { font-size: 12px; max-width: 430px; line-height: 1.8; overflow-wrap: anywhere; }
.spinner { width: 30px; height: 30px; border: 2px solid #bdceca; border-top-color: #438771; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 25px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
.topbar { height: 56px; padding: 0 17px; }
.brand > span:last-child { display: none; }
main { height: auto; min-height: 0; grid-template-columns: 1fr; }
#viewport { grid-row: 1; height: 66dvh; min-height: 400px; }
.sidebar { padding: 25px; }
.stats { grid-template-columns: repeat(4, 1fr); }
.view-label { left: 18px; top: 20px; }
.view-footer { padding: 18px; font-size: 9px; }
.mobile-break { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .switch, .switch::after { transition: none; } }