| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484 |
- /* 《世界树 · 逃离空洞》—— 白 + 深墨蓝 + 建筑蓝灰 + 生命绿/金;线条图解风,无 3D 发光花哨
- 署名:FmodeCode */
- :root {
- --ink: #121a2b; /* 深墨蓝 */
- --ink-2: #1c2740;
- --ink-3: #2a3855;
- --paper: #f4f5f2; /* 白(带一点暖灰) */
- --paper-2: #ffffff;
- --line: #d9dee6; /* 线条 */
- --line-strong: #b7c0cd;
- --muted: #6f7b8e; /* 蓝灰 */
- --muted-2: #98a3b3;
- --life: #2fae6b; /* 生命绿 */
- --life-soft: #e6f5ec;
- --gold: #b08427; /* 金 */
- --gold-soft: #f7efdc;
- --brand: #4a6cf7; /* fmode 蓝 */
- --brand-2: #6c5ce7;
- --danger: #c0492e;
- --crisis: #b0741f;
- --sky: #5fa8d3;
- --radius: 10px;
- --shadow: 0 1px 0 rgba(18, 26, 43, .04), 0 6px 18px rgba(18, 26, 43, .06);
- --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
- --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
- }
- * { box-sizing: border-box; }
- html, body { height: 100%; }
- body {
- margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
- -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
- overflow: hidden;
- }
- button { font-family: inherit; cursor: pointer; }
- button:disabled { cursor: not-allowed; opacity: .45; }
- /* ── 布局:PC 三栏 / 手机单栏 + 底部页签 ── */
- #app { display: grid; grid-template-rows: 52px 1fr; height: 100vh; height: 100dvh; }
- .topbar {
- display: flex; align-items: center; gap: 14px; padding: 0 16px;
- background: var(--ink); color: #eef1f6; border-bottom: 1px solid #000;
- }
- .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .06em; font-size: 15px; white-space: nowrap; }
- .brand svg { width: 22px; height: 22px; }
- .brand small { font-weight: 500; opacity: .55; letter-spacing: .12em; font-size: 11px; margin-left: 2px; }
- .viewport-toggle { display: flex; gap: 4px; align-items: center; margin-left: 6px; }
- .topstats { margin-left: auto; }
- .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; }
- .top-save:hover { background: rgba(255,255,255,.1); }
- .vp-btn {
- border: 1px solid rgba(255,255,255,.18); background: transparent; color: #cfd6e2;
- font-size: 11px; padding: 4px 8px; border-radius: 6px; cursor: pointer;
- }
- .vp-btn.on { background: rgba(255,255,255,.12); color: #fff; }
- .topstats { display: flex; gap: 18px; align-items: center; overflow: hidden; }
- .tstat { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
- .tstat .k { font-size: 10px; color: #8e9bb0; letter-spacing: .1em; }
- .tstat .v { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
- .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; }
- .main { display: grid; grid-template-columns: 304px minmax(0, 1fr) 330px; gap: 14px; padding: 14px; min-height: 0; overflow: hidden; }
- .col { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
- .col > * { flex-shrink: 0; }
- .col.center { overflow: hidden; }
- .panel {
- background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
- box-shadow: var(--shadow); padding: 13px 14px; position: relative;
- }
- .panel.flat { box-shadow: none; background: transparent; border-style: dashed; }
- .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; }
- .panel-title .tag { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); font-size: 11px; }
- .panel-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--ink); }
- .panel.life .panel-title::before { background: var(--life); }
- .panel.gold .panel-title::before { background: var(--gold); }
- .panel.brand .panel-title::before { background: var(--brand); }
- /* ── 数字 ── */
- .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
- .big-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
- .big-num small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
- .sub-line { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
- .sub-line b { color: var(--ink-3); font-weight: 600; }
- .flash-up { animation: flashUp .6s ease-out; }
- @keyframes flashUp { 0% { color: var(--life); } 100% { color: inherit; } }
- /* ── 顶部资源条 ── */
- .res-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
- .res { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: linear-gradient(180deg, #fff, #fbfbf9); }
- .res .k { font-size: 11px; color: var(--muted); letter-spacing: .08em; display: flex; align-items: center; gap: 5px; }
- .res .k .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--life); }
- .res .k .dot.gold { background: var(--gold); }
- .res .v { font-size: 20px; font-weight: 700; margin-top: 3px; }
- .res .d { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
- /* ── 主线章节 ── */
- .chapter { margin-bottom: 10px; }
- .chapter .ch-title { font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
- .chapter .ch-title .idx { font-size: 11px; color: var(--muted); letter-spacing: .1em; font-weight: 600; }
- .chapter .ch-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
- .esc-track { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 11px; color: var(--muted); }
- .esc-bar { grid-column: 1 / -1; height: 22px; border-radius: 5px; background: #eceff3; border: 1px solid var(--line); position: relative; overflow: hidden; }
- .esc-bar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c9e9d5, var(--life)); transition: width .4s ease; }
- .esc-bar .fill::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 2px; background: #1c7a48; }
- .esc-bar .mark { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
- .esc-bar .mark span { position: absolute; top: 3px; left: 3px; font-size: 9px; color: var(--ink-3); white-space: nowrap; opacity: .8; }
- .esc-bar .mark.done { background: #1c7a48; }
- /* ── Marches(连续行军)画布 ── */
- .canvas-wrap {
- position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
- background: var(--paper-2); box-shadow: var(--shadow); flex: 1 1 auto; min-height: 220px;
- }
- #march { width: 100%; height: 100%; display: block; }
- .hud { position: absolute; left: 12px; top: 11px; display: flex; gap: 14px; align-items: flex-start; pointer-events: none; }
- .hud .layer { font-size: 24px; font-weight: 750; letter-spacing: -.02em; line-height: 1; }
- .hud .layer small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 3px; letter-spacing: .04em; }
- .hud .meta { font-size: 11px; color: var(--muted); line-height: 1.5; padding-top: 6px; }
- .hud .meta b { color: var(--ink-3); }
- .hud-r { position: absolute; right: 12px; top: 11px; font-size: 11px; color: var(--muted); text-align: right; line-height: 1.5; pointer-events: none; }
- .hud-r b { color: var(--ink); font-size: 13px; }
- .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; }
- .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; }
- .frozen .frozen-veil { display: block; }
- .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; }
- @keyframes floatUp { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
- /* ── 操作条 ── */
- .actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
- .act {
- border: 1px solid var(--line); background: var(--paper-2); border-radius: 9px; padding: 9px 10px;
- text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, transform .1s, background .15s;
- }
- .act:hover:not(:disabled) { border-color: var(--ink-3); }
- .act:active:not(:disabled) { transform: translateY(1px); }
- .act .t { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
- .act .s { font-size: 11px; color: var(--muted); }
- .act.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
- .act.primary .s { color: #a9b6c9; }
- .act.primary:hover:not(:disabled) { background: var(--ink-2); }
- .act.can { border-color: var(--life); box-shadow: 0 0 0 2px var(--life-soft); }
- .act .kbd { margin-left: auto; font-size: 10px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
- .act.primary .kbd { color: #8e9bb0; border-color: #3a475f; }
- /* ── 升级列表 ── */
- .upg { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); }
- .upg:first-of-type { border-top: 0; padding-top: 0; }
- .upg .ic { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #f1f4f7; border: 1px solid var(--line); }
- .upg .ic svg { width: 22px; height: 22px; }
- .upg .info { flex: 1; min-width: 0; }
- .upg .info .n { font-size: 13px; font-weight: 650; display: flex; gap: 6px; align-items: baseline; }
- .upg .info .n .lv { font-size: 11px; color: var(--muted); font-weight: 500; }
- .upg .info .d { font-size: 11px; color: var(--muted); margin-top: 1px; }
- .upg .info .d b { color: var(--ink-3); }
- .upg .buy {
- border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; padding: 6px 9px; min-width: 92px;
- font-size: 11px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; transition: all .15s;
- }
- .upg .buy .c { font-weight: 700; font-size: 12px; color: var(--ink); }
- .upg .buy .c small { font-weight: 500; color: var(--muted); font-size: 10px; margin-right: 2px; }
- .upg .buy.ok { border-color: var(--life); background: var(--life-soft); color: #1c7a48; }
- .upg .buy.ok .c { color: #1c7a48; }
- .upg .buy:hover:not(:disabled).ok { background: #d7f0e2; }
- .upg .buy .n2 { font-size: 10px; color: var(--muted); }
- .upg.locked { opacity: .55; }
- .upg .lock { font-size: 11px; color: var(--muted); }
- /* ── 兵种 ── */
- .races { display: flex; flex-direction: column; gap: 8px; }
- .race-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
- .race-head .chip { color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 10px; letter-spacing: .04em; }
- .race-head .bond { font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: auto; font-size: 10.5px; }
- .race-head .bond.on { color: #1c7a48; }
- .life { display: flex; gap: 9px; align-items: center; padding: 6px 0; }
- .life .ic { width: 36px; height: 36px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: #fafbfc; display: grid; place-items: center; }
- .life .ic svg { width: 26px; height: 26px; }
- .life .info { flex: 1; min-width: 0; }
- .life .info .n { font-size: 12.5px; font-weight: 650; display: flex; gap: 6px; align-items: baseline; }
- .life .info .n .lv { font-size: 11px; color: var(--muted); font-weight: 500; }
- .life .info .s { font-size: 10.5px; color: var(--muted-2); }
- .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; }
- .life .buy.ok { border-color: var(--life); background: var(--life-soft); color: #1c7a48; }
- .life .buy .c { font-weight: 700; }
- .life.locked { opacity: .5; }
- /* ── 永久 / 转生 ── */
- .reb-card { border: 1px solid #e7dcc0; background: linear-gradient(180deg, #fffdf8, var(--gold-soft)); border-radius: 10px; padding: 11px 12px; }
- .reb-card .k { font-size: 11px; color: #8a6d2c; letter-spacing: .08em; }
- .reb-card .v { font-size: 26px; font-weight: 750; color: #7a5a12; margin-top: 2px; }
- .reb-card .v small { font-size: 12px; color: #a5893f; font-weight: 600; margin-left: 4px; }
- .reb-card .line { font-size: 11px; color: #8a6d2c; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
- .reb-card .line b { color: #5f470f; }
- .perm { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed #e7dcc0; }
- .perm:first-of-type { border-top: 0; }
- .perm .info { flex: 1; }
- .perm .n { font-size: 12.5px; font-weight: 650; }
- .perm .d { font-size: 10.5px; color: var(--muted); }
- .perm .buy { font-size: 11px; border: 1px solid #e0cf9f; background: #fff; border-radius: 7px; padding: 5px 9px; min-width: 78px; text-align: right; }
- .perm .buy.ok { background: #fff8e6; border-color: var(--gold); color: #7a5a12; }
- .perm .buy.ok .c { font-weight: 700; }
- .relics { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
- .relic { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #e0cf9f; background: #fffdf6; display: grid; place-items: center; }
- .relic.off { opacity: .3; filter: grayscale(1); }
- .relic svg { width: 16px; height: 16px; }
- /* ── 位面 ── */
- .plane-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
- .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; }
- .plane-card.locked .art { filter: saturate(.55); }
- /* 世界树主视觉:位面面板底部圆角卡图(不干扰行军 canvas) */
- .tree-art { margin: 10px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; background: #0c111c; }
- .tree-art img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; }
- .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)); }
- .tree-art figcaption b { color: #7BE3A6; }
- .plane-card { border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; background: #fff; text-align: left; position: relative; overflow: hidden; }
- .plane-card .tier { position: absolute; right: 0; top: 0; font-size: 9px; color: #fff; padding: 1px 6px; border-bottom-left-radius: 6px; }
- .plane-card.cur { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
- .plane-card.locked { opacity: .5; }
- .plane-card .nm { font-size: 12.5px; font-weight: 650; margin-top: 2px; }
- .plane-card .met { font-size: 10px; color: var(--muted); margin-top: 1px; }
- .plane-card .bar { height: 4px; border-radius: 2px; background: #eceff3; margin-top: 6px; overflow: hidden; }
- .plane-card .bar i { display: block; height: 100%; border-radius: 2px; }
- .plane-card .ex { font-size: 10px; color: var(--muted); margin-top: 3px; display: flex; justify-content: space-between; }
- .plane-card .ex .an { color: var(--life); font-weight: 700; }
- .plane-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
- .plane-note b { color: var(--ink-3); }
- /* 位面主题色带:顶部细线 */
- [data-plane="0"] { --plane-c: #5fa8d3; }
- [data-plane="1"] { --plane-c: #6c5ce7; }
- [data-plane="2"] { --plane-c: #c77dff; }
- [data-plane="3"] { --plane-c: #2dd4bf; }
- .topbar { border-top: 3px solid var(--plane-c, var(--life)); }
- /* ── 里世界 ── */
- .rift-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
- .rift-top .env { flex: 1; }
- .rift-top .env .nm { font-size: 15px; font-weight: 700; }
- .rift-top .env .ds { font-size: 11px; color: var(--muted); }
- .hpbar { height: 14px; border-radius: 4px; background: #eceff3; border: 1px solid var(--line); overflow: hidden; position: relative; }
- .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #7ad39f, var(--life)); transition: width .25s; }
- .hpbar.enemy i { background: linear-gradient(90deg, #e2a09b, #c0492e); }
- .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; }
- .elite-tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--ink); color: #fff; letter-spacing: .06em; }
- .elite-tag.boss { background: var(--gold); }
- .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; }
- .steps { display: flex; gap: 4px; align-items: center; margin: 8px 0 10px; }
- .steps i { flex: 1; height: 5px; border-radius: 3px; background: #eceff3; }
- .steps i.past { background: var(--life); }
- .steps i.now { background: var(--gold); }
- .card-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
- .opt { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 10px 12px; text-align: left; transition: all .15s; }
- .opt:hover { border-color: var(--ink); transform: translateY(-1px); }
- .opt .l { font-size: 13.5px; font-weight: 650; }
- .opt .h { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
- .opt .rule-chip { display: inline-block; font-size: 10px; color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
- .dice-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
- .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; }
- .dice.rolling { animation: shake .3s linear infinite; }
- @keyframes shake { 0%,100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
- .cmp { flex: 1; font-size: 12px; line-height: 1.6; }
- .cmp .need { color: var(--danger); font-weight: 650; }
- .cmp .val { font-weight: 750; }
- .cmp .win { color: var(--life); }
- .cmp .lose { color: var(--danger); }
- .roll-label { font-size: 13px; font-weight: 750; padding: 2px 8px; border-radius: 6px; display: inline-block; margin-top: 6px; }
- .roll-label.win { background: var(--life-soft); color: #1c7a48; }
- .roll-label.lose { background: #fbe8e3; color: var(--danger); }
- .roll-label.neutral { background: #f1f3f6; color: var(--ink-3); }
- .fight-btns { display: grid; grid-template-columns: 1fr 92px; gap: 8px; margin-top: 10px; }
- .btn { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 9px; padding: 11px 12px; font-size: 14px; font-weight: 700; }
- .btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); font-weight: 600; font-size: 12.5px; }
- .btn.danger { background: #fff; color: var(--danger); border-color: #e8bfb5; font-size: 12.5px; }
- .attrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
- .attr { border: 1px solid var(--line); border-radius: 8px; padding: 6px 7px; background: #fafbfc; }
- .attr .k { font-size: 10px; font-weight: 700; letter-spacing: .06em; display: flex; justify-content: space-between; }
- .attr .k .ad { font-weight: 500; color: var(--muted); }
- .attr .v { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
- .attr .slot { font-size: 9.5px; color: var(--muted-2); }
- .stepper { display: flex; gap: 4px; margin-top: 3px; }
- .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; }
- .stepper button:disabled { opacity: .3; }
- /* ── 日志 / 事件 ── */
- .feed { display: flex; flex-direction: column; gap: 8px; max-height: 100%; overflow-y: auto; }
- .feed .row { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; line-height: 1.45; }
- .feed .row time { color: var(--muted-2); font-size: 10.5px; font-variant-numeric: tabular-nums; min-width: 34px; }
- .feed .row.crisis { color: var(--crisis); }
- .feed .row.mile { color: #7a5a12; font-weight: 600; }
- .empty { color: var(--muted-2); font-size: 12px; padding: 8px 0; }
- /* ── 底部导航(仅手机) ── */
- .tabbar { display: none; }
- .drawer-mask { display: none; }
- /* ── 弹窗 / Toast ── */
- .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); }
- .modal-mask[hidden] { display: none; }
- .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; }
- @keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
- .modal header { padding: 16px 18px 10px; display: flex; align-items: flex-start; gap: 10px; }
- .modal header .mt { flex: 1; }
- .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; }
- .modal header .mtag.crisis { background: #fdf1e3; color: #a5620d; }
- .modal header .mtag.mile { background: var(--gold-soft); color: #7a5a12; }
- .modal header .mtag.civ { background: #e9f1fb; color: #2a5f99; }
- .modal header .mtag.rift { background: #f0ecfb; color: #533aa8; }
- .modal h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
- .modal .body { padding: 4px 18px 16px; overflow-y: auto; }
- .modal .body p { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); margin: 6px 0 12px; }
- .modal .opts { display: flex; flex-direction: column; gap: 8px; }
- .modal .foot { padding: 0 18px 16px; display: flex; gap: 8px; justify-content: flex-end; }
- .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; }
- .cd { font-size: 12px; color: var(--crisis); font-weight: 650; }
- #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; }
- .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; }
- .toast.warn { background: #8a4d12; }
- .toast.good { background: #1c6b43; }
- @keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
- /* ── 新手引导 ── */
- .guide { border: 1px solid #cfe6d9; background: var(--life-soft); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
- .guide .g { flex: 1; font-size: 12.5px; line-height: 1.6; color: #1c5c3a; }
- .guide .g b { color: #123f28; }
- .guide .x { border: 0; background: transparent; color: #1c5c3a; font-size: 16px; padding: 2px 6px; }
- .panel .guide { display: flex; flex-direction: row; align-items: center; }
- .pulse { animation: pulse 1.8s ease-in-out infinite; }
- @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); } }
- /* 性能:低端设备关动画 */
- @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
- /* ══════════ 响应式 ══════════ */
- /* 中等宽度:两栏 */
- @media (max-width: 1180px) {
- .main { grid-template-columns: 280px minmax(0, 1fr); }
- .col.right { display: none; }
- .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); }
- }
- /* 手机竖屏(≤760px):单栏 */
- @media (max-width: 760px) {
- #app { grid-template-rows: auto 1fr auto; }
- .topbar { padding: 0 10px; height: 46px; gap: 8px; }
- .brand { font-size: 13.5px; }
- .brand small { display: none; }
- .topstats { gap: 10px; margin-left: auto; }
- .topstats .tstat.optional { display: none; }
- .topstats .tstat .v { font-size: 12.5px; }
- .viewport-toggle { display: none; }
- .main { display: block; padding: 8px; overflow-y: auto; padding-bottom: 70px; }
- .main > .col { display: none; overflow: visible; padding-bottom: 0; }
- .main > .col.active { display: flex; }
- .main.show-right .col.right { position: static; width: auto; border: 0; padding: 0; box-shadow: none; background: transparent; display: none; }
- .main.show-right > .col.center { display: none; }
- .main.show-right .col.right { display: flex; }
- .canvas-wrap { min-height: 240px; height: 38vh; flex: none; }
- .big-num { font-size: 25px; }
- .res .v { font-size: 17px; }
- .actions { grid-template-columns: repeat(2, 1fr); }
- .tabbar {
- display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line);
- padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); gap: 2px; z-index: 30;
- }
- .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; }
- .tabbar button svg { width: 20px; height: 20px; }
- .tabbar button.on { color: var(--ink); background: #f1f3f6; font-weight: 700; }
- .modal { width: 100%; border-radius: 14px 14px 10px 10px; }
- .modal-mask { align-items: end; padding: 0; }
- .modal { max-height: 86vh; animation: sheetUp .2s ease-out; }
- @keyframes sheetUp { from { transform: translateY(30px); opacity: .6 } to { transform: none; opacity: 1 } }
- .fight-btns { grid-template-columns: 1fr 80px; }
- .attrs { grid-template-columns: repeat(2, 1fr); }
- .upg .buy { min-width: 84px; }
- #toasts { bottom: 76px; }
- }
- /* ── 里世界面板(中栏覆盖) ── */
- .rift-panel { border-color: #d9d0f2; background: linear-gradient(180deg, #fbfaff, #fff); }
- .rift-panel[hidden] { display: none; }
- .rift-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
- .rift-head .nm { font-size: 14px; font-weight: 700; }
- .rift-head .kb { margin-left: auto; font-size: 11px; color: var(--muted); }
- .kv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11px; margin-top: 8px; }
- .kv div { border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; background: #fff; text-align: center; }
- .kv b { display: block; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
- .slot-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
- .slot { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
- .slot .h { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; }
- .slot .v { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
- .slot .stepper { margin-top: 4px; }
- .energy { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 8px; }
- .energy .pips { display: flex; gap: 2px; flex: 1; }
- .energy .pips i { flex: 1; height: 6px; border-radius: 2px; background: #eceff3; }
- .energy .pips i.on { background: #7fb2ff; }
- .fight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
- .fight-grid .box { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
- .fight-grid .box .k { font-size: 10.5px; color: var(--muted); }
- .fight-grid .box .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
- .fight-grid .box.enemy .v { color: var(--danger); }
- .roll-bar { display: flex; gap: 6px; margin-top: 8px; }
- .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; }
- .roll-btn:hover { border-color: var(--ink); }
- .roll-btn:active { transform: scale(.97); }
- .roll-btn.hint { border-color: var(--life); background: var(--life-soft); }
- .roll-btn.crit-hint { border-color: var(--gold); background: var(--gold-soft); }
- .log3 { margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.6; min-height: 34px; }
- .log3 b { color: var(--ink-3); }
- .pick-oath { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
- .pick-oath .opt { text-align: center; padding: 10px 8px; }
- .pick-oath .opt .nm { font-size: 13.5px; font-weight: 700; }
- .pick-oath .opt .ds { font-size: 11px; color: var(--muted); margin-top: 4px; }
- .build-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
- .build-hint b { color: var(--life); }
- .step-dots { display: flex; gap: 4px; margin: 8px 0 2px; }
- .step-dots i { flex: 1; height: 4px; border-radius: 2px; background: #eceff3; }
- .step-dots i.past { background: var(--life); }
- .step-dots i.now { background: var(--gold); }
- .rift-result .big { font-size: 26px; font-weight: 750; color: var(--gold); }
- /* ── 布局修正:flex 子项允许收缩,避免被窄列挤压成竖排字 ── */
- .panel-title { flex-wrap: wrap; }
- .panel-title .tag { white-space: normal; text-align: right; }
- .upg .info, .life .info, .perm .info { min-width: 0; }
- .upg .info .n, .life .info .n, .perm .n { flex-wrap: wrap; }
- .upg .info .d, .life .info .s, .perm .d { line-height: 1.5; }
- .life .info .s { line-height: 1.45; }
- .race-head { flex-wrap: wrap; }
- .race-head .bond { margin-left: 0; }
- .main { grid-template-columns: 300px minmax(0, 1fr) 340px; }
- .col.left, .col.right { padding-right: 2px; }
- @media (max-width: 1360px) { .main { grid-template-columns: 286px minmax(0, 1fr) 320px; } }
- .esc-bar .mark span { top: 5px; }
- .canvas-wrap { min-height: 260px; }
- .hud .layer small { font-size: 11px; }
- .upg .buy, .perm .buy { flex: none; }
- /* ── 面板/区块显式纵向排列(覆盖 .main > .col 的横向 flex 继承) ── */
- #upgrades, #lives, #rebirth, #perm, #planes, #resources, #mainline, #feed-panel, #rift-live { display: flex; flex-direction: column; }
- #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; }
- #mainline .guide { flex-direction: row; }
- #mainline .esc-track { flex-direction: row; }
- .actions { flex-direction: row; }
- .reb-card .line, .sub-line { flex-direction: row; }
- .plane-list { flex-direction: row; }
- .relics { flex-direction: row; }
- .panel-title { min-width: 0; }
- .panel-title::before { flex: none; }
- #lives { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }
- #lives .panel-title, #lives .race-block, #lives .race-head { grid-column: 1 / -1; }
- #lives .race-head { margin-top: 4px; }
- #lives .life { min-width: 0; }
- #lives .life .info .s { white-space: normal; }
- .actions .act .t, .actions .act .s { white-space: nowrap; }
- @media (max-width: 1360px) { #lives { grid-template-columns: 1fr; } }
- /* ── 中栏:画布固定高度,内容溢出时滚动 ── */
- .col.center { overflow-y: auto; }
- .canvas-wrap { flex: 0 0 auto; height: clamp(210px, calc(100vh - 330px), 340px); min-height: 180px; }
- .rift-slot { display: flex; flex-direction: column; }
- .rift-slot[hidden] { display: none; }
- #rift-live { display: flex; flex-direction: column; }
- @media (max-width: 760px) { .canvas-wrap { height: 36vh; min-height: 220px; } }
- .foot-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
- .ct-inline { padding: 0 18px 16px; }
- .ct-inline .foot-row { margin-top: 10px; }
- .modal .foot:empty { display: none; }
- /* 地质环境条 */
- .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); }
- .env-strip b { font-size: 12px; white-space: nowrap; }
- .env-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
- .env-eff { white-space: nowrap; color: #b9c6d8; }
- .env-prog { flex: 0 0 64px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
- .env-prog i { display: block; height: 100%; }
- .env-left { color: #93a2b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- @media (max-width: 760px) { .env-strip { bottom: 8px; left: 8px; right: 8px; font-size: 10.5px; } .env-left { display: none; } }
- .hud { flex-wrap: wrap; right: 130px; }
- .hud .hud-meta { max-width: 46%; }
- @media (max-width: 600px) { .hud { right: 10px; } .hud .hud-meta { max-width: 60%; } }
- .feed .row.ambient { color: #6b4ea8; }
|