﻿/* ================================================================

   破凡劫 v4 · 修仙宗门模拟器风格

   深蓝紫暗色主题 + 金色文字 + 表格行式布局
   （v4 在 v3 深色基础上整合，灵兽系统三界面卡片单独调亮）

   ================================================================ */



:root {

    --bg-deep: #0a0a1a;

    --bg-mid: #12122a;

    --bg-card: rgba(18,18,42,0.92);

    --bg-row: rgba(22,22,50,0.7);

    --bg-row-alt: rgba(28,28,58,0.5);

    --bg-hover: rgba(40,40,80,0.5);

    --border: rgba(80,70,120,0.3);

    --border-light: rgba(60,50,100,0.2);

    --border-gold: rgba(212,168,67,0.35);

    --gold: #d4a843;

    --gold-dim: rgba(212,168,67,0.6);

    --gold-glow: rgba(212,168,67,0.2);

    --gold-light: #f0d060;

    --jade: #5dde7e;

    --jade-dim: rgba(93,222,126,0.6);

    --crimson: #e05555;

    --azure: #5da8e0;

    --purple: #a078d0;

    --text: #e0d8f0;

    --text-dim: rgba(180,170,200,0.6);

    --text-muted: rgba(140,130,170,0.4);

    --radius: 6px;

    --radius-sm: 4px;

}



* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html, body { width:100%; height:100%; overflow:hidden; background:var(--bg-deep); color:var(--text); font-family:"STKaiti","KaiTi","楷体","华文楷体","PingFang SC","Microsoft YaHei",serif; font-size:13px; line-height:1.4; }



#app { position:relative; width:100%; height:100%; max-width:540px; margin:0 auto; overflow:hidden; background:linear-gradient(180deg,#0a0a1a 0%,#10102a 40%,#0e0e22 100%); }



/* ===== 场景背景 ===== */

.scene-bg { position:absolute; inset:0; z-index:0; background-size:cover; background-position:center; }

/* 各主场景背景插图 */
.scene-bg.bg-cultivate { background-image:url('../assets/images/scenes/bg_cultivate_new.jpg?v=119'); }
.scene-bg.bg-adventure { background-image:url('../assets/images/scenes/bg_adventure.jpg'); }
.scene-bg.bg-dongfu { background-image:url('../assets/images/scenes/bg_dongfu.jpg'); }
.scene-bg.bg-xiantu { background-image:url('../assets/images/scenes/bg_xiantu.jpg'); }
.scene-bg.bg-social { background-image:url('../assets/images/scenes/bg_social.jpg'); }

.scene-overlay { position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(180deg,rgba(10,10,26,0.55),rgba(10,10,26,0.18) 40%,rgba(10,10,26,0.22) 70%,rgba(10,10,26,0.75)); }

/* 修炼页需要更通透，确保打坐人物插图可见 */
#scene-bg.bg-cultivate + .scene-overlay { background:linear-gradient(180deg,rgba(10,10,26,0.38),rgba(10,10,26,0.10) 40%,rgba(10,10,26,0.15) 70%,rgba(10,10,26,0.55)); }

.scene-particles { position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }

.particle { position:absolute; border-radius:50%; opacity:0; animation:particleRise linear infinite; }

@keyframes particleRise { 0%{transform:translateY(0) scale(0);opacity:0;} 10%{opacity:0.3;transform:scale(1);} 90%{opacity:0.1;} 100%{transform:translateY(-100vh) scale(0.4);opacity:0;} }



/* ===== 开始界面 ===== */

#start-screen { position:absolute; inset:0; z-index:300; display:flex; flex-direction:column; justify-content:space-between; align-items:center; padding:0 16px 16px; }

#start-screen.hidden { display:none; }

.start-bg { position:absolute; inset:0; z-index:1; background-size:cover; background-position:center top; filter:none; }

.start-content { position:relative; z-index:2; width:100%; max-width:420px; height:78vh; display:flex; flex-direction:column; justify-content:space-between; align-items:center; text-align:center; animation:fadeInUp 0.8s ease both; }

.game-logo { margin-top:2vh; }

.logo-sub { font-size:12px; color:var(--gold-dim); letter-spacing:6px; margin-top:8px; }

.start-buttons { display:flex; flex-direction:row; justify-content:center; align-items:center; gap:10px; width:100%; max-width:440px; padding-bottom:4vh; flex-shrink:0; }

@keyframes fadeInUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }



/* ===== 按钮 ===== */

.btn { padding:6px 12px; border-radius:var(--radius-sm); font-size:12px; font-weight:600; cursor:pointer; border:none; font-family:inherit; display:inline-flex; align-items:center; justify-content:center; gap:3px; touch-action:manipulation; transition:transform 0.1s; }

.btn:active { transform:scale(0.96); }

.btn-primary { background:linear-gradient(135deg,var(--gold),#b88a28); color:#0a0a1a; font-weight:700; }

.btn-secondary { background:rgba(80,70,120,0.3); color:var(--text-dim); border:1px solid var(--border); }

.btn-success { background:rgba(45,122,79,0.2); color:var(--jade); border:1px solid rgba(45,122,79,0.3); }

.btn-danger { background:rgba(160,48,48,0.2); color:var(--crimson); border:1px solid rgba(160,48,48,0.3); }

.btn-gold { background:rgba(184,134,11,0.2); color:var(--gold); border:1px solid var(--border-gold); }

.btn-small { padding:3px 8px; font-size:11px; min-height:24px; }

.btn-block { width:100%; }

.btn:disabled { opacity:0.35; pointer-events:none; }

.btn.btn-start {
    width: 40%;
    max-width: 160px;
    aspect-ratio: 1368 / 342;
    background: url('../assets/images/start/btn_golden_frame.jpg?v=119') center / 100% 100% no-repeat;
    border: none;
    color: #3a1f00;
    font-size: 15px;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    letter-spacing: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 0 8px rgba(255,255,255,0.35);
    cursor: pointer;
    transition: transform 0.1s, filter 0.15s;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.btn.btn-start:active {
    transform: scale(0.97);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45)) brightness(0.92);
}

.btn.btn-exit {
    width: 40%;
    max-width: 160px;
    aspect-ratio: 1368 / 342;
    background: url('../assets/images/start/btn_golden_frame.jpg?v=119') center / 100% 100% no-repeat;
    border: none;
    color: #3a1f00;
    font-size: 15px;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    letter-spacing: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 0 8px rgba(255,255,255,0.35);
    cursor: pointer;
    transition: transform 0.1s, filter 0.15s;
    opacity: 0.88;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.btn.btn-exit:active {
    transform: scale(0.97);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45)) brightness(0.92);
}

.btn.btn-enter-server {
    width: 40%;
    max-width: 160px;
    aspect-ratio: 1368 / 342;
    background: url('../assets/images/start/btn_golden_frame.jpg?v=119') center / 100% 100% no-repeat;
    border: none;
    color: #3a1f00;
    font-size: 15px;
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', serif;
    letter-spacing: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 0 8px rgba(255,255,255,0.35);
    cursor: pointer;
    transition: transform 0.1s, filter 0.15s;
    margin: 12px auto 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    display: block;
}

.btn.btn-enter-server:active {
    transform: scale(0.97);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45)) brightness(0.92);
}



/* ===== 主界面 ===== */

#game-screen { position:absolute; inset:0; z-index:10; display:flex; flex-direction:column; }

#game-screen.hidden { display:none; }



/* ===== 顶部资源栏 ===== */

#top-bar { position:relative; z-index:20; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; padding:5px 10px; background:rgba(10,10,26,0.9); border-bottom:1px solid var(--border); }

.top-player { display:flex; flex-direction:column; }

.top-name { font-size:13px; font-weight:700; color:var(--gold); max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.top-realm { font-size:10px; color:var(--text-dim); }

.top-resources { display:flex; gap:8px; font-size:11px; }

.res-item { color:var(--text-muted); white-space:nowrap; }

.res-item em { color:var(--gold); font-weight:600; font-style:normal; }



/* ===== 主内容区 ===== */

#game-content { position:relative; z-index:10; flex:1; overflow-y:auto; overflow-x:hidden; padding:6px 8px 80px; -webkit-overflow-scrolling:touch; }

.tab-page { display:none; }

.tab-page.active { display:block; }

.sub-page { display:none; }

.sub-page.active { display:block; }



/* ===== 境界大卡片（表格风格） ===== */

.realm-card { background:var(--bg-card); border:1px solid var(--border-gold); border-radius:var(--radius); padding:8px 10px; margin-bottom:6px; }

.realm-card-top { display:flex; align-items:center; gap:8px; margin-bottom:6px; }

.realm-card-power { text-align:center; min-width:46px; }

.realm-power-label { font-size:9px; color:var(--text-muted); letter-spacing:1px; }

.realm-power-value { font-size:22px; font-weight:800; color:var(--gold); text-shadow:0 0 8px var(--gold-glow); line-height:1.1; animation:powerPulse 2.5s ease-in-out infinite; }

@keyframes powerPulse { 0%,100%{text-shadow:0 0 8px var(--gold-glow);} 50%{text-shadow:0 0 16px rgba(212,168,67,0.4);} }

.realm-card-info { flex:1; }

.realm-name { font-size:18px; font-weight:800; color:var(--gold); letter-spacing:1px; }

.realm-sub { font-size:10px; color:var(--text-dim); }

.realm-card-btns { display:flex; gap:4px; flex-shrink:0; }

.realm-card-exp { margin-bottom:4px; }

.realm-exp-row { display:flex; align-items:baseline; gap:4px; margin-bottom:3px; font-size:11px; }

.realm-exp-label { color:var(--text-dim); }

.realm-exp-value { font-size:13px; font-weight:700; color:var(--jade); }

.realm-exp-pct { color:var(--gold); margin-left:auto; font-size:11px; }

.realm-card-row { display:flex; align-items:center; justify-content:space-between; gap:6px; padding-top:5px; border-top:1px solid var(--border-light); }

.realm-speed { display:flex; align-items:baseline; gap:4px; }

.realm-speed-label { font-size:10px; color:var(--text-dim); }

.realm-speed-value { font-size:12px; font-weight:700; color:var(--gold); }



/* ===== 进度条 ===== */

.progress-bar { background:rgba(0,0,0,0.3); border-radius:4px; height:6px; overflow:hidden; }

.progress-bar .fill { height:100%; border-radius:4px; transition:width 0.5s ease; background:linear-gradient(90deg,#3a6a3a,var(--jade)); }

.progress-bar .fill.gold { background:linear-gradient(90deg,#8a6a20,var(--gold)); }

.progress-bar-main { background:rgba(0,0,0,0.3); border-radius:5px; height:14px; overflow:hidden; position:relative; border:1px solid var(--border-light); }

.progress-bar-main .fill { height:100%; border-radius:5px; transition:width 0.5s ease; background:linear-gradient(90deg,#8a6a20,var(--gold)); }

.progress-bar-main .fill.green { background:linear-gradient(90deg,#3a6a3a,var(--jade)); }

.progress-bar-main .progress-text { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:600; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,0.5); }



/* ===== 表格行列表格 ===== */

.tbl { width:100%; border-collapse:collapse; margin-bottom:6px; }

.tbl th { font-size:10px; color:var(--text-muted); text-align:left; padding:4px 6px; border-bottom:1px solid var(--border); font-weight:600; }

.tbl td { padding:5px 6px; border-bottom:1px solid var(--border-light); font-size:12px; vertical-align:middle; }

.tbl tr:active { background:var(--bg-hover); }

.tbl-icon { width:24px; text-align:center; font-size:16px; }

.tbl-name { color:var(--text); font-weight:600; }

.tbl-val { color:var(--gold); font-weight:600; text-align:right; }

.tbl-sub { color:var(--text-muted); font-size:10px; }

.tbl-btn { text-align:right; }



/* ===== 图标方块（仙途/快捷入口用） ===== */

.icon-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin-bottom:6px; }

.icon-grid-3 { grid-template-columns:repeat(3,1fr); }

.icon-tile { display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 2px 5px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-sm); cursor:pointer; transition:transform 0.1s; text-align:center; }

.icon-tile:active { transform:scale(0.95); }

.tile-icon { width:36px; height:36px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:18px; position:relative; }

.tile-icon::after { content:''; position:absolute; inset:0; border-radius:6px; box-shadow:inset 0 -1px 3px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.15); pointer-events:none; }

.tile-red { background:linear-gradient(135deg,#6a3030,#502020); }

.tile-orange { background:linear-gradient(135deg,#6a5030,#504020); }

.tile-green { background:linear-gradient(135deg,#2a5030,#204020); }

.tile-blue { background:linear-gradient(135deg,#2a3a5a,#203050); }

.tile-purple { background:linear-gradient(135deg,#3a2a5a,#302050); }

.tile-gold { background:linear-gradient(135deg,#5a4a20,#4a3a18); }

.tile-brown { background:linear-gradient(135deg,#4a3a28,#3a2a18); }

.tile-name { font-size:9px; font-weight:600; color:var(--text); line-height:1.1; }

.tile-val { font-size:10px; font-weight:700; color:var(--gold); }

.tile-sub { font-size:8px; color:var(--text-muted); }



/* ===== 属性表格行 ===== */

.attr-tbl { width:100%; border-collapse:collapse; margin-bottom:6px; }

.attr-tbl td { padding:4px 6px; border:1px solid var(--border-light); font-size:11px; }

.attr-tbl .attr-icon { font-size:14px; width:20px; text-align:center; }

.attr-tbl .attr-label { color:var(--text-dim); font-size:10px; }

.attr-tbl .attr-val { color:var(--gold); font-weight:700; text-align:right; }



/* ===== 状态标签 ===== */

.status-strip { display:flex; gap:3px; flex-wrap:wrap; margin-bottom:6px; }

.status-tag { padding:2px 7px; border-radius:10px; font-size:10px; font-weight:600; background:rgba(40,40,80,0.5); border:1px solid var(--border); color:var(--purple); white-space:nowrap; }

.status-danger { border-color:rgba(224,85,85,0.3); color:var(--crimson); }

.status-cure { cursor:pointer; border-color:rgba(93,222,126,0.3); color:var(--jade); }

.status-cure:active { transform:scale(0.95); }



/* ===== 末法时代 ===== */

.dark-notice { background:rgba(80,30,30,0.2); border:1px solid rgba(160,48,48,0.2); border-radius:var(--radius-sm); padding:5px 8px; margin-bottom:6px; }

.dark-notice summary { font-size:11px; font-weight:700; color:var(--crimson); cursor:pointer; list-style:none; }

.dark-notice p { font-size:10px; color:var(--text-dim); margin-top:3px; line-height:1.5; }



/* ===== 通用卡片 ===== */

.card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:8px; margin-bottom:6px; }

.card-title { font-size:13px; font-weight:700; color:var(--gold); margin-bottom:5px; padding-bottom:4px; border-bottom:1px solid var(--border-light); display:flex; align-items:center; gap:4px; }

.card-desc { font-size:10px; color:var(--text-dim); line-height:1.4; }

.card-actions { margin-top:5px; display:flex; gap:4px; flex-wrap:wrap; }



/* ===== Tab标签 ===== */

.sub-tabs { display:flex; gap:0; margin-bottom:6px; background:rgba(20,20,50,0.6); border-radius:var(--radius-sm); padding:2px; border:1px solid var(--border); overflow-x:auto; scrollbar-width:none; }

.sub-tabs::-webkit-scrollbar { display:none; }

.sub-tab { flex:1; padding:5px 4px; text-align:center; font-size:11px; color:var(--text-dim); background:transparent; border:none; border-radius:3px; cursor:pointer; font-family:inherit; transition:0.15s; white-space:nowrap; }

.sub-tab.active { color:#0a0a1a; background:linear-gradient(135deg,rgba(212,168,67,0.85),rgba(180,140,50,0.85)); font-weight:600; }

.sub-tab:active { transform:scale(0.95); }



/* ===== 仙途分区标题 ===== */

.immortal-section-title { font-size:11px; font-weight:700; color:var(--gold); margin:8px 0 4px; padding-left:5px; border-left:2px solid var(--gold); }

.immortal-section-title:first-child { margin-top:0; }



/* ===== 底部导航 ===== */

#bottom-nav { position:absolute; bottom:0; left:0; right:0; z-index:20; display:flex; align-items:flex-end; justify-content:space-around; padding:3px 4px 6px; background:rgba(10,10,26,0.95); border-top:1px solid var(--border); height:48px; }

.nav-btn { min-width:40px; background:transparent; border:none; color:var(--text-muted); font-size:9px; display:flex; flex-direction:column; align-items:center; gap:1px; padding:2px 4px; cursor:pointer; font-family:inherit; position:relative; }

.nav-btn .nav-icon { font-size:17px; line-height:1; }

.nav-btn.active { color:var(--gold); }

.nav-btn.active::after { content:''; position:absolute; top:0; left:20%; right:20%; height:2px; background:var(--gold); border-radius:1px; }

.nav-btn:active { transform:scale(0.9); }

.nav-center-btn { position:relative; width:44px; height:44px; border-radius:50%; border:2px solid rgba(212,168,67,0.5); background:linear-gradient(135deg,rgba(212,168,67,0.85),rgba(160,120,50,0.85)); cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 10px rgba(212,168,67,0.3); transition:0.15s; margin-top:-14px; flex-shrink:0; }

.nav-center-btn:active { transform:scale(0.9); }

.center-btn-icon { font-size:19px; color:#0a0a1a; line-height:1; }

.center-btn-pulse { position:absolute; inset:-4px; border-radius:50%; border:1px solid rgba(212,168,67,0.2); animation:centerPulse 2s ease-in-out infinite; }

@keyframes centerPulse { 0%,100%{transform:scale(1);opacity:0.3;} 50%{transform:scale(1.1);opacity:0;} }



/* ===== 日志 ===== */

#game-log { position:absolute; bottom:48px; left:0; right:0; z-index:15; height:50px; overflow-y:auto; padding:3px 8px; background:rgba(10,10,26,0.8); border-top:1px solid var(--border-light); font-size:10px; line-height:1.4; color:var(--text-dim); }



/* ===== 面板 ===== */

[class*="bg-panel-"] { background-size:cover!important; background-position:center!important; background-repeat:no-repeat!important; background-color:rgba(10,10,26,0.93)!important; background-blend-mode:overlay!important; }

.bg-panel-farm { background-image:url('../assets/images/panels/panel_farm.jpg')!important; }

.bg-panel-alchemy { background-image:url('../assets/images/panels/panel_alchemy.jpg')!important; }

.bg-panel-cave { background-image:url('../assets/images/panels/panel_cave.jpg')!important; }

.bg-panel-sect { background-image:url('../assets/images/panels/panel_sect.jpg')!important; }

.bg-panel-reinc { background-image:url('../assets/images/panels/panel_reinc.jpg')!important; }

.bg-panel-pet { background-image:url('../assets/images/panels/panel_pet.jpg')!important; }

.bg-panel-market { background-image:url('../assets/images/panels/panel_market.jpg')!important; }

.bg-panel-dantower { background-image:url('../assets/images/panels/panel_dantower.jpg')!important; }

.bg-panel-root { background-image:url('../assets/images/panels/panel_root.jpg')!important; }

.bg-panel-task { background-image:url('../assets/images/panels/panel_task.jpg')!important; }

.bg-panel-leaderboard { background-image:url('../assets/images/panels/panel_leaderboard.jpg')!important; }

.bg-panel-story { background-image:url('../assets/images/panels/panel_story.jpg')!important; }

.bg-panel-tower { background-image:url('../assets/images/panels/panel_tower.jpg')!important; }

.bg-panel-shenmo { background-image:url('../assets/images/panels/panel_shenmo.jpg')!important; }

.bg-panel-combat { background-image:url('../assets/images/panels/panel_combat.jpg')!important; }

.bg-panel-enhance { background-image:url('../assets/images/panels/panel_enhance.jpg')!important; }



[class*="bg-panel-"] .card { background:rgba(18,18,42,0.9); border:1px solid var(--border); border-radius:var(--radius); padding:8px; margin-bottom:6px; }

[class*="bg-panel-"] .card-title { color:var(--gold); border-bottom:1px solid var(--border-light); padding-bottom:4px; }

[class*="bg-panel-"] .btn-primary { background:linear-gradient(135deg,var(--gold),#b88a28); color:#0a0a1a; }

[class*="bg-panel-"] .btn-danger { background:rgba(160,48,48,0.2); color:var(--crimson); border:1px solid rgba(160,48,48,0.3); }

[class*="bg-panel-"] .btn-small { background:rgba(40,40,80,0.4); color:var(--text-dim); border:1px solid var(--border); }



/* ===== Toast ===== */

.toast-msg { position:fixed; bottom:70px; left:50%; transform:translateX(-50%); background:rgba(18,18,42,0.95); color:var(--text); padding:7px 18px; border-radius:18px; font-size:12px; z-index:10000; box-shadow:0 2px 8px rgba(0,0,0,0.3); border:1px solid var(--border); white-space:nowrap; }



/* ===== 聊天 ===== */

.chat-toggle { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:5px 8px; margin-bottom:6px; cursor:pointer; display:flex; align-items:center; gap:5px; font-size:10px; color:var(--text-dim); }

.chat-toggle:active { transform:scale(0.98); }

.chat-toggle .chat-toggle-icon { font-size:13px; }

.chat-toggle .chat-toggle-latest { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-muted); }

.chat-card { display:none; flex-direction:column; height:32vh; min-height:160px; margin-bottom:6px; }

.chat-card.expanded { display:flex; }

.chat-sub-page { display:none; flex:1; flex-direction:column; overflow:hidden; }

.chat-sub-page.active { display:flex; }

.chat-message-list { flex:1; overflow-y:auto; font-size:10px; padding:2px; }

.chat-message { padding:2px 4px; margin-bottom:2px; border-radius:3px; background:rgba(20,20,50,0.4); line-height:1.3; }

.chat-message .chat-name { color:var(--gold); font-weight:600; margin-right:2px; font-size:10px; }

.chat-message .chat-time { color:var(--text-muted); font-size:8px; margin-left:2px; }

.chat-message .chat-text { color:var(--text-dim); word-break:break-all; }

.chat-message.system-msg { background:rgba(212,168,67,0.06); border-left:2px solid var(--gold); }

.chat-message.system-msg .chat-name { color:var(--jade); }

.chat-message.system-msg .chat-text { color:var(--text-dim); }

.chat-input-row { display:flex; gap:3px; padding-top:3px; border-top:1px solid var(--border-light); margin-top:2px; }

.chat-input-row input { flex:1; background:rgba(20,20,50,0.6); border:1px solid var(--border); color:var(--text); padding:4px 6px; border-radius:4px; font-size:11px; outline:none; font-family:inherit; }

.chat-input-row input:focus { border-color:var(--gold); }

.chat-input-row input::placeholder { color:var(--text-muted); }



/* ===== 装备 ===== */

#equipped-list { display:grid; grid-template-columns:1fr 1fr; gap:2px 5px; }

.equip-slot { font-size:10px; color:var(--text-dim); padding:1px 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.eq-normal { color:var(--text-muted); }

.eq-rare { color:var(--azure); }

.eq-epic { color:#e08040; }



/* ===== 通用 ===== */

.hidden { display:none!important; }

.stat-row { display:flex; gap:5px; flex-wrap:wrap; font-size:10px; color:var(--text-dim); margin-bottom:2px; }

.stat-row span { color:var(--text); }

.section-title { font-size:11px; color:var(--gold); margin:6px 0 4px; font-weight:700; }

.pagination { display:flex; justify-content:center; gap:5px; margin-top:6px; }

.pagination .btn { padding:2px 8px; font-size:10px; }

.page-info { font-size:10px; color:var(--text-dim); display:flex; align-items:center; }

.panel-header-neon { display:flex; align-items:center; gap:6px; padding:6px 0 8px; border-bottom:1px solid var(--border); margin-bottom:8px; }

.panel-header-neon .panel-title { font-size:15px; font-weight:800; letter-spacing:1px; color:var(--gold); }

.panel-badge { font-size:9px; background:rgba(80,70,120,0.4); color:var(--purple); padding:1px 6px; border-radius:8px; border:1px solid rgba(140,140,180,0.2); margin-left:auto; }

.dungeon-card, .building-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:6px; margin-bottom:5px; }

.item-row { display:flex; align-items:center; justify-content:space-between; padding:4px 0; border-bottom:1px solid var(--border-light); font-size:11px; }

.item-name { flex:1; }

.item-actions { display:flex; gap:3px; flex-shrink:0; }

.farm-cell-v2 { width:80px; height:90px; border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; cursor:pointer; transition:0.1s; position:relative; user-select:none; background:var(--bg-card); border:1px solid var(--border); }

.farm-cell-v2:active { transform:scale(0.93); }

.farm-cell-v2.locked { opacity:0.3; cursor:default; }

.farm-cell-v2.empty { border-style:dashed; }

.farm-cell-v2.mature { border-color:var(--gold); }

.farm-progress-bar { width:45px; height:3px; background:rgba(0,0,0,0.3); border-radius:2px; overflow:hidden; }

.farm-progress-fill { height:100%; border-radius:2px; transition:width 1s linear; }

.farm-mature-tag { font-size:8px; color:var(--gold); font-weight:bold; }

.farm-time-text { font-size:8px; color:var(--text-muted); }

.root-tag { font-size:9px; padding:1px 6px; border-radius:3px; background:rgba(45,122,79,0.15); border:1px solid rgba(45,122,79,0.3); color:var(--jade); }



/* ===== 响应式 ===== */

@media (max-width:380px) {

    .realm-power-value { font-size:18px; }

    .realm-name { font-size:15px; }

    .icon-grid { gap:3px; }

    .tile-icon { width:30px; height:30px; font-size:15px; }

    .tile-name { font-size:8px; }

    .nav-btn { min-width:36px; font-size:8px; }

    .nav-center-btn { width:40px; height:40px; margin-top:-10px; }

}



/* ===== 滚动条 ===== */

::-webkit-scrollbar { width:3px; }

::-webkit-scrollbar-track { background:transparent; }

::-webkit-scrollbar-thumb { background:rgba(80,70,120,0.2); border-radius:2px; }



/* ===== 创建角色 ===== */

#create-role-overlay, #prologue-container { position:absolute; inset:0; z-index:400; display:none; flex-direction:column; justify-content:center; align-items:center; padding:24px; background:rgba(10,10,26,0.9); }

#create-role-overlay.active, #prologue-container.active { display:flex; }

.scroll-panel { width:100%; max-width:420px; max-height:78vh; overflow-y:auto; background:rgba(18,18,42,0.95); border:1px solid var(--border); border-radius:12px; padding:18px; }

.panel-title { font-size:17px; font-weight:700; color:var(--gold); text-align:center; margin-bottom:12px; letter-spacing:3px; }

.panel-title-small { font-size:13px; font-weight:600; color:var(--gold); margin-bottom:8px; display:flex; align-items:center; gap:5px; }

.btn-group { display:flex; gap:10px; justify-content:center; }

.btn-confirm { background:linear-gradient(180deg,rgba(45,122,79,0.85),rgba(30,90,55,0.85)); color:#fff; border:1px solid rgba(45,122,79,0.4); padding:8px 22px; border-radius:20px; font-size:14px; cursor:pointer; font-family:inherit; }

.btn-cancel { background:rgba(40,40,80,0.5); color:var(--text-dim); border:1px solid var(--border); padding:8px 22px; border-radius:20px; font-size:14px; cursor:pointer; font-family:inherit; }

.prologue-title { font-size:22px; color:var(--gold); margin-bottom:12px; letter-spacing:6px; }

.prologue-text { font-size:13px; line-height:1.8; color:var(--text); text-align:justify; white-space:pre-wrap; margin-bottom:18px; }

.prologue-btn { background:linear-gradient(180deg,rgba(212,168,67,0.85),rgba(160,120,50,0.85)); color:#0a0a1a; border:none; padding:10px 30px; border-radius:20px; font-size:15px; letter-spacing:3px; cursor:pointer; font-family:inherit; }



/* ================================================================

   破凡劫 v8.0 · 无极仙途风格修炼页

   打坐虚影 + 光环涟漪 + 青蓝光效 + 金色强调

   ================================================================ */



/* ===== 顶部资源栏 v2 ===== */

#top-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 4px 8px;

    background: rgba(10,10,26,0.92);

    border-bottom: 1px solid rgba(80,70,120,0.3);

    height: auto;

    min-height: 44px;

    gap: 6px;

}

.top-player {

    display: flex;

    align-items: center;

    gap: 6px;

    flex-shrink: 0;

}

.top-avatar {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    background: linear-gradient(135deg, #2a1a3a, #1a0f25);

    border: 1.5px solid rgba(0,230,255,0.4);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    flex-shrink: 0;

    box-shadow: 0 0 8px rgba(0,230,255,0.2);

}

.top-player-info {

    display: flex;

    flex-direction: column;

}

.top-name {

    font-size: 12px;

    font-weight: 700;

    color: #d4a843;

    max-width: 70px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}

.top-realm {

    font-size: 9px;

    color: rgba(180,170,200,0.6);

}

.top-resources {

    display: flex;

    gap: 6px;

    font-size: 10px;

    flex: 1;

    justify-content: center;

}

.res-item {

    color: rgba(140,130,170,0.4);

    white-space: nowrap;

}

.res-item em {

    color: #d4a843;

    font-weight: 600;

    font-style: normal;

}

.top-shortcuts {

    display: flex;

    gap: 4px;

    flex-shrink: 0;

}

.shortcut-btn {

    width: 28px;

    height: 28px;

    border-radius: 6px;

    background: rgba(80,70,120,0.25);

    border: 1px solid rgba(80,70,120,0.3);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    cursor: pointer;

    transition: 0.15s;

}

.shortcut-btn:active { transform: scale(0.9); }

.shortcut-btn .badge-dot {

    position: absolute;

    top: -2px;

    right: -2px;

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #e05555;

}



/* ===== 全局滚动待办提示条 ===== */

.todo-strip {

    background: rgba(18,18,42,0.85);

    border-bottom: 1px solid rgba(60,50,100,0.2);

    padding: 3px 8px;

    font-size: 10px;

    color: rgba(180,170,200,0.6);

    overflow: hidden;

    white-space: nowrap;

    position: relative;

    height: 20px;

}

.todo-strip-inner {

    display: inline-block;

    animation: todoScroll 20s linear infinite;

}

.todo-strip .todo-item {

    margin-right: 20px;

}

.todo-strip .todo-item .todo-val {

    color: #d4a843;

    font-weight: 600;

}

.todo-strip .todo-item.todo-urgent .todo-val {

    color: #e05555;

}

@keyframes todoScroll {

    0% { transform: translateX(0); }

    100% { transform: translateX(-50%); }

}



/* ===== 左侧挂机进度悬浮栏 ===== */

.idle-sidebar {

    position: fixed;

    left: 0;

    top: 50%;

    transform: translateY(-50%);

    z-index: 25;

    width: 36px;

    background: rgba(10,10,26,0.92);

    border: 1px solid rgba(80,70,120,0.3);

    border-left: none;

    border-radius: 0 8px 8px 0;

    padding: 4px 2px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;

    transition: width 0.3s, padding 0.3s;

    overflow: hidden;

}

.idle-sidebar.expanded {

    width: 140px;

    padding: 6px 4px;

}

.idle-toggle {

    font-size: 14px;

    cursor: pointer;

    color: #d4a843;

    margin-bottom: 2px;

    width: 100%;

    text-align: center;

}

.idle-item {

    display: flex;

    align-items: center;

    gap: 4px;

    width: 100%;

    padding: 2px;

    border-radius: 4px;

    font-size: 9px;

    color: rgba(180,170,200,0.6);

    white-space: nowrap;

    overflow: hidden;

}

.idle-item .idle-icon {

    font-size: 12px;

    flex-shrink: 0;

    width: 18px;

    text-align: center;

}

.idle-item .idle-text {

    display: none;

    overflow: hidden;

    text-overflow: ellipsis;

}

.idle-sidebar.expanded .idle-item .idle-text {

    display: inline;

}

.idle-item .idle-val {

    color: #00e6ff;

    font-weight: 600;

    display: none;

}

.idle-sidebar.expanded .idle-item .idle-val {

    display: inline;

}



/* ===== 修炼页：打坐虚影区 ===== */

.meditation-area {

    position: relative;

    width: 100%;

    height: 220px;

    margin-bottom: 6px;

    overflow: hidden;

    border-radius: 8px;

    background: radial-gradient(ellipse at 50% 80%, rgba(0,230,255,0.05) 0%, transparent 60%),

                linear-gradient(180deg, rgba(10,10,26,0.3) 0%, rgba(18,18,42,0.6) 50%, rgba(10,10,26,0.8) 100%);

    border: 1px solid rgba(80,70,120,0.2);

}

.meditation-bg {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: 0.3;

}

.meditation-figure {

    position: absolute;

    left: 50%;

    top: 45%;

    transform: translate(-50%, -50%);

    line-height: 1;

    filter: brightness(0.9) drop-shadow(0 0 20px rgba(0,230,255,0.3));

    z-index: 2;

}

.meditation-aura {

    position: absolute;

    left: 50%;

    top: 45%;

    transform: translate(-50%, -50%);

    width: 140px;

    height: 140px;

    border-radius: 50%;

    border: 2px solid rgba(0,230,255,0.25);

    box-shadow: 0 0 30px rgba(0,230,255,0.15), inset 0 0 30px rgba(0,230,255,0.08);

    animation: auraPulse 3s ease-in-out infinite;

    z-index: 1;

}

.meditation-aura-inner {

    position: absolute;

    left: 50%;

    top: 45%;

    transform: translate(-50%, -50%);

    width: 90px;

    height: 90px;

    border-radius: 50%;

    border: 1px solid rgba(0,230,255,0.15);

    box-shadow: 0 0 15px rgba(0,230,255,0.1);

    animation: auraPulse 3s ease-in-out infinite 0.5s;

    z-index: 1;

}

@keyframes auraPulse {

    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }

    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }

}

.meditation-ripple {

    position: absolute;

    left: 50%;

    bottom: 30%;

    transform: translateX(-50%);

    width: 120px;

    height: 30px;

    border-radius: 50%;

    border: 1px solid rgba(0,230,255,0.2);

    animation: ripple 3s ease-out infinite;

    z-index: 1;

}

.meditation-ripple:nth-child(2) { animation-delay: 1s; width: 160px; height: 40px; }

.meditation-ripple:nth-child(3) { animation-delay: 2s; width: 200px; height: 50px; }

@keyframes ripple {

    0% { transform: translateX(-50%) scale(0.5); opacity: 0.6; }

    100% { transform: translateX(-50%) scale(1.2); opacity: 0; }

}

.meditation-particles {

    position: absolute;

    inset: 0;

    z-index: 3;

    pointer-events: none;

    overflow: hidden;

}

.meditation-particle {

    position: absolute;

    width: 3px;

    height: 3px;

    border-radius: 50%;

    background: rgba(0,230,255,0.6);

    animation: medParticle 4s ease-in-out infinite;

}

@keyframes medParticle {

    0% { transform: translateY(0) scale(0); opacity: 0; }

    20% { opacity: 0.8; transform: scale(1); }

    80% { opacity: 0.3; }

    100% { transform: translateY(-80px) scale(0.3); opacity: 0; }

}

.meditation-data {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    z-index: 4;

    padding: 8px 10px;

    background: linear-gradient(transparent, rgba(10,10,26,0.9));

}

.med-power-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 4px;

}

.med-power-label {

    font-size: 10px;

    color: rgba(180,170,200,0.6);

}

.med-power-value {

    font-size: 24px;

    font-weight: 800;

    color: #d4a843;

    text-shadow: 0 0 10px rgba(212,168,67,0.3);

    line-height: 1;

}

.med-realm-name {

    font-size: 14px;

    font-weight: 700;

    color: #e0d8f0;

}

.med-break-rate {

    font-size: 10px;

    color: rgba(180,170,200,0.6);

}

.med-exp-row {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 3px;

}

.med-exp-label {

    font-size: 10px;

    color: rgba(180,170,200,0.6);

}

.med-exp-value {

    font-size: 12px;

    font-weight: 700;

    color: #00e6ff;

}

.med-exp-pct {

    font-size: 11px;

    font-weight: 700;

    color: #d4a843;

    margin-left: auto;

}

.med-speed-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 6px;

}

.med-speed-label {

    font-size: 10px;

    color: rgba(180,170,200,0.6);

}

.med-speed-value {

    font-size: 12px;

    font-weight: 700;

    color: #d4a843;

}

.med-btns {

    display: flex;

    gap: 4px;

}

.med-btn-break {

    padding: 4px 12px;

    border-radius: 14px;

    background: linear-gradient(135deg, #d4a843, #b88a28);

    color: #0a0a1a;

    font-size: 11px;

    font-weight: 700;

    border: none;

    cursor: pointer;

    font-family: inherit;

}

.med-btn-break:active { transform: scale(0.95); }

.med-btn-seclude {

    padding: 4px 10px;

    border-radius: 14px;

    background: rgba(80,70,120,0.3);

    color: rgba(180,170,200,0.6);

    font-size: 10px;

    border: 1px solid rgba(80,70,120,0.3);

    cursor: pointer;

    font-family: inherit;

}

.med-btn-seclude:active { transform: scale(0.95); }



/* ===== 修炼页：属性卡片2x2 ===== */

.attr-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4px;

    margin-bottom: 6px;

}

.attr-card {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 8px;

    background: rgba(18,18,42,0.7);

    border: 1px solid rgba(80,70,120,0.2);

    border-radius: 6px;

}

.attr-card-icon {

    width: 28px;

    height: 28px;

    border-radius: 6px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    flex-shrink: 0;

}

.attr-card-icon.aci-red { background: linear-gradient(135deg, #6a3030, #502020); }

.attr-card-icon.aci-orange { background: linear-gradient(135deg, #6a5030, #504020); }

.attr-card-icon.aci-green { background: linear-gradient(135deg, #2a5030, #204020); }

.attr-card-icon.aci-blue { background: linear-gradient(135deg, #2a3a5a, #203050); }

.attr-card-info {

    display: flex;

    flex-direction: column;

}

.attr-card-label {

    font-size: 9px;

    color: rgba(180,170,200,0.6);

}

.attr-card-value {

    font-size: 13px;

    font-weight: 700;

    color: #e0d8f0;

}



/* ===== 修炼页：状态标签行 ===== */

.status-strip-v2 {

    display: flex;

    gap: 4px;

    flex-wrap: wrap;

    margin-bottom: 6px;

}

.status-pill {

    padding: 2px 8px;

    border-radius: 10px;

    font-size: 9px;

    font-weight: 600;

    background: rgba(40,40,80,0.5);

    border: 1px solid rgba(80,70,120,0.3);

    color: rgba(180,170,200,0.6);

    white-space: nowrap;

}

.status-pill.sp-root { border-color: rgba(93,222,126,0.3); color: #5dde7e; }

.status-pill.sp-poison { border-color: rgba(224,85,85,0.3); color: #e05555; }

.status-pill.sp-alchemy { border-color: rgba(212,168,67,0.3); color: #d4a843; }

.status-pill.sp-cure { cursor: pointer; border-color: rgba(93,222,126,0.3); color: #5dde7e; }

.status-pill.sp-cure:active { transform: scale(0.95); }



/* ===== 修炼页：8个高频功能区 ===== */

.func-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 4px;

    margin-bottom: 6px;

}

.func-tile {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;

    padding: 8px 2px 6px;

    background: rgba(18,18,42,0.7);

    border: 1px solid rgba(80,70,120,0.2);

    border-radius: 8px;

    cursor: pointer;

    transition: 0.15s;

    text-align: center;

}

.func-tile:active { transform: scale(0.95); background: rgba(40,40,80,0.5); }

.func-tile-icon {

    width: 36px;

    height: 36px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;

    position: relative;

}

.func-tile-icon::after {

    content: '';

    position: absolute;

    inset: 0;

    border-radius: 8px;

    box-shadow: inset 0 -1px 3px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);

    pointer-events: none;

}

.fti-gold { background: linear-gradient(135deg, #5a4a20, #4a3a18); }

.fti-purple { background: linear-gradient(135deg, #3a2a5a, #302050); }

.fti-green { background: linear-gradient(135deg, #2a5030, #204020); }

.fti-blue { background: linear-gradient(135deg, #2a3a5a, #203050); }

.fti-red { background: linear-gradient(135deg, #6a3030, #502020); }

.fti-orange { background: linear-gradient(135deg, #6a5030, #504020); }

.fti-brown { background: linear-gradient(135deg, #4a3a28, #3a2a18); }

.fti-cyan { background: linear-gradient(135deg, #1a4a5a, #103a4a); }

.func-tile-name {

    font-size: 9px;

    font-weight: 600;

    color: #e0d8f0;

    line-height: 1.1;

}

.func-tile-sub {

    font-size: 8px;

    color: rgba(140,130,170,0.4);

}



/* ===== 修炼页：装备预览 ===== */

.equip-preview {

    background: rgba(18,18,42,0.7);

    border: 1px solid rgba(80,70,120,0.2);

    border-radius: 6px;

    padding: 6px 8px;

    margin-bottom: 6px;

}

.equip-preview-title {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 4px;

    font-size: 11px;

    color: #d4a843;

    font-weight: 700;

}



/* ===== 底部导航栏 v2 ===== */

#bottom-nav {

    display: flex;

    align-items: flex-end;

    justify-content: space-around;

    padding: 3px 4px 6px;

    background: rgba(10,10,26,0.95);

    border-top: 1px solid rgba(80,70,120,0.3);

    height: 52px;

}

.nav-btn {

    min-width: 40px;

    background: transparent;

    border: none;

    color: rgba(140,130,170,0.4);

    font-size: 9px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1px;

    padding: 2px 4px;

    cursor: pointer;

    font-family: inherit;

    position: relative;

}

.nav-btn .nav-icon {

    font-size: 17px;

    line-height: 1;

}

.nav-btn.active {

    color: #d4a843;

}

.nav-btn.active::after {

    content: '';

    position: absolute;

    top: 0;

    left: 20%;

    right: 20%;

    height: 2px;

    background: #d4a843;

    border-radius: 1px;

}

.nav-btn:active { transform: scale(0.9); }

.nav-center-btn {

    position: relative;

    width: 44px;

    height: 44px;

    border-radius: 50%;

    border: 2px solid rgba(0,230,255,0.5);

    background: linear-gradient(135deg, rgba(0,230,255,0.85), rgba(0,180,200,0.85));

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 2px 12px rgba(0,230,255,0.3);

    transition: 0.15s;

    margin-top: -14px;

    flex-shrink: 0;

}

.nav-center-btn:active { transform: scale(0.9); }

.center-btn-icon {

    font-size: 19px;

    color: #0a0a1a;

    line-height: 1;

}

.center-btn-pulse {

    position: absolute;

    inset: -4px;

    border-radius: 50%;

    border: 1px solid rgba(0,230,255,0.2);

    animation: centerPulse 2s ease-in-out infinite;

}

@keyframes centerPulse {

    0%, 100% { transform: scale(1); opacity: 0.3; }

    50% { transform: scale(1.1); opacity: 0; }

}



/* ===== 进度条 v2 ===== */

.progress-bar-main {

    background: rgba(0,0,0,0.3);

    border-radius: 5px;

    height: 14px;

    overflow: hidden;

    position: relative;

    border: 1px solid rgba(60,50,100,0.2);

}

.progress-bar-main .fill {

    height: 100%;

    border-radius: 5px;

    transition: width 0.5s ease;

    background: linear-gradient(90deg, #0a6a6a, #00e6ff);

}

.progress-bar-main .fill.gold {

    background: linear-gradient(90deg, #8a6a20, #d4a843);

}

.progress-bar-main .progress-text {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 9px;

    font-weight: 600;

    color: #fff;

    text-shadow: 0 1px 2px rgba(0,0,0,0.5);

}

.progress-bar {

    background: rgba(0,0,0,0.3);

    border-radius: 4px;

    height: 6px;

    overflow: hidden;

}

.progress-bar .fill {

    height: 100%;

    border-radius: 4px;

    transition: width 0.5s ease;

    background: linear-gradient(90deg, #0a6a6a, #00e6ff);

}

.progress-bar .fill.gold {

    background: linear-gradient(90deg, #8a6a20, #d4a843);

}




/* ============================================================
   破凡劫 v4 · 修炼页 / 历练页 / 集市 / 暗市 / 底部导航 / 灵兽高亮
   深色主题 + 灵兽系统三界面卡片调亮
   ============================================================ */

/* ---------- 修炼页 v4 ---------- */
#tab-cultivate {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.cult-page-v4 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-size: 12px;
    overflow-y: auto;
    padding-bottom: 90px;
    box-sizing: border-box;
}

.cult-bg-v4 {
    position: absolute;
    inset: 0;
    background: url('../assets/images/scenes/bg_cultivate_new.jpg?v=119') center center / cover no-repeat;
    opacity: 1;
    filter: brightness(1.1) contrast(1.05);
    z-index: 0;
}

.cult-page-v4 > * { position: relative; z-index: 1; }

/* 玩家信息 */
.cult-info-v4 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(10,10,18,0.92) 0%, transparent 100%);
}

.cinfo-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

.cinfo-name { font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }

.cinfo-realm { font-size: 11px; color: #a89a78; }

.cinfo-power { text-align: right; min-width: 80px; }

.cinfo-p-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 12px;
    color: #e8c874;
}

.cinfo-p-icon { font-size: 14px; line-height: 1; }

.cinfo-p-row strong { font-size: 16px; font-weight: 800; color: #ffcf5e; }

.cinfo-p-sub { font-size: 10px; color: #8a8a8a; }

.cinfo-res {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 10px;
    margin: 0 8px;
    background: rgba(10,10,18,0.55);
    border: 1px solid rgba(212,168,74,0.12);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.cinfo-r-item { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text); }

.cinfo-r-icon { font-size: 12px; line-height: 1; }

.cinfo-r-val { color: #ffcf5e; font-weight: 700; }

.cinfo-r-label { color: #a89a78; }

/* 今日待办 */
.cult-todo-v4 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 10px;
    color: #a89a78;
    white-space: nowrap;
    overflow-x: auto;
}

.ctv-label { color: #e8c874; font-weight: 700; flex-shrink: 0; }

.ctv-item { flex-shrink: 0; }

.ctv-div { color: rgba(168,154,120,0.4); flex-shrink: 0; }

/* 主体三栏 */
.cult-main-v4 {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 6px 8px;
    gap: 6px;
}

.cult-left-v4 {
    width: 70px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.cult-center-v4 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: rgba(10,10,18,0.25);
    border-radius: 12px;
    border: 1px solid rgba(212,168,74,0.1);
}

.cult-right-v4 {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    gap: 10px;
    flex-shrink: 0;
}

.cult-l-card {
    background: rgba(20,18,30,0.72);
    border: 1px solid rgba(212,168,74,0.15);
    border-radius: 10px;
    padding: 6px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cult-l-card.top { border-color: rgba(212,168,74,0.35); background: rgba(212,168,74,0.12); }

.cult-l-card.cd { border-color: rgba(120,150,180,0.18); background: rgba(15,20,35,0.65); }

.cult-l-label { font-size: 10px; color: #a89a78; }

.cult-l-val { font-size: 12px; font-weight: 700; color: #ffcf5e; }

.cult-l-title { font-size: 9px; color: #8a9aaa; }

.cult-l-small { font-size: 8px; color: #6a7a8a; }

.cult-l-time { font-size: 10px; color: #c8d8e8; font-weight: 700; }

.cult-r-btn {
    width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    background: rgba(20,18,30,0.72);
    border: 1px solid rgba(212,168,74,0.2);
    border-radius: 10px;
    cursor: pointer;
}

.cult-r-icon { font-size: 22px; line-height: 1; }

.cult-r-text { font-size: 10px; color: #e8c874; font-weight: 700; }

/* 中央控制 */
.cult-controls-v4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
}

.cult-big-exp-btn {
    flex: 1;
    height: 40px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(90deg, #c89a3a, #ffe08e);
    color: #1a1208;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,200,90,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cult-side-btn {
    min-width: 56px;
    height: 34px;
    border-radius: 17px;
    border: 1px solid rgba(212,168,74,0.35);
    background: rgba(20,18,30,0.7);
    color: #e8c874;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* 功能入口 */
.cult-func-row, .cult-func-row2 {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.cult-func-shield {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    min-width: 46px;
}

.cult-ficon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(20,18,30,0.75);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cult-ficon.center { background: linear-gradient(145deg, #d4a843, #b88a28); border-color: #d4a843; font-size: 26px; }

.cult-fname { font-size: 10px; color: #d8d0c0; }

/* 修为进度条 */
.cult-progress-v4 {
    position: relative;
    height: 18px;
    margin: 6px 14px;
    background: rgba(40,40,55,0.9);
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(212,168,74,0.2);
}

.cult-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c89a3a, #ffe08e);
    border-radius: 9px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255,200,90,0.35);
}

.cult-progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #1a1208;
    text-shadow: 0 0 2px rgba(255,255,255,0.5);
}

/* 底部事件条 */
.cult-event-v4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 12px;
    padding: 6px 10px;
    background: rgba(20,18,30,0.72);
    border: 1px solid rgba(212,168,74,0.15);
    border-radius: 20px;
    font-size: 10px;
    color: #a89a78;
}

.ce-label { color: #e8c874; font-weight: 700; flex-shrink: 0; }

.ce-msg { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ce-close {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    cursor: pointer;
    font-size: 14px;
}

/* ---------- 底部导航 v4 ---------- */
#bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 8px 8px;
    background: rgba(10,10,26,0.92);
    border-top: 1px solid rgba(80,70,120,0.3);
    backdrop-filter: blur(8px);
}

#bottom-nav .nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    background: transparent;
    border: none;
    color: var(--text-dim, rgba(180,170,200,0.6));
    font-size: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

#bottom-nav .nav-btn.active { color: var(--gold, #d4a843); }

#bottom-nav .nav-btn .nav-icon { font-size: 18px; line-height: 1; margin-bottom: 2px; }

#bottom-nav .nav-center-btn.wide {
    position: relative;
    min-width: 84px;
    height: 52px;
    margin-top: -14px;
    border-radius: 18px;
    border: 2px solid rgba(212,168,67,0.6);
    background: linear-gradient(145deg, #d4a843, #b88a28);
    color: #0a0a1a;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-btn-text { font-size: 12px; color: #0a0a1a; font-weight: 800; }

/* ---------- 历练/集市/暗市 v4 通用卡片 ---------- */
#tab-adventure .card,
#market-panel .card,
#dark-market-list .card,
#market-tab-dark .card {
    background: rgba(20,18,36,0.85);
    border: 1px solid rgba(212,168,74,0.15);
    border-radius: 10px;
    color: #e8e0f0;
}

#tab-adventure .sub-tabs,
#market-panel .sub-tabs {
    background: rgba(10,10,18,0.6);
    border-bottom: 1px solid rgba(80,70,120,0.3);
}

#tab-adventure .sub-tab,
#market-panel .sub-tab {
    color: var(--text-dim, rgba(180,170,200,0.6));
    transition: color 0.2s;
}

#tab-adventure .sub-tab.active,
#market-panel .sub-tab.active {
    color: var(--gold, #d4a843);
    border-bottom: 2px solid var(--gold, #d4a843);
}

/* ---------- 灵兽面板：三界面卡片调亮 ---------- */
#beast-panel {
    background: linear-gradient(180deg, #0a0a1a 0%, #12122a 100%);
    color: #f0e8f8;
}

#beast-panel .panel-header-neon {
    background: rgba(10,10,26,0.85);
    border-bottom: 1px solid rgba(80,70,120,0.3);
    margin-bottom: 8px;
}

.beast-main-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 12px 90px;
}

.beast-menu-card {
    position: relative;
    min-height: 120px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    cursor: pointer;
    border: 1px solid rgba(80,70,120,0.25);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform 0.1s, box-shadow 0.2s;
}

.beast-menu-card:active { transform: scale(0.98); }

.beast-menu-title {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 800;
    color: #f0d8a8;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.beast-menu-sub {
    position: relative;
    z-index: 1;
    font-size: 11px;
    color: #c9a878;
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.beast-view {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px 90px;
}

.beast-view.active { display: flex; }

.beast-view-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
}

.beast-view-header .panel-title { flex: 1; }

.beast-challenge-count { font-size: 11px; color: #a89a78; }

#beast-forest-list,
#beast-battle-list,
#beast-train-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 抓捕卡片 */
.beast-card-v2 {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8e8, #f0e4c8);
    border: 1px solid rgba(200,160,80,0.35);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    color: #3a2a18;
    display: flex;
    flex-direction: column;
}

.beast-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
    pointer-events: none;
    z-index: 1;
}

.beast-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.beast-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(240,220,180,0.5));
}

.beast-card-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.beast-tag {
    background: rgba(80,60,30,0.12);
    border: 1px solid rgba(80,60,30,0.18);
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 10px;
    color: #5a4a38;
}

.beast-card-body { position: relative; z-index: 3; padding: 12px; }

.beast-name-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.beast-name { font-size: 16px; font-weight: 800; color: #7a5a18; }

.beast-grade { font-size: 12px; color: #4a6a9a; }

.beast-realm { font-size: 10px; color: #7a5a48; margin-bottom: 6px; }

.beast-ability { font-size: 11px; color: #5a4a38; line-height: 1.4; margin-bottom: 8px; }

.beast-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 4px;
    color: #4a3a28;
}

.beast-power { color: #4a3a28; }

.beast-power b { color: #8a6a18; }

.beast-capture { color: #3a7a4a; }

.beast-attrs-mini { display: flex; gap: 8px; font-size: 10px; color: #6a5a48; }

.beast-catch-btn {
    margin: 0 12px 12px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #d4a843, #b88a28);
    color: #1a1208;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.beast-catch-btn:disabled { background: rgba(160,160,160,0.4); color: #666; }

/* 出战/养成列表卡片 */
#beast-battle-list .card,
#beast-train-list .card {
    background: linear-gradient(135deg, #ece6f8, #d8cfe8) !important;
    border: 1px solid rgba(140,120,190,0.35) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15) !important;
    color: #2a2038 !important;
}

#beast-battle-list .card *,
#beast-train-list .card * {
    color: #2a2038 !important;
}

#beast-battle-list .card .btn,
#beast-train-list .card .btn {
    color: #0a0a1a !important;
    background: linear-gradient(135deg, #d4a843, #b88a28);
    border: none;
}

#beast-battle-list .card .btn-small,
#beast-train-list .card .btn-small {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}


/* ---------- 灵兽驯兽台 v2 ---------- */
#beast-train-view {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #080a0c;
    overflow: hidden;
}

.beast-train-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 6px;
    background: linear-gradient(to bottom, rgba(15,14,12,0.95), rgba(15,14,12,0.6));
    border-bottom: 1px solid rgba(201,168,120,0.22);
    z-index: 10;
    flex-shrink: 0;
}

.beast-train-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,120,0.4);
    background: rgba(20,18,16,0.8);
    color: #c9a878;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.beast-train-header-left { flex: 1; }

.beast-train-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid rgba(201,168,120,0.35);
    background: rgba(30,26,20,0.7);
    color: #c9a878;
    border-radius: 14px;
    font-size: 12px;
}

.beast-train-title-wrap {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.beast-train-title {
    font-size: 18px;
    font-weight: 800;
    color: #f0d8a8;
    letter-spacing: 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 12px rgba(212,168,74,0.35);
}

.beast-train-subtitle {
    font-size: 10px;
    color: #8a7a60;
    margin-top: 2px;
    letter-spacing: 2px;
}

.beast-train-header-right { flex: 1; }

/* 中央驯兽舞台 */
.beast-train-stage {
    position: relative;
    flex: 0 0 38vh;
    min-height: 260px;
    max-height: 42vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 16px 10px;
    background: linear-gradient(to bottom, rgba(5,7,10,0.15) 0%, rgba(8,10,12,0.55) 60%, rgba(8,10,12,0.92) 100%),
                url('/assets/images/beasts/train_stage_bg.jpg?v=119') center 25% / cover no-repeat;
    overflow: hidden;
    border-bottom: 1px solid rgba(201,168,120,0.18);
}

.beast-train-rune {
    position: absolute;
    bottom: 12%;
    width: 240px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(212,168,74,0.28) 0%, rgba(212,168,74,0.1) 45%, transparent 70%);
    box-shadow: 0 0 50px rgba(212,168,74,0.35), inset 0 0 35px rgba(212,168,74,0.2);
    animation: trainRunePulse 3s ease-in-out infinite;
}

@keyframes trainRunePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.beast-train-portal-ring {
    position: absolute;
    bottom: 10%;
    width: 280px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(212,168,74,0.3);
    animation: trainRingRotate 12s linear infinite;
}

.beast-train-portal-ring2 {
    position: absolute;
    bottom: 12%;
    width: 220px;
    height: 110px;
    border-radius: 50%;
    border: 1px dashed rgba(212,168,74,0.25);
    animation: trainRingRotate 18s linear infinite reverse;
}

@keyframes trainRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.beast-train-lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background:
        linear-gradient(110deg, transparent 45%, rgba(180,220,255,0.04) 48%, transparent 52%),
        linear-gradient(-115deg, transparent 40%, rgba(255,220,160,0.05) 45%, transparent 50%);
    background-size: 200% 200%, 200% 200%;
    animation: trainLightning 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes trainLightning {
    0%, 90%, 100% { opacity: 0; background-position: 0% 0%, 100% 0%; }
    92% { opacity: 1; background-position: 50% 50%, 50% 50%; }
    94% { opacity: 0.3; }
    96% { opacity: 1; }
}

/* 灵兽全身体展示 */
.beast-train-beast-wrap {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    height: 78%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: trainBeastFloat 5s ease-in-out infinite;
}

@keyframes trainBeastFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.beast-train-aura {
    position: absolute;
    width: 85%;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(212,168,74,0.25) 0%, rgba(120,200,255,0.1) 35%, transparent 65%);
    filter: blur(8px);
    animation: trainAuraPulse 3s ease-in-out infinite;
    z-index: 1;
}

.beast-train-aura2 {
    position: absolute;
    width: 65%;
    height: 80%;
    border-radius: 50%;
    border: 1px solid rgba(212,168,74,0.12);
    box-shadow: 0 0 40px rgba(212,168,74,0.15), inset 0 0 30px rgba(212,168,74,0.08);
    animation: trainAuraPulse 4s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes trainAuraPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.06); opacity: 1; }
}

.beast-train-beast-wrap img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(212,168,74,0.45)) drop-shadow(0 0 30px rgba(0,0,0,0.8));
    border-radius: 0;
}

/* 灵兽名称与阶位进度 */
.beast-train-info-below {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 360px;
    text-align: center;
    margin-bottom: 4px;
    padding: 6px 10px;
    background: rgba(8,10,12,0.75);
    border: 1px solid rgba(201,168,120,0.2);
    border-radius: 14px;
    backdrop-filter: blur(2px);
}

.beast-train-name {
    font-size: 17px;
    font-weight: 800;
    color: #f0d8a8;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(212,168,74,0.35);
    margin-bottom: 2px;
}

.beast-train-tier-label {
    font-size: 11px;
    color: #c9b898;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.beast-train-progress-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(10,10,12,0.45);
    border: 1px solid rgba(201,168,120,0.18);
    border-radius: 18px;
    padding: 5px 10px;
}

.beast-train-progress-label {
    font-size: 10px;
    color: #c9a878;
    white-space: nowrap;
}

.beast-train-progress-text {
    font-size: 11px;
    color: #f0d8a8;
    font-weight: 700;
    min-width: 32px;
}

.beast-train-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0,0,0,0.45);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(201,168,120,0.15);
}

.beast-train-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b8860b, #f0d8a8, #b8860b);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* 中部四个圆形按钮 */
.beast-train-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 10px 12px;
    background: linear-gradient(to bottom, rgba(8,10,12,0.6), #080a0c);
    flex-shrink: 0;
}

.beast-train-action-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #3a3225, #1a1612);
    border: 2px solid rgba(201,168,120,0.45);
    box-shadow: 0 4px 10px rgba(0,0,0,0.45), inset 0 0 12px rgba(201,168,120,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.beast-train-action-btn::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed rgba(201,168,120,0.25);
}

.beast-train-action-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.beast-train-action-inner span {
    font-size: 11px;
    color: #e8d8b0;
    font-weight: 700;
    line-height: 1.1;
}

/* 灵兽选择横向滚动 */
.beast-train-select {
    padding: 6px 12px 10px;
    background: #080a0c;
    flex-shrink: 0;
}

.beast-train-select-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #a89878;
    letter-spacing: 2px;
}

.beast-train-select-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,120,0.45), transparent);
    max-width: 80px;
}

.beast-train-select-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

.beast-train-select-list::-webkit-scrollbar { display: none; }

.beast-train-select-item {
    flex: 0 0 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.65;
    transition: all 0.25s ease;
}

.beast-train-select-item.active {
    opacity: 1;
    transform: translateY(-2px);
}

.beast-train-select-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(201,168,120,0.25);
    padding: 2px;
    background: rgba(20,18,16,0.6);
    position: relative;
}

.beast-train-select-item.active .beast-train-select-thumb {
    border-color: #d4a84a;
    box-shadow: 0 0 14px rgba(212,168,74,0.45);
}

.beast-train-select-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.beast-train-select-name {
    font-size: 10px;
    color: #c9a878;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

.beast-train-select-item.active .beast-train-select-name {
    color: #f0d8a8;
    font-weight: 700;
}

/* 底部开始培养按钮 */
.beast-train-footer {
    padding: 0 16px 14px;
    background: #080a0c;
    flex-shrink: 0;
}

.beast-train-cultivate-btn {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #b8860b, #d4a84a, #b8860b);
    color: #1a1208;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
    box-shadow: 0 4px 16px rgba(212,168,74,0.35);
    position: relative;
    overflow: hidden;
}

.beast-train-cultivate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: trainBtnShine 3s infinite;
}

@keyframes trainBtnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.beast-train-cultivate-btn:disabled {
    background: #3a3a3a;
    color: #888;
    box-shadow: none;
}

/* ---------- 万兽林 v2 ---------- */
#beast-forest-view {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #080a0c;
    overflow: hidden;
}

.beast-forest-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 6px;
    background: linear-gradient(to bottom, rgba(15,14,12,0.95), rgba(15,14,12,0.6));
    border-bottom: 1px solid rgba(201,168,120,0.22);
    z-index: 10;
    flex-shrink: 0;
}

.beast-forest-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,120,0.4);
    background: rgba(20,18,16,0.8);
    color: #c9a878;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.beast-forest-header-left { flex: 1; }

.beast-forest-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid rgba(201,168,120,0.35);
    background: rgba(30,26,20,0.7);
    color: #c9a878;
    border-radius: 14px;
    font-size: 12px;
}

.beast-forest-title-wrap {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.beast-forest-title {
    font-size: 18px;
    font-weight: 800;
    color: #f0d8a8;
    letter-spacing: 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 12px rgba(212,168,74,0.35);
}

.beast-forest-subtitle {
    font-size: 10px;
    color: #8a7a60;
    margin-top: 2px;
    letter-spacing: 2px;
}

.beast-forest-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.beast-forest-count {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    background: rgba(20,18,16,0.7);
    border: 1px solid rgba(201,168,120,0.3);
    border-radius: 14px;
    font-size: 11px;
    color: #c9a878;
}

.beast-forest-count-num {
    color: #f0d8a8;
    font-weight: 800;
    font-size: 13px;
}

/* 中央妖兽舞台 */
.beast-forest-stage {
    position: relative;
    flex: 0 0 42vh;
    min-height: 280px;
    max-height: 46vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 16px 12px;
    background: linear-gradient(to bottom, rgba(5,8,6,0.2) 0%, rgba(8,10,12,0.55) 60%, rgba(8,10,12,0.92) 100%),
                url('/assets/images/beasts/forest_bg_v4.jpg?v=119') center 35% / cover no-repeat;
    overflow: hidden;
    border-bottom: 1px solid rgba(201,168,120,0.18);
}

.beast-forest-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(212,168,74,0.12), transparent 50%);
    pointer-events: none;
}

.beast-forest-rune {
    position: absolute;
    bottom: 10%;
    width: 260px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(212,168,74,0.22) 0%, rgba(212,168,74,0.08) 45%, transparent 70%);
    box-shadow: 0 0 50px rgba(212,168,74,0.3), inset 0 0 30px rgba(212,168,74,0.15);
    animation: forestRunePulse 3.5s ease-in-out infinite;
}

@keyframes forestRunePulse {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.1); opacity: 1; }
}

.beast-forest-beast-wrap {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    height: 76%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: forestBeastFloat 5s ease-in-out infinite;
}

@keyframes forestBeastFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.beast-forest-aura {
    position: absolute;
    width: 80%;
    height: 90%;
    background: radial-gradient(ellipse at center, rgba(120,255,160,0.12) 0%, rgba(212,168,74,0.08) 40%, transparent 65%);
    filter: blur(8px);
    animation: forestAuraPulse 3.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes forestAuraPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

.beast-forest-beast-wrap img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(120,255,160,0.35)) drop-shadow(0 0 30px rgba(0,0,0,0.8));
}

.beast-forest-info {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 8px 12px;
    background: rgba(8,10,12,0.75);
    border: 1px solid rgba(201,168,120,0.2);
    border-radius: 14px;
    backdrop-filter: blur(2px);
}

.beast-forest-name {
    font-size: 19px;
    font-weight: 800;
    color: #f0d8a8;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(212,168,74,0.35);
    margin-bottom: 2px;
}

.beast-forest-realm {
    font-size: 11px;
    color: #c9b898;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    margin-bottom: 4px;
}

.beast-forest-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    color: #c9a878;
}

.beast-forest-stats b {
    color: #f0d8a8;
    font-weight: 700;
}

/* 妖兽选择横向滚动 */
.beast-forest-list {
    padding: 10px 12px 8px;
    background: #080a0c;
    flex-shrink: 0;
}

.beast-forest-list-inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

.beast-forest-list-inner::-webkit-scrollbar { display: none; }

.beast-forest-select-item {
    flex: 0 0 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.65;
    transition: all 0.25s ease;
}

.beast-forest-select-item.active {
    opacity: 1;
    transform: translateY(-3px);
}

.beast-forest-select-thumb {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid rgba(201,168,120,0.25);
    padding: 2px;
    background: rgba(20,18,16,0.6);
    position: relative;
}

.beast-forest-select-item.active .beast-forest-select-thumb {
    border-color: #d4a84a;
    box-shadow: 0 0 16px rgba(212,168,74,0.45);
}

.beast-forest-select-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.beast-forest-select-name {
    font-size: 10px;
    color: #c9a878;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.beast-forest-select-item.active .beast-forest-select-name {
    color: #f0d8a8;
    font-weight: 700;
}

.beast-forest-select-owned {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2a5a3a;
    border: 1px solid #4a9a6a;
    color: #8affa8;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 底部挑战按钮 */
.beast-forest-footer {
    padding: 0 16px 14px;
    background: #080a0c;
    flex-shrink: 0;
}

.beast-forest-challenge-btn {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #2a5a3a, #4a9a6a, #2a5a3a);
    color: #f0fff0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
    box-shadow: 0 4px 16px rgba(74,154,106,0.35);
    position: relative;
    overflow: hidden;
}

.beast-forest-challenge-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: forestBtnShine 3s infinite;
}

@keyframes forestBtnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.beast-forest-challenge-btn:disabled {
    background: #3a3a3a;
    color: #888;
    box-shadow: none;
}


/* ---------- 势力面板卡片（左侧场景图 + 右侧文字） ---------- */
.force-grid {
    width: 100%;
    max-width: 100% !important;
}
.force-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(30,30,50,0.9);
    border: 1px solid rgba(160,140,80,0.25);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    overflow: hidden;
}
.force-card:active { transform: scale(0.98); }
.force-card-img {
    flex: 0 0 auto;
    width: 110px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(20,18,36,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.force-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.force-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.force-card-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffcf5e;
}
.force-card-desc {
    font-size: 12px;
    color: #a09888;
    margin-top: 2px;
}

/* ---------- 灵兽主菜单卡片背景图 ---------- */
.beast-menu-card.forest {
    background: linear-gradient(135deg, rgba(40,60,50,0.82), rgba(25,38,30,0.88)), url('../assets/images/beasts/forest_bg.jpg?v=119') center/cover no-repeat;
    border-color: rgba(80,180,120,0.35);
}
.beast-menu-card.battle {
    background: linear-gradient(135deg, rgba(45,45,70,0.82), rgba(30,30,50,0.88)), url('../assets/images/beasts/battle_bg.jpg?v=119') center/cover no-repeat;
    border-color: rgba(140,140,220,0.35);
}
.beast-menu-card.train {
    background: linear-gradient(135deg, rgba(70,60,40,0.82), rgba(50,40,25,0.88)), url('../assets/images/beasts/train_bg.jpg?v=119') center/cover no-repeat;
    border-color: rgba(220,180,100,0.35);
}


/* ===== 图标图片统一约束，防止 AI 图标原图过大撑破布局 ===== */
.cult-ficon,
.cult-r-btn,
.nav-btn,
.tile-icon,
.icon-tile {
    overflow: hidden;
}

.cult-ficon img,
.cult-r-btn img,
.nav-icon-img,
.tile-icon img,
.icon-tile img,
.cult-l-card img,
.cult-r-icon img,
.nav-btn > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.cult-ficon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.cult-r-btn img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.nav-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-bottom: 2px;
}

.tile-icon img,
.icon-tile img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* ===== 登录界面标题和按钮 ===== */
.start-title-wrap {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 8vh;
}
.start-logo-main img {
    max-height: 16vh;
    width: auto;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}
.start-logo-sub {
    font-size: 13px;
    color: #d4a843;
    letter-spacing: 6px;
    margin-top: 6px;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}
.start-buttons {
    position: relative;
    z-index: 10;
}
.btn-start-main {
    background: url('assets/images/ui/btn_gold_main.png') center/100% 100% no-repeat;
    border: none;
    border-radius: 4px;
    color: #1a0e00;
    font-size: 18px;
    font-weight: 900;
    font-family: "Ma Shan Zheng","STKaiti","KaiTi","楷体",serif;
    letter-spacing: 6px;
    padding: 14px 36px;
    min-width: 160px;
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255,220,120,0.3);
    box-shadow: 0 0 16px rgba(212,168,67,0.3);
}
.btn-start-main:active {
    transform: scale(0.97);
    box-shadow: 0 0 8px rgba(212,168,67,0.2);
}
.btn-start-secondary {
    background: url('assets/images/ui/btn_gold_side.png') center/100% 100% no-repeat;
    border: none;
    border-radius: 4px;
    color: #1a0e00;
    font-size: 15px;
    font-weight: 800;
    font-family: "Ma Shan Zheng","STKaiti","KaiTi","楷体",serif;
    letter-spacing: 3px;
    padding: 12px 20px;
    min-width: 72px;
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255,220,120,0.3);
    box-shadow: 0 0 12px rgba(212,168,67,0.25);
}
.btn-start-secondary:active {
    transform: scale(0.97);
    box-shadow: 0 0 6px rgba(212,168,67,0.15);
}

/* ===== 存档选择卡片 ===== */
.save-slot-card {
    background: rgba(18,18,42,0.92);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.save-slot-card:active {
    border-color: rgba(212,168,67,0.6);
    background: rgba(30,30,60,0.95);
}
.save-slot-title {
    font-size: 16px;
    font-weight: 700;
    color: #d4a843;
    letter-spacing: 2px;
    min-width: 50px;
}
.save-slot-info {
    font-size: 12px;
    color: rgba(180,170,200,0.6);
    flex: 1;
    text-align: left;
}
.save-slot-card .btn-start {
    min-width: 60px;
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: 2px;
}

/* ===== 修炼页：经典文字修仙布局 ===== */
.xg-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: rgba(18,18,42,0.9);
    border: 1px solid rgba(212,168,67,0.2);
    border-radius: 4px;
}
.xg-top-left { display: flex; align-items: baseline; gap: 8px; }
.xg-name {
    font-size: 15px;
    font-weight: 700;
    color: #d4a843;
    letter-spacing: 1px;
    font-family: "Ma Shan Zheng","STKaiti","KaiTi",serif;
}
.xg-realm { font-size: 11px; color: rgba(180,170,200,0.6); }
.xg-top-right { display: flex; align-items: center; gap: 4px; }
.xg-stone-label { font-size: 10px; color: rgba(180,170,200,0.4); }
.xg-stone-val { font-size: 13px; font-weight: 700; color: #d4a843; }

.xg-exp-section {
    padding: 6px 10px;
    margin-bottom: 4px;
    background: rgba(18,18,42,0.9);
    border: 1px solid rgba(80,70,120,0.15);
    border-radius: 4px;
}
.xg-exp-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(180,170,200,0.5);
    margin-bottom: 2px;
}
.xg-exp-track {
    height: 5px;
    background: rgba(60,50,100,0.35);
    border-radius: 2px;
    overflow: hidden;
}
.xg-exp-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #8a6a2a, #d4a843);
    transition: width 0.3s;
}
.xg-mind-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #2a6a8a, #4db8e0);
    transition: width 0.3s;
}
.xg-speed-row {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
    color: rgba(180,170,200,0.45);
}
.xg-green { color: #5dde7e; font-weight: 600; }
.xg-gold { color: #d4a843; font-weight: 600; }

.xg-table-wrap {
    margin-bottom: 4px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(212,168,67,0.15);
    background: rgba(18,18,42,0.9);
}
.xg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.xg-table tr { border-bottom: 1px solid rgba(80,70,120,0.08); }
.xg-table tr:last-child { border-bottom: none; }
.xg-table-header td {
    background: linear-gradient(135deg, rgba(212,168,67,0.12), rgba(212,168,67,0.04));
    color: #d4a843;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 5px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(212,168,67,0.12);
}
.xg-td-label {
    padding: 5px 8px;
    color: rgba(180,170,200,0.45);
    font-size: 10px;
    white-space: nowrap;
    width: 45px;
    background: rgba(40,40,80,0.2);
}
.xg-td-val {
    padding: 5px 8px;
    color: #e0d8f0;
    font-weight: 600;
    font-size: 12px;
}
.xg-td-green { color: #5dde7e; }
.xg-td-red { color: #e05555; }

.xg-func {
    padding: 9px 2px;
    text-align: center;
    color: #d4a843;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border: 1px solid rgba(80,70,120,0.08);
    transition: all 0.15s;
}
.xg-func:active {
    background: rgba(212,168,67,0.12);
    color: #f0d060;
    transform: scale(0.95);
}

.xg-btn-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.xg-btn {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    border: 1px solid;
    font-family: "STKaiti","KaiTi","楷体",serif;
}
.xg-btn-gold {
    background: linear-gradient(135deg, rgba(212,168,67,0.18), rgba(212,168,67,0.06));
    border-color: rgba(212,168,67,0.35);
    color: #d4a843;
}
.xg-btn-gold:active { background: rgba(212,168,67,0.28); }
.xg-btn-purple {
    background: linear-gradient(135deg, rgba(156,39,176,0.12), rgba(156,39,176,0.04));
    border-color: rgba(156,39,176,0.35);
    color: #ce93d8;
}
.xg-btn-purple:active { background: rgba(156,39,176,0.22); }



