/*
 * 元素周期表 - 页面私有样式（金属质感主题：枪灰底 · 拉丝钢 · 紫铜/黄铜/钢青/玫瑰金分类色泽）
 * 本页为深色金属主题：body/header/footer/links-section/info-section 等公共区块在此按本页覆写，
 * 样式随本文件仅在 /yuansuzhouqibiao/ 页面加载，不影响站点其他页面。
 */

/* ══════════ 页面基调 ══════════ */
body {
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(140, 160, 180, 0.14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    linear-gradient(180deg, #1d2126 0%, #171a1e 100%);
  color: #cfd4da;
}
.container a { color: #b8935a; }
.container a:hover { color: #d9b36a; }

header h1 {
  background: linear-gradient(180deg, #f4f6f8 0%, #c3c9d1 42%, #8d959f 58%, #dfe3e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}
header p { color: #939aa4; }
header > span { color: #7d848e; }

::selection { background: rgba(184, 147, 90, 0.45); color: #fff; }

/* ══════════ 金属面板通用质感 ══════════ */
.pt-stage,
.info-section,
.links-section {
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    linear-gradient(165deg, #262b31 0%, #1f2429 55%, #191d22 100%);
  border: 1px solid #0d0f12;
  border-top-color: rgba(255, 255, 255, 0.22);
  border-left-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius, 12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -14px 22px -18px rgba(0, 0, 0, 0.8),
    0 4px 14px rgba(0, 0, 0, 0.45);
}
.info-section h2,
.links-section h2 {
  color: #e8ebef;
  padding-left: 12px;
  border-left: 4px solid #b8935a;
  line-height: 1.35;
}

/* ══════════ 周期表主区 ══════════ */
.pt-stage { margin-top: 20px; padding: 22px 22px 18px; }

.pt-stat-line {
  text-align: center;
  font-size: 16px;
  color: #b9c0c9;
  margin: 0 0 18px;
}
.pt-stat-line strong {
  color: #e6c987;
  font-size: 21px;
  padding: 0 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pt-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #7d848e;
  text-align: center;
}
.pt-hint-tight { text-align: left; margin-top: 10px; }

/* ── 工具栏 ── */
.pt-toolbar {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 14px 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}
.pt-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #d9b36a;
  letter-spacing: 2px;
  margin-right: 10px;
}
.pt-search-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-search-bar input {
  flex: 1;
  min-width: 230px;
  font-size: 15px;
  padding: 9px 14px;
  color: #e8ebef;
  outline: none;
  border-radius: 8px;
  border: 1px solid #0d0f12;
  border-top-color: rgba(0, 0, 0, 0.7);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.18)),
    #22262c;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pt-search-bar input:focus {
  border-color: #b8935a;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(184, 147, 90, 0.25);
}
.pt-search-bar input::placeholder { color: #6b727c; }
.pt-search-count { font-size: 13px; color: #939aa4; white-space: nowrap; }

.pt-modes {
  display: inline-flex;
  gap: 0;
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #0d0f12;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.pt-mode {
  padding: 7px 18px;
  font-size: 13.5px;
  color: #aab1bb;
  cursor: pointer;
  border: none;
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    linear-gradient(180deg, #2c323a 0%, #23272e 100%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  transition: filter 0.15s, color 0.15s;
}
.pt-mode + .pt-mode { border-left: 1px solid rgba(0, 0, 0, 0.55); }
.pt-mode:hover { filter: brightness(1.18); }
.pt-mode.is-on {
  color: #f0e2c4;
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    linear-gradient(180deg, #6e5a36 0%, #4c3f26 100%);
  box-shadow: inset 0 1px 0 rgba(255, 224, 168, 0.35), inset 0 -8px 12px -8px rgba(0, 0, 0, 0.6);
}

.pt-temp-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.pt-temp-row[hidden] { display: none; }
.pt-temp-row input[type="range"] {
  flex: 1;
  min-width: 180px;
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  border-radius: 999px;
  border: 1px solid #0d0f12;
  background:
    linear-gradient(180deg, #0e1013 0%, #3a4149 45%, #565f6a 52%, #262b31 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.pt-temp-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.7);
  background:
    radial-gradient(circle at 32% 30%, #fff 0%, #dfe3e8 28%, #9aa2ac 62%, #5b636d 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.pt-temp-row input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.7);
  background: radial-gradient(circle at 32% 30%, #fff 0%, #dfe3e8 28%, #9aa2ac 62%, #5b636d 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.pt-temp-val {
  font-size: 14px;
  font-weight: 700;
  color: #e6c987;
  min-width: 110px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.pt-state-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #939aa4;
}
.pt-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-left: 8px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pt-dot-solid { background: linear-gradient(160deg, #7fa2bd, #46678a); }
.pt-dot-liquid { background: linear-gradient(160deg, #74c4b4, #2f7d6e); }
.pt-dot-gas { background: linear-gradient(160deg, #e09a6a, #9c4f26); }
.pt-dot-unknown { background: linear-gradient(160deg, #6a7280, #3a414b); }

/* ── 分类图例 ── */
.pt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pt-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  font-size: 13px;
  color: #dfe3e8;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-top-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.2)),
    #2c323a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: filter 0.15s, transform 0.15s;
}
.pt-chip:hover { filter: brightness(1.2); }
.pt-chip small { font-size: 11px; color: #939aa4; }
.pt-chip-i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%),
    var(--c, #555c66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.pt-chip.is-on {
  filter: brightness(1.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 2px rgba(184, 147, 90, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── 周期表网格 ── */
.pt-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  padding: 6px 2px 10px;
}
.pt-grid {
  display: grid;
  grid-template-columns: 30px repeat(18, minmax(56px, 1fr));
  grid-auto-rows: minmax(62px, auto);
  gap: 4px;
  min-width: 1150px;
}

.pt-axis {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: normal;
  color: #6b727c;
  user-select: none;
}
.pt-axis.pt-g { align-items: flex-end; padding-bottom: 2px; color: #7d848e; }
.pt-axis.pt-p-f { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 2px; font-size: 10px; }

.pt-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-top-color: rgba(255, 255, 255, 0.38);
  border-left-color: rgba(255, 255, 255, 0.14);
  /* 拉丝金属：细划痕 + 斜向高光渐变 + 分类底色 */
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.055) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    linear-gradient(158deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.07) 32%, rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, 0.24) 100%),
    var(--c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -8px 12px -6px rgba(0, 0, 0, 0.45),
    0 2px 3px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s, opacity 0.2s;
  font-family: inherit;
}
.pt-cell:hover,
.pt-cell:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.15);
  z-index: 3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -8px 12px -6px rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 0 12px var(--c);
}
.pt-cell-n {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 9px;
  font-style: normal;
  opacity: 0.85;
}
.pt-cell-sym {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.5px;
}
.pt-cell-zh { font-size: 11.5px; line-height: 1.3; opacity: 0.95; }
.pt-cell-mass {
  font-size: 8.5px;
  line-height: 1.4;
  opacity: 0.72;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pt-cell.dim { opacity: 0.16; filter: saturate(0.3); }
.pt-cell.flash { animation: ptFlash 1.6s ease; }

@keyframes ptFlash {
  0%, 55% { box-shadow: 0 0 0 3px rgba(230, 201, 135, 0.85), 0 0 16px rgba(230, 201, 135, 0.6); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 3px rgba(0, 0, 0, 0.45); }
}

/* ── f 区占位块 ── */
.pt-fblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 13px;
  font-weight: 700;
  color: #cfd4da;
  cursor: pointer;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2)),
    rgba(255, 255, 255, 0.03);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: filter 0.15s;
  font-family: inherit;
}
.pt-fblock small { font-size: 10.5px; font-weight: 400; color: #939aa4; }
.pt-fblock:hover { filter: brightness(1.5); }

/* ── 温度三态模式：按状态覆盖分类底色（金属渐变栈保持不变） ── */
.pt-grid[data-mode="temp"] .pt-cell[data-st="solid"] { --c: #4e7391; }
.pt-grid[data-mode="temp"] .pt-cell[data-st="liquid"] { --c: #358b7a; }
.pt-grid[data-mode="temp"] .pt-cell[data-st="gas"] { --c: #b45f2e; }

/* ══════════ 分类铭牌 ══════════ */
.pt-plaques {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.pt-plaque {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-top-color: rgba(255, 255, 255, 0.3);
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.18)),
    color-mix(in srgb, var(--c) 30%, #21252b);
}
@supports not (background: color-mix(in srgb, red 30%, blue)) {
  .pt-plaque { background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.18)), #262b31; }
}
.pt-plaque h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  color: #f0f2f5;
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.pt-plaque h3 small { font-size: 11.5px; font-weight: 400; color: #aab1bb; margin-left: auto; }
.pt-plaque-i {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 60%),
    var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.pt-plaque p { font-size: 13.5px; line-height: 1.8; color: #b9c0c9; margin: 0; }
.pt-plaque-members {
  margin-top: 8px !important;
  font-size: 12px !important;
  color: #8d959f !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  padding-top: 8px;
}

/* ══════════ 一览表 ══════════ */
.pt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pt-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}
.pt-table th {
  background: linear-gradient(180deg, #3a4149 0%, #262b31 100%);
  color: #dfe3e8;
  font-weight: 600;
  padding: 9px 10px;
  border: 1px solid #0d0f12;
  border-top-color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.pt-table td {
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  color: #b9c0c9;
  line-height: 1.7;
  vertical-align: top;
}
.pt-table tbody tr { background: rgba(255, 255, 255, 0.02); cursor: pointer; }
.pt-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.05); }
.pt-table tbody tr:hover { background: rgba(184, 147, 90, 0.14); }
.pt-table td b { color: #e8ebef; }
.pt-table-cfg { font-family: Consolas, Monaco, monospace; font-size: 12px; white-space: nowrap; }
.pt-table-cat {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #14171b;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1) 60%), var(--c);
  border: 1px solid rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* ══════════ 趣味知识 / FAQ（深色版） ══════════ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.info-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.info-item h3 {
  font-size: 15.5px;
  color: #e6c987;
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.info-item p { font-size: 13.5px; line-height: 1.85; color: #aab1bb; margin: 0; }
.info-item strong { color: #dfe3e8; }

.faq-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.faq-item h3 { font-size: 15.5px; color: #e8ebef; margin: 0 0 8px; }
.faq-item p { font-size: 14px; line-height: 1.85; color: #aab1bb; margin: 0; }

/* ══════════ 友情链接 / 工具导航 / footer 深色覆写 ══════════ */
.links-grid a {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(255, 255, 255, 0.16);
  color: #b9c0c9;
}
.links-grid a:hover {
  border-color: #b8935a;
  color: #e6c987;
  background: rgba(184, 147, 90, 0.12);
}
.tool-cat-title { color: #dfe3e8; }
footer { border-top-color: rgba(255, 255, 255, 0.1); }
footer p { color: #7d848e; }
footer .copyright a { color: #939aa4; }
footer .copyright a:hover { color: #d9b36a; }

/* ══════════ 元素详情弹窗 ══════════ */
.pt-modal { position: fixed; inset: 0; z-index: 999; }
.pt-modal[hidden] { display: none; }
.pt-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.8);
  backdrop-filter: blur(3px);
}
.pt-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 720px);
  display: grid;
  grid-template-columns: 232px 1fr;
  /* 滚动收在内层属性区：避免两侧外露的 ‹ › 导航钮撑出横向滚动条 */
  grid-template-rows: minmax(0, 1fr);
  border-radius: 14px;
  border: 1px solid #0d0f12;
  border-top-color: rgba(255, 255, 255, 0.3);
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.02) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    linear-gradient(165deg, #2a2f36 0%, #20242a 60%, #1a1e23 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.7);
  animation: ptPop 0.22s ease;
}
@keyframes ptPop {
  from { transform: translate(-50%, -48%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

/* 左侧金属铭牌 */
.pt-modal-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 26px 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: inset -8px 0 16px -12px rgba(0, 0, 0, 0.7);
  background:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    linear-gradient(158deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.06) 34%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.26)),
    var(--c, #555c66);
  border-radius: 14px 0 0 14px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}
.pt-m-n { font-size: 12px; opacity: 0.9; }
.pt-m-sym { font-size: 58px; font-weight: 900; line-height: 1.1; letter-spacing: 1px; }
.pt-m-zh { font-size: 26px; font-weight: 700; }
.pt-m-en { font-size: 13px; opacity: 0.92; }
.pt-m-py { font-size: 12.5px; opacity: 0.85; }
.pt-m-cat {
  margin-top: 12px;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 右侧属性区（内层滚动容器） */
.pt-modal-info {
  padding: 20px 22px 18px;
  overflow-y: auto;
  min-height: 0;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: #3a4149 transparent;
}
.pt-modal-info::-webkit-scrollbar { width: 8px; }
.pt-modal-info::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4a525c, #333a42);
  border-radius: 4px;
  border: 2px solid #20242a;
}
.pt-modal-info::-webkit-scrollbar-track { background: transparent; }
.pt-modal-info h3 { font-size: 15px; color: #e6c987; margin: 0 0 10px; }
.pt-props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px 16px;
  margin: 0;
}
.pt-props > div {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}
.pt-props dt { flex: 0 0 62px; color: #7d848e; }
.pt-props dd { margin: 0; color: #dfe3e8; word-break: break-all; }
.pt-shells { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.pt-shell {
  font-size: 11.5px;
  font-family: Consolas, Monaco, monospace;
  color: #e8ebef;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-top-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2)), #2c323a;
}
.pt-desc, .pt-disc {
  margin: 12px 0 0 !important;
  font-size: 13.5px !important;
  line-height: 1.9 !important;
  color: #b9c0c9 !important;
}
.pt-disc strong { color: #d9b36a; font-weight: 600; margin-right: 6px; }
.pt-desc strong { color: #d9b36a; font-weight: 600; margin-right: 6px; }

.pt-modal-close, .pt-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e8ebef;
  /* 字形交给伪元素几何绘制（font-size:0 隐藏文本），保证视觉绝对居中 */
  font-size: 0;
  border: 1px solid rgba(0, 0, 0, 0.65);
  border-top-color: rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.25)),
    #2c323a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: filter 0.15s;
  font-family: inherit;
}
.pt-modal-close:hover, .pt-nav:hover { filter: brightness(1.25); }
.pt-modal-close {
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.pt-modal-close::before,
.pt-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.pt-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.pt-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pt-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 44px;
  border-radius: 8px;
}
.pt-prev::before,
.pt-next::before {
  content: "";
  width: 11px;
  height: 11px;
}
.pt-prev::before {
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(2px, -2px);
}
.pt-next::before {
  border-right: 2.5px solid currentColor;
  border-top: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
}
.pt-prev { left: -14px; }
.pt-next { right: -14px; }

/* 焦点可见性（键盘可达） */
.pt-cell:focus-visible, .pt-chip:focus-visible, .pt-mode:focus-visible,
.pt-fblock:focus-visible, .pt-nav:focus-visible, .pt-modal-close:focus-visible,
.pt-table tbody tr:focus-visible {
  outline: 2px solid #d9b36a;
  outline-offset: 1px;
}

/* ══════════ 响应式 ══════════ */
@media (max-width: 720px) {
  .pt-stage { padding: 16px 12px 14px; }
  .pt-stat-line { font-size: 14.5px; }
  .pt-search-bar input { min-width: 0; width: 100%; }
  .pt-temp-row { align-items: flex-start; }
  .pt-temp-val { min-width: 0; }
  .pt-plaques, .info-grid { grid-template-columns: 1fr; }
  .pt-modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 88vh;
  }
  .pt-modal-plate {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 14px 14px 0 0;
    padding: 18px 16px;
    box-shadow: inset 0 -8px 16px -12px rgba(0, 0, 0, 0.7);
  }
  .pt-m-sym { font-size: 44px; }
  .pt-props { grid-template-columns: 1fr; }
  .pt-modal-info { padding-bottom: 64px; }  /* 给底部悬浮 ‹ › 导航钮留出空间，末行文字不被压住 */
  .pt-prev { left: 6px; }
  .pt-next { right: 6px; }
  .pt-nav { top: auto; bottom: 12px; transform: none; }
}
