/* Cloudfire 化学实验网站 - 全局样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: #1a1f2e;
  color: #e0e6ed;
  overflow: hidden;
}

#app {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* 左侧面板 */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: #232a3a;
  border-right: 1px solid #2d3548;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #2d3548;
}

.sidebar-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.sidebar-header p {
  font-size: 12px;
  color: #7a8599;
  margin-top: 4px;
}

/* 药品柜 */
.cabinet-group {
  padding: 8px 12px;
}

.cabinet-group-title {
  font-size: 12px;
  color: #7a8599;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 4px 6px;
  font-weight: 600;
}

.cabinet-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reagent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #2a3142;
  border: 1px solid #353d52;
  border-radius: 6px;
  cursor: grab;
  transition: all 0.15s;
  user-select: none;
}

.reagent-item:hover {
  background: #323a52;
  border-color: #4a5470;
  transform: translateX(2px);
}

.reagent-item:active {
  cursor: grabbing;
}

.reagent-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.reagent-name {
  font-size: 13px;
  color: #d0d8e6;
}

.reagent-formula {
  font-size: 11px;
  color: #6a7589;
  margin-left: auto;
}

/* 器材架 */
.apparatus-item {
  padding: 8px 10px;
  background: #2a3142;
  border: 1px solid #353d52;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #d0d8e6;
  transition: all 0.15s;
  text-align: center;
}

.apparatus-item:hover {
  background: #323a52;
  border-color: #4a5470;
}

.apparatus-danger {
  color: #e07070;
  border-color: #4a3030;
}

.apparatus-danger:hover {
  background: #3a2030;
  border-color: #6a4040;
}

/* 中间实验台 */
.workspace {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.workspace-toolbar {
  height: 44px;
  background: #232a3a;
  border-bottom: 1px solid #2d3548;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.toolbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #a0aec0;
}

.canvas-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#labCanvas {
  display: block;
  cursor: default;
}

/* 右侧信息面板 */
.info-panel {
  width: 300px;
  min-width: 300px;
  background: #232a3a;
  border-left: 1px solid #2d3548;
  overflow-y: auto;
  padding: 12px;
}

.info-section {
  margin-bottom: 16px;
}

.info-title {
  font-size: 13px;
  font-weight: 600;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2d3548;
}

.info-empty {
  font-size: 12px;
  color: #5a6579;
  line-height: 1.6;
  padding: 8px 0;
}

.info-tips p {
  font-size: 12px;
  color: #7a8599;
  line-height: 1.8;
}

/* 实验记录 */
.history-entry {
  background: #2a3142;
  border: 1px solid #353d52;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
}

.history-time {
  font-size: 11px;
  color: #5a6579;
  margin-bottom: 4px;
}

.history-equation {
  font-size: 13px;
  color: #e0e6ed;
  font-weight: 500;
  margin-bottom: 4px;
}

.history-phenomenon {
  font-size: 12px;
  color: #8ad0a0;
}

.history-note {
  font-size: 11px;
  color: #6a7589;
  margin-top: 4px;
  font-style: italic;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #3a4358;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a5470;
}
