
  /* ============ 实测结论卡(B 方案,2026-10-30 用户从 A/B/C 三版里选的)============
   * 原来的「百分位连线图」(renderCDF)换掉了:五个汇总数连成平滑曲线,
   * 曲线形状是假的(点与点之间没有数据),四条线形状还全一样,
   * 答不了「开什么画质舒服」。B = 一句人话结论 + 每档一张大数字卡。
   * ⚠ 纯 PHP 服务端渲染,不依赖 JS —— 顺手绕开 css/js 抽取缓存的全部坑。 */
  .chart-card { padding: 32px; }   /* 和旁边 .compare-card(关键指标卡)同一内边距,32px —— 之前 20/24/22 不齐 */
  .b-title { font-size: 17px; font-weight: 800; color: #1e293b; }
  .b-sub { font-size: 11.5px; color: #94a3b8; margin: 4px 0 14px; }
  .b-lead {
    background: #f8fafc; border: 1px solid #eef2f8; border-radius: 12px;
    padding: 12px 16px; font-size: 13.5px; color: #334155; line-height: 1.75;
    margin-bottom: 16px;
  }
  .b-lead b { color: #0f172a; }
  .b-lead .up { color: #047857; font-weight: 700; }
  .b-lead .down { color: #b91c1c; font-weight: 700; }
  .b-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .b-card {
    border-radius: 14px; padding: 14px 14px 12px; background: #fff;
    border: 1px solid #e9edf4; border-top-width: 3px;
  }
  .b-card.esports { border-top-color: #06b6d4; }
  .b-card.good    { border-top-color: #10b981; }
  .b-card.warn    { border-top-color: #f59e0b; }
  .b-card.bad     { border-top-color: #ef4444; }
  .b-card .nm { font-size: 12.5px; font-weight: 700; color: #334155; }
  .b-card .nm small { display: block; font-weight: 500; color: #94a3b8; font-size: 10.5px; margin-top: 1px; }
  .b-card .avg { font-size: 30px; font-weight: 800; color: #0f172a; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .b-card .avg em { font-style: normal; font-size: 12px; font-weight: 600; color: #94a3b8; margin-left: 2px; }
  .b-card .chip { margin-top: 4px; }
  .b-card .chip span { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
  .b-card.esports .chip span { background: #cffafe; color: #0e7490; }
  .b-card.good    .chip span { background: #d1fae5; color: #047857; }
  .b-card.warn    .chip span { background: #fef3c7; color: #b45309; }
  .b-card.bad     .chip span { background: #fee2e2; color: #b91c1c; }
  .b-card .stats { margin-top: 9px; font-size: 11px; color: #64748b; line-height: 1.8; font-variant-numeric: tabular-nums; }
  .b-card .stats span { white-space: nowrap; }   /* 标签和数字成对不拆行("0.1%"/"114"分家很难看) */
  .b-card .stats i { font-style: normal; color: #cbd5e1; margin: 0 4px; }
  .b-card .stats b { color: #334155; font-weight: 700; }
  .b-empty { padding: 34px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
  @media (max-width: 640px) {
    .b-grid { grid-template-columns: repeat(2, 1fr); }
  }
  .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;
            }
        }
    