@font-face { font-family: "KuaiLe"; src: url(../fonts/kuaile.woff2) format("woff2"); font-display: block; } :root { --ink: #2b2321; --paper: #fbf3e1; --gold: #ffcd3c; --red: #ff5b4f; --green: #38b86a; --blue: #4a8fe2; --card: #fffaf0; } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; background: #f3e7cc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39.5h40M39.5 0v40' stroke='%23e6d6b3' stroke-width='1'/%3E%3C/svg%3E"); color: var(--ink); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; } .top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(43,35,33,.94); color: #fff; flex-wrap: wrap; } .brand { display: flex; align-items: center; gap: 12px; } .logo { font-size: 38px; } .brand h1 { margin: 0; font-family: KuaiLe, sans-serif; font-weight: normal; color: var(--gold); font-size: 30px; letter-spacing: 2px; } .brand p { margin: 2px 0 0; font-size: 13px; opacity: .8; } nav a { color: #fff; text-decoration: none; margin-left: 14px; font-size: 14px; opacity: .85; } nav a:hover { opacity: 1; color: var(--gold); } main { max-width: 1180px; margin: 0 auto; padding: 18px 14px 40px; } .card { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 8px 0 rgba(43,35,33,.85); padding: 18px; margin-bottom: 26px; } h2 { font-family: KuaiLe, sans-serif; font-weight: normal; font-size: 26px; margin: 0 0 10px; display: flex; align-items: center; gap: 12px; } .muted { color: #7a6a5a; font-size: 14px; } .stage-wrap { display: flex; justify-content: center; background: #2b2321; border-radius: 12px; padding: 10px; } .stage { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 76vh; } .stage.portrait { aspect-ratio: 9/16; width: auto; height: 76vh; max-width: 100%; } .stage canvas { width: 100%; height: 100%; display: block; border-radius: 8px; background: #fbf3e1; cursor: pointer; } .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(43,35,33,.82); color: #fff; border-radius: 8px; font-size: 16px; } .overlay .bar { width: 60%; height: 10px; background: rgba(255,255,255,.2); border-radius: 6px; overflow: hidden; } .overlay .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; } .spinner { width: 46px; height: 46px; border: 6px solid rgba(255,255,255,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 110px; height: 110px; border-radius: 50%; border: 5px solid var(--ink); background: var(--gold); font-size: 46px; cursor: pointer; box-shadow: 4px 6px 0 var(--ink); padding-left: 10px; } .hidden { display: none !important; } .controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; } .icon { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; font-size: 18px; cursor: pointer; flex: none; } .icon:hover { background: var(--gold); } .time { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; } .seek { position: relative; flex: 1; height: 16px; background: #e8dcc2; border: 3px solid var(--ink); border-radius: 10px; cursor: pointer; touch-action: none; } .seek-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); border-radius: 6px; } .knob { position: absolute; top: 50%; width: 22px; height: 22px; background: #fff; border: 3px solid var(--ink); border-radius: 50%; transform: translate(-50%,-50%); left: 0; } .marks i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(43,35,33,.45); } .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; } .seg { display: inline-flex; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; flex-wrap: wrap; } .seg button { border: 0; background: #fff; padding: 9px 14px; font-size: 14px; cursor: pointer; border-right: 2px solid var(--ink); } .seg button:last-child { border-right: 0; } .seg button.on { background: var(--gold); font-weight: bold; } .chk { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; margin-top: 10px; } .chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .chapters button { border: 2px solid var(--ink); border-radius: 20px; background: #fff; padding: 5px 12px; font-size: 13px; cursor: pointer; } .chapters button.on { background: var(--ink); color: var(--gold); } .chapters button small { opacity: .6; margin-right: 4px; } .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 14px 0 4px; } .lbl { font-size: 13px; color: #7a6a5a; margin-bottom: 6px; } .primary { background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 26px; font-size: 17px; font-weight: bold; cursor: pointer; box-shadow: 3px 4px 0 var(--ink); } .primary:disabled { opacity: .5; cursor: not-allowed; } .ghost, .btn { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; font-size: 14px; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-block; } .btn:hover, .ghost:hover { background: var(--gold); } .btn.small { font-size: 13px; padding: 4px 10px; font-family: sans-serif; } .progress { position: relative; height: 30px; background: #eee2c8; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; margin-top: 14px; } .progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(45deg, var(--green), var(--green) 14px, #4fcb7e 14px, #4fcb7e 28px); } .progress span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; } #expResult { margin-top: 12px; } #expResult video { width: 100%; max-height: 60vh; border-radius: 10px; border: 3px solid var(--ink); background: #000; margin-top: 10px; } .note { margin-top: 12px; font-size: 13px; color: #7a6a5a; line-height: 1.7; } .note.warn { color: #b3261e; } .covers { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; } .covers figure { margin: 0; flex: 2 1 420px; } .covers figure.tall { flex: 1 1 200px; max-width: 300px; } .covers img { width: 100%; border: 3px solid var(--ink); border-radius: 12px; display: block; background: #eee; } .covers figcaption { font-size: 14px; margin-top: 8px; line-height: 2.2; } .pub-field { border: 2px dashed #c9b9a5; border-radius: 12px; padding: 10px 12px; margin-top: 12px; background: #fff; } .pub-field header { display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 14px; margin-bottom: 6px; } .pub-field pre { white-space: pre-wrap; word-break: break-word; margin: 0; font-family: inherit; font-size: 14px; line-height: 1.7; cursor: copy; } .pub-field .cnt { font-weight: normal; color: #998; font-size: 12px; margin-left: 8px; } .script h3 { font-family: KuaiLe, sans-serif; font-weight: normal; margin: 16px 0 6px; font-size: 20px; } .script p { margin: 4px 0; line-height: 1.8; font-size: 15px; } .script .who { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 8px; margin-right: 6px; color: #fff; } .script .who.m { background: #d9a400; } .script .who.a { background: #2c9c5c; } .script .ts { color: #aa9; font-size: 12px; margin-right: 6px; font-variant-numeric: tabular-nums; cursor: pointer; } footer { text-align: center; font-size: 12px; color: #7a6a5a; padding: 0 14px 30px; } .toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 20px; transition: transform .25s; z-index: 50; font-size: 14px; } .toast.show { transform: translateX(-50%) translateY(0); } .stage:fullscreen { max-height: none; background: #000; display: flex; align-items: center; justify-content: center; } .stage:fullscreen canvas { width: auto; height: auto; max-width: 100vw; max-height: 100vh; aspect-ratio: inherit; } @media (max-width: 640px) { nav { display: none; } .brand h1 { font-size: 24px; } .stage.portrait { height: 70vh; } .time { font-size: 12px; } .icon { width: 38px; height: 38px; } }