/* ==========================================
   字体与全局重置
   ========================================== */
@font-face { font-family: 'CangerL'; src: url('../fonts/CangerL.woff'); }
@font-face { font-family: 'Canger'; src: url('../fonts/Canger.woff'); }
@font-face { font-family: 'ZhuanShu'; src: url('../fonts/ZhuanShu.woff') format('woff'); }
@font-face { font-family: 'WenDao'; src: url('../fonts/WenDao.woff') format('woff'); }
.font-l { font-family: 'CangerL', sans-serif; }

/* ==========================================
   全局基础样式与触摸优化
   ========================================== */

/* 全局禁用拖动、长按菜单和文本选择，优化触摸响应 */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    user-select: none; -webkit-user-select: none; 
    -webkit-tap-highlight-color: transparent; 
    -webkit-user-drag: none; 
    -webkit-touch-callout: none; 
    touch-action: manipulation; 
}

body { 
    background-color: #000; 
    overflow: hidden; 
    width: 100vw; 
    height: 100vh; 
    font-family: 'Canger', 'Microsoft YaHei', sans-serif; 
}

/* 允许输入框和文本区域正常选择文本 */
input, textarea {
    -webkit-user-select: text;
    user-select: text;
    touch-action: auto;
}

/* 全局图片禁止长按呼出系统菜单 */
img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
}

#game-container {
	position: absolute; left: 50%; top: 50%; transform-origin: center center;
	background-color: #111; overflow: hidden; width: 1080px; height: 2400px;
}

/* ==========================================
   图层、Logo 与滚动文本
   ========================================== */
.layer-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.6s; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.layer-img.visible { opacity: 1; }

#logo-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; display: flex; justify-content: center; align-items: center; background-color: #000; }
#logo-img { max-width: 60%; opacity: 0; transition: opacity 0.6s; }
#title-a { z-index: 1; } #title-b { z-index: 3; } #title-c { z-index: 5; }

#scroll-text-layer { position: absolute; top: 0; left: 0; width: 100%; height: 45%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1s ease-in; display: flex; flex-direction: column; justify-content: space-evenly; overflow: hidden; }
.scroll-row { width: 100%; height: 14.28%; display: flex; align-items: center; overflow: hidden; }
.scroll-track { display: flex; white-space: nowrap; animation-timing-function: linear; animation-iteration-count: infinite; animation-duration: 30s; }
.text-content { font-family: 'ZhuanShu', 'KaiTi', serif; font-size: 48px; font-weight: bold; color: #fff; letter-spacing: 15px; }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.row-odd .scroll-track { animation-name: scroll-left; }
.row-even .scroll-track { animation-name: scroll-right; }

/* ==========================================
   主菜单
   ========================================== */
#menu-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.menu-item { position: absolute; left: 50%; transform: translateX(-50%) translateZ(0); pointer-events: auto; opacity: 0; transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); cursor: pointer; will-change: opacity; }
.menu-item.visible { opacity: 1; }
#menu-a { top: 1475px; } #menu-b { top: 1614px; } #menu-c { top: 1754px; } #menu-d { top: 1893px; } #menu-e { top: 2032px; }

/* ==========================================
   通用弹窗系统
   ========================================== */
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 999; background-color: rgba(0, 0, 0, 0); display: none; justify-content: center; align-items: center; transition: background-color 0.4s ease; }
.modal-overlay.active { background-color: rgba(0, 0, 0, 0.85); }

.modal-window {
	position: relative; width: 1080px; height: 2400px;
	background-size: 867px 1675px; background-repeat: no-repeat; background-position: center;
	opacity: 0; transform: translateY(60px); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-window { opacity: 1; transform: translateY(0); }

/* 全屏背景弹窗 */
#hero-modal .modal-window, #build-modal .modal-window, #data-modal .modal-window, #heroinfo-modal .modal-window { background-size: 1080px 2400px; }
#hero-modal .modal-window { background-image: url('../system/hero_bg.png'); }
#build-modal .modal-window { background-image: url('../system/build_bg.png'); }
#data-modal .modal-window { background-image: url('../system/data_bg.png'); }
#heroinfo-modal .modal-window { background-image: url('../system/heroinfo_bg.png'); }

/* 半屏背景弹窗 */
#log-modal .modal-window { background-image: url('../system/log_bg.png'); }
#supporter-modal .modal-window { background-image: url('../system/supporter_bg.png'); }
#settings-modal .modal-window { background-image: url('../system/settings_bg.png'); }
#info-modal .modal-window { background-size: 977px 686px; background-position: 52px 857px; background-image: url('../system/info_bg.png'); }
#warning-modal .modal-window { background-size: 977px 686px; background-position: 52px 857px; background-image: url('../system/infowarning_bg.png'); }
#bag-modal .modal-window, #status-modal .modal-window { background-image: url('../system/patrol_bag.png'); }

.text-area { 
    position: absolute; left: 172px; top: 521px; width: 736px; height: 1358px; 
    overflow-y: auto; font-size: 38px; color: #DCDCDC; line-height: 1.8; 
    white-space: pre-wrap; 
    text-align: justify; 
    word-break: break-all; 
    padding: 0 40px; scrollbar-width: none; -ms-overflow-style: none; 
}
#supporter-content { text-align: center; padding: 0; }
.text-area::-webkit-scrollbar { display: none; }

.btn-hotspot { position: absolute; background-color: transparent; border: none; cursor: pointer; transition: transform 0.1s ease; }
.btn-hotspot:active { transform: scale(0.95); }

#log-close-btn { left: 410px; top: 1901px; }
#sponsor-btn { left: 240px; top: 1901px; }
#supporter-close-btn { left: 580px; top: 1901px; }

.info-content { position: absolute; left: 107px; top: 912px; width: 867px; height: 416px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow-y: auto; font-size: 36px; color: #DCDCDC; line-height: 1.8; white-space: pre-wrap; scrollbar-width: none; -ms-overflow-style: none; }
.info-content::-webkit-scrollbar { display: none; }
#info-close-btn { position: absolute; left: 824px; top: 1368px; width: 175px; height: 175px; }

#warning-content { position: absolute; left: 107px; top: 912px; width: 867px; height: 416px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow-y: auto; font-size: 36px; color: #DCDCDC; line-height: 1.8; white-space: pre-wrap; scrollbar-width: none; -ms-overflow-style: none; z-index: 10; }
#warning-content::-webkit-scrollbar { display: none; }
#warning-confirm-btn { position: absolute; left: 630px; top: 1368px; width: 175px; height: 175px; z-index: 20; }
#warning-cancel-btn { position: absolute; left: 824px; top: 1368px; width: 175px; height: 175px; z-index: 20; }

/* 设置界面滑块 */
.volume-slider { position: absolute; width: 529px; height: 45px; background: transparent; outline: none; -webkit-appearance: none; cursor: pointer; z-index: 10; }
#vol-global { left: 346px; top: 604px; } #vol-bgm { left: 346px; top: 684px; } #vol-se { left: 346px; top: 764px; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 45px; background: url('../system/settings_mu.png') no-repeat center center; background-size: contain; margin-top: 0; cursor: grab; }
.volume-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.volume-slider::-moz-range-thumb { width: 20px; height: 45px; background: url('../system/settings_mu.png') no-repeat center center; background-size: contain; border: none; cursor: grab; }

/* ==========================================
   磐卫与基建列表
   ========================================== */
#hero-list-container { position: absolute; left: 20px; top: 486px; width: 1040px; height: 1674px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; scrollbar-width: none; }
#hero-list-container::-webkit-scrollbar { display: none; }
#skill-souls-cost { font-family: 'CangerL', sans-serif; }
#past-text-area::-webkit-scrollbar { display: none; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
@keyframes bounceUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.hero-card { width: 998px; margin: 0 auto; background-color: rgba(0, 0, 0, 0.25); border: 4px solid #555; padding: 24px; display: flex; align-items: center; gap: 30px; transition: all 0.25s ease; cursor: pointer; }
.hero-card:active { transform: scale(0.98); }
.hero-card.locked { opacity: 1; min-height: 406px; position: relative; background-color: transparent; padding: 0; background-image: url('../system/hero_lock.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }

.hero-avatar { width: 210px; height: 350px; background-color: transparent; border: 2px solid #555; position: relative; overflow: hidden; background-image: linear-gradient(rgba(255, 255, 255, 0.10) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, 0.10) 2px, transparent 2px); background-size: 23px 23px; background-position: center center; }
.hero-avatar img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; -webkit-backface-visibility: hidden; backface-visibility: hidden; }

.hero-info { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.hero-name { font-size: 48px; font-weight: bold; color: #fff; display: flex; align-items: center; gap: 15px; margin-top: 5px; }
.hero-name::before { content: ''; display: inline-block; width: 10px; height: 48px; background-color: #3b82f6; border-radius: 3px; }

.hero-stats-new { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.stat-item { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 100%; }
.stat-label { font-size: 36px; color: #888; text-align: left; margin-left: 4px; }
.stat-box-val { width: 100%; background-color: transparent; border: 2px solid #555; padding: 12px 0; text-align: center; font-size: 36px; color: #e0e0e0; font-weight: bold; box-sizing: border-box; }

#build-list-container { position: absolute; left: 29px; top: 591px; width: 1019px; height: 1401px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; scrollbar-width: none; }
#build-list-container::-webkit-scrollbar { display: none; }

.build-card { width: 998px; margin: 0 auto; background-color: rgba(0, 0, 0, 0.25); border: 4px solid #555; padding: 23.4px; display: flex; flex-direction: column; gap: 12px; transition: all 0.25s ease; cursor: pointer; }
.build-card:active { transform: scale(0.98); }
.build-card.locked { min-height: 180px; padding: 0; background-image: url('../system/build_lock.png'); background-size: contain; background-position: center; background-repeat: no-repeat; }

.build-ui-text { position: absolute; color: #fff; font-size: 48px; font-weight: bold; display: flex; justify-content: center; align-items: center; text-align: center; }
#ui-resources { left: 271px; top: 455px; width: 313px; height: 118px; font-family: 'CangerL', sans-serif;}
#ui-prosperity { left: 863px; top: 455px; width: 187px; height: 118px; font-family: 'CangerL', sans-serif;}

.build-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.build-name-wrap { display: flex; align-items: center; gap: 12px; }
.build-name-wrap::before { content: ''; display: inline-block; width: 10px; height: 48px; background-color: #3b82f6; border-radius: 3px; }
.build-name { font-size: 48px; font-weight: bold; color: #fff; }
.build-scale { font-size: 48px; font-weight: bold; }
.scale-prefix { color: #888; font-family: 'CangerL', sans-serif;} .scale-num { color: #fff; font-family: 'CangerL', sans-serif;}
.build-desc { font-size: 36px; color: #aaa; line-height: 1.4; padding-left: 18px; }

/* ==========================================
   磐卫详情与特效
   ========================================== */
.heroinfo-avatar { position: absolute; left: 20px; top: 318px; width: 1039px; height: 1419px; overflow: hidden; }
.heroinfo-avatar img { width: 100%; height: 100%; object-fit: contain; }
#advisor-status-btn { left: 20px; top: 2012px; width: 1039px; height: 148px; background-size: contain; background-position: center; background-repeat: no-repeat; }

#heroinfo-modal .modal-window { opacity: 0; transform: translateX(-100px); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#heroinfo-modal.modal-overlay.active .modal-window { opacity: 1; transform: translateX(0); }

.advisor-flash { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scale(0); width: 200%; height: 60%; background: radial-gradient(ellipse at center bottom, rgba(255, 215, 0, 0.5) 0%, rgba(255, 215, 0, 0.25) 30%, rgba(255, 215, 0, 0) 70%); pointer-events: none; z-index: 10000; opacity: 0; animation: flashPulse 0.4s ease-out forwards; }
.skin-change-flash { position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(0); width: 200%; height: 60%; background: radial-gradient(ellipse at center top, rgba(135, 206, 250, 0.5) 0%, rgba(135, 206, 250, 0.25) 30%, rgba(135, 206, 250, 0) 70%); pointer-events: none; z-index: 10000; opacity: 0; animation: flashPulseDown 0.4s ease-out forwards; }
.disaster-flash { position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(0); width: 200%; height: 60%; background: radial-gradient(ellipse at center top, rgba(255, 85, 0, 0.5) 0%, rgba(255, 85, 0, 0.25) 30%, rgba(255, 85, 0, 0.0) 70%); pointer-events: none; z-index: 10000; opacity: 0; animation: flashPulseDown 0.4s ease-out forwards; }
@keyframes flashPulse { 0% { opacity: 0; transform: translateX(-50%) scale(0); } 40% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(1.5); } }
@keyframes flashPulseDown { 0% { opacity: 0; transform: translateX(-50%) scale(0); } 40% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(1.5); } }

/* 攻击闪光 */
.attack-flash-normal { background: radial-gradient(ellipse at center top, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.2) 30%, transparent 70%) !important; }
.attack-flash-crit   { background: radial-gradient(ellipse at center top, rgba(255,215,0,0.55) 0%, rgba(255,215,0,0.25) 30%, transparent 70%) !important; }

/* 祝福出现 */
.boss-reward-flash { 
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scale(0); 
    width: 200%; height: 60%; 
    background: radial-gradient(ellipse at center bottom, rgba(76, 175, 80, 0.6) 0%, rgba(76, 175, 80, 0.3) 30%, rgba(76, 175, 80, 0) 70%); 
    pointer-events: none; z-index: 10000; opacity: 0; 
    animation: flashPulse 0.4s ease-out forwards; }
/* 祝福选定 */
.blessing-flash { 
    background: radial-gradient(ellipse at center top, rgba(33, 150, 243, 0.55) 0%, rgba(33, 150, 243, 0.25) 30%, transparent 70%) !important; }

/* ==========================================
   巡游主界面
   ========================================== */
#patrol-modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 998; background-color: #000; display: none; }
#patrol-modal.active { display: block; }
.patrol-bg { position: absolute; top: 0; left: 0; width: 1080px; height: 2400px; background-image: url('../system/patrol_bg.png'); background-size: cover; pointer-events: none; }

.patrol-stat { position: absolute; top: 260px; width: 175px; height: 175px; z-index: 10; pointer-events: none; }
#stat-tipo { left: 20px; } #stat-xinnian { left: 215px; } #stat-buji { left: 410px; } #stat-zhuangbei { left: 605px; }

.stat-bg, .stat-fill {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	background-size: contain; background-repeat: no-repeat; background-position: center;
	transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.stat-fill { transition: clip-path 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* 淤堵攻击预警标记 */
.patrol-stat-attack-mark {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../system/patrol_attack.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 11;
    pointer-events: none;
    animation: attackMarkBlink 1.5s ease-in-out infinite;
}
@keyframes attackMarkBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.patrol-content { position: absolute; left: 40px; top: 710px; width: 1000px; height: 190px; display: flex; justify-content: center; align-items: center; text-align: center; font-size: 46px; color: #fff; line-height: 55px; white-space: pre-wrap; pointer-events: none; z-index: 10; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden;}
.patrol-hero-info { position: absolute; left: 40px; top: 1495px; width: 1000px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-size: 46px; line-height: 55px; pointer-events: none; z-index: 10; }
.hero-name-text { color: #FACD89; font-weight: bold; }
.hero-class-text { color: #888; }

.patrol-ui-text, .bag-ui-text { position: absolute; font-family: 'WenDao', sans-serif; pointer-events: none; z-index: 10; }
.patrol-ui-text { color: #fff; font-size: 70px; text-align: right; }
.bag-ui-text { color: #E5E5E5; text-align: center; opacity: 0; transition: opacity 0.4s ease; }
.modal-overlay.active .bag-ui-text { opacity: 1; }

#patrol-days { left: 245px; top: 2024px; width: 254px; height: 88px; }
#patrol-terrain { left: 578px; top: 2020px; width: 254px; height: 92px; }
.patrol-race-icon { position: absolute; left: 574px; top: 2065px; width: 50px; height: 54px; pointer-events: none; z-index: 10; }

.patrol-option { position: absolute; left: 20px; width: 1040px; height: 175px; display: flex; justify-content: center; align-items: center; font-size: 56px; color: #000; font-weight: bold; pointer-events: none; z-index: 5; transform: scale(0.9); opacity: 1; transition: transform 0.1s linear, opacity 0.1s linear; }
#patrol-up { top: 475px; background-image: url('../system/patrol_up.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }
#patrol-down { top: 1749px; background-image: url('../system/patrol_down.png'); background-size: contain; background-repeat: no-repeat; background-position: center; }

/* 连招系统 */
#combo-border { position: absolute; left: 358px; top: 1627px; width: 364px; height: 62px; background-image: url('../system/combo_biankuang.png'); background-size: contain; background-repeat: no-repeat; background-position: center; pointer-events: none; z-index: 9; }
.combo-container { position: absolute; left: 358px; top: 1627px; width: 364px; height: 62px; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; z-index: 10; }
.combo-arrow { width: 52px; height: 40px; background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform 0.1s ease-out; }
.combo-arrow.dir-down { transform: scaleY(-1); }

@keyframes comboPopUp { 0% { transform: scale(1.15); } 100% { transform: scale(1.0); } }
@keyframes comboPopDown { 0% { transform: scaleY(-1) scale(1.15); } 100% { transform: scaleY(-1) scale(1.0); } }
.combo-arrow:not(.dir-down).anim-pop { animation: comboPopUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.combo-arrow.dir-down.anim-pop { animation: comboPopDown 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

#patrol-card { position: absolute; left: 260px; top: 920px; width: 560px; height: 560px; z-index: 20; cursor: grab; touch-action: none; }
#patrol-card:active { cursor: grabbing; }
#patrol-card img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

@keyframes cardPopIn { 0% { transform: scale(1.2); opacity: 0; } 40% { transform: scale(0.9); opacity: 1; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.0); opacity: 1; } }
@keyframes cardPopOut { 0% { transform: scale(1.0); opacity: 1; } 30% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(0.9); opacity: 0; } }
/* ==========================================
   行迹与背包数据展示
   ========================================== */
#data-list-container { position: absolute; left: 20px; top: 486px; width: 1040px; height: 1674px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 20px 0; scrollbar-width: none; }
#data-list-container::-webkit-scrollbar { display: none; }

.data-section-title { font-size: 48px; font-weight: bold; color: #fff; text-align: center; margin-top: 20px; margin-bottom: 10px; letter-spacing: 8px; }
.data-card { width: 998px; margin: 0 auto; background-color: rgba(0, 0, 0, 0.25); border: 4px solid #555; padding: 30px 40px; display: flex; flex-direction: column; gap: 20px; }
.data-row { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 42px; color: #DCDCDC; }
.data-label { color: #888; text-align: left; flex: 1; }
.data-value { color: #fff; font-weight: bold; text-align: right; flex: 1; }
.data-divider { width: 100%; height: 2px; background-color: #333; margin: 10px 0; }

.bag-section-title { font-size: 45px; font-weight: bold; color: #fff; text-align: center; margin-top: 20px; margin-bottom: 10px; letter-spacing: 4px; }
.bag-card { width: calc(100% - 10px); margin: 0 auto; background-color: rgba(0, 0, 0, 0.25); border: 2px solid #555; padding: 20px; display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.bag-row { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 40px; color: #DCDCDC; }
.bag-label { color: #888; text-align: left; flex: 1; }
.bag-value { color: #fff; font-weight: bold; text-align: right; flex: 1; }
.bag-divider { width: 100%; height: 1px; background-color: #333; margin: 8px 0; }

/* 背包与状态窗口文字定位 */
#bag-title, #status-title { left: 410px; top: 407px; width: 260px; height: 76px; font-size: 75px; line-height: 76px; }
#bag-close-text, #status-close-text { left: 410px; top: 1901px; width: 260px; height: 100px; font-size: 60px; line-height: 100px; }
#bag-modal .text-area, #status-modal .text-area {padding-bottom: 5px !important; }

/* ==========================================
   属性状态提示方块
   ========================================== */
.status-indicator-container { position: absolute; top: -35px; left: 0; width: 100%; height: 35px; pointer-events: none; z-index: 15; }
.status-block { position: absolute; top: 10px; width: 30px; height: 15px; border-radius: 3px; transform-origin: center; opacity: 0; transform: scale(0); transition: left 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.status-block.active { opacity: 1; transform: scale(1); }
.status-block.removing { opacity: 0; transform: scale(0); }
.block-shield { background-color: #87CEEB; box-shadow: 0 0 6px #87CEEB; }
.block-hot { background-color: #98FB98; box-shadow: 0 0 6px #98FB98; }
.block-dot { background-color: #FF6B6B; box-shadow: 0 0 6px #FF6B6B; }

/* 剧情模式闪光基础样式 */
.plot-flash {position: absolute; left: 50%; transform: translateX(-50%) scale(0); width: 200%; height: 60%; pointer-events: none; z-index: 100; opacity: 0; }
.plot-flash.top {top: 0;animation: flashPulseDown 0.4s ease-out forwards; }
.plot-flash.bottom {bottom: 0;animation: flashPulse 0.4s ease-out forwards; }

/* ==========================================
   秘闻阅读器样式
   ========================================== */

/* 秘闻目录专用卡片样式 */
.news-card { 
    width: 998px; 
    margin: 0 auto; 
    background-color: rgba(0, 0, 0, 0.25); 
    border: 4px solid #555; 
    padding: 24px; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    transition: all 0.25s ease; 
    cursor: pointer; 
    overflow: hidden; 
}
.news-card:active { transform: scale(0.98); }

/* 1. 段落基础样式 */
.news-paragraph {
    font-size: 40px; 
    line-height: 1.8; 
    margin: 0; 
    padding-bottom: 60px; 
    box-sizing: border-box;
    text-align: justify; 
    word-break: break-all;
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, color 0.4s ease, filter 0.4s ease;
}
.news-paragraph.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* 2. 段落状态：激活 / 历史 / 回看 */
.news-paragraph.active { color: #FFFFFF; }
.news-paragraph.history { color: #888888; }
.news-paragraph.in-view { color: #FFFFFF !important; }

/* 3. 选项容器与按钮 */
.news-options-container {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 60px;
    width: 100%; 
    margin-bottom: 60px; 
    opacity: 0; 
    transition: opacity 0.5s ease;
}
.news-options-container.visible { opacity: 1; }

.news-option-btn {
    font-family: 'Canger', sans-serif; 
    font-size: 38px; 
    color: #FFFFFF;
    background: transparent; 
    border: 2px solid #A0A0A0; 
    border-radius: 0;
    padding: 20px 60px; 
    min-width: 500px; 
    cursor: pointer;
    box-sizing: border-box; 
    text-align: center; 
    line-height: 1.2;
    transform: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
	touch-action: auto !important; 
    pointer-events: auto !important;
}

.news-option-btn:active { 
    transform: none !important;
}

/* 禁用状态 */
.news-option-btn:disabled,
.news-option-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    border-color: #555;
    transform: none !important;
}

/* 4. 角色对话布局 */
.news-dialogue {
    display: flex;
    align-items: center; 
    gap: 25px; 
    padding-left: 0px;
}

.news-speaker-info { flex-shrink: 0; }

.news-avatar-mask {
    width: 200px;  
    height: 200px;
    border-radius: 50%; 
    overflow: hidden;
    border: 5px solid rgba(144, 144, 144, 0.4); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: #222; 
    transition: opacity 0.4s ease, filter 0.4s ease; 
}

.news-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.15); 
}

.news-speaker-name {
    font-size: 40px;
    color: #00aaff; 
    font-weight: bold;
    text-align: left; 
    transition: color 0.4s ease, opacity 0.4s ease; 
    white-space: nowrap; 
}

.news-dialogue-text {
    flex: 1; 
    font-size: 40px; 
    color: #fff;
    line-height: 1.6;
    padding-top: 20px;
    transition: color 0.4s ease, opacity 0.4s ease; 
}

/* 5. 对话的历史状态（头像变灰、文字变灰） */
.news-paragraph.history .news-speaker-name,
.news-paragraph.history .news-dialogue-text {
    color: #888888 !important; 
    opacity: 0.6; 
}
.news-paragraph.history .news-avatar-mask {
    opacity: 0.6;
    filter: grayscale(60%); 
}

/* 6. 对话的回看状态（恢复原色） */
.news-paragraph.in-view .news-speaker-name { 
    color: #00aaff !important; 
    opacity: 1 !important; 
}
.news-paragraph.in-view .news-dialogue-text { 
    color: #FFFFFF !important; 
    opacity: 1 !important; 
}
.news-paragraph.in-view .news-avatar-mask { 
    opacity: 1 !important; 
    filter: none !important; 
}

/* 7. 特殊格式：地点/时间 (丨丨) */
.news-paragraph.meta-info {
    padding-bottom: 0px;   
    margin-bottom: 0px;
    line-height: 1.4;        
    text-align: center;
    font-size: 40px;
    color: #aaff7f;
}
/* 与后续正文拉开间距 */
.news-paragraph.meta-info + .news-paragraph:not(.meta-info) {
    padding-top: 50px;
}

/* 8. 特殊格式：强调文字 (【】) */
.news-paragraph.highlight-info {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: #FFD700;
    padding-bottom: 40px;
}

/* 9. 特殊格式的历史与回看状态 */
.news-paragraph.history.meta-info,
.news-paragraph.history.highlight-info {
    color: #888888 !important;
}
.news-paragraph.in-view.meta-info { color: #aaff7f !important; }
.news-paragraph.in-view.highlight-info { color: #FFD700 !important; }

/* ==========================================
   战斗特效
   ========================================== */

/* 伤害飘字动画 */
@keyframes damageFloat {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    20% { transform: translateY(-30px) scale(1.3); opacity: 1; }
    40% { transform: translateY(-50px) scale(1); opacity: 1; }
    100% { transform: translateY(-150px) scale(0.8); opacity: 0; }
}

/* 屏幕震动动画 */
@keyframes screenShake { 
    0%, 100% { transform: translate(0,0) scale(1); filter: brightness(1); }
    5% { transform: translate(-18px,-8px) scale(0.95); filter: brightness(1.5); }
    12% { transform: translate(14px,6px) scale(1.02); filter: brightness(1); }
    22% { transform: translate(-10px,4px) scale(0.98); }
    35% { transform: translate(6px,-3px) scale(1.01); }
    50% { transform: translate(-3px,2px); }
    65% { transform: translate(1px,-1px); }
    80% { transform: translate(0,0); } 
}
.anim-screen-shake {
    animation: screenShake 0.3s cubic-bezier(0.18,0.89,0.32,1.28) forwards;
}

/* 伤害文字样式 */
.damage-text {
    position: absolute; font-family: 'WenDao', sans-serif; font-weight: bold;
    pointer-events: none; z-index: 100; animation: damageFloat 1s ease-out forwards;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9), -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000; white-space: nowrap;
}
.damage-normal { color: #FF4444; font-size: 70px; }
.damage-crit { color: #FFD700; font-size: 100px; }

/* 武器指示器样式 */
.weapon-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #666;
    background-color: transparent;
    box-sizing: border-box;
    transition: all 0.25s ease;
}
.weapon-indicator.has-weapon {
    background-color: #dcdcdc;
    border-color: #dcdcdc;
}
.weapon-indicator.active {
    border-color: #FFD700;
    background-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8); 
    transform: scale(1.15);
}

/* 属性槽闪烁动画 */
@keyframes statFlashRed {
    0%, 100% { box-shadow: none; }
    30%, 70% { box-shadow: inset 0 0 0 11px rgba(255, 0, 0, 0.8); }
}
@keyframes statFlashGreen {
    0%, 100% { box-shadow: none; }
    30%, 70% { box-shadow: inset 0 0 0 11px rgba(85, 255, 127, 0.8); }
}
.stat-flash-red::after,
.stat-flash-green::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99;
    pointer-events: none;
}
.stat-flash-red::after { animation: statFlashRed 0.50s ease-out; }
.stat-flash-green::after { animation: statFlashGreen 0.50s ease-out; }

/* 探索进度飘字 */
.treasure-float {
    position: absolute;
    font-family: 'WenDao', sans-serif;
    font-weight: bold;
    pointer-events: none;
    z-index: 100;
    animation: damageFloat 1s ease-out forwards;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9), -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
    white-space: nowrap;
    color: #4FC3F7;
    font-size: 70px;
}
.treasure-flash {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%) scale(0);
    width: 200%; height: 60%;
    pointer-events: none; z-index: 10000; opacity: 0;
    animation: flashPulseDown 0.4s ease-out forwards;
}

/* 通用摇晃动画 */
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-15px); }
    40% { transform: translateX(15px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}
.anim-shake {
    animation: shakeX 0.4s ease-in-out;
}