/* base.css - 公共基础样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #0a0a1a; color: #fff; overflow: hidden; } #container { position: relative; width: 100vw; height: 100vh; } #container.dragging { cursor: grabbing; } /* Bottom Dock */ #right-toolbar-group { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: row; align-items: center; justify-content: center; z-index: 200; } #right-toolbar-group, #info-panel, #coordinates-display, #legend, #earth-stats { transition: top 0.45s ease, right 0.45s ease, bottom 0.45s ease, left 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease; } /* Zoom Toolbar - Right side, vertical */ #zoom-toolbar { position: relative; bottom: auto; right: auto; display: flex; flex-direction: row; align-items: center; gap: 6px; flex-shrink: 0; } #zoom-toolbar .zoom-percent { font-size: 0.75rem; font-weight: 600; color: #4db8ff; min-width: 30px; display: inline-block; text-align: center; cursor: pointer; padding: 2px 4px; border-radius: 3px; transition: all 0.2s ease; } #zoom-toolbar .zoom-percent:hover { background: rgba(77, 184, 255, 0.2); box-shadow: 0 0 10px rgba(77, 184, 255, 0.3); } #zoom-toolbar .zoom-btn { width: 28px; height: 28px; min-width: 28px; border: none; border-radius: 50%; background: rgba(77, 184, 255, 0.2); color: #4db8ff; font-size: 14px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; padding: 0; margin: 0; flex: 0 0 auto; box-sizing: border-box; position: relative; } #zoom-toolbar .zoom-btn:hover { background: rgba(77, 184, 255, 0.4); transform: scale(1.1); box-shadow: 0 0 10px rgba(77, 184, 255, 0.5); } #zoom-toolbar #reset-view svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; } #zoom-toolbar .zoom-percent { position: relative; } #zoom-toolbar .tooltip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); background: rgba(10, 10, 30, 0.95); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.2s ease; border: 1px solid rgba(77, 184, 255, 0.4); pointer-events: none; z-index: 100; } #zoom-toolbar .zoom-btn:hover .tooltip, #zoom-toolbar .zoom-percent:hover .tooltip { opacity: 1; visibility: visible; } #zoom-toolbar .tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(77, 184, 255, 0.4); } #loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.2rem; color: #4db8ff; z-index: 100; text-align: center; background-color: rgba(10, 10, 30, 0.95); padding: 30px; border-radius: 10px; border: 1px solid #4db8ff; box-shadow: 0 0 30px rgba(77,184,255,0.3); } #loading-spinner { border: 4px solid rgba(77, 184, 255, 0.3); border-top: 4px solid #4db8ff; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 15px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .error-message { color: #ff4444; margin-top: 10px; font-size: 0.9rem; display: none; padding: 10px; background-color: rgba(255, 68, 68, 0.1); border-radius: 5px; border-left: 3px solid #ff4444; } .terrain-controls { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .slider-container { margin-bottom: 10px; } .slider-label { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; } input[type="range"] { width: 100%; height: 8px; -webkit-appearance: none; background: rgba(0, 102, 204, 0.3); border-radius: 4px; outline: none; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #4db8ff; cursor: pointer; box-shadow: 0 0 10px #4db8ff; } .status-message { position: absolute; top: 20px; right: 260px; background-color: rgba(10, 10, 30, 0.85); border-radius: 10px; padding: 10px 15px; z-index: 10; box-shadow: 0 0 20px rgba(0, 150, 255, 0.3); border: 1px solid rgba(0, 150, 255, 0.2); font-size: 0.9rem; display: none; backdrop-filter: blur(5px); } .status-message.success { color: #44ff44; border-left: 3px solid #44ff44; } .status-message.warning { color: #ffff44; border-left: 3px solid #ffff44; } .status-message.error { color: #ff4444; border-left: 3px solid #ff4444; } .tooltip { position: absolute; background-color: rgba(10, 10, 30, 0.95); border: 1px solid #4db8ff; border-radius: 5px; padding: 5px 10px; font-size: 0.8rem; color: #fff; pointer-events: none; z-index: 100; box-shadow: 0 0 10px rgba(77, 184, 255, 0.3); display: none; user-select: none; } /* Control Toolbar - Stellarium/Star Walk style */ #control-toolbar { position: relative; bottom: auto; right: auto; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(10, 10, 30, 0.9); border-radius: 999px; padding: 10px 14px; border: 1px solid rgba(77, 184, 255, 0.3); box-shadow: 0 0 20px rgba(77, 184, 255, 0.2); transition: all 0.3s ease; } .toolbar-items { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; } .toolbar-divider { width: 1px; height: 28px; background: rgba(77, 184, 255, 0.28); flex-shrink: 0; } .toolbar-btn { position: relative; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(77, 184, 255, 0.15); color: #4db8ff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; box-sizing: border-box; padding: 0; margin: 0; } .toolbar-btn:hover { background: rgba(77, 184, 255, 0.35); transform: scale(1.1); box-shadow: 0 0 15px rgba(77, 184, 255, 0.5); } .toolbar-btn:active { transform: scale(0.95); } .toolbar-btn.active { background: rgba(77, 184, 255, 0.4); box-shadow: 0 0 10px rgba(77, 184, 255, 0.4) inset; } .toolbar-btn .icon { display: inline-flex; align-items: center; justify-content: center; } .toolbar-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; } #rotate-toggle .icon-play, #rotate-toggle.is-stopped .icon-pause { display: none; } #rotate-toggle.is-stopped .icon-play { display: inline-flex; } #container.layout-expanded #info-panel { top: 20px; left: 20px; transform: translate(calc(-100% + 20px), calc(-100% + 20px)); } #container.layout-expanded #coordinates-display { top: 20px; right: 20px; transform: translate(calc(100% - 20px), calc(-100% + 20px)); } #container.layout-expanded #legend { left: 20px; bottom: 20px; transform: translate(calc(-100% + 20px), calc(100% - 20px)); } #container.layout-expanded #earth-stats { right: 20px; bottom: 20px; transform: translate(calc(100% - 20px), calc(100% - 20px)); } #container.layout-expanded #right-toolbar-group { bottom: 20px; transform: translateX(-50%); } .toolbar-btn .tooltip { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 30, 0.95); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.2s ease; border: 1px solid rgba(77, 184, 255, 0.4); pointer-events: none; z-index: 100; } .toolbar-btn:hover .tooltip { opacity: 1; visibility: visible; bottom: 52px; } .toolbar-btn .tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(77, 184, 255, 0.4); }