/* 全局样式 */
body {
    background-color: #f5f5f5;
    font-family: 'Microsoft YaHei', sans-serif;
    padding: 20px;
}

/* 标题样式 */
h1 {
    color: #333;
    text-align: center;
    margin: 20px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #444;
    margin: 30px 0 20px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    text-align: center;
}

/* 模块容器样式 */
.mokuai_1 {
    display: inline-block;
    margin: 10px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    text-align: center;
    width: 200px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mokuai_1:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 图标样式 */
.mokuai_1 img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 按钮样式 */
button {
    margin: 5px;
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #0056b3;
}

button[onclick*="D"], 
button[onclick*="decrease"],
button[onclick*="Diminishing"] {
    background: #dc3545;
}

button[onclick*="D"]:hover,
button[onclick*="decrease"]:hover,
button[onclick*="Diminishing"]:hover {
    background: #c82333;
}

/* 数值显示样式 */
span {
    font-size: 1.2em;
    font-weight: bold;
    color: #0056b3;
    margin: 0 10px;
}

p {
    margin: 8px 0;
    color: #666;
}

/* 能量显示样式 */
[id$="number"] {
    color: #28a745;
    font-weight: bold;
}

/* 总计区域样式 */
#mergedTotal {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #198754;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 分类区域样式 */
.section-container {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .mokuai_1 {
        width: calc(50% - 20px);
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .mokuai_1 {
        width: calc(100% - 20px);
    }
} 