@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");
:root {
  color-scheme: dark;
  --ink: #231d2e; --paper: #f4f4f6; --soft: #d4d0dc; --mist: #a39cb2; --dim: #6e6680;
  --gold: #f6acc7; --gold-deep: #e76ba7; --red: #e2464f; --cyan: #75e9d6; --yellow: #ffb36b; --good: #75e9d6; --bad: #e2464f;
  --line: rgba(255, 255, 255, .42); --line-soft: rgba(255, 255, 255, .2); --line-faint: rgba(255, 255, 255, .09);
  --pick: rgba(246, 172, 199, .16); --pick-top: #f6acc7;
  --f: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --d: "Oswald", "Noto Sans SC", "PingFang SC", sans-serif;
  --s: "Oswald", "Noto Sans SC", sans-serif;
  --t: "Inter", "Noto Sans SC", sans-serif; }
* { box-sizing: border-box; }
/* 字号随画框宽度自适应：窄框 15px，宽框 18px。底是暗紫，顶上透一点日落粉 */
html { font-size: clamp(15px, calc(9px + .9vw), 18px); background: radial-gradient(ellipse 80% 260px at 70% 0, rgba(246, 172, 199, .14), transparent 70%), linear-gradient(180deg, #2c2238, #231d2e 320px); background-color: #231d2e; }
body { font: 400 1rem/1.85 var(--f); color: var(--paper); max-width: 46rem; margin: 0 auto; padding: 1.4rem 1.6rem 1.8rem; overflow-wrap: anywhere; }
::selection { background: #f6acc7; color: #1a1020; }

/* ---- 文字：标题是窄体全大写；h1 下面一道日落渐变短线 ---- */
h1, h2, h3, h4 { line-height: 1.3; margin: 1.3em 0 .55em; }
h1 { font: 700 2.3rem/1.15 var(--d); letter-spacing: .01em; color: #fff; padding-bottom: .35em;
  background: linear-gradient(90deg, #ffb36b, #ff7aa8 55%, #9f87f9) 0 100% / 3.2em 4px no-repeat; }
h2 { font: 600 1.4rem/1.3 var(--d); letter-spacing: .03em; text-transform: uppercase; color: #f4f4f6; }
h3 { position: relative; font: 600 1.1rem/1.5 var(--f); color: #f6acc7; padding-left: 1.2rem; }
h3::before { content: ""; position: absolute; left: 0; top: .32em; width: .85rem; height: .85rem; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%201.6L14.9%208.6L22.4%209.2L16.7%2014.1L18.4%2021.5L12%2017.6L5.6%2021.5L7.3%2014.1L1.6%209.2L9.1%208.6Z'%20fill%3D'%23f6acc7'%20stroke%3D'none'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
h4 { font: 500 .9rem/1.5 var(--d); letter-spacing: .16em; color: var(--mist); text-transform: uppercase; }
:is(h1, h2, h3, h4):first-child { margin-top: 0; }
p { margin: .65em 0; }
a { color: #f6acc7; text-decoration: underline 1px; text-decoration-color: rgba(246, 172, 199, .45); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: #fff; }
strong, b { font-weight: 700; color: #fff; }
em { font-style: normal; color: #75e9d6; }
small, .meta { color: var(--mist); font-size: .84rem; }
.meta { display: block; margin: -.3em 0 1em; letter-spacing: .03em; }
.lede { font-size: 1.14rem; line-height: 1.8; margin: 0 0 .9em; color: var(--soft); }
.muted { color: var(--mist); }
.center { text-align: center; }
mark { color: #1a1020; background: #f6acc7; padding: 0 .2em; border-radius: 2px; }
code, kbd { font: .9em ui-monospace, "SFMono-Regular", monospace; color: #75e9d6; background: rgba(0, 0, 0, .3); padding: .05em .35em; border-radius: 3px; }
/* 按键：白色小圆里的深色字，像 L2 / R2 提示 */
kbd { display: inline-block; min-width: 1.7em; padding: 0 .45em; color: #1b1724; background: #f4f4f6; border-radius: 1em; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35); font: 600 .78em/1.75 var(--d); text-align: center; letter-spacing: .04em; }
pre { font: .86rem/1.6 ui-monospace, monospace; color: #d4d0dc; background: rgba(0, 0, 0, .3); padding: .8rem 1rem; overflow: auto; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
pre code { color: inherit; font: inherit; background: none; padding: 0; }
/* 分隔：一道淡线，中间三颗小星 */
hr { border: 0; height: 14px; margin: 1.6em 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%201.6L14.9%208.6L22.4%209.2L16.7%2014.1L18.4%2021.5L12%2017.6L5.6%2021.5L7.3%2014.1L1.6%209.2L9.1%208.6Z'%20fill%3D'rgba(255%2C%20255%2C%20255%2C.7)'%20stroke%3D'none'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E") calc(50% - 16px) 50% / 11px 11px no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%201.6L14.9%208.6L22.4%209.2L16.7%2014.1L18.4%2021.5L12%2017.6L5.6%2021.5L7.3%2014.1L1.6%209.2L9.1%208.6Z'%20fill%3D'rgba(255%2C%20255%2C%20255%2C.7)'%20stroke%3D'none'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E") 50% 50% / 11px 11px no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%201.6L14.9%208.6L22.4%209.2L16.7%2014.1L18.4%2021.5L12%2017.6L5.6%2021.5L7.3%2014.1L1.6%209.2L9.1%208.6Z'%20fill%3D'rgba(255%2C%20255%2C%20255%2C.7)'%20stroke%3D'none'%20stroke-width%3D'1.6'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E") calc(50% + 16px) 50% / 11px 11px no-repeat,
  linear-gradient(90deg, transparent, rgba(255, 255, 255, .3) 15%, rgba(255, 255, 255, .3) calc(50% - 28px), transparent calc(50% - 28px), transparent calc(50% + 28px), rgba(255, 255, 255, .3) calc(50% + 28px), rgba(255, 255, 255, .3) 85%, transparent) 0 50% / 100% 1px no-repeat; }

/* 用户原话：一张手机消息卡。浅色毛玻璃圆角卡，左上一枚日落色圆头像 +「原话」，正文深色 */
blockquote { position: relative; margin: 1.4em 0; padding: .75rem 1.1rem .85rem; font-size: 1.08rem; line-height: 1.75; color: #17141d; text-shadow: none;
  background: rgba(214, 214, 220, .9); border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
blockquote::before { content: "原话"; display: block; margin: 0 0 .35rem; padding-left: 2.1rem; min-height: 1.6rem; font: 700 1rem/1.6rem var(--f); color: #17141d; }
blockquote::after { content: ""; position: absolute; left: 1.1rem; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: linear-gradient(150deg, #ffb36b, #ff7aa8 55%, #9f87f9); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
blockquote > :first-child { margin-top: 0; } blockquote > :last-child { margin-bottom: 0; }
blockquote p { margin: .3em 0; }
blockquote :is(strong, b) { color: #000; }
blockquote a { color: #b2316f; }
blockquote cite { display: block; margin-top: .3rem; text-align: right; font: 400 .86rem var(--f); font-style: normal; color: #5d5868; }
blockquote cite::before { content: "— "; }

/* ---- 列表 / 表格 ---- */
ul, ol { padding-left: 1.5em; } li { margin: .25em 0; }
ul { list-style: none; }
ul > li { position: relative; }
ul > li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: .4em; height: .4em; border-radius: 50%; background: #f6acc7; }
ol > li::marker { font: 600 1em var(--d); color: #f6acc7; }
table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; margin: 1em 0; font-size: .96rem; }
th { text-align: left; font: 500 .82rem/1.5 var(--d); letter-spacing: .14em; text-transform: uppercase; padding: .3rem .7rem; color: var(--mist); white-space: nowrap; }
td { padding: .38rem .7rem; background: rgba(70, 62, 82, .35); }
td:first-child { border-radius: 4px 0 0 4px; } td:last-child { border-radius: 0 4px 4px 0; }
tr:hover > td { background: rgba(70, 62, 82, .55); }
/* 选中的一行：白色粗框，顶上一抹粉光 */
tr.pick > td, td.pick { color: #fff; font-weight: 600; background: linear-gradient(180deg, rgba(246, 172, 199, .32), rgba(70, 62, 82, .5) 70%); box-shadow: inset 0 3px 0 #fff, inset 0 -3px 0 #fff; }
tr.pick > td:first-child { box-shadow: inset 3px 0 0 #fff, inset 0 3px 0 #fff, inset 0 -3px 0 #fff; }
tr.pick > td:last-child { box-shadow: inset -3px 0 0 #fff, inset 0 3px 0 #fff, inset 0 -3px 0 #fff; }
.num { text-align: right; }
/* 键值：像右上角的金额，名字淡，数字窄体粗白 */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .1rem 1.4rem; margin: 1em 0; padding: .6rem 1rem; background: rgba(70, 62, 82, .35); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
dl.kv dt { font: 400 .98rem/2 var(--f); color: var(--soft); }
dl.kv dd { margin: 0; text-align: right; font: 600 1.2rem/1.75 var(--d); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---- 媒体：圆角细框 ---- */
img, video, svg, canvas { max-width: 100%; height: auto; }
video { width: 100%; background: #000; }
audio { width: 100%; margin: .6em 0; filter: invert(1) hue-rotate(180deg) saturate(.6); }
img, video { display: block; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px rgba(0, 0, 0, .3); }
figure { position: relative; margin: 1.6em 0; }
figure > img, figure > video { margin: 0 auto; }
figcaption { color: var(--mist); font: 400 .86rem var(--f); text-align: center; margin-top: .6rem; }
figure video { display: block; margin: 0 auto; max-width: 100%; height: auto; }
figure.portrait video { max-height: 720px; width: auto; }

/* ---- 窗口：玻璃格，第一个标题是窄体大写 ---- */
.win { position: relative; margin: 1em 0; padding: .75rem 1rem; background: rgba(70, 62, 82, .35); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.win > :first-child { margin-top: 0; } .win > :last-child { margin-bottom: 0; }
.win > :is(h2, h3):first-child { margin: 0 0 .5rem; padding: 0; font: 600 1.05rem/1.5 var(--d); letter-spacing: .1em; text-transform: uppercase; color: #f4f4f6; }
.win > :is(h2, h3):first-child::before { content: none; }

/* 旁注：整理是带「NOTE」斜切牌的玻璃格，左边一道薄荷条；疑问是薰衣草 */
.note { position: relative; margin: 1.4em 0; padding: .8rem 1.1rem .9rem 1.3rem; color: var(--soft);
  background: linear-gradient(#75e9d6, #75e9d6) 0 0 / 3px 100% no-repeat, rgba(70, 62, 82, .38); border-radius: 0 6px 6px 0; }
.note::before { content: "NOTE · 整理"; display: table; margin: 0 0 .55rem; padding: 0 .55em; font: 600 .74rem/1.65 var(--d); letter-spacing: .2em; color: #0f2420; background: #75e9d6; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.note > :first-child { margin-top: 0; } .note > :last-child { margin-bottom: 0; }
.note.q { background: linear-gradient(#9f87f9, #9f87f9) 0 0 / 3px 100% no-repeat, rgba(70, 62, 82, .38); }
.note.q::before { content: "? · 待解"; background: #9f87f9; color: #1a1236; }

/* ---- 布局 ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .8rem; margin: 1em 0; }
:is(.grid, .cols) > .win { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1em 0; }
@media (max-width: 560px) { body { padding: 1.1rem 1.05rem 1.5rem; } .cols { grid-template-columns: 1fr; } }

/* ---- 数据：窄体大数字、状态条 ---- */
.stat { display: flex; flex-direction: column; gap: .05em; text-align: center; }
.stat b { font: 600 clamp(1.9rem, 8vw, 2.6rem)/1.05 var(--d); white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }
.stat > span { color: var(--mist); font: 500 .8rem var(--d); letter-spacing: .14em; text-transform: uppercase; }
.up, .down { font-variant-numeric: tabular-nums; }
.up { color: var(--good); } .up::before { content: "▲"; font-size: .6em; margin-right: .15em; vertical-align: .15em; }
.down { color: var(--bad); } .down::before { content: "▼"; font-size: .6em; margin-right: .15em; vertical-align: .15em; }
.stat b.up { color: var(--good); } .stat b.down { color: var(--bad); }
/* 数据条：左上那种细长状态条，粉 / 薄荷 / 薰衣草轮着用 */
.bar { position: relative; height: 6px; margin: 10px 0; background: rgba(0, 0, 0, .4); border-radius: 3px; }
.bar::before { content: ""; display: block; height: 100%; width: var(--v, 0%); max-width: 100%; background: #f6acc7; border-radius: 3px; }
.bar + .bar::before { background: #75e9d6; }
.bar + .bar + .bar::before { background: #9f87f9; }
/* 标签：深色小圆角牌 */
.tag { display: inline-block; font: 500 .78rem/1.75 var(--d); letter-spacing: .08em; text-transform: uppercase; padding: 0 .7em; white-space: nowrap; margin: 0 .4rem .4rem 0; color: #d4d0dc;
  background: rgba(0, 0, 0, .3); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* 时间线：导航路线。一道粉色竖线，节点是小圆点，第一颗是玩家箭头 */
ol.steps { list-style: none; padding: 0; margin: 1em 0 1em .2rem; }
ol.steps li { position: relative; padding: 0 0 1em 1.9rem; margin: 0; }
ol.steps li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: #231d2e; box-shadow: 0 0 0 2px #e76ba7; }
ol.steps li:first-child::before { left: 0; top: .3em; width: 1.1rem; height: 1.1rem; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'11'%20fill%3D'%231b1724'%20stroke%3D'rgba(255%2C255%2C255%2C.5)'%2F%3E%3Cpath%20d%3D'M12%205.5L17%2017L12%2014.2L7%2017Z'%20fill%3D'%23fff'%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; box-shadow: none; }
ol.steps li::after { content: ""; position: absolute; left: .52rem; width: 3px; top: 1.45em; bottom: .05em; border-radius: 2px; background: #e76ba7; opacity: .8; }
ol.steps li:last-child::after { display: none; }
ol.steps time { display: block; color: #f6acc7; font: 500 .86rem/1.6 var(--d); letter-spacing: .08em; }

/* 折叠：玻璃格，打开时左边粉线 */
details { margin: 1em 0; padding: .45rem .9rem; background: rgba(70, 62, 82, .35); border-radius: 6px; }
summary { cursor: pointer; list-style: none; font-weight: 600; color: #f4f4f6; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "›"; display: inline-block; width: 1em; color: #f6acc7; font-weight: 700; transition: transform .15s; }
details[open] { background: linear-gradient(#e76ba7, #e76ba7) 0 0 / 3px 100% no-repeat, rgba(70, 62, 82, .35); }
details[open] summary::before { transform: rotate(90deg); }
details[open] summary { margin-bottom: .4em; padding-bottom: .3em; border-bottom: 1px solid var(--line-faint); }

/* 按钮、输入框（交互式 artifact 用） */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: .2rem 1rem; color: #f4f4f6; background: rgba(70, 62, 82, .5);
  border: 0; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font: 500 .92rem/1.6 var(--d); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
button:hover, .btn:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
button.on { color: #111; background: #fff; }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
input, select, textarea { font: 400 .95rem var(--f); color: #fff; background: rgba(0, 0, 0, .3); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); border-radius: 4px; padding: .25rem .5rem; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px #fff; }
