/* =============================================================================
 * 产品中心公共样式增量（六页复用）
 * 说明：各页面原有内联 <style> 保持不动；本文件仅承载动态化改造新增/复用片段。
 * ========================================================================== */

/* 加载态 / 空状态增强 */
.pc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--sub, #94A3B8);
}
.pc-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 130, 246, .25);
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: pcSpin .8s linear infinite;
}
@keyframes pcSpin { to { transform: rotate(360deg); } }

/* 商品说明区块（XSS 清洗后注入，仅保留白名单标签） */
.pc-desc {
  line-height: 1.9;
  font-size: 13.5px;
  word-break: break-word;
}
.pc-desc p, .pc-desc div { margin: 4px 0; }
.pc-desc ul, .pc-desc ol { margin: 6px 0 6px 20px; }
.pc-desc table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.pc-desc th, .pc-desc td { border: 1px solid rgba(148, 163, 184, .18); padding: 6px 10px; }
.pc-desc img { max-width: 100%; border-radius: 8px; }

/* 套餐 chips 换行保护 */
.sec .chip { white-space: nowrap; }

/* LightNode 登录凭证 */
.ln-credential { overflow: visible !important; }
.ln-credential .ln-field { margin-top: 14px; }
.ln-sub-label { color: var(--sub, #94A3B8); font-size: 13px; margin-bottom: 8px; }
.ln-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 10px;
  background: #1E293B;
  color: #E5E7EB;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ln-input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.ln-input:disabled { opacity: .65; background: rgba(255, 255, 255, .06); cursor: not-allowed; }
.ln-input.invalid { border-color: #FB7185; }
.ln-input-wrap, .ln-pwd-box { position: relative; }
.ln-input-wrap .ln-input { padding-left: 42px; }
.ln-pwd-box .ln-input { padding-left: 42px; padding-right: 48px; }
.ln-input-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94A3B8;
  pointer-events: none;
}
.ln-input-ico svg { width: 100%; height: 100%; fill: currentColor; }
.ln-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(148, 163, 184, .18);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}
.ln-tab {
  height: 44px;
  border: 0;
  background: transparent;
  color: #CBD5E1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}
.ln-tab.on { background: linear-gradient(90deg, #3B82F6, #8B5CF6); color: #fff; font-weight: 600; }
.ln-tab:disabled { opacity: .45; cursor: not-allowed; }
.ln-cred-body {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 0 0 12px 12px;
  padding: 18px;
  background: rgba(255, 255, 255, .02);
}
.ln-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ln-eye svg { width: 20px; height: 20px; fill: currentColor; }
.ln-rules {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 163, 184, .14);
  color: #CBD5E1;
  border-radius: 10px;
  padding: 10px 14px;
  display: block;
}
.ln-rules li { display: flex; gap: 8px; align-items: flex-start; margin: 7px 0; font-size: 13px; line-height: 1.5; }
.ln-rules svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ln-rules li.ok svg { fill: #22C55E; }
.ln-rules li.no svg { fill: #CBD5E1; }
.ln-field-hint { margin-top: 8px; color: #94A3B8; font-size: 12px; line-height: 1.7; }
.ln-field-msg.bad { color: #FB7185; font-size: 12.5px; margin-top: 8px; }
.ln-safe-tip {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 10px;
  padding: 10px 12px;
  color: #94A3B8;
  font-size: 12.5px;
  line-height: 1.7;
}
.ln-safe-tip span {
  flex: 0 0 18px;
  height: 18px;
  border: 1px solid #3B82F6;
  color: #3B82F6;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.ln-empty-tip {
  border: 1px dashed rgba(148, 163, 184, .25);
  border-radius: 10px;
  padding: 14px;
  color: #94A3B8;
  font-size: 13px;
  line-height: 1.7;
}
.ln-select { cursor: pointer; }
@media (max-width: 640px) {
  .ln-cred-body { padding: 14px; }
}
