:root { --bg: #f6f7f9; --card: #fff; --text: #1a1d23; --muted: #5c6470; --line: #dde1e7; --accent: #0b5f6b; --accent-text: #fff; --danger: #b3261e; --warn-bg: #fff4d6; --ok: #1b6b3a; }
@media (prefers-color-scheme: dark) { :root { --bg: #14171b; --card: #1d2127; --text: #eceff3; --muted: #a3acb8; --line: #343a43; --accent: #5cc4d1; --accent-text: #06262b; --danger: #ff8a80; --warn-bg: #3b3115; --ok: #7bd69c; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 1; }
header, footer { background: var(--card); border-color: var(--line); border-style: solid; border-width: 0 0 1px; }
footer { border-width: 1px 0 0; margin-top: auto; font-size: 14px; color: var(--muted); }
.bar { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; margin-right: auto; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
nav a { text-decoration: none; padding: 4px 0; color: var(--text); } nav a[aria-current] { color: var(--accent); border-bottom: 2px solid; }
main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 28px; line-height: 1.3; margin: 0 0 16px; } h2 { font-size: 20px; margin: 28px 0 8px; }
.hero { padding: 40px 0 16px; } .hero h1 { font-size: clamp(28px, 5vw, 44px); max-width: 16em; text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.cards article, .list li, .narrow form, .compose > *, .prose { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.cards h2 { margin: 0; } .cards p { margin: 4px 0 0; color: var(--muted); }
.narrow { max-width: 460px; } .prose { max-width: 760px; }
.steps { padding-left: 20px; max-width: 760px; }
.button { display: inline-block; font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-text); border: 1px solid transparent; border-radius: 8px; padding: 8px 18px; text-decoration: none; cursor: pointer; }
.button.plain { background: none; color: var(--accent); border-color: var(--accent); } .button.danger { background: none; color: var(--danger); border-color: var(--danger); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: block; margin-bottom: 16px; } .field > span { display: block; font-weight: 600; } small, .hint { color: var(--muted); font-size: 14px; }
input:not([type=checkbox], [type=radio]), select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.check { display: block; padding: 4px 0; } .check:has(:disabled) { color: var(--muted); opacity: .6; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 16px; padding: 8px 16px 12px; } legend { font-weight: 600; padding: 0 4px; }
.nested { margin-left: 24px; }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .compose { grid-template-columns: minmax(0, 1fr); } }
.preview { width: 100%; max-height: 70vh; background: #000; border-radius: 8px; } form[data-form=upload] video { max-width: 100%; max-height: 50vh; display: block; margin-bottom: 12px; }
progress { width: 100%; }
.creator { display: flex; gap: 12px; align-items: center; } .creator img, .list img { border-radius: 50%; object-fit: cover; }
.list { list-style: none; padding: 0; display: grid; gap: 12px; } .list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .list li > div { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.videos video { width: 90px; height: 120px; object-fit: cover; background: #000; border-radius: 6px; }
.notice { background: var(--warn-bg); border-radius: 8px; padding: 10px 14px; }
.message { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--ok); color: var(--ok); } .message.error { border-color: var(--danger); color: var(--danger); }
.empty { color: var(--muted); }
.scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; background: var(--card); } th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-block; white-space: nowrap; font-size: 14px; border: 1px solid; border-radius: 99px; padding: 0 10px; color: var(--muted); } .badge.published { color: var(--ok); } .badge.attention, .badge.failed { color: var(--danger); } .badge.scheduled, .badge.publishing, .badge.processing { color: var(--accent); }
dl { margin: 0; } dt { font-weight: 600; margin-top: 10px; } dd { margin: 0; } .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.caption { margin: 4px 0; max-height: 6.8em; overflow: auto; }
