:root {
  --bg-top: #f5f5f7;
  --bg-bottom: #eef1f5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-header: rgba(250, 250, 252, 0.9);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.12);
  --accent: #0071e3;
  --accent-dark: #005ecb;
  --shadow-soft: 0 24px 60px rgba(17, 24, 39, 0.08);
  --shadow-card: 0 10px 30px rgba(17, 24, 39, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 113, 227, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body.viewer-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -120px;
  right: -110px;
  background: rgba(0, 113, 227, 0.12);
}

body::after {
  bottom: -150px;
  left: -120px;
  background: rgba(255, 255, 255, 0.85);
}

a {
  color: inherit;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.page-header,
.table-wrap,
.note-box {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.page-header {
  position: relative;
  overflow: hidden;
  padding: 32px 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.page-header::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -10px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, rgba(0, 113, 227, 0) 70%);
  pointer-events: none;
}

.page-header__tagline {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 14px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-header h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.page-header__description,
.page-header__updated,
.section__heading p,
.note-box p,
.empty-state {
  color: var(--muted);
}

.page-header__description {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.85;
}

.page-header__updated {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

main {
  margin-top: 28px;
}

.section {
  margin-top: 28px;
}

.section__heading {
  margin-bottom: 14px;
  padding: 0 4px;
}

.section__heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section__heading p {
  margin: 8px 0 0;
  font-size: 0.98rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-header);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.data-table thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.data-table tbody tr {
  transition: background-color 180ms ease, transform 180ms ease;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.38);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table td:first-child {
  width: 40%;
}

.data-table td:nth-child(2) {
  width: 34%;
}

.data-table td:last-child {
  width: 26%;
}

.item-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.item-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-name-image {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
}

.item-name-icon {
  position: relative;
  flex: 0 0 auto;
}

.item-name-icon--file {
  width: 20px;
  height: 24px;
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(234, 244, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.item-name-icon--file::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, rgba(168, 209, 255, 0.95) 0%, rgba(0, 113, 227, 0.92) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-top-right-radius: 5px;
}

.item-name-icon--file::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.48);
  box-shadow:
    0 5px 0 rgba(0, 113, 227, 0.3),
    0 10px 0 rgba(0, 113, 227, 0.2);
}

.item-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.78;
}

.item-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}

.item-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.item-gallery__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 10px 0;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.item-gallery__card:hover,
.item-gallery__card:focus-visible {
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 16px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.item-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  border-radius: 12px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(235, 238, 242, 0.95) 0%, rgba(246, 247, 249, 0.95) 100%);
}

.item-gallery__caption {
  display: block;
  padding: 10px 2px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.image-viewer--hidden {
  display: none;
}

.image-viewer__dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(92vh, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.image-viewer__close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.image-viewer__image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(92vh - 120px);
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(235, 238, 242, 0.95) 0%, rgba(246, 247, 249, 0.95) 100%);
}

.image-viewer__caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, #1b86f8 0%, var(--accent) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: linear-gradient(180deg, #1380f5 0%, var(--accent-dark) 100%);
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.24);
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.18);
  outline-offset: 3px;
}

.note-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.note-box p {
  margin: 0;
  line-height: 1.8;
}

.empty-state {
  padding: 22px 20px;
}

@media (max-width: 768px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .page-header {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .page-header h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .page-header__description {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  main,
  .section {
    margin-top: 20px;
  }

  .table-wrap,
  .note-box {
    border-radius: 18px;
  }

  /* ===== 移动端：表格变卡片 ===== */
  .table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .data-table {
    display: block;
    min-width: 0;
    border-spacing: 0 12px;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .data-table tbody tr {
    display: block;
    margin: 0;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .data-table tbody tr:hover {
    background: var(--surface-strong);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
  }

  .data-table tbody tr:last-child {
    border-bottom: 1px solid var(--line);
  }

  .data-table tbody tr:last-child td {
    border-bottom: none;
  }

  .data-table td {
    display: block;
    width: 100% !important;
    padding: 6px 0;
    border-bottom: none;
    text-align: left;
  }

  .data-table td:first-child {
    padding-top: 0;
    padding-bottom: 4px;
  }

  .data-table td:nth-child(2) {
    order: 3;
  }

  .data-table td:last-child {
    order: 2;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .data-table td:nth-child(2) {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--muted);
  }

  .item-name {
    font-size: 1.1rem;
  }

  .item-subtitle {
    font-size: 0.92rem;
  }

  .item-gallery {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
  }

  .item-gallery__card {
    padding: 8px 8px 0;
  }

  .item-gallery__image {
    max-height: 280px;
  }

  .actions {
    gap: 8px;
  }

  .button {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .image-viewer {
    padding: 14px;
  }

  .image-viewer__dialog {
    padding: 18px 14px 14px;
    border-radius: 20px;
  }

  .image-viewer__close {
    top: 10px;
    right: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
  }

  .image-viewer__image {
    max-height: calc(92vh - 96px);
    border-radius: 14px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding: 12px 0 28px;
  }

  .page-header {
    padding: 18px 14px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .data-table tbody tr {
    padding: 14px 12px;
  }

  .item-gallery {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
}
