style.css 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. /* 《世界树 · 逃离空洞》—— 白 + 深墨蓝 + 建筑蓝灰 + 生命绿/金;线条图解风,无 3D 发光花哨
  2. 署名:FmodeCode */
  3. :root {
  4. --ink: #121a2b; /* 深墨蓝 */
  5. --ink-2: #1c2740;
  6. --ink-3: #2a3855;
  7. --paper: #f4f5f2; /* 白(带一点暖灰) */
  8. --paper-2: #ffffff;
  9. --line: #d9dee6; /* 线条 */
  10. --line-strong: #b7c0cd;
  11. --muted: #6f7b8e; /* 蓝灰 */
  12. --muted-2: #98a3b3;
  13. --life: #2fae6b; /* 生命绿 */
  14. --life-soft: #e6f5ec;
  15. --gold: #b08427; /* 金 */
  16. --gold-soft: #f7efdc;
  17. --brand: #4a6cf7; /* fmode 蓝 */
  18. --brand-2: #6c5ce7;
  19. --danger: #c0492e;
  20. --crisis: #b0741f;
  21. --sky: #5fa8d3;
  22. --radius: 10px;
  23. --shadow: 0 1px 0 rgba(18, 26, 43, .04), 0 6px 18px rgba(18, 26, 43, .06);
  24. --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  25. --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  26. }
  27. * { box-sizing: border-box; }
  28. html, body { height: 100%; }
  29. body {
  30. margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  31. -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  32. overflow: hidden;
  33. }
  34. button { font-family: inherit; cursor: pointer; }
  35. button:disabled { cursor: not-allowed; opacity: .45; }
  36. /* ── 布局:PC 三栏 / 手机单栏 + 底部页签 ── */
  37. #app { display: grid; grid-template-rows: 52px 1fr; height: 100vh; height: 100dvh; }
  38. .topbar {
  39. display: flex; align-items: center; gap: 14px; padding: 0 16px;
  40. background: var(--ink); color: #eef1f6; border-bottom: 1px solid #000;
  41. }
  42. .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .06em; font-size: 15px; white-space: nowrap; }
  43. .brand svg { width: 22px; height: 22px; }
  44. .brand small { font-weight: 500; opacity: .55; letter-spacing: .12em; font-size: 11px; margin-left: 2px; }
  45. .viewport-toggle { display: flex; gap: 4px; align-items: center; margin-left: 6px; }
  46. .topstats { margin-left: auto; }
  47. .top-save { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #dfe5ee; border-radius: 7px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
  48. .top-save:hover { background: rgba(255,255,255,.1); }
  49. .vp-btn {
  50. border: 1px solid rgba(255,255,255,.18); background: transparent; color: #cfd6e2;
  51. font-size: 11px; padding: 4px 8px; border-radius: 6px; cursor: pointer;
  52. }
  53. .vp-btn.on { background: rgba(255,255,255,.12); color: #fff; }
  54. .topstats { display: flex; gap: 18px; align-items: center; overflow: hidden; }
  55. .tstat { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  56. .tstat .k { font-size: 10px; color: #8e9bb0; letter-spacing: .1em; }
  57. .tstat .v { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
  58. .topbar .icon-btn { border: 1px solid rgba(255,255,255,.16); background: transparent; color: #dfe5ee; border-radius: 7px; width: 30px; height: 30px; display: grid; place-items: center; }
  59. .main { display: grid; grid-template-columns: 304px minmax(0, 1fr) 330px; gap: 14px; padding: 14px; min-height: 0; overflow: hidden; }
  60. .col { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
  61. .col > * { flex-shrink: 0; }
  62. .col.center { overflow: hidden; }
  63. .panel {
  64. background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  65. box-shadow: var(--shadow); padding: 13px 14px; position: relative;
  66. }
  67. .panel.flat { box-shadow: none; background: transparent; border-style: dashed; }
  68. .panel-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; }
  69. .panel-title .tag { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); font-size: 11px; }
  70. .panel-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--ink); }
  71. .panel.life .panel-title::before { background: var(--life); }
  72. .panel.gold .panel-title::before { background: var(--gold); }
  73. .panel.brand .panel-title::before { background: var(--brand); }
  74. /* ── 数字 ── */
  75. .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
  76. .big-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
  77. .big-num small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
  78. .sub-line { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
  79. .sub-line b { color: var(--ink-3); font-weight: 600; }
  80. .flash-up { animation: flashUp .6s ease-out; }
  81. @keyframes flashUp { 0% { color: var(--life); } 100% { color: inherit; } }
  82. /* ── 顶部资源条 ── */
  83. .res-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  84. .res { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: linear-gradient(180deg, #fff, #fbfbf9); }
  85. .res .k { font-size: 11px; color: var(--muted); letter-spacing: .08em; display: flex; align-items: center; gap: 5px; }
  86. .res .k .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--life); }
  87. .res .k .dot.gold { background: var(--gold); }
  88. .res .v { font-size: 20px; font-weight: 700; margin-top: 3px; }
  89. .res .d { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
  90. /* ── 主线章节 ── */
  91. .chapter { margin-bottom: 10px; }
  92. .chapter .ch-title { font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
  93. .chapter .ch-title .idx { font-size: 11px; color: var(--muted); letter-spacing: .1em; font-weight: 600; }
  94. .chapter .ch-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
  95. .esc-track { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 11px; color: var(--muted); }
  96. .esc-bar { grid-column: 1 / -1; height: 22px; border-radius: 5px; background: #eceff3; border: 1px solid var(--line); position: relative; overflow: hidden; }
  97. .esc-bar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c9e9d5, var(--life)); transition: width .4s ease; }
  98. .esc-bar .fill::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 2px; background: #1c7a48; }
  99. .esc-bar .mark { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
  100. .esc-bar .mark span { position: absolute; top: 3px; left: 3px; font-size: 9px; color: var(--ink-3); white-space: nowrap; opacity: .8; }
  101. .esc-bar .mark.done { background: #1c7a48; }
  102. /* ── Marches(连续行军)画布 ── */
  103. .canvas-wrap {
  104. position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  105. background: var(--paper-2); box-shadow: var(--shadow); flex: 1 1 auto; min-height: 220px;
  106. }
  107. #march { width: 100%; height: 100%; display: block; }
  108. .hud { position: absolute; left: 12px; top: 11px; display: flex; gap: 14px; align-items: flex-start; pointer-events: none; }
  109. .hud .layer { font-size: 24px; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
  110. .hud .layer small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 3px; letter-spacing: .04em; }
  111. .hud .meta { font-size: 11px; color: var(--muted); line-height: 1.5; padding-top: 6px; }
  112. .hud .meta b { color: var(--ink-3); }
  113. .hud-r { position: absolute; right: 12px; top: 11px; font-size: 11px; color: var(--muted); text-align: right; line-height: 1.5; pointer-events: none; }
  114. .hud-r b { color: var(--ink); font-size: 13px; }
  115. .badge-magic { position: absolute; right: 12px; bottom: 12px; background: #f4ecff; border: 1px solid #e1d3f7; color: #6b3fa0; font-size: 11px; padding: 4px 8px; border-radius: 7px; }
  116. .frozen-veil { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(18,26,43,.025) 0 10px, rgba(18,26,43,.05) 10px 11px); display: none; }
  117. .frozen .frozen-veil { display: block; }
  118. .skip-float { position: absolute; font-size: 12px; font-weight: 700; color: var(--gold); pointer-events: none; text-shadow: 0 1px 0 #fff; animation: floatUp 1.1s ease-out forwards; }
  119. @keyframes floatUp { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
  120. /* ── 操作条 ── */
  121. .actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  122. .act {
  123. border: 1px solid var(--line); background: var(--paper-2); border-radius: 9px; padding: 9px 10px;
  124. text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, transform .1s, background .15s;
  125. }
  126. .act:hover:not(:disabled) { border-color: var(--ink-3); }
  127. .act:active:not(:disabled) { transform: translateY(1px); }
  128. .act .t { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
  129. .act .s { font-size: 11px; color: var(--muted); }
  130. .act.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
  131. .act.primary .s { color: #a9b6c9; }
  132. .act.primary:hover:not(:disabled) { background: var(--ink-2); }
  133. .act.can { border-color: var(--life); box-shadow: 0 0 0 2px var(--life-soft); }
  134. .act .kbd { margin-left: auto; font-size: 10px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
  135. .act.primary .kbd { color: #8e9bb0; border-color: #3a475f; }
  136. /* ── 升级列表 ── */
  137. .upg { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); }
  138. .upg:first-of-type { border-top: 0; padding-top: 0; }
  139. .upg .ic { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #f1f4f7; border: 1px solid var(--line); }
  140. .upg .ic svg { width: 22px; height: 22px; }
  141. .upg .info { flex: 1; min-width: 0; }
  142. .upg .info .n { font-size: 13px; font-weight: 650; display: flex; gap: 6px; align-items: baseline; }
  143. .upg .info .n .lv { font-size: 11px; color: var(--muted); font-weight: 500; }
  144. .upg .info .d { font-size: 11px; color: var(--muted); margin-top: 1px; }
  145. .upg .info .d b { color: var(--ink-3); }
  146. .upg .buy {
  147. border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; padding: 6px 9px; min-width: 92px;
  148. font-size: 11px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; transition: all .15s;
  149. }
  150. .upg .buy .c { font-weight: 700; font-size: 12px; color: var(--ink); }
  151. .upg .buy .c small { font-weight: 500; color: var(--muted); font-size: 10px; margin-right: 2px; }
  152. .upg .buy.ok { border-color: var(--life); background: var(--life-soft); color: #1c7a48; }
  153. .upg .buy.ok .c { color: #1c7a48; }
  154. .upg .buy:hover:not(:disabled).ok { background: #d7f0e2; }
  155. .upg .buy .n2 { font-size: 10px; color: var(--muted); }
  156. .upg.locked { opacity: .55; }
  157. .upg .lock { font-size: 11px; color: var(--muted); }
  158. /* ── 兵种 ── */
  159. .races { display: flex; flex-direction: column; gap: 8px; }
  160. .race-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
  161. .race-head .chip { color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 10px; letter-spacing: .04em; }
  162. .race-head .bond { font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: auto; font-size: 10.5px; }
  163. .race-head .bond.on { color: #1c7a48; }
  164. .life { display: flex; gap: 9px; align-items: center; padding: 6px 0; }
  165. .life .ic { width: 36px; height: 36px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: #fafbfc; display: grid; place-items: center; }
  166. .life .ic svg { width: 26px; height: 26px; }
  167. .life .info { flex: 1; min-width: 0; }
  168. .life .info .n { font-size: 12.5px; font-weight: 650; display: flex; gap: 6px; align-items: baseline; }
  169. .life .info .n .lv { font-size: 11px; color: var(--muted); font-weight: 500; }
  170. .life .info .s { font-size: 10.5px; color: var(--muted-2); }
  171. .life .buy { font-size: 11px; border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; padding: 5px 8px; min-width: 76px; text-align: right; }
  172. .life .buy.ok { border-color: var(--life); background: var(--life-soft); color: #1c7a48; }
  173. .life .buy .c { font-weight: 700; }
  174. .life.locked { opacity: .5; }
  175. /* ── 永久 / 转生 ── */
  176. .reb-card { border: 1px solid #e7dcc0; background: linear-gradient(180deg, #fffdf8, var(--gold-soft)); border-radius: 10px; padding: 11px 12px; }
  177. .reb-card .k { font-size: 11px; color: #8a6d2c; letter-spacing: .08em; }
  178. .reb-card .v { font-size: 26px; font-weight: 750; color: #7a5a12; margin-top: 2px; }
  179. .reb-card .v small { font-size: 12px; color: #a5893f; font-weight: 600; margin-left: 4px; }
  180. .reb-card .line { font-size: 11px; color: #8a6d2c; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
  181. .reb-card .line b { color: #5f470f; }
  182. .perm { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed #e7dcc0; }
  183. .perm:first-of-type { border-top: 0; }
  184. .perm .info { flex: 1; }
  185. .perm .n { font-size: 12.5px; font-weight: 650; }
  186. .perm .d { font-size: 10.5px; color: var(--muted); }
  187. .perm .buy { font-size: 11px; border: 1px solid #e0cf9f; background: #fff; border-radius: 7px; padding: 5px 9px; min-width: 78px; text-align: right; }
  188. .perm .buy.ok { background: #fff8e6; border-color: var(--gold); color: #7a5a12; }
  189. .perm .buy.ok .c { font-weight: 700; }
  190. .relics { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
  191. .relic { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #e0cf9f; background: #fffdf6; display: grid; place-items: center; }
  192. .relic.off { opacity: .3; filter: grayscale(1); }
  193. .relic svg { width: 16px; height: 16px; }
  194. /* ── 位面 ── */
  195. .plane-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  196. .plane-card .art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; margin: -8px -9px 7px; box-sizing: content-box; width: calc(100% + 18px); background: #eceff3; }
  197. .plane-card.locked .art { filter: saturate(.55); }
  198. /* 世界树主视觉:位面面板底部圆角卡图(不干扰行军 canvas) */
  199. .tree-art { margin: 10px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; background: #0c111c; }
  200. .tree-art img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; }
  201. .tree-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 10px 6px; font-size: 10.5px; color: #dfe8f5; background: linear-gradient(transparent, rgba(8,12,20,.72)); }
  202. .tree-art figcaption b { color: #7BE3A6; }
  203. .plane-card { border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; background: #fff; text-align: left; position: relative; overflow: hidden; }
  204. .plane-card .tier { position: absolute; right: 0; top: 0; font-size: 9px; color: #fff; padding: 1px 6px; border-bottom-left-radius: 6px; }
  205. .plane-card.cur { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  206. .plane-card.locked { opacity: .5; }
  207. .plane-card .nm { font-size: 12.5px; font-weight: 650; margin-top: 2px; }
  208. .plane-card .met { font-size: 10px; color: var(--muted); margin-top: 1px; }
  209. .plane-card .bar { height: 4px; border-radius: 2px; background: #eceff3; margin-top: 6px; overflow: hidden; }
  210. .plane-card .bar i { display: block; height: 100%; border-radius: 2px; }
  211. .plane-card .ex { font-size: 10px; color: var(--muted); margin-top: 3px; display: flex; justify-content: space-between; }
  212. .plane-card .ex .an { color: var(--life); font-weight: 700; }
  213. .plane-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
  214. .plane-note b { color: var(--ink-3); }
  215. /* 位面主题色带:顶部细线 */
  216. [data-plane="0"] { --plane-c: #5fa8d3; }
  217. [data-plane="1"] { --plane-c: #6c5ce7; }
  218. [data-plane="2"] { --plane-c: #c77dff; }
  219. [data-plane="3"] { --plane-c: #2dd4bf; }
  220. .topbar { border-top: 3px solid var(--plane-c, var(--life)); }
  221. /* ── 里世界 ── */
  222. .rift-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
  223. .rift-top .env { flex: 1; }
  224. .rift-top .env .nm { font-size: 15px; font-weight: 700; }
  225. .rift-top .env .ds { font-size: 11px; color: var(--muted); }
  226. .hpbar { height: 14px; border-radius: 4px; background: #eceff3; border: 1px solid var(--line); overflow: hidden; position: relative; }
  227. .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #7ad39f, var(--life)); transition: width .25s; }
  228. .hpbar.enemy i { background: linear-gradient(90deg, #e2a09b, #c0492e); }
  229. .hpbar .txt { position: absolute; inset: 0; font-size: 10px; display: grid; place-items: center; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
  230. .elite-tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--ink); color: #fff; letter-spacing: .06em; }
  231. .elite-tag.boss { background: var(--gold); }
  232. .taunt { font-size: 12px; color: var(--muted); font-style: italic; margin: 8px 0 4px; line-height: 1.6; border-left: 2px solid var(--line-strong); padding-left: 8px; }
  233. .steps { display: flex; gap: 4px; align-items: center; margin: 8px 0 10px; }
  234. .steps i { flex: 1; height: 5px; border-radius: 3px; background: #eceff3; }
  235. .steps i.past { background: var(--life); }
  236. .steps i.now { background: var(--gold); }
  237. .card-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
  238. .opt { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 10px 12px; text-align: left; transition: all .15s; }
  239. .opt:hover { border-color: var(--ink); transform: translateY(-1px); }
  240. .opt .l { font-size: 13.5px; font-weight: 650; }
  241. .opt .h { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
  242. .opt .rule-chip { display: inline-block; font-size: 10px; color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
  243. .dice-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
  244. .dice { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
  245. .dice.rolling { animation: shake .3s linear infinite; }
  246. @keyframes shake { 0%,100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
  247. .cmp { flex: 1; font-size: 12px; line-height: 1.6; }
  248. .cmp .need { color: var(--danger); font-weight: 650; }
  249. .cmp .val { font-weight: 750; }
  250. .cmp .win { color: var(--life); }
  251. .cmp .lose { color: var(--danger); }
  252. .roll-label { font-size: 13px; font-weight: 750; padding: 2px 8px; border-radius: 6px; display: inline-block; margin-top: 6px; }
  253. .roll-label.win { background: var(--life-soft); color: #1c7a48; }
  254. .roll-label.lose { background: #fbe8e3; color: var(--danger); }
  255. .roll-label.neutral { background: #f1f3f6; color: var(--ink-3); }
  256. .fight-btns { display: grid; grid-template-columns: 1fr 92px; gap: 8px; margin-top: 10px; }
  257. .btn { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 9px; padding: 11px 12px; font-size: 14px; font-weight: 700; }
  258. .btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); font-weight: 600; font-size: 12.5px; }
  259. .btn.danger { background: #fff; color: var(--danger); border-color: #e8bfb5; font-size: 12.5px; }
  260. .attrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
  261. .attr { border: 1px solid var(--line); border-radius: 8px; padding: 6px 7px; background: #fafbfc; }
  262. .attr .k { font-size: 10px; font-weight: 700; letter-spacing: .06em; display: flex; justify-content: space-between; }
  263. .attr .k .ad { font-weight: 500; color: var(--muted); }
  264. .attr .v { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
  265. .attr .slot { font-size: 9.5px; color: var(--muted-2); }
  266. .stepper { display: flex; gap: 4px; margin-top: 3px; }
  267. .stepper button { flex: 1; border: 1px solid var(--line-strong); background: #fff; border-radius: 5px; font-size: 13px; line-height: 1.4; padding: 0; font-weight: 700; }
  268. .stepper button:disabled { opacity: .3; }
  269. /* ── 日志 / 事件 ── */
  270. .feed { display: flex; flex-direction: column; gap: 8px; max-height: 100%; overflow-y: auto; }
  271. .feed .row { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; line-height: 1.45; }
  272. .feed .row time { color: var(--muted-2); font-size: 10.5px; font-variant-numeric: tabular-nums; min-width: 34px; }
  273. .feed .row.crisis { color: var(--crisis); }
  274. .feed .row.mile { color: #7a5a12; font-weight: 600; }
  275. .empty { color: var(--muted-2); font-size: 12px; padding: 8px 0; }
  276. /* ── 底部导航(仅手机) ── */
  277. .tabbar { display: none; }
  278. .drawer-mask { display: none; }
  279. /* ── 弹窗 / Toast ── */
  280. .modal-mask { position: fixed; inset: 0; background: rgba(18,26,43,.38); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(1px); }
  281. .modal-mask[hidden] { display: none; }
  282. .modal { width: min(520px, 100%); background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(18,26,43,.22); overflow: hidden; max-height: 88vh; display: flex; flex-direction: column; animation: pop .18s ease-out; }
  283. @keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
  284. .modal header { padding: 16px 18px 10px; display: flex; align-items: flex-start; gap: 10px; }
  285. .modal header .mt { flex: 1; }
  286. .modal header .mtag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 2px 7px; border-radius: 4px; background: #f1f3f6; color: var(--muted); margin-bottom: 6px; }
  287. .modal header .mtag.crisis { background: #fdf1e3; color: #a5620d; }
  288. .modal header .mtag.mile { background: var(--gold-soft); color: #7a5a12; }
  289. .modal header .mtag.civ { background: #e9f1fb; color: #2a5f99; }
  290. .modal header .mtag.rift { background: #f0ecfb; color: #533aa8; }
  291. .modal h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
  292. .modal .body { padding: 4px 18px 16px; overflow-y: auto; }
  293. .modal .body p { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); margin: 6px 0 12px; }
  294. .modal .opts { display: flex; flex-direction: column; gap: 8px; }
  295. .modal .foot { padding: 0 18px 16px; display: flex; gap: 8px; justify-content: flex-end; }
  296. .modal textarea { width: 100%; height: 160px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px; font-family: var(--mono); font-size: 11px; resize: vertical; }
  297. .cd { font-size: 12px; color: var(--crisis); font-weight: 650; }
  298. #toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 60; pointer-events: none; align-items: center; }
  299. .toast { background: var(--ink); color: #eef1f6; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(18,26,43,.25); animation: toastIn .2s ease-out; max-width: 90vw; }
  300. .toast.warn { background: #8a4d12; }
  301. .toast.good { background: #1c6b43; }
  302. @keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  303. /* ── 新手引导 ── */
  304. .guide { border: 1px solid #cfe6d9; background: var(--life-soft); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
  305. .guide .g { flex: 1; font-size: 12.5px; line-height: 1.6; color: #1c5c3a; }
  306. .guide .g b { color: #123f28; }
  307. .guide .x { border: 0; background: transparent; color: #1c5c3a; font-size: 16px; padding: 2px 6px; }
  308. .panel .guide { display: flex; flex-direction: row; align-items: center; }
  309. .pulse { animation: pulse 1.8s ease-in-out infinite; }
  310. @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,174,107,.0); } 50% { box-shadow: 0 0 0 4px rgba(47,174,107,.18); } }
  311. /* 性能:低端设备关动画 */
  312. @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
  313. /* ══════════ 响应式 ══════════ */
  314. /* 中等宽度:两栏 */
  315. @media (max-width: 1180px) {
  316. .main { grid-template-columns: 280px minmax(0, 1fr); }
  317. .col.right { display: none; }
  318. .main.show-right .col.right { display: flex; position: fixed; right: 10px; top: 60px; bottom: 10px; width: 320px; z-index: 20; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: 0 20px 60px rgba(18,26,43,.2); }
  319. }
  320. /* 手机竖屏(≤760px):单栏 */
  321. @media (max-width: 760px) {
  322. #app { grid-template-rows: auto 1fr auto; }
  323. .topbar { padding: 0 10px; height: 46px; gap: 8px; }
  324. .brand { font-size: 13.5px; }
  325. .brand small { display: none; }
  326. .topstats { gap: 10px; margin-left: auto; }
  327. .topstats .tstat.optional { display: none; }
  328. .topstats .tstat .v { font-size: 12.5px; }
  329. .viewport-toggle { display: none; }
  330. .main { display: block; padding: 8px; overflow-y: auto; padding-bottom: 70px; }
  331. .main > .col { display: none; overflow: visible; padding-bottom: 0; }
  332. .main > .col.active { display: flex; }
  333. .main.show-right .col.right { position: static; width: auto; border: 0; padding: 0; box-shadow: none; background: transparent; display: none; }
  334. .main.show-right > .col.center { display: none; }
  335. .main.show-right .col.right { display: flex; }
  336. .canvas-wrap { min-height: 240px; height: 38vh; flex: none; }
  337. .big-num { font-size: 25px; }
  338. .res .v { font-size: 17px; }
  339. .actions { grid-template-columns: repeat(2, 1fr); }
  340. .tabbar {
  341. display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line);
  342. padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); gap: 2px; z-index: 30;
  343. }
  344. .tabbar button { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 6px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 8px; }
  345. .tabbar button svg { width: 20px; height: 20px; }
  346. .tabbar button.on { color: var(--ink); background: #f1f3f6; font-weight: 700; }
  347. .modal { width: 100%; border-radius: 14px 14px 10px 10px; }
  348. .modal-mask { align-items: end; padding: 0; }
  349. .modal { max-height: 86vh; animation: sheetUp .2s ease-out; }
  350. @keyframes sheetUp { from { transform: translateY(30px); opacity: .6 } to { transform: none; opacity: 1 } }
  351. .fight-btns { grid-template-columns: 1fr 80px; }
  352. .attrs { grid-template-columns: repeat(2, 1fr); }
  353. .upg .buy { min-width: 84px; }
  354. #toasts { bottom: 76px; }
  355. }
  356. /* ── 里世界面板(中栏覆盖) ── */
  357. .rift-panel { border-color: #d9d0f2; background: linear-gradient(180deg, #fbfaff, #fff); }
  358. .rift-panel[hidden] { display: none; }
  359. .rift-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  360. .rift-head .nm { font-size: 14px; font-weight: 700; }
  361. .rift-head .kb { margin-left: auto; font-size: 11px; color: var(--muted); }
  362. .kv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11px; margin-top: 8px; }
  363. .kv div { border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; background: #fff; text-align: center; }
  364. .kv b { display: block; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
  365. .slot-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
  366. .slot { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
  367. .slot .h { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; }
  368. .slot .v { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
  369. .slot .stepper { margin-top: 4px; }
  370. .energy { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 8px; }
  371. .energy .pips { display: flex; gap: 2px; flex: 1; }
  372. .energy .pips i { flex: 1; height: 6px; border-radius: 2px; background: #eceff3; }
  373. .energy .pips i.on { background: #7fb2ff; }
  374. .fight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  375. .fight-grid .box { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
  376. .fight-grid .box .k { font-size: 10.5px; color: var(--muted); }
  377. .fight-grid .box .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
  378. .fight-grid .box.enemy .v { color: var(--danger); }
  379. .roll-bar { display: flex; gap: 6px; margin-top: 8px; }
  380. .roll-btn { flex: 1; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; padding: 8px 0; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; transition: transform .12s; }
  381. .roll-btn:hover { border-color: var(--ink); }
  382. .roll-btn:active { transform: scale(.97); }
  383. .roll-btn.hint { border-color: var(--life); background: var(--life-soft); }
  384. .roll-btn.crit-hint { border-color: var(--gold); background: var(--gold-soft); }
  385. .log3 { margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.6; min-height: 34px; }
  386. .log3 b { color: var(--ink-3); }
  387. .pick-oath { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
  388. .pick-oath .opt { text-align: center; padding: 10px 8px; }
  389. .pick-oath .opt .nm { font-size: 13.5px; font-weight: 700; }
  390. .pick-oath .opt .ds { font-size: 11px; color: var(--muted); margin-top: 4px; }
  391. .build-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
  392. .build-hint b { color: var(--life); }
  393. .step-dots { display: flex; gap: 4px; margin: 8px 0 2px; }
  394. .step-dots i { flex: 1; height: 4px; border-radius: 2px; background: #eceff3; }
  395. .step-dots i.past { background: var(--life); }
  396. .step-dots i.now { background: var(--gold); }
  397. .rift-result .big { font-size: 26px; font-weight: 750; color: var(--gold); }
  398. /* ── 布局修正:flex 子项允许收缩,避免被窄列挤压成竖排字 ── */
  399. .panel-title { flex-wrap: wrap; }
  400. .panel-title .tag { white-space: normal; text-align: right; }
  401. .upg .info, .life .info, .perm .info { min-width: 0; }
  402. .upg .info .n, .life .info .n, .perm .n { flex-wrap: wrap; }
  403. .upg .info .d, .life .info .s, .perm .d { line-height: 1.5; }
  404. .life .info .s { line-height: 1.45; }
  405. .race-head { flex-wrap: wrap; }
  406. .race-head .bond { margin-left: 0; }
  407. .main { grid-template-columns: 300px minmax(0, 1fr) 340px; }
  408. .col.left, .col.right { padding-right: 2px; }
  409. @media (max-width: 1360px) { .main { grid-template-columns: 286px minmax(0, 1fr) 320px; } }
  410. .esc-bar .mark span { top: 5px; }
  411. .canvas-wrap { min-height: 260px; }
  412. .hud .layer small { font-size: 11px; }
  413. .upg .buy, .perm .buy { flex: none; }
  414. /* ── 面板/区块显式纵向排列(覆盖 .main > .col 的横向 flex 继承) ── */
  415. #upgrades, #lives, #rebirth, #perm, #planes, #resources, #mainline, #feed-panel, #rift-live { display: flex; flex-direction: column; }
  416. #upgrades .panel-title, #lives .panel-title, #perm .panel-title, #planes .panel-title, #rebirth .panel-title, #mainline .panel-title, #resources .panel-title, #feed-panel .panel-title, #rift-live .panel-title { flex-direction: row; align-items: center; }
  417. #mainline .guide { flex-direction: row; }
  418. #mainline .esc-track { flex-direction: row; }
  419. .actions { flex-direction: row; }
  420. .reb-card .line, .sub-line { flex-direction: row; }
  421. .plane-list { flex-direction: row; }
  422. .relics { flex-direction: row; }
  423. .panel-title { min-width: 0; }
  424. .panel-title::before { flex: none; }
  425. #lives { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }
  426. #lives .panel-title, #lives .race-block, #lives .race-head { grid-column: 1 / -1; }
  427. #lives .race-head { margin-top: 4px; }
  428. #lives .life { min-width: 0; }
  429. #lives .life .info .s { white-space: normal; }
  430. .actions .act .t, .actions .act .s { white-space: nowrap; }
  431. @media (max-width: 1360px) { #lives { grid-template-columns: 1fr; } }
  432. /* ── 中栏:画布固定高度,内容溢出时滚动 ── */
  433. .col.center { overflow-y: auto; }
  434. .canvas-wrap { flex: 0 0 auto; height: clamp(210px, calc(100vh - 330px), 340px); min-height: 180px; }
  435. .rift-slot { display: flex; flex-direction: column; }
  436. .rift-slot[hidden] { display: none; }
  437. #rift-live { display: flex; flex-direction: column; }
  438. @media (max-width: 760px) { .canvas-wrap { height: 36vh; min-height: 220px; } }
  439. .foot-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
  440. .ct-inline { padding: 0 18px 16px; }
  441. .ct-inline .foot-row { margin-top: 10px; }
  442. .modal .foot:empty { display: none; }
  443. /* 地质环境条 */
  444. .env-strip { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 8px; background: rgba(18,26,43,.62); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 6px 10px; color: #e6ecf5; font-size: 11px; backdrop-filter: blur(2px); }
  445. .env-strip b { font-size: 12px; white-space: nowrap; }
  446. .env-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  447. .env-eff { white-space: nowrap; color: #b9c6d8; }
  448. .env-prog { flex: 0 0 64px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
  449. .env-prog i { display: block; height: 100%; }
  450. .env-left { color: #93a2b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  451. @media (max-width: 760px) { .env-strip { bottom: 8px; left: 8px; right: 8px; font-size: 10.5px; } .env-left { display: none; } }
  452. .hud { flex-wrap: wrap; right: 130px; }
  453. .hud .hud-meta { max-width: 46%; }
  454. @media (max-width: 600px) { .hud { right: 10px; } .hud .hud-meta { max-width: 60%; } }
  455. .feed .row.ambient { color: #6b4ea8; }