/* ═══ OPC 能力地图 · 官网版 ═══ */
.opc-map-section {
  position: relative;
  padding: 10px 0 8px;
  background: var(--bg);
}
.opc-map-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(1100px 460px at 50% -20%, rgba(245,158,11,.07), transparent 60%),
              radial-gradient(700px 380px at 85% 5%, rgba(56,189,248,.05), transparent 60%);
  pointer-events: none;
}
.opc-map-inner { position: relative; width: 100%; padding: 0 20px; }

.opc-map-layout { display: flex; gap: 14px; align-items: stretch; width: 100%; height: calc(100vh - 96px); min-height: 560px; max-height: 860px; }

/* 左/右面板 */
.opc-panel { width: 236px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.opc-side { gap: 10px; }

/* 左侧：统计卡 + 服务领域 + 应用标签 */
.opc-stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.opc-stat-num { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1.02; }
.opc-stat-lbl { font-size: 13px; color: var(--text2); margin-top: 2px; }
.opc-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; flex: 1; overflow-y: auto; }
.opc-box-title { font-size: 16px; color: var(--text); font-weight: 700; margin-bottom: 12px; }

/* 服务领域条形 */
.opc-skill-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.opc-skill-name { width: 84px; font-size: 14px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.opc-skill-bar-bg { flex: 1; height: 9px; background: var(--line); border-radius: 4px; overflow: hidden; }
.opc-skill-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 4px; }
.opc-skill-val { width: 28px; text-align: right; font-size: 16px; color: var(--accent); font-weight: 700; }

/* 应用标签云 */
.opc-tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.opc-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: rgba(56,189,248,.08); color: #7dd3fc; border: 1px solid rgba(56,189,248,.25); font-weight: 600; line-height: 1.4; }
.opc-tag em { font-style: normal; font-size: 10px; color: var(--text2); background: rgba(255,255,255,.06); border-radius: 999px; padding: 1px 6px; }

/* 地图容器 */
.opc-map-box { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; }
#opcChart { width: 100%; height: 100%; }

/* 返回按钮 */
.opc-back-btn { position: absolute; top: 12px; right: 14px; z-index: 10; display: none; background: rgba(245,158,11,.12); color: var(--accent); border: 1px solid rgba(245,158,11,.4); border-radius: 8px; padding: 5px 14px; font-size: 12px; cursor: pointer; }
.opc-back-btn:hover { background: rgba(245,158,11,.25); }
.opc-map-box.drilling .opc-back-btn { display: block; }

/* 画像 Modal */
.opc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; display: none; align-items: center; justify-content: center; }
.opc-overlay.show { display: flex; }
.opc-modal { width: 460px; max-width: 92vw; max-height: 88vh; overflow-y: auto; background: #0f1520; border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: relative; }
.opc-modal-close { position: absolute; top: 12px; right: 14px; color: var(--text2); font-size: 20px; cursor: pointer; background: none; border: none; line-height: 1; }
.opc-modal-close:hover { color: var(--text); }
.opc-m-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.opc-m-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #0d1117; flex-shrink: 0; }
.opc-m-info { flex: 1; }
.opc-m-name-row { display: flex; align-items: center; gap: 10px; }
.opc-m-name { font-size: 19px; font-weight: 800; color: var(--text); }
.opc-m-city { font-size: 12px; color: var(--text2); margin-top: 3px; }
.opc-m-company { font-size: 12px; color: #b8c2cf; margin-top: 2px; }
.opc-wx-btn { font-size: 11px; padding: 4px 10px; border-radius: 6px; border: 1px solid #07c160; color: #07c160; background: rgba(7,193,96,.06); cursor: pointer; position: relative; }
.opc-wx-btn:hover { background: rgba(7,193,96,.18); }
.opc-wx-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; background: var(--card); border: 1px solid rgba(7,193,96,.3); border-radius: 12px; padding: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.5); display: none; text-align: center; }
.opc-wx-btn:hover .opc-wx-pop { display: block; }
.opc-wx-pop img { width: 170px; height: 170px; background: #fff; padding: 4px; border-radius: 8px; display: block; }
.opc-wx-pop span { display: block; font-size: 11px; color: var(--text2); margin-top: 6px; }
.opc-m-skills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.opc-m-tag { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(245,158,11,.12); color: var(--accent); border: 1px solid rgba(245,158,11,.3); }
.opc-m-section { margin-bottom: 12px; padding: 10px 12px; background: rgba(245,158,11,.04); border-left: 3px solid var(--accent); border-radius: 6px; }
.opc-m-section-title { font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.opc-m-section-body { font-size: 13px; color: var(--text2); line-height: 1.75; }
.opc-m-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.opc-m-ps { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.opc-m-ps b { display: block; font-size: 20px; color: var(--accent); }
.opc-m-ps span { font-size: 11px; color: var(--text2); }
.opc-m-channel { font-size: 12px; color: var(--accent2); background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.25); border-radius: 8px; padding: 8px 12px; }
.opc-wx-id { font-size: 11px; padding: 4px 10px; border-radius: 6px; border: 1px solid #07c160; color: #07c160; background: rgba(7,193,96,.06); cursor: pointer; user-select: none; transition: .2s; }
.opc-wx-id:hover { background: rgba(7,193,96,.18); }
.opc-wx-id.copied { background: rgba(7,193,96,.3); }
.opc-m-quote { font-size: 12px; color: var(--text2); background: rgba(245,158,11,.05); border: 1px solid rgba(245,158,11,.2); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.7; }

/* 右侧：联盟OPC名录（随省份下钻联动） */
.opc-contact-panel { width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.opc-contact-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #1b2433; flex-shrink: 0; }
.opc-contact-title { font-size: 15px; font-weight: 700; color: var(--text); }
.opc-contact-count { font-size: 12px; color: var(--accent); background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); border-radius: 999px; padding: 2px 10px; }
.opc-contact-list { flex: 1; overflow-y: auto; padding: 8px; }
.opc-contact-list::-webkit-scrollbar { width: 6px; }
.opc-contact-list::-webkit-scrollbar-thumb { background: #2c3a55; border-radius: 3px; }
.opc-contact-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; transition: .15s; }
.opc-contact-item:hover { background: #1f2b45; }
.opc-contact-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #0d1117; flex-shrink: 0; }
.opc-contact-main { flex: 1; min-width: 0; }
.opc-contact-name { font-size: 14px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opc-contact-city { font-size: 12px; color: var(--text2); font-weight: 400; margin-left: 14px; white-space: nowrap; }
.opc-contact-meta { font-size: 11px; color: var(--accent); margin-top: 2px; }
.opc-contact-arrow { color: var(--accent); font-size: 18px; flex-shrink: 0; }
.opc-contact-empty { text-align: center; font-size: 12px; color: var(--text2); padding: 30px 0; }
.opc-tag-empty { font-size: 13px; color: var(--text2); text-align: center; padding: 20px 0; }

/* 省份/地市成员清单弹窗 */
.opc-list { max-height: 320px; overflow-y: auto; }
.opc-list-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; transition: .15s; }
.opc-list-item:hover { background: #1a2233; }
.opc-prov-tip { text-align: center; font-size: 11px; color: var(--text2); margin-top: 10px; }

@media (max-width: 1100px) {
  .opc-panel { width: 200px; }
  .opc-contact-panel { width: 220px; }
}
@media (max-width: 900px) {
  .opc-map-layout { flex-direction: column; height: auto; }
  .opc-panel { width: 100%; }
  .opc-contact-panel { width: 100%; }
  .opc-map-box { height: 70vh; }
}
