/* ============================================================================
   腾龙发科AI元宇宙 · 360D 预览全新样式 preview-360d-v73.css
   1048 维度全新布局：左3D星云 / 中雷达+热力+投影+族对比 / 右维列+详情+权重
   ========================================================================== */
.p128-hero {
  padding: 100px 20px 40px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(64,224,255,.1), transparent 60%);
}
.p128-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: linear-gradient(135deg, rgba(64,224,255,.15), rgba(138,73,255,.15));
  border: 1px solid rgba(64,224,255,.3);
  color: #40e0ff; font-size: 13px; margin-bottom: 18px;
}
.p128-badge::before {
  content: '360D'; display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  background: linear-gradient(135deg,#40e0ff,#8a49ff);
  color: #0a0f1e; font-weight: 700; font-size: 11px;
}
#page-icon { font-size: 52px; margin-bottom: 10px; }
#page-title {
  font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, #40e0ff 0%, #8a49ff 50%, #f472b6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}
#page-subtitle { color: #a9b4d8; font-size: 15px; max-width: 800px; margin: 0 auto 20px; }
.p128-tools {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}
.p128-tools select, .p128-tools button {
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(120,160,255,.25);
  color: #e4eaff; font-size: 13px; cursor: pointer; transition: .2s;
  backdrop-filter: blur(10px);
}
.p128-tools select:hover, .p128-tools button:hover {
  background: rgba(64,224,255,.15); border-color: rgba(64,224,255,.5);
}
.p128-presets { display: flex; gap: 6px; }
.p128-presets button { padding: 8px 12px; font-size: 12px; }

/* 三栏主布局 */
.p128-main {
  max-width: 1800px; margin: 0 auto; padding: 0 20px 60px;
  display: grid; grid-template-columns: 1fr 1.1fr 340px;
  gap: 16px;
}
@media (max-width: 1280px) {
  .p128-main { grid-template-columns: 1fr 320px; }
  .p128-col-mid { order: 2; grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .p128-main { grid-template-columns: 1fr; }
}
.p128-col { display: flex; flex-direction: column; gap: 14px; }

/* 卡片通用 */
.p128-card {
  background: linear-gradient(135deg, rgba(20,30,70,.6), rgba(30,40,90,.4));
  border: 1px solid rgba(120,160,255,.18);
  border-radius: 14px; padding: 14px;
  backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.p128-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(64,224,255,.5), rgba(138,73,255,.5), transparent);
}
.p128-card h3 {
  font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.p128-card h3 .p128-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  background: rgba(64,224,255,.2); color: #40e0ff; font-weight: 500;
}

/* 3D 星云画布 */
#canvas-3d { width: 100%; height: 520px; display: block; border-radius: 10px; cursor: grab; }
#canvas-3d:active { cursor: grabbing; }
#hud {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; gap: 14px; font-size: 11px; color: #8da0d0;
  font-family: 'SF Mono', 'Consolas', monospace;
  pointer-events: none;
}
#hud span strong { color: #40e0ff; font-weight: 600; }

/* 雷达 */
#radar-canvas { width: 100%; height: 300px; display: block; }
/* 热力图 */
#heatmap-canvas { width: 100%; height: 240px; display: block; }
/* 三视图投影 */
#projection-canvas { width: 100%; height: 180px; display: block; }
/* 族对比 */
#fam-compare-canvas { width: 100%; height: 200px; display: block; }

/* 族筛选按钮 */
.fam-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fam-btn {
  padding: 5px 12px; border-radius: 20px; font-size: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(120,160,255,.18);
  color: #8da0d0; cursor: pointer; transition: .2s;
}
.fam-btn:hover { background: rgba(64,224,255,.1); }
.fam-btn.active { background: linear-gradient(135deg, rgba(64,224,255,.25), rgba(138,73,255,.25)); border-color: #40e0ff; color: #fff; }

/* 权重面板 */
.weight-panel { display: flex; flex-direction: column; gap: 8px; }
.weight-row { display: grid; grid-template-columns: 90px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; }
.weight-row label { font-size: 11px; }
.weight-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 4px; background: rgba(120,160,255,.2); outline: none;
}
.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #40e0ff; cursor: pointer;
  box-shadow: 0 0 8px rgba(64,224,255,.6);
}
.weight-val { font-size: 11px; color: #40e0ff; font-family: monospace; text-align: right; }

/* 维度列表 */
.dim-list { max-height: 460px; overflow-y: auto; padding-right: 4px; }
.dim-list::-webkit-scrollbar { width: 4px; }
.dim-list::-webkit-scrollbar-thumb { background: rgba(64,224,255,.3); border-radius: 4px; }
.dim-fam-group { margin-bottom: 10px; }
.dim-fam-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(255,255,255,.03); font-size: 12px; font-weight: 600;
  cursor: pointer; margin-bottom: 6px;
}
.dim-fam-count { font-size: 10px; color: #8da0d0; background: rgba(120,160,255,.1); padding: 1px 8px; border-radius: 10px; }
.dim-fam-list { display: flex; flex-direction: column; gap: 4px; }
.dim-item {
  padding: 5px 8px; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,.02); transition: .2s;
}
.dim-item:hover { background: rgba(64,224,255,.08); }
.dim-item.active { background: rgba(64,224,255,.15); box-shadow: 0 0 0 1px rgba(64,224,255,.4); }
.dim-item-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-bottom: 3px; }
.dim-idx { color: #5a6a96; font-family: monospace; font-size: 10px; margin-right: 6px; }
.dim-name { flex: 1; color: #c8d3ff; }
.dim-val { color: #40e0ff; font-weight: 700; font-size: 11px; font-family: monospace; }
.dim-bar { height: 3px; background: rgba(120,160,255,.12); border-radius: 3px; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 3px; transition: width .3s; }

/* 维度详情面板 */
.dim-detail { }
.detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.detail-icon { font-size: 28px; }
.detail-title { flex: 1; }
.detail-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.detail-fam { font-size: 11px; }
.detail-desc { font-size: 12px; color: #a9b4d8; line-height: 1.6; padding: 10px; background: rgba(0,0,0,.2); border-radius: 8px; margin-bottom: 12px; }
.detail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.detail-metric {
  padding: 8px; border-radius: 8px;
  background: rgba(255,255,255,.03); text-align: center;
}
.dm-label { font-size: 10px; color: #8da0d0; margin-bottom: 4px; }
.dm-value { font-size: 18px; font-weight: 700; color: #fff; }
.detail-bar { height: 6px; background: rgba(120,160,255,.12); border-radius: 6px; overflow: hidden; }
.db-fill { height: 100%; border-radius: 6px; transition: width .4s; }
/* 维度体系介绍区 */
.p128-desc {
  padding: 60px 20px;
  background: linear-gradient(180deg, transparent, rgba(20,30,70,.4));
}
.p128-desc h2 {
  text-align: center; font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg,#40e0ff,#8a49ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 36px;
}
.desc-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
@media (max-width: 1200px) { .desc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .desc-grid { grid-template-columns: 1fr; } }
.desc-item {
  padding: 20px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,30,70,.5), rgba(30,40,90,.3));
  border: 1px solid rgba(120,160,255,.15);
  backdrop-filter: blur(10px);
  transition: .3s;
}
.desc-item:hover {
  transform: translateY(-4px);
  border-color: rgba(64,224,255,.4);
  box-shadow: 0 12px 40px rgba(64,224,255,.15);
}
.desc-icon { font-size: 36px; margin-bottom: 12px; }
.desc-item h4 {
  font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.desc-item p {
  font-size: 13px; color: #a9b4d8; line-height: 1.7; margin: 0;
}

/* ==========================================================================
   V64 增强层：键位提示条 / 操作说明表 / 轻提示
   ========================================================================== */
.p128-tag {
  font-size: 11px; font-weight: 400; color: #8da0d0;
  margin-left: 8px; padding: 2px 8px; border-radius: 10px;
  background: rgba(90, 130, 255, .12); border: 1px solid rgba(90, 130, 255, .2);
}

.p128-kbdbar {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 16px; font-size: 12px; color: #9fb0d8;
}
.p128-kbdbar span { display: inline-flex; align-items: center; gap: 5px; }
.p128-kbdbar b {
  font-weight: 600; color: #cfe0ff; padding: 1px 7px; border-radius: 6px;
  background: rgba(120, 160, 255, .14); border: 1px solid rgba(120, 160, 255, .24);
}

.p128-kb { padding: 40px 0; }
.p128-kb h2 { font-size: 22px; color: #e8eeff; margin-bottom: 22px; text-align: center; }
.p128-kb-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.p128-kb-item {
  padding: 16px; border-radius: 12px;
  background: rgba(22, 32, 62, .55); border: 1px solid rgba(120, 160, 255, .14);
}
.p128-kb-key {
  display: inline-block; font-size: 12px; font-weight: 600; color: #cfe0ff;
  padding: 3px 10px; margin-bottom: 8px; border-radius: 7px;
  background: rgba(120, 160, 255, .16); border: 1px solid rgba(120, 160, 255, .26);
}
.p128-kb-item p { font-size: 12px; line-height: 1.65; color: #8fa0c8; margin: 0; }

.p128-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 16px);
  padding: 10px 20px; border-radius: 22px; font-size: 13px; color: #eaf1ff;
  background: rgba(30, 44, 84, .94); border: 1px solid rgba(120, 160, 255, .3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity .24s, transform .24s; z-index: 9999;
}
.p128-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
  .p128-kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .p128-kb-grid { grid-template-columns: 1fr; }
  .p128-kbdbar { font-size: 11px; gap: 6px 10px; }
}

/* 旧入口跳转页按钮 */
.btn-jump {
  display: inline-block; margin-top: 8px; padding: 11px 26px; border-radius: 24px;
  font-size: 14px; font-weight: 600; color: #eaf1ff; text-decoration: none;
  background: linear-gradient(135deg, #4f7cff, #7b4dff);
  box-shadow: 0 8px 24px rgba(80, 110, 255, .35);
}
.btn-jump:hover { filter: brightness(1.1); }
