:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface2: #eceef4;
  --text: #1a1f2e;
  --muted: #5c6478;
  --accent: #5a6494;
  --accent-hover: #6a75a8;
  --accent-soft: rgba(90, 100, 148, 0.12);
  --border: #d8dbe5;
  --radius: 14px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "Noto Sans SC", serif;
  --shadow-sm: 0 1px 2px rgba(21, 32, 43, 0.05);
  --shadow-md: 0 8px 24px rgba(21, 32, 43, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body.page-home {
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgba(120, 130, 180, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(140, 120, 170, 0.1), transparent 50%),
    linear-gradient(180deg, #eef0f6 0%, #f4f5f8 28%, #f4f5f8 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(216, 219, 229, 0.85);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(90, 100, 148, 0.22);
  background: rgba(90, 100, 148, 0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.header-nav-link:hover,
.header-nav-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.5rem;
}

.page-title-row .page-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.page-suggest-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.page-suggest-btn::before {
  content: "+";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.85;
}

.page-suggest-btn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.suggest-open {
  overflow: hidden;
}

.suggest-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(26, 31, 46, 0.28);
}

.suggest-overlay.is-open {
  display: flex;
}

.suggest-dialog {
  position: relative;
  width: min(26rem, 100%);
  padding: 1.35rem 1.35rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.suggest-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.suggest-close:hover {
  color: var(--text);
}

.suggest-title {
  margin: 0 1.75rem 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.suggest-lead {
  margin: 0 0 1.05rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.suggest-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.suggest-label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.suggest-input {
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  outline: none;
}

.suggest-input:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.suggest-input::placeholder {
  color: #9aa1b2;
}

.suggest-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.suggest-status {
  margin: 0;
  font-size: 0.82rem;
}

.suggest-status--error {
  color: #b42318;
}

.suggest-status--ok {
  color: #067647;
}

.suggest-status--pending {
  color: var(--muted);
}

.suggest-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.35rem;
}

.suggest-btn {
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

.suggest-btn:hover:not(:disabled) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.suggest-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.suggest-btn--ghost {
  font-weight: 500;
  color: var(--muted);
}

.suggest-btn--ghost:hover {
  color: var(--text);
  text-decoration: none;
}

.site-logo {
  height: 1.75rem;
  width: auto;
  max-height: 32px;
  max-width: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  line-height: 1.25;
}

.brand:hover {
  color: var(--accent);
}

.brand:hover .site-logo {
  opacity: 0.92;
}

.meta-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span.sep {
  opacity: 0.5;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.main--home {
  max-width: 1120px;
  padding-top: 1.25rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.page-desc {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.home-hero {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 2.25rem 1.75rem 2rem;
  overflow: hidden;
  border: 1px solid rgba(216, 219, 229, 0.9);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 245, 250, 0.9) 55%, rgba(236, 238, 246, 0.92) 100%);
  box-shadow: var(--shadow-md);
  animation: home-fade-up 0.55s ease both;
}

.home-hero-glow {
  position: absolute;
  inset: auto -15% -40% auto;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 125, 175, 0.16), transparent 68%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.home-brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.home-brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--text);
}

.home-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.home-intro {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: none;
  text-align: justify;
  text-justify: inter-ideographic;
}

.home-section {
  margin-bottom: 2.75rem;
  animation: home-fade-up 0.6s ease both;
  animation-delay: 0.08s;
}

.home-section + .home-section {
  animation-delay: 0.16s;
}

.home-section-head {
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero,
  .home-section {
    animation: none;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .home-brand-logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .home-tagline {
    letter-spacing: 0.08em;
  }
}

.page-desc code {
  font-size: 0.9em;
  background: var(--surface2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.static-back {
  margin: 0 0 1rem;
}

.static-back a {
  color: var(--accent);
  text-decoration: none;
}

.static-back a:hover {
  text-decoration: underline;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.grid-cards-topics {
  margin-top: 0.25rem;
}

.home-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.25rem 0 1.5rem;
}

.home-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.home-section-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.card {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.card:hover {
  border-color: rgba(90, 100, 148, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f5f6fb 100%);
  box-shadow: 0 10px 28px rgba(90, 100, 148, 0.1);
  transform: translateY(-3px);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.card .badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}

.list-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.list-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-panel li {
  border-bottom: 1px solid var(--border);
}

.list-panel li:last-child {
  border-bottom: none;
}

.list-panel a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
}

.list-panel a:hover {
  background: var(--surface2);
  color: var(--accent);
}

.subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.subcard {
  display: block;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.subcard:hover {
  background: var(--surface2);
  border-color: rgba(90, 100, 148, 0.28);
}

.subcard small {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer--beian {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  padding: 0.5rem 1.25rem 2rem;
  font-size: 0.75rem;
  color: #9aa1b2;
}

.site-footer--beian a {
  color: inherit;
  text-decoration: none;
}

.site-footer--beian a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer code {
  font-size: 0.85em;
  background: var(--surface2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.empty {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
}

.submit-strip {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #eef2f7 100%);
}

.submit-strip--top {
  max-width: none;
  margin: 0 0 1.25rem;
  padding: 0 0 0.25rem;
  border-top: none;
  background: transparent;
  text-align: left;
}

.submit-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-submit {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(90, 100, 148, 0.28);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(90, 100, 148, 0.34);
}

.btn-submit--secondary {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(90, 100, 148, 0.22);
  box-shadow: 0 2px 8px rgba(26, 31, 46, 0.05);
}

.btn-submit--secondary:hover {
  background: var(--accent-soft);
  border-color: rgba(90, 100, 148, 0.38);
  box-shadow: 0 4px 12px rgba(90, 100, 148, 0.12);
}

.main--about {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.about-article {
  margin: 0.25rem 0 0;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.about-article .page-title {
  text-align: center;
  margin-bottom: 1.35rem;
}

.about-body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  text-align: justify;
  text-justify: inter-ideographic;
}

.about-contact {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.about-contact-note {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
  text-align: justify;
  text-justify: inter-ideographic;
}

.about-qrcode {
  display: block;
  width: min(220px, 72vw);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 遥感数据栏目 */
.dataset-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.dataset-group {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.dataset-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.dataset-media {
  min-width: 0;
}

.dataset-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface2);
}

.dataset-body {
  min-width: 0;
}

.dataset-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.dataset-note {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.dataset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.dataset-link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-soft);
  border: 1px solid rgba(90, 100, 148, 0.18);
}

.dataset-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .dataset-card {
    grid-template-columns: 1fr;
  }

  .dataset-media img {
    max-height: 200px;
  }
}
