/* ═══════════════════════════════════════════════════════════════════════
   security.css —— 安全中心页独有样式
   基准：G:\腾讯UI\tdesign-console-multi\security.html + assets/style.css
   仅写原型未提供、本页新增的结构；组件级样式一律走 style.css / refine.css
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 安全评分卡 ───────────────────────────────────────────────────────── */
.sec-score {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  flex-wrap: wrap;
}
.sec-ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex: none;
}
.sec-ring svg {
  display: block;
}
.sec-ring-txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 2px;
  align-content: center;
}
.sec-ring-txt b {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
}
.sec-ring-txt span {
  display: block;
  margin-top: 2px;
}
.sec-advice {
  flex: 1;
  min-width: 200px;
}
.sec-advice > b {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
}
.sec-advice > p {
  margin-top: 6px;
  line-height: 20px;
}
.sec-advice-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ── 安全概览卡 ───────────────────────────────────────────────────────── */
.sec-ov {
  padding-top: 4px;
}

/* ── 相关安全设置（对齐原型 .ov2-fav 交互）────────────────────────────── */
.sec-rel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
}
.sec-rel-it {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-m);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s;
}
.sec-rel-it:hover,
.sec-rel-it:focus-visible {
  background: var(--td-b1);
  border-color: var(--td-b2);
}
.sec-rel-it:focus-visible {
  outline: 2px solid var(--td-b7);
  outline-offset: 1px;
}
.sec-rel-it .qic {
  width: 36px;
  height: 36px;
  border-radius: var(--r-d);
  background: var(--td-g1);
  color: var(--td-b7);
  display: grid;
  place-items: center;
  flex: none;
}
.sec-rel-it .qic .ic {
  width: 20px;
  height: 20px;
}
.sec-rel-it .fav-txt {
  flex: 1;
  min-width: 0;
}
.sec-rel-it .fav-txt b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sec-rel-it .fav-txt > span {
  display: block;
  font-size: 12px;
  color: var(--t3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.sec-rel-it .fav-go {
  color: var(--t4);
  font-size: 16px;
  flex: none;
  transition: color .15s, transform .15s;
}
.sec-rel-it:hover .fav-go {
  color: var(--td-b7);
  transform: translateX(2px);
}

/* ── 弹窗（复用 el-dialog，视觉对齐原型 .modal）────────────────────────── */
.sec-dlg .sec-dlg-hd {
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  line-height: 24px;
}
.sec-dlg .sec-dlg-bd {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-dlg .sec-dlg-bd > p {
  font-size: 14px;
  color: var(--t2);
  line-height: 22px;
}
.sec-dlg .sec-dlg-ft {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 20px;
}
.sec-dlg .alert-text {
  margin-top: 0;
}
.sec-kv {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
.sec-kv .sec-kv-wide {
  grid-column: 1 / -1;
}
.sec-kv .lb {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 4px;
}
.sec-kv .vl {
  font-size: 14px;
  color: var(--t1);
  word-break: break-all;
}
.sec-secret {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--td-g1);
  border: 1px solid var(--td-g3);
  border-radius: var(--r-d);
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 18px;
}
.sec-secret .copy {
  flex: none;
  color: var(--td-b7);
  cursor: pointer;
  font-family: var(--font-ui);
}
.sec-secret .copy:hover {
  text-decoration: underline;
}
.sec-switch {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sec-switch b {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
}
.sec-switch p {
  margin-top: 4px;
  line-height: 18px;
}
.yellow {
  color: var(--war6);
}

/* ── 响应式 ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .sec-rel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .sec-score {
    gap: 20px;
  }
  .sec-ring {
    width: 108px;
    height: 108px;
  }
  .sec-ring svg {
    width: 108px;
    height: 108px;
  }
  .sec-ring-txt b {
    font-size: 26px;
  }
  .sec-rel {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .sec-kv {
    grid-template-columns: 1fr;
  }
}
