:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --text: #172033;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --border: #dce5f1;
  --shadow: 0 18px 55px rgba(30, 64, 175, 0.10);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(14px, 3vw, 42px);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 5%, rgba(37, 99, 235, 0.13), transparent 26rem),
    radial-gradient(circle at 92% 24%, rgba(20, 184, 166, 0.10), transparent 23rem),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: var(--primary);
}

.container {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  min-height: 190px;
  margin-bottom: 18px;
  padding: clamp(26px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 88% 10%, rgba(96, 165, 250, 0.35), transparent 20rem),
    linear-gradient(120deg, #0f172a, #1e40af);
  box-shadow: var(--shadow);
}

.header::after {
  position: absolute;
  right: -70px;
  top: -110px;
  width: 300px;
  height: 300px;
  border: 55px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.brand-link {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(78px, 10vw, 112px);
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.brand-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.heading-group {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.header-subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}

.home-link {
  position: relative;
  z-index: 1;
  align-self: start;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.11);
}

.home-link:visited,
.home-link:hover {
  color: #fff;
}

.home-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
}

.table-wrapper {
  overflow: hidden;
  border: 1px solid rgba(220, 229, 241, 0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 750;
  text-align: left;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #1e3a8a, var(--primary));
}

thead th:first-child {
  width: 15%;
}

thead th:nth-child(2) {
  width: 22%;
}

thead th:nth-child(3) {
  width: 31%;
}

tbody tr {
  transition: background-color 150ms ease;
}

tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.78);
}

tbody tr:hover {
  background: var(--primary-soft);
}

tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid #e8eef6;
  vertical-align: top;
  overflow-wrap: anywhere;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td:first-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

tbody td:nth-child(2) {
  color: #334155;
  font-weight: 650;
}

a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:visited {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

tbody a[href$=".jpg" i],
tbody a[href$=".jpeg" i],
tbody a[href$=".png" i],
tbody a[href$=".webp" i],
tbody a[href$=".gif" i] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.92em;
  font-weight: 650;
  background: var(--primary-soft);
}

tbody a[href$=".jpg" i]::before,
tbody a[href$=".jpeg" i]::before,
tbody a[href$=".png" i]::before,
tbody a[href$=".webp" i]::before,
tbody a[href$=".gif" i]::before {
  content: "图";
  display: grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  color: #fff;
  font-size: 0.66em;
  background: var(--primary);
}

.footer {
  padding: 24px 16px 4px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(8, 15, 30, 0.86);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.image-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.image-dialog {
  position: relative;
  display: flex;
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.image-modal.is-open .image-dialog {
  transform: none;
}

.image-preview {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: calc(100vh - 115px);
  object-fit: contain;
  background: #080f1e;
}

.image-caption {
  min-height: 48px;
  margin: 0;
  padding: 12px 58px 12px 16px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--primary);
  outline: none;
}

@media (max-width: 800px) {
  body {
    padding: 12px;
  }

  .header {
    grid-template-columns: auto 1fr;
    min-height: 0;
    padding: 24px 20px;
  }

  .home-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .header h1 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  tbody tr,
  tbody tr:nth-child(even) {
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(30, 64, 175, 0.06);
  }

  tbody tr:hover {
    background: #fff;
  }

  tbody td {
    display: grid;
    grid-template-columns: minmax(72px, 28%) minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
  }

  tbody td::before {
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 750;
    content: attr(data-label);
  }

  tbody td:first-child {
    white-space: normal;
  }

  tbody tr:last-child td {
    border-bottom: 1px solid #edf2f7;
  }

  tbody td:last-child {
    border-bottom: 0;
  }

  tbody td[data-label="备注"] {
    display: block;
    padding: 13px 0 15px;
  }

  tbody td[data-label="备注"]::before {
    display: block;
    margin-bottom: 8px;
  }

  tbody td[data-label="备注"] a {
    display: inline-block;
    max-width: 100%;
    margin: 4px 6px 4px 0;
    padding: 6px 10px;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    background: var(--primary-soft);
  }

  tbody td[data-label="备注"] a:hover {
    text-decoration: none;
    background: #dce9ff;
  }

  tbody td[data-label="备注"] a[href$=".jpg" i],
  tbody td[data-label="备注"] a[href$=".jpeg" i],
  tbody td[data-label="备注"] a[href$=".png" i],
  tbody td[data-label="备注"] a[href$=".webp" i],
  tbody td[data-label="备注"] a[href$=".gif" i] {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .header {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;
    border-radius: 20px;
  }

  .brand-link {
    width: 64px;
    padding: 8px;
    border-radius: 16px;
  }

  .eyebrow {
    font-size: 0.67rem;
  }

  .header-subtitle {
    display: none;
  }

  .table-wrapper {
    border-radius: 18px;
  }

  tbody {
    padding: 9px;
  }

  tbody td {
    grid-template-columns: 68px minmax(0, 1fr);
    font-size: 0.92rem;
  }

  .image-modal {
    padding: 8px;
  }

  .image-dialog {
    max-height: calc(100vh - 16px);
    border-radius: 15px;
  }

  .image-preview {
    max-height: calc(100vh - 82px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
