﻿:root {
  --bg-top: #f2f7ff;
  --bg-bottom: #e6eefb;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-border: rgba(160, 184, 222, 0.46);
  --text-main: #16233d;
  --text-sub: #526582;
  --brand: #2452d4;
  --brand-soft: #dce8ff;
  --ok-bg: #e7f7ed;
  --ok-text: #0a7c3b;
  --unknown-bg: #eef2f8;
  --unknown-text: #586581;
  --bad-bg: #fdeceb;
  --bad-text: #b42318;
  --warn-bg: #fff6e3;
  --warn-text: #8f6400;
  --shadow: 0 12px 30px rgba(24, 45, 88, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-main);
  background: linear-gradient(170deg, var(--bg-top), var(--bg-bottom));
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(48px);
  z-index: -1;
}

body::before {
  width: 360px;
  height: 360px;
  left: -100px;
  top: -120px;
  background: rgba(64, 126, 255, 0.2);
}

body::after {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -110px;
  background: rgba(54, 214, 177, 0.16);
}

body.site-masked .page-shell {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

body.site-masked {
  overflow: hidden;
}

.page-shell {
  width: min(1120px, 92vw);
  margin: 24px auto 44px;
  animation: fade-up 360ms ease;
}

.hero {
  background: radial-gradient(circle at 14% 24%, var(--brand-soft), rgba(255, 255, 255, 0.96) 58%);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
  text-transform: uppercase;
}

#site-title {
  margin: 8px 0;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
}

.hero-meta {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

.error-panel {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid #f9c8c3;
  background: #fff4f2;
  color: #912018;
  padding: 12px 14px;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

.content-grid {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(6px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.panel-header-spread {
  justify-content: space-between;
}

.outline-btn {
  border: 1px solid #b8c8e7;
  background: #ffffff;
  color: #203056;
  border-radius: 10px;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.outline-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(36, 82, 212, 0.14);
}

.outline-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(36, 82, 212, 0.16);
}

.outline-btn.is-loading {
  position: relative;
  padding-left: 30px;
}

.outline-btn.is-loading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #c8d7fa;
  border-top-color: #2452d4;
  animation: verify-spin 0.8s linear infinite;
}

.outline-btn:disabled {
  cursor: not-allowed;
  color: #8b98b1;
  border-color: #d2d8e5;
  background: #f7f9fc;
  transform: none;
  box-shadow: none;
}

.polling-label {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-sub);
}

.locked-tip {
  margin: 0 0 10px;
  border: 1px solid #ffe0ab;
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.placeholder {
  margin: 0;
  color: var(--text-sub);
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-card {
  border: 1px solid #e4ebf8;
  border-radius: 12px;
  padding: 12px;
  background: #fcfdff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notice-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(31, 74, 160, 0.08);
}

.notice-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-title {
  margin: 0;
  font-size: 16px;
}

.notice-date {
  font-size: 12px;
  color: var(--text-sub);
}

.notice-pin {
  font-size: 12px;
  background: #fff1cc;
  color: #8b5e00;
  border-radius: 999px;
  padding: 2px 8px;
}

.notice-body {
  margin-top: 8px;
  color: #2c3a56;
  line-height: 1.65;
}

.notice-body h1,
.notice-body h2,
.notice-body h3,
.notice-body h4,
.notice-body h5,
.notice-body h6 {
  margin: 8px 0;
  font-size: 15px;
}

.notice-body p {
  margin: 8px 0;
}

.notice-body ul {
  margin: 8px 0;
  padding-left: 18px;
}

.notice-body a {
  color: var(--brand);
  text-decoration: none;
}

.notice-body a:hover {
  text-decoration: underline;
}

.verify-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 17, 0.96);
  backdrop-filter: blur(3px);
  padding: 16px;
}

.verify-card {
  width: min(420px, 96vw);
  border-radius: 14px;
  border: 1px solid #cfdbf5;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.verify-title {
  margin: 0;
  font-size: 18px;
}

.verify-desc {
  margin: 8px 0 12px;
  color: var(--text-sub);
  font-size: 14px;
}

.turnstile-container {
  min-height: 78px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.turnstile-loading {
  min-height: 78px;
  width: 100%;
  border-radius: 12px;
  border: 1px dashed #cfdaf1;
  background: linear-gradient(120deg, #f5f8ff, #eef4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #425375;
  font-size: 13px;
  background-size: 220% 220%;
  animation: loading-wave 2.4s ease infinite;
}

.turnstile-loading.hidden {
  display: none;
}

.turnstile-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c8d7fa;
  border-top-color: #2452d4;
  animation: verify-spin 0.8s linear infinite;
}
.verify-feedback {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}

.verify-feedback.ok {
  color: var(--ok-text);
  animation: pass-pop 0.45s ease;
}

.verify-feedback.warn {
  color: var(--warn-text);
}

.verify-feedback.error {
  color: var(--bad-text);
}

.verify-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.link-groups {
  display: grid;
  gap: 12px;
}

.link-group {
  border: 1px solid #e5ebf8;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.link-group-title {
  margin: 0;
  font-size: 16px;
}

.link-group-subtitle {
  margin: 4px 0 10px;
  color: var(--text-sub);
  font-size: 13px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.link-item {
  border: 1px solid #e6ecf8;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-item:hover {
  transform: translateY(-1px);
  border-color: #c8d8f8;
  box-shadow: 0 10px 18px rgba(36, 82, 212, 0.08);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-anchor {
  color: #1d45b8;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.link-anchor:hover {
  text-decoration: underline;
}

.link-meta {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-sub);
}

.link-tag {
  background: #edf2ff;
  color: #254aa8;
  border-radius: 999px;
  padding: 2px 8px;
}

.status-badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-probable {
  background: linear-gradient(120deg, #def7e7, #eafaf0);
  color: var(--ok-text);
  box-shadow: inset 0 0 0 1px rgba(17, 142, 74, 0.16);
  animation: pass-glow 1.8s ease-in-out infinite;
}

.status-unknown {
  background: var(--unknown-bg);
  color: var(--unknown-text);
}

.status-challenge {
  background: #fff2e2;
  color: #a55b03;
}

.status-timeout {
  background: #ffe9cc;
  color: #a04b00;
}

.status-error {
  background: var(--bad-bg);
  color: var(--bad-text);
}

.noscript-note {
  width: min(1100px, 92vw);
  margin: 14px auto 24px;
  border: 1px solid #f7d9a7;
  border-radius: 12px;
  background: #fff8ea;
  color: #7a5303;
  padding: 10px 12px;
}

@media (min-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr 1.08fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: 94vw;
    margin-top: 14px;
  }

  .hero,
  .panel {
    border-radius: 14px;
    padding: 14px;
  }

  .panel-header-spread {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }

  .outline-btn {
    width: 100%;
  }

  .link-row {
    align-items: flex-start;
  }
}

.debug-shield {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: #04070f;
  padding: 16px;
}

.debug-shield-card {
  width: min(520px, 96vw);
  border: 1px solid #283142;
  border-radius: 12px;
  background: #0f1523;
  color: #dce6ff;
  padding: 16px;
}

.debug-shield-card h3 {
  margin: 0;
  font-size: 18px;
}

.debug-shield-card p {
  margin: 8px 0 0;
  line-height: 1.6;
  color: #b8c6ea;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes verify-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}



@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #0f1628;
    --bg-bottom: #0a1020;
    --panel: rgba(16, 24, 42, 0.9);
    --panel-border: rgba(84, 104, 144, 0.42);
    --text-main: #e6eeff;
    --text-sub: #9db1d8;
    --brand: #78a6ff;
    --brand-soft: rgba(55, 89, 170, 0.24);
    --ok-bg: rgba(17, 117, 68, 0.24);
    --ok-text: #7be0a9;
    --unknown-bg: rgba(65, 78, 106, 0.3);
    --unknown-text: #c8d5f2;
    --bad-bg: rgba(166, 40, 56, 0.24);
    --bad-text: #ff9dac;
    --warn-bg: rgba(149, 108, 25, 0.24);
    --warn-text: #ffd384;
    --shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  }

  .outline-btn {
    background: rgba(22, 34, 58, 0.8);
    color: #d4e1ff;
    border-color: rgba(98, 123, 173, 0.6);
  }

  .link-item,
  .notice-card,
  .link-group {
    background: rgba(14, 22, 40, 0.72);
    border-color: rgba(80, 104, 148, 0.36);
  }

  .verify-card {
    background: #111a2f;
    border-color: rgba(97, 122, 171, 0.5);
    color: var(--text-main);
  }

  .turnstile-loading {
    border-color: rgba(85, 111, 162, 0.55);
    background: linear-gradient(120deg, rgba(31, 45, 74, 0.75), rgba(23, 36, 62, 0.72));
    color: #b8c9ef;
  }
}

@keyframes loading-wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pass-glow {
  0% { box-shadow: inset 0 0 0 1px rgba(17, 142, 74, 0.16), 0 0 0 rgba(49, 182, 102, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(17, 142, 74, 0.24), 0 0 14px rgba(49, 182, 102, 0.2); }
  100% { box-shadow: inset 0 0 0 1px rgba(17, 142, 74, 0.16), 0 0 0 rgba(49, 182, 102, 0); }
}

@keyframes pass-pop {
  0% { opacity: 0.3; transform: translateY(2px); }
  100% { opacity: 1; transform: translateY(0); }
}
