/* ===== 布局样式 ===== */

/* 根容器 */
.app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0b2441;
  overflow: hidden;
}

/* 顶部标题栏 */
.top {
  width: 100%;
  height: clamp(60px, 8vh, 100px);
  min-height: 60px;
  max-height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top #bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.top span {
  font-size: clamp(18px, 2vw, 28px);
  color: #fff;
  font-weight: bold;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 主内容区域 - 三栏布局 */
.belt-sampling {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(400px, 2fr) minmax(300px, 1fr);
  gap: 1vw;
  padding: 1vh 1vw;
  overflow: hidden;
  min-height: 0;
}

/* 左中右三栏公共样式 */
.left,
.center,
.right {
  display: flex;
  flex-direction: column;
  gap: 1vh;
  min-height: 0;
  overflow-y: auto;
}

/* 卡片通用样式 */
.item {
  background-color: #172f4b;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.item.task {
  padding: 0;
}

/* 卡片标题 */
.title {
  font-size: clamp(14px, 1.2vw, 18px);
  color: #fff;
  font-weight: 600;
  padding: 1vh 1vw;
  background: linear-gradient(90deg, rgba(24, 144, 255, 0.2) 0%, transparent 100%);
  border-bottom: 1px solid rgba(24, 144, 255, 0.3);
  flex-shrink: 0;
}

/* 响应式媒体查询 */
@media (min-width: 1920px) {
  .belt-sampling {
    grid-template-columns: minmax(350px, 1fr) minmax(500px, 2fr) minmax(350px, 1fr);
  }
}

@media (max-width: 1366px) {
  .belt-sampling {
    grid-template-columns: minmax(250px, 1fr) minmax(350px, 2fr) minmax(250px, 1fr);
    gap: 0.8vw;
  }
}

@media (max-width: 1024px) {
  .belt-sampling {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .left,
  .center,
  .right {
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .top {
    height: 50px;
    min-height: 50px;
  }

  .belt-sampling {
    padding: 0.5vh 0.5vw;
    gap: 0.5vh;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .top {
    height: 40px;
    min-height: 40px;
  }

  .belt-sampling {
    padding: 0.5vh 0.5vw;
  }
}

