
  /* ============ CDF CHART ============ */
  .chart-card {
    padding: 20px 24px 22px;
  }
  .chart-legend {
    display: flex; gap: 18px; flex-wrap: wrap;
    font-size: 12px; color: #64748b;
    margin-bottom: 10px;
  }
  .chart-legend .item { display: flex; align-items: center; gap: 6px; }
  .chart-legend .dot { width: 18px; height: 3px; border-radius: 2px; }
  .chart-legend .zone-dot {
    width: 12px; height: 12px; border-radius: 3px; border: 1px solid;
  }
  .cdf-svg { width: 100%; height: auto; display: block; overflow: visible; }
  .specs-grid{
    padding-top: 0;
  }
.compare-legend {
    display: flex; gap: 14px; font-size: 11.5px; color: #64748b;
    margin-bottom: 14px; flex-wrap: wrap;
  }
  .compare-legend .item { display: flex; align-items: center; gap: 5px; }
  .compare-legend .swatch { width: 14px; height: 14px; border-radius: 3px; }


        /* ---------- 卡片容器 ---------- */
        .selector-card {
            width: 100%;
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            padding: 24px 28px 32px;
            transition: box-shadow 0.25s;
        }
        .selector-card:hover {
            box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
        }

        /* ---------- 头部（可选） ---------- */
        .module-header {
            margin-bottom: 18px;
        }
        .module-header h2 {
            font-size: 20px;
            font-weight: 700;
            color: #0f172a;
        }
        .module-header p {
            font-size: 14px;
            color: #64748b;
            margin-top: 4px;
        }

        /* ========== 游戏选择器 ========== */
        .game-selector-wrap {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px 16px;
            padding: 16px 26px 0px;
            justify-content: space-between;
        }

        /* 左侧：下拉框容器 */
        .current-game-display {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px 4px 16px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 40px;
            transition: border 0.2s, box-shadow 0.2s;
        }
        .current-game-display:focus-within {
            border-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
        }
        .current-game-display .icon {
            font-size: 16px;
            line-height: 1;
            opacity: 0.8;
        }

        /* 下拉菜单 */
        #gameSelect {
            border: none;
            background: transparent;
            padding: 6px 28px 6px 8px;
            font-weight: 600;
            font-size: 13px;
            color: #0f172a;
            cursor: pointer;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 4px center;
            background-size: 12px;
        }
        #gameSelect option {
            font-weight: normal;
            color: #0f172a;
        }

        /* 右侧：按钮组 */
        .game-btn-group {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
        }

        /* 按钮基础 */
        .game-btn {
            padding: 6px 18px;
            border-radius: 40px;
            border: 1.5px solid #e2e8f0;
            background: #f8fafc;
            font-size: 13px;
            font-weight: 600;
            color: #475569;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
            line-height: 1.4;
            user-select: none;
        }
        .game-btn:hover {
            border-color: #94a3b8;
            background: #f1f5f9;
            transform: translateY(-1px);
        }

        /* 激活状态 */
        .game-btn.active {
            border-color: #10b981;
            background: #ecfdf5;
            color: #065f46;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
        }
        .game-btn.active:hover {
            transform: translateY(-1px);
        }


        /* ---------- 当前选中状态展示（可选） ---------- */
        .selection-status {
            margin-top: 16px;
            padding: 10px 16px;
            background: #f8fafc;
            border-radius: 8px;
            font-size: 14px;
            color: #334155;
            border-left: 3px solid #10b981;
        }
        .selection-status strong {
            color: #0f172a;
        }

        /* ---------- 响应式 ---------- */
        @media (max-width: 640px) {
            .selector-card {
                padding: 16px 14px 20px;
            }
            .game-selector-wrap {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            .current-game-display {
                justify-content: space-between;
                padding: 6px 12px 6px 16px;
            }
            #gameSelect {
                flex: 1;
                padding: 8px 28px 8px 8px;
            }
            .game-btn-group {
                justify-content: center;
                gap: 4px;
            }
            .game-btn {
                padding: 4px 14px;
                font-size: 12px;
            }
        }
        @media (max-width: 480px) {
            .game-btn {
                font-size: 11px;
                padding: 3px 10px;
            }
        }
    