/* 重置边距，隐藏滚动条 */
body {
    margin: 0;
    overflow: hidden;
    background-color: #111;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* UI控制面板样式 */
#infoPanel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    max-width: 400px;
}

h1 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #4CAF50;
}

p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

#infoDetails {
    margin-top: 10px;
}

#infoDetails > summary {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #cfd8dc;
    outline: none;
}

#infoDetails[open] > summary {
    margin-bottom: 10px;
}

.detailsBody p:last-child {
    margin-bottom: 0;
}

#bottomBar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
}

#status {
    font-weight: bold;
    color: #FFC107;
}

button {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 16px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    transition: background 0.3s ease;
}

button:hover {
    background: #45a049;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.actions button {
    margin-right: 0;
    margin-bottom: 0;
}

#resetBtn {
    background: #f44336;
}

#resetBtn:hover {
    background: #d32f2f;
}

/* Three.js Canvas样式 */
canvas {
    display: block;
}
