:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --paper: #ffffff;
  --ink: #171a20;
  --muted: #5d6471;
  --quiet: #8a92a0;
  --line: #dfe3e8;
  --line-strong: #c9ced6;
  --accent: #1f497d;
  --accent-soft: #eef3f8;
  --shadow: 0 18px 60px rgba(23, 26, 32, 0.08);
  --radius: 10px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

.page-shell,
.site-header,
.summary-strip,
.credential-layout {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper);
}

.site-header > div:first-child,
.preview-heading > div {
  min-width: 0;
}

.site-label,
.preview-heading p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  word-break: break-word;
}

.verification-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #c7d9ee;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.verification-mark span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2f7d4f;
  box-shadow: 0 0 0 4px rgba(47, 125, 79, 0.12);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
}

.summary-strip article {
  min-width: 0;
  padding: 22px 28px;
}

.summary-strip article + article {
  border-left: 1px solid var(--line);
}

.summary-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.summary-strip strong {
  display: block;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 31px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.credential-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-pane,
.info-pane {
  min-width: 0;
  padding: 28px;
}

.preview-pane {
  border-right: 1px solid var(--line);
}

.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.preview-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.12;
}

.text-link {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nft-frame {
  margin: 0;
}

.image-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.image-zoom img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef0f3;
}

.zoom-control {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(23, 26, 32, 0.72);
  color: #fff;
  backdrop-filter: blur(10px);
}

.zoom-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

figcaption {
  margin-top: 12px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.info-section + .info-section {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.info-section h2 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metadata-list {
  margin: 0;
}

.metadata-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.metadata-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

dt {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 650;
}

.note-section p {
  margin: 0;
  color: #353b45;
  font-size: 15px;
  line-height: 1.78;
}

.note-section .activity {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.note-section .blessing {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
}

.error-panel {
  margin-top: 18px;
  padding: 22px 28px;
  border: 1px solid #efc5c5;
  border-radius: var(--radius);
  background: #fff7f7;
}

.error-panel h2 {
  margin: 0 0 8px;
  color: #8f1d1d;
  font-size: 20px;
}

.error-panel p {
  margin: 0;
  color: #6d3636;
}

.lightbox {
  width: min(980px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(10, 13, 18, 0.82);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-width: 70px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 860px) {
  .page-shell {
    width: calc(100% - 20px);
    max-width: 560px;
    padding: 10px 0 28px;
  }

  .site-header {
    display: block;
    padding: 22px 18px;
  }

  .verification-mark {
    margin-top: 18px;
  }

  .summary-strip,
  .credential-layout {
    grid-template-columns: 1fr;
  }

  .summary-strip article {
    padding: 17px 18px;
  }

  .summary-strip article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .preview-pane,
  .info-pane {
    padding: 20px 18px;
  }

  .preview-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-heading {
    align-items: flex-start;
  }

  .metadata-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 25px;
    line-height: 1.08;
  }

  .preview-heading {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .zoom-control {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
}
