:root {
  --page: #f3f6f8;
  --page-deep: #e7eef3;
  --surface: #ffffff;
  --surface-soft: #f7fafb;
  --surface-tint: #edf7f6;
  --ink: #17202b;
  --ink-strong: #0c1520;
  --muted: #5f6e7f;
  --muted-2: #8794a5;
  --line: #dde7ee;
  --line-strong: #c5d3dd;
  --primary: #0b7f7a;
  --primary-2: #075f5d;
  --blue: #246eb9;
  --green: #25845f;
  --amber: #c98712;
  --coral: #c84e3c;
  --violet: #6655b8;
  --danger: #c93a3a;
  --shadow: 0 18px 44px rgba(22, 38, 55, 0.14);
  --shadow-soft: 0 10px 24px rgba(22, 38, 55, 0.09);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38) 38%, rgba(255, 255, 255, 0.7)),
    linear-gradient(90deg, rgba(11, 127, 122, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 110, 185, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, var(--page), var(--page-deep));
  background-size: auto, 28px 28px, 28px 28px, auto;
  font-family: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

p,
li {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

ul {
  margin-bottom: 10px;
  padding-left: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink-strong);
  font-weight: 760;
  line-height: 1.2;
}

h2 {
  font-size: 25px;
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 30px auto 38px;
  padding: 0 20px;
  animation: pageIn 0.35s ease;
  overflow-x: hidden;
}

section,
article,
aside,
.surface-panel,
.home-intro-grid > *,
.focus-grid > *,
.news-grid > *,
.profile-hero-panel > *,
.filter-bar > * {
  min-width: 0;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.flex-grow {
  flex: 1 1 auto;
}

.site-hero {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(9, 28, 40, 0.92), rgba(11, 127, 122, 0.74)),
    linear-gradient(180deg, rgba(9, 28, 40, 0.18), rgba(9, 28, 40, 0.48)),
    url("../images/home1.jpg") center 42% / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.site-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--primary), var(--blue), var(--coral));
}

.site-hero__inner {
  position: relative;
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  padding: 44px 0 38px;
  text-align: center;
}

.brand-title {
  margin: 0;
  color: #fff;
  font-size: 52px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.brand-accent {
  color: #fff;
}

header .admin-link,
header .logout-link {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 28, 40, 0.26);
  backdrop-filter: blur(8px);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

header .admin-link:hover,
header .logout-link:hover {
  color: #fff;
  background: rgba(9, 28, 40, 0.44);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid rgba(28, 45, 65, 0.08);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(14px);
}

.site-nav__inner {
  width: min(1120px, 100% - 32px);
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 820;
  white-space: nowrap;
}

.site-mark:hover {
  text-decoration: none;
}

.site-mark i {
  color: var(--primary);
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-links::-webkit-scrollbar {
  display: none;
}

.site-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.site-link:hover {
  color: var(--ink-strong);
  background: rgba(11, 127, 122, 0.08);
  text-decoration: none;
}

.site-link.active {
  color: var(--ink-strong);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 5px 14px rgba(22, 38, 55, 0.08);
}

.site-link.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
}

footer {
  padding: 18px 16px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(11, 25, 38, 0.98), rgba(7, 95, 93, 0.95)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: auto, 34px 34px;
  box-shadow: 0 -8px 24px rgba(22, 38, 55, 0.1);
}

.footer-title {
  font-size: 15px;
  font-weight: 800;
}

.footer-sub {
  margin-top: 3px;
  opacity: 0.82;
  font-size: 13px;
}

.footer-sub a {
  color: rgba(255, 255, 255, 0.92);
}

.surface-panel {
  border: 1px solid rgba(210, 223, 232, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: 28px;
}

.section-note {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-button,
.filter-chip,
.btn-download {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  user-select: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.action-button.primary,
.filter-chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 9px 20px rgba(11, 127, 122, 0.22);
}

.action-button:hover,
.filter-chip:hover,
.btn-download:hover {
  border-color: var(--primary);
  color: var(--ink-strong);
  box-shadow: 0 9px 18px rgba(22, 38, 55, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.action-button.primary:hover,
.filter-chip.active:hover {
  color: #fff;
}

.mini-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mini-stat strong {
  display: block;
  color: var(--ink-strong);
  font-size: 30px;
  line-height: 1.1;
}

.mini-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.home-main {
  max-width: 1180px;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-bottom: 26px;
}

.lab-statement {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 30px;
}

.lab-statement::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 127, 122, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 110, 185, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 0%, #000 56%, transparent 100%);
}

.lab-statement > * {
  position: relative;
}

.lab-statement h2 {
  width: 100%;
  margin: 0;
  max-width: 780px;
  font-size: 31px;
  overflow-wrap: break-word;
}

.lab-statement p {
  max-width: 790px;
  margin-top: 14px;
  color: var(--muted);
}

.lab-snapshot {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.focus-card {
  min-height: 174px;
  padding: 18px;
  border-top: 3px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.focus-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.focus-card:nth-child(2) {
  border-top-color: var(--green);
}

.focus-card:nth-child(3) {
  border-top-color: var(--amber);
}

.focus-card:nth-child(4) {
  border-top-color: var(--coral);
}

.focus-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--primary);
}

.focus-card:nth-child(2) .focus-icon {
  background: var(--green);
}

.focus-card:nth-child(3) .focus-icon {
  background: var(--amber);
}

.focus-card:nth-child(4) .focus-icon {
  background: var(--coral);
}

.focus-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.news-section {
  margin-top: 12px;
}

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

.news-card {
  min-height: 430px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.news-card:hover {
  border-color: rgba(11, 127, 122, 0.44);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.news-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
}

.news-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.035);
}

.news-date,
.news-hot {
  position: absolute;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 780;
}

.news-date {
  bottom: 12px;
  left: 12px;
  background: rgba(17, 24, 39, 0.74);
}

.news-hot {
  top: 12px;
  right: 12px;
  gap: 6px;
  background: rgba(200, 78, 60, 0.94);
  box-shadow: 0 8px 18px rgba(200, 78, 60, 0.24);
}

.news-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

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

.news-title,
.news-text {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-character: "-";
  hyphenate-limit-chars: 6 3 3;
}

.news-title a,
.journal-name {
  color: var(--ink-strong);
  font-weight: 800;
}

.journal-name {
  color: var(--primary-2);
  border-bottom: 2px solid rgba(11, 127, 122, 0.24);
}

.news-text {
  margin: 0;
  color: var(--muted);
}

.publication-main {
  max-width: 1080px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 150px 170px minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
}

.filter-bar select,
.filter-bar input,
.form-control,
.form-select,
.login input,
.form-row input,
.form-row textarea,
#receivers-select,
#week-select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background-color: #fff;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.filter-bar input {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238794a5' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}

.filter-bar select:focus,
.filter-bar input:focus,
.form-control:focus,
.form-select:focus,
.login input:focus,
.form-row input:focus,
.form-row textarea:focus,
#receivers-select:focus,
#week-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 127, 122, 0.12);
}

.stats-summary {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.stats-summary b {
  color: var(--primary);
}

#publication-list {
  padding: 8px 0;
}

.year-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 14px 2px 10px;
  border-bottom: 2px solid rgba(11, 127, 122, 0.68);
  color: var(--ink-strong);
  cursor: pointer;
  font-weight: 820;
  user-select: none;
}

.year-toggle:hover {
  color: var(--primary);
}

.year-arrow {
  color: var(--primary);
  transition: transform 0.22s;
}

.year-toggle.collapsed .year-arrow {
  transform: rotate(-90deg);
}

.year-count {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.year-group {
  overflow: hidden;
  transition: max-height 0.3s;
}

.year-group.collapsed {
  max-height: 0 !important;
}

.paper-entry {
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid rgba(210, 223, 232, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.paper-entry:hover {
  border-color: rgba(11, 127, 122, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.paper-entry h4 {
  margin: 0 0 8px;
  color: var(--primary-2);
  font-size: 18px;
  font-weight: 780;
  overflow-wrap: break-word;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.paper-meta b {
  color: var(--ink-strong);
}

.paper-dot {
  color: var(--muted-2);
}

.level-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
}

.level-CCF-A {
  color: #fff;
  background: var(--danger);
}

.level-CCF-B {
  color: #fff;
  background: #dd654b;
}

.level-CCF-C {
  color: #fff;
  background: var(--amber);
}

.level-Top,
.level-CCF-T1 {
  color: #4d3500;
  background: #f0bd34;
}

.level-JCR-Q1 {
  color: #fff;
  background: var(--blue);
}

.level-default {
  color: var(--muted);
  background: #eef3f6;
}

.empty-state {
  padding: 52px 20px;
  color: var(--muted);
  text-align: center;
}

.profile-main {
  max-width: 1040px;
}

.profile-hero-panel {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px;
}

.profile-avatar {
  width: 156px;
  height: 156px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.profile-name {
  margin: 0 0 8px;
  font-size: 31px;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.contact-methods span,
.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.contact-methods a {
  color: var(--primary-2);
  font-weight: 720;
}

.contact-methods i {
  color: var(--primary);
}

.affiliation {
  color: var(--ink);
  line-height: 1.65;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

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

.section-heading {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 820;
}

.bio-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.9;
  text-align: justify;
}

.bio-text b {
  color: var(--ink-strong);
}

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

.funding-list li {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface-soft);
}

.funding-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.export-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.report-main {
  max-width: 980px;
}

.report-panel {
  padding: 24px;
}

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

.report-heading h2 {
  margin: 0;
  color: var(--primary-2);
}

.form-label {
  color: var(--ink);
  font-weight: 720;
}

.form-text {
  color: var(--muted);
}

.btn-primary {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--blue));
  box-shadow: 0 9px 18px rgba(11, 127, 122, 0.18);
  font-weight: 820;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-2), var(--blue));
}

.progress {
  border-radius: 999px;
  background: #e9f0f5;
}

.pending-block {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pending-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 24px;
}

#pending-meta {
  font-size: inherit;
}

.pending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pending-list li {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #f5f8fb;
  font-size: 14px;
  white-space: nowrap;
}

#my-files-box {
  display: none;
  margin-top: 16px;
}

#my-files-box h3 {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 16px;
}

.my-file-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #c9e8d4;
  border-radius: var(--radius-sm);
  background: #eef9f2;
  font-size: 14px;
}

.file-icon {
  color: var(--green);
  font-size: 20px;
}

.file-info {
  flex: 1 1 auto;
}

.file-name {
  color: #26764b;
  font-weight: 820;
}

.file-meta,
.file-overwrite-hint {
  color: var(--muted);
  font-size: 12px;
}

.file-overwrite-hint {
  margin-top: 2px;
  color: var(--amber);
}

.login-wrapper {
  max-width: 440px;
  margin: 0 auto;
}

.login-badge {
  margin-bottom: 18px;
  text-align: center;
}

.lab-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--amber));
  box-shadow: var(--shadow-soft);
  font-size: 24px;
}

.lab-name {
  color: var(--ink-strong);
  font-size: 19px;
  font-weight: 820;
}

.lab-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.login {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.input-group {
  position: relative;
  margin-bottom: 12px;
}

.input-group .input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: var(--muted-2);
  transform: translateY(-50%);
}

.input-group input {
  padding-left: 38px;
}

.login button {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  font-weight: 820;
}

.error {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

table {
  color: var(--ink);
}

pre,
code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.6;
}

pre {
  margin-bottom: 10px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7f7fb;
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f4f4f9;
}

pre code {
  display: block;
  white-space: pre-wrap;
}

.tip,
.warn {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.tip {
  border: 1px solid #b3e0ff;
  color: #075985;
  background: #e6f4ff;
}

.warn {
  border: 1px solid #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.blog-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.blog-list li {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s;
}

.blog-list li:hover {
  transform: translateY(-2px);
}

.globe-section {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  padding-bottom: 20px;
}

.globe-container {
  width: 160px;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}

.globe-container:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.globe-container canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

#btn-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1030;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: var(--ink-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

#btn-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#btn-back-to-top:hover {
  background: var(--primary-2);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.topbar h2 {
  margin: 0;
}

.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex-shrink: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.tab-btn:hover {
  color: var(--ink-strong);
  background: rgba(11, 127, 122, 0.08);
}

.tab-btn.active {
  border-color: var(--line);
  color: var(--ink-strong);
  background: #fff;
  box-shadow: 0 6px 14px rgba(22, 38, 55, 0.08);
}

.tab-btn.active i {
  color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--ink-strong);
  background: #f4f8fb;
  font-size: 13px;
  font-weight: 820;
}

tbody tr:nth-child(even) td {
  background: #f8fbfd;
}

tbody tr:hover td {
  background: #eef7f6;
}

.hash-cell,
.news-title-cell,
.news-text-cell,
.pub-title-cell,
.pub-journal-cell {
  white-space: normal;
  word-break: break-word;
}

.hash-cell {
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

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

.actions button,
.form-row button,
.image-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.actions button:hover,
.form-row button:hover,
.image-actions button:hover {
  box-shadow: 0 7px 14px rgba(22, 38, 55, 0.12);
  transform: translateY(-1px);
}

.btn-del {
  background: var(--danger);
}

.btn-edit {
  background: var(--blue);
}

.btn-preview,
.btn-download {
  color: #fff;
  background: var(--green);
}

.btn-send {
  border-color: #1d5f9f;
  background: var(--blue);
}

.btn-secondary {
  background: #6b7785 !important;
}

.btn-download {
  text-decoration: none;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 8px;
  margin: 9px 0;
}

.form-row textarea {
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
}

.form-row button {
  background: var(--primary);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.news-thumb {
  width: 90px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-soft);
}

.news-title-cell {
  max-width: 320px;
}

.news-text-cell {
  max-width: 360px;
  color: var(--muted);
}

.pub-title-cell {
  max-width: 300px;
}

.pub-journal-cell {
  max-width: 220px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.image-upload-row {
  margin-bottom: 20px;
}

.image-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.image-card img {
  width: 100%;
  height: 120px;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  background: var(--surface-soft);
  cursor: pointer;
}

.image-info {
  padding: 10px;
  text-align: center;
}

.image-name {
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.image-actions {
  display: flex;
  gap: 6px;
}

.image-actions button {
  flex: 1;
  padding: 7px 0;
}

.btn-img-replace {
  color: #fff;
  background: var(--blue);
}

.btn-img-delete {
  color: #fff;
  background: var(--danger);
}

.form-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 0;
  color: var(--primary);
  cursor: pointer;
  font-size: 15px;
  font-weight: 760;
  user-select: none;
}

.form-toggle:hover {
  color: var(--primary-2);
}

.form-toggle .toggle-arrow {
  display: inline-block;
  color: var(--muted-2);
  font-size: 11px;
  transition: transform 0.25s;
}

.form-toggle.open .toggle-arrow {
  transform: rotate(90deg);
}

.form-body {
  display: none;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.form-body.open {
  display: block;
}

@media (max-width: 900px) {
  .brand-title {
    font-size: 40px;
  }

  .home-intro-grid,
  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .filter-bar input,
  .filter-bar .stats-summary,
  .filter-bar #btn-export {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    background-size: auto, 22px 22px, 22px 22px, auto;
  }

  main {
    margin: 18px auto 24px;
    padding: 0 12px;
  }

  .site-hero {
    min-height: 150px;
  }

  .site-hero__inner {
    width: calc(100% - 32px);
    padding: 22px 0 20px;
  }

  .site-mark {
    display: none;
  }

  .brand-title {
    font-size: 28px;
  }

  header .admin-link,
  header .logout-link {
    top: 14px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .site-nav__inner {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    padding: 0 8px;
  }

  .site-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .site-link {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .home-intro-grid,
  .focus-grid,
  .news-grid,
  .filter-bar,
  .profile-hero-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-title,
  .lab-statement h2 {
    max-width: 100%;
    font-size: 21px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .lab-statement p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .lab-statement,
  .lab-snapshot,
  .profile-section,
  .report-panel,
  .login {
    padding: 18px;
  }

  .focus-card,
  .news-card {
    min-height: auto;
  }

  .news-body {
    padding: 16px;
  }

  .profile-hero-panel {
    gap: 16px;
    justify-items: center;
    text-align: center;
  }

  .profile-name {
    font-size: 28px;
  }

  .contact-methods {
    justify-content: center;
  }

  .bio-text {
    text-align: left;
  }

  .export-wrap {
    justify-content: stretch;
  }

  .export-wrap .filter-chip {
    width: 100%;
  }

  .report-heading {
    display: block;
  }

  .pending-list {
    gap: 8px;
  }

  .pending-list li {
    flex: 1 1 72px;
    justify-content: center;
  }

  .form-row {
    flex-direction: column;
  }

  table {
    min-width: 760px;
  }

  .tab-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  #btn-back-to-top {
    right: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 25px;
  }

  .site-link {
    padding-right: 10px;
    padding-left: 10px;
  }

  .profile-avatar {
    width: 138px;
    height: 138px;
  }

  .paper-entry {
    padding: 14px;
  }

  .paper-entry h4 {
    font-size: 16px;
  }
}
