/* ============================================================
   styles/stations.css — 可可木箱子 / 凝炼台 / 蜂箱 UI
   （原 styles/main.css 拆解而来：1606~1979、2444~2677 行）
   ============================================================ */

/* ============================================================
   可可木箱子 UI
   ============================================================ */

#chest-panel {
  z-index: 60;
}

.chest-panel {
  width: min(780px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, #1c1f38, #141628);
  border: 1px solid rgba(255, 226, 150, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.chest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chest-head h2 {
  margin: 0;
  font-size: 16px;
  color: #ffe296;
  letter-spacing: 0.08em;
}

.chest-head-right {
  display: flex;
  gap: 6px;
}

.chest-head button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfc6b8;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s;
}

.chest-head button:hover:not(:disabled) {
  background: rgba(255, 120, 120, 0.2);
  color: #ffb3b3;
}

.chest-head .chest-settings:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.chest-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.chest-body::-webkit-scrollbar { width: 8px; }
.chest-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.chest-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.chest-label:first-child {
  margin-top: 0;
}

.chest-grid {
  display: grid;
  grid-template-columns: repeat(10, 52px);
  gap: 6px;
}

.chest-slot {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: background 0.1s, border-color 0.1s;
}

.chest-slot:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 217, 122, 0.4);
}

.chest-slot.empty { cursor: default; }
.chest-slot.empty:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.chest-slot canvas {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  pointer-events: none;
}

.chest-slot .count {
  position: absolute;
  right: 4px;
  bottom: 1px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px #000, 0 1px 2px #000;
  pointer-events: none;
}

.chest-slot .num {
  position: absolute;
  left: 5px;
  top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.chest-foot {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.chest-foot b { color: #ffe296; }

/* ============================================================
   凝炼台 UI
   ============================================================ */

#condenser-panel {
  z-index: 60;
}

.condenser-panel {
  width: min(680px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, #1c1f38, #141628);
  border: 1px solid rgba(255, 226, 150, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.condenser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.condenser-head h2 {
  margin: 0;
  font-size: 16px;
  color: #ffe296;
  letter-spacing: 0.08em;
}

.condenser-head button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfc6b8;
  font-size: 14px;
  cursor: pointer;
}

.condenser-head button:hover {
  background: rgba(255, 120, 120, 0.2);
  color: #ffb3b3;
}

.condenser-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.condenser-body::-webkit-scrollbar { width: 8px; }
.condenser-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.condenser-sample-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.condenser-sample-info {
  flex: 1;
  min-width: 0;
}

.condenser-sample-name {
  font-size: 15px;
  color: #ffe296;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.condenser-sample-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.condenser-cost {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.condenser-cost-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cfc6b8;
}

.condenser-cost-line b {
  color: #a3d47a;
  font-weight: 700;
}

.condenser-btn {
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 217, 122, 0.16);
  border: 1px solid rgba(255, 217, 122, 0.4);
  color: #ffe296;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.15em;
  transition: all 0.12s;
}

.condenser-btn:hover:not(:disabled) {
  background: rgba(255, 217, 122, 0.3);
}

.condenser-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.condenser-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  letter-spacing: 0.15em;
}

.condenser-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.condenser-grid {
  display: grid;
  grid-template-columns: repeat(10, 52px);
  gap: 6px;
}

.condenser-slot {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: background 0.1s, border-color 0.1s;
}

.condenser-slot:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 217, 122, 0.4);
}

.condenser-slot.empty { cursor: default; }
.condenser-slot.empty:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.condenser-slot canvas {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  pointer-events: none;
}

.condenser-slot .count {
  position: absolute;
  right: 4px;
  bottom: 1px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px #000, 0 1px 2px #000;
  pointer-events: none;
}

.condenser-slot .num {
  position: absolute;
  left: 5px;
  top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.condenser-foot {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.condenser-foot b { color: #ffe296; }

/* ============================================================
   蜂箱 UI
   ============================================================ */

#beehive-panel {
  z-index: 60;
}

.beehive-panel {
  width: min(680px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, #1c1f38, #141628);
  border: 1px solid rgba(255, 226, 150, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.beehive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.beehive-head h2 {
  margin: 0;
  font-size: 16px;
  color: #ffe296;
  letter-spacing: 0.1em;
}

.beehive-head button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfc6b8;
  font-size: 14px;
  cursor: pointer;
}

.beehive-head button:hover {
  background: rgba(255, 120, 120, 0.2);
  color: #ffb3b3;
}

.beehive-desc {
  margin: 0;
  padding: 12px 20px 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 226, 150, 0.7);
  font-style: italic;
}

.beehive-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.beehive-body::-webkit-scrollbar { width: 8px; }
.beehive-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.beehive-work {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.beehive-op {
  font-size: 20px;
  color: rgba(255, 226, 150, 0.6);
  font-weight: 700;
  user-select: none;
}

.beehive-slot {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: background 0.1s, border-color 0.1s;
}

.beehive-slot:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 217, 122, 0.4);
}

.beehive-slot.empty { cursor: default; }
.beehive-slot.empty:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.beehive-slot.output {
  cursor: default;
  border-color: rgba(255, 217, 122, 0.3);
  background: rgba(255, 217, 122, 0.04);
}
.beehive-slot.output:hover {
  background: rgba(255, 217, 122, 0.08);
  border-color: rgba(255, 217, 122, 0.4);
}

.beehive-slot canvas {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  pointer-events: none;
}

.beehive-slot .count {
  position: absolute;
  right: 5px;
  bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px #000, 0 1px 2px #000;
  pointer-events: none;
}

.beehive-slot .num {
  position: absolute;
  left: 5px;
  top: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.beehive-status-row {
  display: flex;
  justify-content: center;
}

.beehive-status {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.beehive-status.ok {
  color: #a3d47a;
  font-weight: 600;
}

.beehive-status.warn {
  color: #ffb36b;
}

.beehive-btn {
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 217, 122, 0.16);
  border: 1px solid rgba(255, 217, 122, 0.4);
  color: #ffe296;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.15em;
  transition: all 0.12s;
}

.beehive-btn:hover:not(:disabled) {
  background: rgba(255, 217, 122, 0.3);
}

.beehive-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.beehive-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.beehive-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.beehive-grid {
  display: grid;
  grid-template-columns: repeat(10, 52px);
  gap: 6px;
}

.beehive-grid .beehive-slot {
  width: 52px;
  height: 52px;
}

.beehive-grid .beehive-slot canvas {
  width: 34px;
  height: 34px;
}

.beehive-foot {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.beehive-foot b { color: #ffe296; }
