body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
#cesiumContainer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
/* 工具栏 (右上角) */
.toolbar {
    position: absolute;
    top: 60px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toolbar button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ccc;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}
.toolbar button:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}
.toolbar button.active {
    background-color: #1890ff;
    border-color: #096dd9;
    color: white;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.3);
    transform: scale(0.98);
}
/* 潮汐面板 (左下角) */
#tidePanel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 280px;
    backdrop-filter: blur(4px);
    display: none;
    border: 1px solid #ddd;
}
#tidePanel h4 {
    margin: 0 0 8px 0;
    color: #1890ff;
}
#tidePanel .close-btn {
    float: right;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
}
#tideLocation, #tideTime {
    font-size: 12px;
    color: #666;
}
#tideCurrent {
    font-size: 28px;
    font-weight: bold;
    color: #0066cc;
    text-align: center;
    margin: 8px 0;
}
#tideChartContainer {
    height: 120px;
    width: 100%;
    margin-top: 10px;
}
/* 测量结果显示 */
#measureResult {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
    z-index: 1000;
    display: none;
}