:root {
  color-scheme: light;
  --back: #edf1ef;
  --paper: #fcfdfb;
  --ink: #12292a;
  --muted: #516564;
  --line: #cbd7d3;
  --night: #06171b;
  --accent: #116456;
  --latin: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--latin), "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--back);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
button, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid #3aa992; outline-offset: 4px; }
[hidden] { display:none !important; }
.wrap { width: min(1160px, calc(100% - clamp(40px, 11vw, 170px))); margin-inline: auto; }
.skip { position: fixed; top: -150px; left: 16px; z-index: 5; padding: 12px; background: white; }
.skip:focus { top: 12px; }

.header { background:#061519; color:#eff8f4; }
.header-inner, .brand, nav, .dialog-head { display:flex; align-items:center; }
.header-inner { justify-content:space-between; height:66px; }
.brand { gap:10px; font-size:15px; font-weight:650; letter-spacing:.01em; }
.brand img { display:block; filter:invert(1); border-radius:4px; }
.brand b { font-family:var(--latin); font-weight:650; letter-spacing:-.04em; }
nav { gap:22px; color:#c5d4d3; font-size:13px; }
nav button { padding:10px 0; }
nav a { border-left:1px solid #345055; padding-left:22px; }
nav span { margin-left:4px; }
nav a:hover, nav button:hover { color:white; }
.scene { position:relative; isolation:isolate; overflow:hidden; background:#001014; color:#f1f8f3; border-top:1px solid #22353a; }
.film { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:62% 50%; }
.scene::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg, #001013bb, #00101387 30%, transparent 64%); }
.scene-inner { display:flex; align-items:center; min-height:clamp(330px, 29vw, 415px); padding:38px 0 89px; }
.en { color:#a6dcd3; font:italic 29px/1.18 "Baskerville", "Georgia", serif; letter-spacing:-.025em; }
h1 { font-size:clamp(54px, 5.75vw, 84px); line-height:1.19; letter-spacing:-.055em; font-weight:650; margin:8px 0 16px; }
.lead { color:#d3e1de; font-size:clamp(15px,1.2vw,18px); line-height:1.7; }
.work { position:relative; margin-top:-55px; padding-bottom:62px; }
.console { padding:27px 32px 20px; border-radius:13px; background:var(--paper); border:1px solid #dbe4df; box-shadow:0 16px 34px -26px #17372a70,0 2px 5px #17372a08; }
label { display:inline-block; margin-bottom:12px; font-size:17px; font-weight:660; }
.entry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
.field { display:flex; align-items:center; border-radius:7px; border:1px solid #afc0ba; background:#f6f8f5; padding:0 9px 0 15px; }
.field:focus-within { border-color:var(--accent); box-shadow:0 0 0 2px #13766523; }
textarea { display:block; flex:1; min-width:0; height:52px; resize:none; border:0; outline:0; background:transparent; color:var(--ink); font-size:16px; line-height:24px; padding:14px 8px 10px 0; }
textarea:focus-visible { outline:0; }
textarea[rows="3"] { height:100px; }
.entry > .primary { align-self:center; }
textarea::placeholder { color:#6b7d78; opacity:1; }
#paste, .primary, .save { display:inline-flex; align-items:center; justify-content:center; gap:10px; }
#paste { flex:none; font-size:13px; padding:8px 10px; color:#48635d; border-radius:4px; }
#paste:hover { background:#e6ede7; }
.clip-icon { display:inline-block; position:relative; width:12px; height:14px; border:1.5px solid currentColor; border-radius:2px; }
.clip-icon::before { content:""; position:absolute; width:5px; height:3px; top:-3px; left:2px; border:1px solid; border-radius:2px; background:#f6f8f5; }
.primary,.save { background:var(--accent); color:white; padding:0 28px; min-height:52px; border-radius:7px; font-size:16px; font-weight:640; }
.primary:hover,.save:hover { background:#0f5549; }
.primary:active,.save:active { transform:translateY(1px); }
.primary:disabled { opacity:.58; cursor:default; }
.down-icon { position:relative; width:16px; height:15px; border:1.6px solid; border-top:0; border-radius:0 0 3px 3px; clip-path:polygon(0 60%,16% 60%,16% 0,84% 0,84% 60%,100% 60%,100% 100%,0 100%); }
.down-icon::before,.down-icon::after { content:""; position:absolute; }
.down-icon::before { height:9px; left:calc(50% - .75px); top:0; border-left:1.5px solid; }
.down-icon::after { width:5px; height:5px; left:calc(50% - 3.25px); top:3px; border:solid currentColor; border-width:0 1.6px 1.6px 0; transform:rotate(45deg); }
.meta, .account { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.meta { justify-content:space-between; margin-top:15px; color:var(--muted); font-size:12px; line-height:1.6; }
.status-dot { width:6px; height:6px; border-radius:50%; background:#6a897d; }
#logout { font-size:12px; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.file-limit b { font-family:var(--latin); font-weight:550; }
#result { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:18px; border-top:1px solid var(--line); padding-top:16px; overflow-wrap:anywhere; }
#state { font-size:15px; }
#detail { font-size:13px; color:var(--muted); line-height:1.65; margin-top:3px; }
#detail:empty { display:none; }
.save { flex:none; min-height:38px; font-size:13px; padding:0 14px; }

.sources { margin-top:34px; }
.sources h2 { font-size:16px; font-weight:650; margin-bottom:18px; }
.sources ul { list-style:none; padding:18px 0 21px; border-block:1px solid var(--line); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.sources li { display:flex; align-items:center; gap:13px; padding:2px clamp(10px,2vw,29px); border-left:1px solid var(--line); }
.sources li:first-child { padding-left:1px; border:0; }
.sources h3 { font-size:15px; font-weight:650; margin:0 0 4px; line-height:1.4; }
.sources p { color:var(--muted); font-size:12px; line-height:1.5; }
.glyph { flex:none; width:25px; height:25px; background:#304947; mask-image:url('/platform-glyphs.png'); mask-size:500% 100%; mask-repeat:no-repeat; }
.wb { mask-position:0% 0; } .yt { mask-position:25% 0; } .xhs { mask-position:50% 0; } .dy { mask-position:75% 0; } .bili { mask-position:100% 0; }

dialog { max-width:min(470px,calc(100% - 32px)); max-height:85dvh; overflow:auto; padding:24px 28px 28px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:14px; box-shadow:0 22px 80px #00171542; }
dialog::backdrop { background:#031e22b5; }
.dialog-head { justify-content:space-between; gap:16px; padding-bottom:13px; border-bottom:1px solid var(--line); }
.dialog-head h2 { font-size:21px; } .close { font-size:25px; line-height:32px; width:34px; border-radius:5px; }
.close:hover { background:#e6ede7; }
dialog h3 { margin:18px 0 5px; font-size:15px; }
dialog p { font-size:14px; color:var(--muted); line-height:1.75; }
@media(max-width:850px) {
  .sources li { gap:9px; padding:2px 10px; }
  .sources .glyph { width:20px; height:20px; }
  .console { padding:24px; }
}
@media(max-width:650px) {
  .wrap { width:calc(100% - 36px); }
  .header-inner { height:57px; }
  .brand { font-size:14px; gap:7px; }
  .brand img { width:25px; height:25px; }
  nav { font-size:12px; gap:12px; }
  nav a { padding-left:12px; }
  .scene-inner { min-height:292px; padding:44px 0 73px; }
  .film { object-position:53% 50%; }
  .scene::after { background:linear-gradient(90deg,#001013ed,#001013b8 48%,#00101312); }
  .en { font-size:23px; }
  h1 { font-size:49px; margin:6px 0 11px; }
  .lead { font-size:14px; }
  .work { margin-top:-39px; padding-bottom:32px; }
  .console { border-radius:11px; padding:19px 16px 16px; }
  .entry { grid-template-columns:1fr; gap:10px; }
  label { font-size:16px; margin-bottom:10px; }
  textarea { min-height:58px; padding-block:16px; }
  .primary { min-height:46px; }
  .meta { margin-top:12px; gap:3px 12px; }
  .file-limit { font-size:11px; }
  .sources { margin-top:26px; }
  .sources h2 { margin-bottom:12px; }
  .sources ul { grid-template-columns:repeat(2,minmax(0,1fr)); padding:4px 0; }
  .sources li,.sources li:first-child { border:0; padding:12px 4px; }
  .sources .glyph { width:23px; height:23px; }
}
@media(max-width:355px) {
  nav a { display:none; }
  .brand { gap:6px; }
  .file-limit { display:none; }
}
