:root { --ink: #152b3b; --muted: #60707b; --paper: #f6f4ed; --line: #dadfdc; --yellow: #ffda59; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #207db4; outline-offset: 4px; }
.site-header, main, footer { max-width: 1160px; margin: auto; padding-inline: 32px; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 14px; }
.brand { font-family: Georgia, serif; font-size: 23px; font-weight: bold; letter-spacing: -.6px; }
.brand span { font-family: 'PingFang SC', sans-serif; font-size: 12px; font-weight: normal; color: var(--muted); }
.intro { padding: 54px 0 34px; }
.eyebrow, .preview-label, .number { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; letter-spacing: 1.8px; }
.eyebrow { color: var(--muted); margin: 0 0 19px; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: #317356; border-radius: 50%; margin-right: 9px; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 50px); letter-spacing: -2px; line-height: 1.25; }
h1 span { color: var(--muted); margin-left: 18px; font-weight: 400; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 20px 0 0; }
.lead br { display: none; }
.workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.editor { padding: 28px; }
.step-label { font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.step-label span { color: var(--muted); margin-right: 10px; font-family: monospace; }
label { font-size: 13px; }
label span { display: block; color: var(--muted); font-size: 12px; margin: 7px 0 10px; }
textarea { display: block; resize: vertical; width: 100%; min-height: 112px; max-height: 260px; border: 1px solid var(--line); background: #fbfbf8; border-radius: 8px; padding: 12px; color: var(--ink); line-height: 1.65; font-size: 16px; }
textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.small { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 6px; }
.presets { display: flex; gap: 6px; margin: 16px 0 26px; }
.presets button { background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; min-height: 36px; padding: 6px 10px; }
.presets button:hover { background: var(--paper); }
.colors { border: 0; margin: 0; padding: 0; display: flex; gap: 7px; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 13px; }
.colors button { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; padding: 10px 3px; color: var(--ink); }
.colors button[aria-pressed='true'] { border: 2px solid var(--ink); padding: 9px 2px; }
.swatch { display: block; margin: 0 auto 8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #c3c8cb; }
.swatch.terminal { background: var(--yellow); }
.swatch.light { background: #fff; }
.swatch.dark { background: #111; }
.rotation { display: flex; align-items: center; gap: 7px; margin: 25px 0 20px; font-size: 12px; }
.rotation input { accent-color: var(--ink); width: 16px; height: 16px; }
.primary { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: var(--ink); color: #fff; border-radius: 7px; padding: 15px 18px; font-size: 14px; }
.primary:hover { background: #24465b; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.status { color: var(--muted); font-size: 12px; line-height: 1.7; min-height: 34px; margin: 12px 0 0; }
.preview-wrap { background: #e9ede9; padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.preview-label { color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 25px; font-size: 12px; letter-spacing: 1px; }
.board { --board-bg: #152b3b; --board-fg: #ffda59; position: relative; background: var(--board-bg); color: var(--board-fg); min-width: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 24px -22px #152b3b; }
.board[data-theme='light'] { --board-bg: #fff; --board-fg: #111; }
.board[data-theme='dark'] { --board-bg: #080808; --board-fg: #fff; }
.board-safe { position: absolute; inset: 10% 5%; }
.board-inner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sign-text { width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; font-weight: 800; line-height: 1.2; letter-spacing: .02em; font-size: 38px; }
.preview-note { font-size: 12px; line-height: 1.7; margin-top: 28px; }
.preview-note span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.board.is-presenting { position: fixed; inset: auto; left: var(--viewport-left, 0px); top: var(--viewport-top, 0px); width: var(--viewport-width, 100vw); height: var(--viewport-height, 100dvh); aspect-ratio: auto; border-radius: 0; z-index: 1000; }
.board.is-presenting .board-safe { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); }
.close-sign { position: absolute; right: max(15px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom)); min-height: 44px; border: 1px solid currentColor; border-radius: 25px; background: var(--board-bg); color: var(--board-fg); padding: 8px 18px; font-size: 12px; }
[hidden] { display: none !important; }
body.presenting { overflow: hidden; }
.guide { padding: 65px 0 48px; scroll-margin-top: 24px; }
h2 { font-size: 24px; letter-spacing: -.6px; margin: 0 0 26px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.number { color: var(--muted); letter-spacing: 1px; }
h3 { margin: 14px 0 10px; font-size: 16px; }
.guide p:not(.eyebrow), .faq p { color: var(--muted); font-size: 13px; line-height: 1.95; }
.faq { padding: 20px 0 60px; max-width: 800px; }
details { border-top: 1px solid var(--line); padding: 17px 0; }
summary { font-size: 14px; cursor: pointer; }
.faq p { margin-bottom: 0; }
.notice { padding: 15px; border: 1px solid var(--line); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; padding-block: 25px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 740px) {
  .site-header, main, footer { padding-inline: 20px; }
  .site-header { height: 68px; }
  .intro { padding-top: 35px; }
  h1 span { display: block; margin: 7px 0 0; font-size: 26px; }
  .lead br { display: initial; }
  .workspace { grid-template-columns: 1fr; }
  .preview-wrap { grid-row: 1; padding: 20px; }
  .preview-label { margin-bottom: 15px; }
  .preview-note { display: none; }
  .editor { padding: 23px; }
  .step-label { margin-bottom: 18px; }
  .guide { padding-top: 45px; }
  .guide-steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (orientation: portrait) {
  .board.is-presenting.rotate .board-inner { transform: translate(-50%, -50%) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
