/* pages/home.css — 首页：一屏满铺，中央圆形枢纽 + 左右整齐两列场景卡 */

/* 整页锁定一屏，不出现滚动条 */
html, body.home-onepage { height: 100%; overflow: hidden; }

/* 舞台：占满顶栏以下空间，内容居中 */
.scene-stage {
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scene-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 卡片列 */
.card-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 0 0 auto;
}
.col-left { align-items: flex-start; }
.col-right { align-items: flex-end; }

/* 场景卡：深色玻璃质感 + 细蓝边，整齐不旋转 */
.scene-card {
  width: 244px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .16), rgba(17, 24, 39, .55));
  border: 1px solid rgba(74, 139, 255, .32);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.scene-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 139, 255, .65);
  box-shadow: 0 12px 26px rgba(47, 107, 255, .3);
}
.icon-chip {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  box-shadow: 0 4px 12px rgba(47, 107, 255, .4);
}
.card-label { font-size: 16px; font-weight: 500; color: var(--text-on-dark); }

/* ===== 中央动画枢纽 ===== */
.scene-hub {
  position: relative;
  flex: 0 0 auto;
  width: 400px; height: 400px;
}
.tick-ring { position: absolute; inset: 0; width: 400px; height: 400px; }

.ring { position: absolute; border-radius: 50%; }
.ring-outer {
  width: 340px; height: 340px; top: 30px; left: 30px;
  border: 2px dashed rgba(47, 107, 255, .5);
  animation: spin 22s linear infinite;
}
.ring-mid {
  width: 250px; height: 250px; top: 75px; left: 75px;
  border: 2px solid rgba(74, 139, 255, .28);
  border-top-color: var(--color-primary-light);
  border-right-color: var(--color-primary-light);
  animation: spin 12s linear infinite reverse;
}
.hub-core {
  position: absolute; top: 125px; left: 125px;
  width: 150px; height: 150px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 35% 30%, var(--color-primary-light), var(--color-primary-dark));
  box-shadow: 0 0 34px rgba(47, 107, 255, .6);
  animation: pulse 2.8s ease-in-out infinite;
  transition: transform .2s ease;
}
.hub-core:hover { transform: scale(1.06); color: #fff; }

/* 轨道上的发光节点（随环转动） */
.orbit-dot {
  position: absolute; top: -6px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%;
  background: #9cc0ff;
  box-shadow: 0 0 12px 3px rgba(74, 139, 255, .9);
}
.orbit-dot.light {
  width: 8px; height: 8px; margin-left: -4px; top: -5px;
  background: #cfe0ff;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 28px rgba(47, 107, 255, .5); }
  50% { box-shadow: 0 0 54px rgba(47, 107, 255, .9); }
}

/* 矮屏：整体收紧，保证一屏不溢出 */
@media (max-height: 740px) {
  .card-col { gap: 20px; }
  .scene-card { padding: 12px 16px; }
  .scene-hub { transform: scale(.82); }
}

/* 窄屏：缩小枢纽与卡片 */
@media (max-width: 1000px) {
  .scene-layout { gap: 8px; padding: 0 16px; }
  .scene-hub { transform: scale(.72); }
  .scene-card { width: 196px; padding: 12px 14px; gap: 10px; }
  .icon-chip { width: 38px; height: 38px; }
  .card-label { font-size: 14px; }
}
