:root {
  --bg: #edf4ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --primary: #173f7a;
  --primary-deep: #0f2e61;
  --accent: #2d96d4;
  --accent-soft: #e5f4ff;
  --text: #1f3352;
  --muted: #71829c;
  --line: rgba(23, 63, 122, 0.12);
  --shadow: 0 22px 50px rgba(18, 50, 96, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.modal-open {
  overflow: hidden;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 160, 255, 0.2), transparent 24%),
    radial-gradient(circle at right 15%, rgba(45, 150, 212, 0.12), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: linear-gradient(90deg, #1d437f 0%, #28549e 64%, #214d9c 100%);
  box-shadow: 0 8px 32px rgba(18, 43, 92, 0.22);
}

.brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 16px;
  padding-bottom: 12px;
}

.nav-link-active {
  color: #fff;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5cd1ff, #9edbff);
}

.page {
  width: min(1280px, calc(100% - 32px));
  margin: 48px auto 60px;
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
  padding: 0 16px 12px;
}

.site-footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.25fr 0.9fr;
  gap: 18px;
  padding: 16px 24px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 63, 122, 0.08);
  backdrop-filter: blur(18px);
  color: var(--text);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.footer-column span,
.footer-column a {
  font-size: 15px;
  line-height: 1.7;
  color: #4a5d78;
  text-decoration: none;
}

.footer-column-copy {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.hero-panel,
.category-panel,
.filter-panel,
.data-card,
.about-card,
.profile-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(18, 57, 112, 0.96) 0%, rgba(33, 83, 155, 0.94) 58%, rgba(46, 137, 206, 0.9) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero-copy,
.hero-badge {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
}

.hero-text {
  margin: 0;
  max-width: 760px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.hero-badge {
  min-width: 180px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-badge-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-badge strong {
  font-size: 22px;
}

.category-panel {
  padding: 26px 30px 30px;
  border-radius: 24px;
  align-self: start;
}

.filter-panel {
  padding: 38px 44px 46px;
  border-radius: 24px;
  align-self: start;
}

.filter-panel-compact {
  min-height: 376px;
  padding: 26px 20px 28px;
}

.category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.category-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.category-title {
  margin: 0;
  font-size: 24px;
  color: var(--primary);
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.panel-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.panel-title {
  margin: 0;
  font-size: 20px;
  color: var(--primary);
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 26px 22px;
  align-items: end;
}

.filter-form-compact {
  grid-template-columns: 1fr;
  gap: 18px;
}

.filter-panel-compact .panel-title-row {
  gap: 9px;
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.filter-panel-compact .panel-title {
  font-size: 16px;
  line-height: 1.2;
}

.filter-panel-compact .panel-subtitle {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.filter-panel-compact .field {
  gap: 8px;
}

.filter-panel-compact .field-label {
  font-size: 13px;
  font-weight: 600;
}

.filter-panel-compact .field-control {
  height: 46px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 16px;
  color: #32486d;
}

.field-control {
  height: 52px;
  border: 1px solid rgba(61, 95, 147, 0.16);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.field-control:focus {
  border-color: rgba(39, 146, 217, 0.8);
  box-shadow: 0 0 0 4px rgba(39, 146, 217, 0.12);
}

.date-error {
  margin: 2px 0 0;
  color: #bf4b4b;
  font-size: 12px;
  line-height: 1.5;
}

.action-row {
  justify-self: end;
  display: flex;
  gap: 14px;
}

.action-row-compact {
  justify-self: stretch;
  width: 100%;
  gap: 10px;
  margin-top: 4px;
}

.action-row-compact .btn {
  flex: 1;
  min-width: 0;
  height: 40px;
  font-size: 13px;
  border-radius: 10px;
}

.action-row-compact .btn-icon {
  width: 15px;
  height: 15px;
}

.btn,
.ghost-btn,
.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.ghost-btn:hover,
.solid-btn:hover {
  transform: translateY(-1px);
}

.btn {
  min-width: 98px;
  height: 42px;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #265eb8 100%);
  box-shadow: 0 10px 24px rgba(37, 89, 171, 0.22);
}

.btn-secondary {
  color: #506178;
  background: #fff;
  border-color: rgba(61, 95, 147, 0.2);
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.data-section {
  margin-top: 32px;
}

.section-head {
  margin-bottom: 18px;
}

.page-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid rgba(61, 95, 147, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 248, 255, 0.9) 100%);
  color: #54709a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(37, 89, 171, 0.12);
}

.page-tab-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #265eb8 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(37, 89, 171, 0.2);
}

.page-tab-title {
  font-size: 18px;
  font-weight: 700;
}

.page-tab-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.88;
  text-align: left;
}

.section-title {
  margin: 0;
  font-size: 24px;
  color: var(--primary);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.data-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.data-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px rgba(18, 50, 96, 0.14);
}

.card-media {
  height: 180px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  flex: 1 1 auto;
  padding: 22px 20px 18px;
  background:
    linear-gradient(180deg, rgba(242, 247, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 32%),
    #fff;
}

.card-title {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 18px;
}

.card-meta {
  margin: 0;
  line-height: 1.7;
  color: #344864;
}

.card-dates {
  margin-bottom: 14px;
  font-weight: 500;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin-bottom: 14px;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  min-height: 58px;
}

.card-citation {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 63, 122, 0.08);
}

.card-citation-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f8fbb;
}

.card-citation-text {
  margin: 0;
  color: #5f7088;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: help;
}

.card-citation-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: #2b76bf;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.citation-tooltip {
  position: absolute;
  z-index: 1200;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(27, 76, 138, 0.12);
  box-shadow: 0 18px 38px rgba(20, 46, 92, 0.16);
  backdrop-filter: blur(16px);
}

.citation-tooltip-label {
  margin-bottom: 8px;
  color: #6f8fbb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.citation-tooltip-content {
  color: #425671;
  font-size: 14px;
  line-height: 1.8;
  white-space: normal;
  user-select: text;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.8) 0%, #eef5fd 100%);
}

.ghost-btn,
.solid-btn {
  min-width: 120px;
  height: 38px;
  border: 1px solid rgba(61, 95, 147, 0.18);
}

.ghost-btn {
  margin-right: auto;
  color: #5c6f8a;
  background: rgba(255, 255, 255, 0.82);
}

.solid-btn {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, #2792d9 0%, #2076c6 100%);
  border-color: transparent;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(61, 95, 147, 0.22);
  border-radius: 18px;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.preview-modal[hidden] {
  display: none;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 58, 0.52);
  backdrop-filter: blur(6px);
}

.preview-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(10, 29, 63, 0.28);
}

.preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 28, 58, 0.08);
  color: var(--primary-deep);
  cursor: pointer;
}

.preview-close svg {
  width: 18px;
  height: 18px;
}

.preview-panel {
  padding: 28px 24px 24px;
}

.preview-title {
  margin: 0;
  font-size: 22px;
  color: var(--primary);
  line-height: 1.3;
}

.preview-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(23, 63, 122, 0.1);
}

.preview-list-shell {
  max-height: min(58vh, 480px);
  overflow: auto;
  padding-right: 4px;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(61, 95, 147, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.preview-file-name {
  color: #334867;
  line-height: 1.6;
  word-break: break-all;
}

.preview-download-btn {
  flex: 0 0 auto;
  min-width: 76px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2792d9 0%, #2076c6 100%);
  cursor: pointer;
}

.preview-state {
  margin: 0;
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
}

.preview-state-error {
  color: #b14d4d;
}

.about-page {
  padding-bottom: 10px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.about-hero-copy {
  padding: 38px 40px;
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(133, 201, 245, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(18, 57, 112, 0.98) 0%, rgba(30, 88, 160, 0.95) 62%, rgba(91, 166, 219, 0.9) 100%);
  color: #fff;
  box-shadow: 0 24px 56px rgba(18, 50, 96, 0.18);
}

.about-kicker,
.about-card-kicker {
  margin: 0 0 10px;
  color: #87d9ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
}

.about-subtitle {
  margin: 14px 0 18px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.about-text {
  margin: 0;
  max-width: 860px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.84);
}

.about-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
}

.profile-card {
  overflow: hidden;
  border-radius: 28px;
}

.profile-visual {
  aspect-ratio: 4 / 4.8;
  background: linear-gradient(180deg, #eff8ff 0%, #d9edf8 100%);
}

.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  padding: 22px 22px 24px;
}

.profile-name {
  margin: 0;
  font-size: 28px;
  color: var(--primary);
}

.profile-role {
  margin: 8px 0 0;
  color: #435777;
  line-height: 1.7;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.profile-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf7ff;
  color: #3b5f8f;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.about-card {
  padding: 28px 28px 30px;
  border-radius: 24px;
}

.about-card-wide {
  background:
    radial-gradient(circle at right top, rgba(115, 187, 233, 0.16), transparent 18%),
    rgba(255, 255, 255, 0.9);
}

.about-bottom-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  margin-top: 24px;
}

.about-card-fill {
  min-height: 100%;
}

.about-card-title {
  margin: 0;
  color: var(--primary);
  font-size: 24px;
}

.about-card-head {
  margin-bottom: 16px;
}

.about-prose p {
  margin: 0 0 14px;
  line-height: 1.95;
  color: #3d526f;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-list {
  margin: 0;
  padding-left: 20px;
  color: #3d526f;
}

.about-list li {
  margin-bottom: 12px;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .control-row {
    grid-template-columns: 1fr;
  }

  .page-tabs,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-layout,
  .about-bottom-grid {
    grid-template-columns: 1fr;
  }

  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 16px 20px;
  }

  .page {
    width: min(100% - 16px, 1280px);
    margin-top: 20px;
  }

  .hero-panel {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .hero-badge {
    width: 100%;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }

  .footer-column-copy {
    align-items: flex-start;
    text-align: left;
  }

  .about-hero-copy {
    padding: 28px 20px;
  }

  .profile-info,
  .about-card {
    padding: 22px 18px 24px;
  }

  .category-panel,
  .filter-panel {
    padding: 24px 18px 26px;
  }

  .control-row {
    grid-template-columns: 1fr;
  }

  .page-tabs,
  .filter-form,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    padding: 22px 18px 18px;
  }

  .preview-file-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-download-btn {
    width: 100%;
  }

  .action-row {
    grid-column: auto;
    justify-self: stretch;
  }

  .action-row .btn {
    flex: 1;
  }
}
