/* 添加基本重置 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 防止页面出现滚动条 */
    box-sizing: border-box;
}

/* 基本页面样式 */
body {
    /* 移除 flex 居中 */
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* min-height: 100vh; */ 
    background-color: #e0f2f7; /* 淡雅的背景色 */
    font-family: sans-serif;
    user-select: none; /* 禁止文本选择 */
    -webkit-user-select: none; /* 兼容 Safari */
    -moz-user-select: none; /* 兼容 Firefox */
    -ms-user-select: none; /* 兼容 IE/Edge */
}

/* 游戏容器样式 */
#game-container {
    position: absolute; /* 改为绝对定位 */
    top: 0;
    left: 0;
    width: 100vw; /* 视口宽度 */
    height: 100vh; /* 视口高度 */
    /* display: flex; */ /* 不再需要 flex */
    /* justify-content: center; */
    /* align-items: center; */
    overflow: hidden; /* 防止粒子跑到容器外面 */
    /* (可选) 添加过渡效果，用于升级特效 */
    transition: box-shadow 0.2s ease-in-out;
    /* border: 1px solid #ccc; */ /* 移除临时边框 */
}

/* 人体图像样式 (可选) */
#body-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例 */
    opacity: 0.5; /* 让图像不那么显眼 */
    z-index: 0; /* 在圆圈后面 */
    pointer-events: none; /* 图片不响应鼠标事件 */
}

/* 灵气循环圆圈样式 */
#qi-circle {
    position: absolute;
    width: 70px; /* 调整大小以适应躯干方块 */
    height: 70px; 
    border: 3px dashed #4fc3f7;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1; 
    /* 定位到躯干方块的中心 (需要基于SVG的viewBox和方块位置估算) */
    /* SVG viewBox 高度 180, 躯干 y=50, height=100, 中心是 50 + 100/2 = 100 */
    /* 容器高度 100vh (假设600px), SVG 高度 50% (300px) */
    /* 躯干中心 Y 相对 SVG 顶部 = 100 */
    /* SVG 顶部相对容器顶部 = (600 - 300) / 2 = 150px */
    /* 躯干中心 Y 相对容器顶部 = 150 + (100 / 180 * 300) = 150 + 166 = 316px */
    /* 百分比大约是 316 / 600 = 52.6% */
    top: 53%; /* 估算值，可能需要微调 */ 
    left: 50%; 
    transform: translate(-50%, -50%); /* 水平居中 */
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.5);
}

/* 指示器小球样式 - 匹配 #qi-circle (如果还在用的话) */
#qi-indicator {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #03a9f4;
    border-radius: 50%;
    /* 匹配新半径 (70px / 2 = 35px), 指示器半径 7.5px */
    top: -7.5px; 
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* 调整等级显示容器样式 */
#level-display {
    position: absolute;
    top: 20px; 
    left: 20px; 
    transform: none; 
    background-color: rgba(255, 255, 255, 0.85); /* 背景更实一点 */
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1em; /* 调整基础字号 */
    font-weight: bold;
    color: #333;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex; /* 使用 flex 布局 */
    flex-direction: column; /* 垂直排列 */
    gap: 8px; /* 各部分之间的间距 */
}

/* 各部分通用样式 */
.level-part span {
    color: #03a9f4; /* 数值用主题色 */
    margin-left: 5px; /* 数值前加点间距 */
}

/* 进度条容器 */
.progress-bar-container {
    display: inline-block; /* 使其与文字在同一行 */
    width: 100px; /* 进度条宽度 */
    height: 12px; /* 进度条高度 */
    background-color: #b0bec5; /* 进度条背景色 (灰色) */
    border-radius: 6px;
    overflow: hidden; /* 隐藏溢出的填充部分 */
    margin: 0 8px; /* 与前后文字的间距 */
    vertical-align: middle; /* 垂直居中对齐 */
}

/* 进度条填充部分 */
#progress-bar-fill {
    width: 0%; /* 初始宽度为 0 */
    height: 100%;
    background-color: #4dd0e1; /* 填充颜色 (亮青色) */
    border-radius: 6px 0 0 6px; /* 左侧圆角 */
    transition: width 0.3s ease-in-out; /* 平滑宽度变化 */
}

/* 数字进度样式 */
#progress-value {
     font-size: 0.9em; /* 数字可以小一点 */
     color: #546e7a;
}

/* --- 新增: 灵气粒子样式 --- */
.qi-particle {
    position: absolute; 
    /* 增大粒子尺寸 */
    width: 6px; 
    height: 6px; 
    /* 更亮的颜色 */
    background-color: #4dd0e1; /* 亮青色 */
    border-radius: 50%;
    /* 提高不透明度 */
    opacity: 0.8;
    /* 更明显的发光效果 */
    box-shadow: 0 0 8px 3px rgba(77, 208, 225, 0.8); 
    pointer-events: none; 
}

/* --- 新增: 鼠标调试指示器样式 --- */
#mouse-debug-indicator {
    position: absolute; /* 相对于 #game-container 定位 */
    width: 10px;
    height: 10px;
    background-color: red;
    border: 1px solid darkred;
    pointer-events: none; /* 不响应鼠标事件 */
    z-index: 10; /* 确保在最前面可见 */
    opacity: 0.7; /* 半透明，方便看到下面的内容 */
    /* top 和 left 由 JS 控制 */
}

/* --- 新增: 抽象方块身体 SVG 样式 --- */
#body-svg-abstract {
    position: absolute;
    width: 25%; /* 调整 SVG 在容器中的大小 */
    height: 50%; /* 调整 SVG 在容器中的大小 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 0; 
    overflow: visible; /* 确保方块边缘可见 */
}

/* 方块通用样式 */
.body-block {
    fill: #78909c; /* 蓝灰色填充 */
    stroke: #455a64; /* 深一点的描边 */
    stroke-width: 1;
    /* 可选：添加一点圆角 */
    /* rx: 3; */ 
    /* ry: 3; */
}

/* 特定部位微调 (可选) */
.head-block {
    /* fill: lightblue; */
}

.torso-block {
    /* fill: darkblue; */
}
