/* ==========================================================================
   站点面板 · 在 CDQZ 交接样式之上的一层
   --------------------------------------------------------------------------
   只使用 assets/cdqz/css/style.css 的令牌（--bg / --ink / --accent / --line …），
   不新增配色；字体沿用交接包的 Google Sans Flex 与华文隶书子集。
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 顶栏 */
.brand__text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
.nav--plain { gap: 2px; }
.nav--plain .nav__word {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 450;
  color: var(--ink);
  cursor: default;
  user-select: none;
}
@media (max-width: 900px) {
  .nav--plain { display: none; }
}

/* ---------------------------------------------------------------- 首屏 */
.hero {
  height: min(760px, 88svh);
  min-height: 600px;
}
.hero__content {
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(40px, 9vh, 96px));
}
.cdqz-title {
  margin: 0;
  font-family: 'Songti SC', 'STSong', 'SimSun', '宋体', 'Noto Serif CJK SC', 'AR PL UMing CN', serif;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .02em;
  text-align: center;
  color: var(--hero-title);
  text-wrap: balance;
}
.cdqz-title {
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.cdqz-sub {
  margin: clamp(14px, 2vw, 22px) 0 0;
  text-shadow: 0 1px 16px rgba(255, 255, 255, .8);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 450;
  letter-spacing: .01em;
  text-align: center;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
}

/* 首屏按钮：左蓝右灰，比默认胶囊大一号 */
.hero__actions { gap: 14px; bottom: clamp(40px, 7vh, 72px); }
.hero__pill--primary,
.hero__pill--mode {
  height: 54px;
  padding: 0 34px;
  font-size: 16px;
  font-weight: 500;
}
.hero__pill--primary {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(26, 115, 232, .28);
}
.hero__pill--primary:hover {
  background: var(--accent);
  filter: brightness(1.06);
  color: #ffffff;
}
html[data-theme='dark'] .hero__pill--primary,
html[data-theme='dark'] .hero__pill--primary:hover {
  background: var(--accent);
  border-color: transparent;
  color: #0b1220;
}
.hero__pill--mode {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(18, 19, 23, .12);
  color: #101827;
}
html[data-theme='dark'] .hero__pill--mode {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .24);
  color: #f4f6fa;
}

/* ---------------------------------------------------------------- 列表区 */
.panel-section {
  background: var(--bg);
  padding-block: clamp(48px, 6vw, 84px) clamp(64px, 8vw, 104px);
}
.panel-wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.panel-title {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
.panel-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.panel-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink-3);
}
.panel-search svg {
  position: absolute;
  left: 15px;
  pointer-events: none;
}
.panel-search input {
  width: clamp(180px, 26vw, 280px);
  height: 40px;
  padding: 0 18px 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.panel-search input::placeholder { color: var(--ink-3); }
.panel-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .14);
}
.panel-btn {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.panel-btn:hover { background: var(--surface); border-color: var(--ink-3); }

/* ---------------------------------------------------------------- 站点行 */
.site-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: 16px clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.site-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
}
.site-main { min-width: 0; }
.site-name {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-desc {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 450;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-addr {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.site-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.site-dot[data-status="up"] { background: #34a853; }
.site-dot[data-status="down"] { background: #e8710a; }
.site-dot[data-status="checking"] { background: var(--accent); animation: dot-pulse 1s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: .3; } }

.site-actions { display: inline-flex; align-items: center; gap: 8px; }
.site-open {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .2s var(--ease);
}
.site-open:hover { filter: brightness(1.06); }
html[data-theme='dark'] .site-open { color: #0b1220; }
.site-copy {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-copy:hover { background: var(--surface); color: var(--ink); }

.panel-empty {
  margin: 0;
  padding: 40px 0;
  color: var(--ink-3);
  font-size: 15px;
}
.panel-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.panel-quick a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.panel-quick a:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------------------------------------------------------------- 页脚 */
.panel-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 26px;
  color: var(--ink-3);
  font-size: var(--fs-meta);
}
.panel-footer .panel-wrap { text-align: center; }

/* ---------------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 760px) {
  .hero { min-height: min(640px, 88svh); }
  .cdqz-title { font-size: clamp(28px, 8vw, 40px); }
  .hero__pill--primary,
  .hero__pill--mode { height: 48px; padding: 0 24px; font-size: 15px; }
  .site-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon main actions"
      "addr addr addr";
    row-gap: 10px;
  }
  .site-icon { grid-area: icon; width: 36px; height: 36px; font-size: 22px; }
  .site-main { grid-area: main; }
  .site-addr { grid-area: addr; }
  .site-dot { display: none; }
  .site-actions { grid-area: actions; }
  .panel-search input { width: 100%; }
  .panel-search { flex: 1 1 100%; }
  .panel-tools { width: 100%; }
}

/* ---------------------------------------------------------------- 顶栏锚点 */
.nav--plain a.nav__word {
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  transition: background-color .2s var(--ease);
}
.nav--plain a.nav__word:hover { background: var(--surface); }

/* ---------------------------------------------------------------- 照片背景 */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 12, 16, .58) 0%,
    rgba(10, 12, 16, .26) 40%,
    rgba(10, 12, 16, .66) 100%);
}
html[data-theme='dark'] .hero__scrim {
  background: linear-gradient(180deg,
    rgba(8, 10, 14, .66) 0%,
    rgba(8, 10, 14, .40) 40%,
    rgba(8, 10, 14, .78) 100%);
}
.hero__pill--mode { text-decoration: none; }

/* ---------------------------------------------------------------- 行内“内网/短链” */
.site-alt {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.site-alt:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-3); }


/* 首屏上的顶栏：照片是深色遮罩，文字转白；滚动后恢复主题色 */
.site-header:not(.is-scrolled) .brand__text,
.site-header:not(.is-scrolled) .nav--plain a.nav__word {
  color: #ffffff;
}
.site-header:not(.is-scrolled) .nav--plain a.nav__word:hover {
  background: rgba(255, 255, 255, .16);
}
