/* ==========================================
   基础样式与奶油色背景
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* 网页背景采用暖调奶油色，与3D场景通透融合 */
    background-color: #f5f0e6; 
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ==========================================
   磨砂玻璃 UI 风格 (Glassmorphism)
   ========================================== */
.glass-panel {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(142, 132, 112, 0.15);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 顶部面板布局 */
.top-panel {
    top: 20px;
    left: 20px;
    right: 20px;
    justify-content: space-between;
}

.title-zone h1 {
    font-size: 1.4rem;
    color: #4a3e3d;
    margin-bottom: 2px;
}
.title-zone p {
    font-size: 0.75rem;
    color: #8a7e72;
}

.archive-zone {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 通用输入件与按钮 */
select, .btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #ffffff;
    color: #4a3e3d;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    outline: none;
    transition: background 0.2s;
}
select:hover, .btn:hover {
    background: #fcfaf2;
}
.btn-danger {
    background: #ff7675;
    color: white;
}
.btn-danger:hover {
    background: #ff5252;
}

/* 底部工具栏布局 */
.bottom-toolbar {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    padding: 10px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.9);
}

.tool-card.active {
    background: #ffffff;
    border-color: #ffb142;
    box-shadow: 0 4px 12px rgba(255, 177, 66, 0.3);
}

.tool-emoji {
    font-size: 1.6rem;
    margin-bottom: 2px;
}

.tool-label {
    font-size: 0.7rem;
    color: #5d5146;
    font-weight: bold;
}

/* 右下角小地图 */
.minimap-container {
    bottom: 20px;
    right: 20px;
    padding: 6px;
    border-radius: 14px;
}
#minimap {
    background: #fdfbf7;
    border-radius: 8px;
    display: block;
}