/*
 * Style.css
 * XinXinInject
 * Created by hxy on 2026-12-02.
 */
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #191919; background: #fff; font-synthesis: none; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b7c9ee; outline-offset: 3px; }
.shell { width: min(100% - 48px, 528px); margin: 0 auto; padding: clamp(44px, 10vh, 104px) 0 32px; }
.brand { text-align: center; }
.avatar { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 47%; margin: 0 auto 23px; border: 1px solid #f0f0f0; }
h1 { font-size: 25px; letter-spacing: .8px; margin: 0; line-height: 1.5; font-weight: 600; }
.brand > p { color: #969696; font-size: 13px; letter-spacing: 2px; margin: 9px 0 0; }
.login-panel { width: min(100%, 352px); margin: 43px auto 0; }
label { display: block; font-size: 14px; font-weight: 500; }
input:not([type="checkbox"]):not([type="range"]), textarea { width: 100%; border: 1px solid #dedede; border-radius: 10px; background: #fff; color: #191919; padding: 14px 15px; font-size: 15px; transition: border-color .15s; }
input::placeholder, textarea::placeholder { color: #b5b5b5; }
input:not([type="checkbox"]):not([type="range"]):focus, textarea:focus { border-color: #777; }
.login-panel input { margin-top: 9px; height: 50px; }
.login-panel label:not(:first-child) { margin-top: 23px; }
.password-field { position: relative; }
.password-field input { padding-right: 65px !important; }
.password-field button { position: absolute; top: 23px; right: 15px; font-size: 12px; }
.text-button { appearance: none; background: none; border: 0; padding: 0; color: #777; font-size: 12px; line-height: 22px; }
.text-button:hover { color: #171717; }
.primary { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; border: 1px solid #202020; border-radius: 10px; color: #fff; background: #202020; height: 50px; font-size: 14px; font-weight: 500; transition: background .15s, transform .15s; }
.primary:hover:not(:disabled) { background: #363636; }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary span { font-size: 19px; font-weight: 400; }
.message { min-height: 18px; font-size: 12px; line-height: 1.6; color: #bc3d39; margin: 13px 0; }
.login-button { margin-top: 8px; }
.login-footer { text-align: center; margin: 38px 0 0; color: #aaa; font-size: 11px; letter-spacing: .4px; }
.console-mode .shell { width: 100%; margin: 0; padding: 0; }
.console-panel { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 100dvh; }
.console-sidebar { border-right: 1px solid #eee; }
.console-content { width: 100%; max-width: 880px; min-width: 0; padding: 28px 40px 32px; }
.session-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 0 23px; border-bottom: 1px solid #eee; }
.session-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.session-label { color: #aaa; font-size: 11px; margin-left: 2px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #47916b; }
.notice-tabs { position: sticky; top: 0; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 24px 12px; }
.notice-tabs button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; min-height: 70px; padding: 14px 16px; border: 0; border-radius: 8px; background: #fff; color: #888; font-size: 15px; text-align: left; }
.notice-tabs button:hover:not(:disabled):not([aria-selected="true"]) { background: #f6f6f6; color: #333; }
.notice-tabs button[aria-selected="true"] { background: #242424; color: #fff; }
.notice-tabs small { font-size: 11px; opacity: .7; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 29px 0 14px; }
h2 { font-size: 14px; font-weight: 600; margin: 0; }
.state-label { font-size: 11px; color: #8c8c8c; }
textarea { display: block; resize: vertical; min-height: 116px; max-height: 230px; line-height: 1.9; }
.text-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: #9a9a9a; font-size: 11px; }
.text-meta span:last-child { white-space: nowrap; }
.setting-row { display: flex; justify-content: space-between; align-items: center; margin-top: 29px; }
.setting-row p { color: #a0a0a0; font-size: 11px; margin: 6px 0 0; }
.switch { appearance: none; flex-shrink: 0; width: 38px; height: 22px; margin: 0; border: 0; background: #d6d6d6; border-radius: 20px; cursor: pointer; position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; left: 3px; top: 3px; transition: transform .2s; }
.switch:checked { background: #242424; }
.switch:checked::after { transform: translateX(16px); }
.speed-setting { margin-top: 28px; }
.speed-heading { margin-top: 0; }
output { font-size: 12px; font-variant-numeric: tabular-nums; color: #777; }
input[type="range"] { display: block; width: 100%; height: 20px; margin: 14px 0 0; accent-color: #242424; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: #aaa; font-size: 10px; margin-top: 3px; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 12px; }
.preview-heading > span { color: #999; font-size: 11px; }
.preview { border: 1px dashed #dedede; border-radius: 10px; min-height: 80px; display: flex; align-items: center; overflow: hidden; position: relative; }
.preview-track { display: flex; align-items: center; gap: 7px; white-space: nowrap; position: relative; padding: 5px 10px 5px 5px; animation: notice-scroll 12s linear infinite; flex-shrink: 0; }
.preview-track img { border-radius: 50%; object-fit: cover; object-position: center; }
.preview-track span { font-size: 15px; font-weight: 500; padding: 6px 10px; border: 1px solid #eee; border-radius: 24px; }
.preview.is-menu { align-items: stretch; max-height: 340px; overflow-y: auto; }
.menu-preview { width: 100%; min-width: 0; padding: 18px 20px; }
.preview-author { display: flex; gap: 45px; padding-bottom: 15px; border-bottom: 1px solid #eee; color: #999; font-size: 12px; }
.menu-preview h3 { margin: 17px 0 10px; font-size: 14px; font-weight: 600; }
.menu-preview p { margin: 0; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
#preview-empty { color: #aaa; font-size: 12px; margin: auto; }
@keyframes notice-scroll { from { transform: translateX(calc(-100% + 42px)); } to { transform: translateX(var(--preview-width, 528px)); } }
.publish-message { margin: 15px 0 9px; min-height: 19px; }
.message.success { color: #45825f; }
.delivery-note { text-align: center; font-size: 11px; color: #999; margin: 12px 0 0; }
.console-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #eee; padding-top: 20px; margin-top: 30px; font-size: 10px; color: #aaa; }
.loading-message { font-size: 13px; text-align: center; color: #999; margin: 43px 0 0; }
.retry-button { display: block; margin: 16px auto; }
.model-intro { color: #888; font-size: 12px; line-height: 1.8; margin: 0 0 22px; }
.model-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.model-filters input { flex: 1 1 160px; min-width: 0; font-size: 13px !important; padding: 11px 13px !important; }
.model-filters select { border: 1px solid #dedede; border-radius: 10px; background: #fff; padding: 10px; color: #555; font: inherit; font-size: 12px; max-width: 100%; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 18px; }
.model-card { min-width: 0; border: 1px solid #ececec; border-radius: 12px; overflow: hidden; }
.model-card > img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: contain; background: #fff; }
.model-info { padding: 0 14px 15px; }
.model-info h3 { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.model-info > p { margin: 5px 0 17px; color: #999; font-size: 11px; }
.model-setting { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #777; }
.model-empty { color: #999; font-size: 13px; padding: 30px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .shell { width: calc(100% - 40px); padding-top: 44px; } .avatar { width: 80px; height: 80px; } h1 { font-size: 23px; } .console-panel { grid-template-columns: 84px minmax(0, 1fr); } .console-content { padding: 20px 16px 28px; } .notice-tabs { gap: 8px; padding: 16px 8px; } .notice-tabs button { align-items: center; min-height: 66px; padding: 12px 6px; font-size: 13px; text-align: center; } .notice-tabs small { font-size: 10px; } .session-user { gap: 5px; } .session-label { display: none; } .text-meta { font-size: 10px; } .setting-row { gap: 12px; } .console-footer { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } .preview-track { transform: none; } }
