:root {
  --green-deep: #0b3d2e;
  --green-main: #1f7a4d;
  --green-mid: #2f9e62;
  --green-light: #8fd6a7;
  --green-soft: #eaf7ef;
  --green-bg: #f5fbf7;

  --text-dark: #172a22;
  --text-main: #2b4037;
  --text-soft: #64756d;

  --surface: #ffffff;
  --line: rgba(31, 122, 77, 0.12);

  --shadow-sm: 0 10px 24px rgba(12, 72, 46, 0.08);
  --shadow-md: 0 18px 42px rgba(12, 72, 46, 0.12);
  --shadow-lg: 0 24px 70px rgba(7, 55, 37, 0.18);

  --container: min(1200px, calc(100% - 48px));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(47, 158, 98, 0.10), transparent 28%),
    radial-gradient(circle at bottom right, rgba(143, 214, 167, 0.14), transparent 24%),
    var(--green-bg);
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 122, 77, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 122, 77, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ==================== 顶部导航 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 61, 46, 0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 26px rgba(7, 55, 37, 0.15);
}

.navbar-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 8px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.logo-text-wrap {
  min-width: 0;
}

.logo-text {
  color: #ffffff;
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-subtext {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 4px;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.90);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  transition: 0.25s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* ==================== 页头区域 ==================== */
.page-hero {
  position: relative;
  margin-top: 86px;
  padding: 5.8rem 0 4.8rem;
  background:
    linear-gradient(135deg, rgba(11, 61, 46, 0.96), rgba(31, 122, 77, 0.88)),
    url("../Figure/fig2.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  box-shadow: var(--shadow-lg);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -130px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-logo-img {
  position: absolute;
  right: 8%;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.page-hero-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.page-hero-watermark-img {
  position: absolute;
  left: 52%;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.page-hero-watermark-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.page-label {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.page-desc {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.9;
}

/* ==================== 主体区域 ==================== */
.platform-page {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.platform-page::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(143, 214, 167, 0.16);
  pointer-events: none;
  z-index: 0;
}

.platform-page::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: 160px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(31, 122, 77, 0.06);
  pointer-events: none;
  z-index: 0;
}

.platform-page-logo-bg {
  position: absolute;
  top: 120px;
  right: 6%;
  width: 280px;
  height: 280px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

.platform-page-logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
}

.platform-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.6rem;
  align-items: start;
}

/* ==================== 左侧导航 ==================== */
.side-nav {
  position: sticky;
  top: 112px;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 254, 251, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.side-logo {
  width: 78px;
  height: 78px;
  padding: 10px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(31, 122, 77, 0.12), rgba(143, 214, 167, 0.24)),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 122, 77, 0.12);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.side-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.side-title {
  margin-bottom: 1.2rem;
}

.side-title span {
  display: inline-block;
  color: var(--green-main);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.side-title strong {
  display: block;
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 1.22rem;
  color: var(--green-deep);
}

.side-link {
  width: 100%;
  display: block;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  margin-top: 0.7rem;
  padding: 0.86rem 1rem;
  border-radius: 16px;
  background: rgba(31, 122, 77, 0.07);
  color: var(--green-main);
  font-weight: 800;
  transition: 0.25s ease;
}

.side-link:hover,
.side-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-main), var(--green-mid));
  box-shadow: 0 10px 22px rgba(31, 122, 77, 0.16);
}

/* ==================== 内容区域 ==================== */
.content-area {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 254, 251, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.content-area::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(143, 214, 167, 0.26) 0%,
      rgba(31, 122, 77, 0.08) 58%,
      transparent 72%
    );
  pointer-events: none;
  z-index: 0;
}

.content-logo-decor {
  position: absolute;
  top: 34px;
  right: 36px;
  width: 90px;
  height: 90px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(31, 122, 77, 0.08);
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

.content-logo-decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==================== 工具栏 ==================== */
.toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid rgba(31, 122, 77, 0.14);
  outline: none;
  border-radius: 18px;
  padding: 0.92rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(31, 122, 77, 0.38);
  box-shadow: 0 12px 26px rgba(31, 122, 77, 0.12);
}

.toolbar input::placeholder {
  color: rgba(100, 117, 109, 0.72);
}

/* ==================== 内容面板 ==================== */
.content-panel {
  display: none;
  position: relative;
  z-index: 2;
}

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

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.08);
  color: var(--green-main);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.panel-title h2 {
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  color: var(--green-deep);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.3;
}

.panel-logo {
  width: 72px;
  height: 72px;
  padding: 10px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(31, 122, 77, 0.12), rgba(143, 214, 167, 0.22)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 122, 77, 0.12);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}

.panel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.panel-desc {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* ==================== 资源卡片 ==================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.resource-card {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 1.35rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 254, 251, 0.95));
  border: 1px solid rgba(31, 122, 77, 0.11);
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: -72px;
  right: -72px;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: rgba(143, 214, 167, 0.18);
  pointer-events: none;
  z-index: 0;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 122, 77, 0.22);
  box-shadow: var(--shadow-md);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.card-id {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-main), var(--green-mid));
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 20px rgba(31, 122, 77, 0.16);
}

/* 资源卡片右上角 Logo */
.card-logo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 70px;
  height: 70px;
  padding: 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(31, 122, 77, 0.08);
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

.card-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  position: relative;
  z-index: 2;
  color: var(--green-deep);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 1.16rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
  padding-right: 86px;
}

.card-category {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.08);
  color: var(--green-main);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 0.95rem;
}

.card-section {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
}

.card-section strong {
  display: block;
  color: var(--green-deep);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.card-section p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.78;
}

.status {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.status.open {
  color: var(--green-main);
  background: rgba(31, 122, 77, 0.09);
}

.status.internal {
  color: #8a6a18;
  background: rgba(216, 178, 92, 0.15);
}

.database-card,
.tool-card {
  color: inherit;
}

.database-card:hover .resource-link,
.tool-card:hover .resource-link {
  color: var(--green-deep);
  letter-spacing: 0.03em;
}

.resource-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  color: var(--green-main);
  font-weight: 800;
  transition: 0.25s ease;
}

.empty-message {
  display: none;
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed var(--line);
  border-radius: 20px;
}

/* ==================== 页脚 ==================== */
footer {
  background: linear-gradient(180deg, #0b3d2e, #06261c);
  color: #ffffff;
  padding: 3.6rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(143, 214, 167, 0.15), transparent 28%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-logo-box {
  width: 150px;
  height: 150px;
  object-fit: contain;
  padding: 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 22px rgba(143, 214, 167, 0.22);
  margin: 0 auto 1.2rem;
}

.footer-logo-box img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: contain;
}

.footer-inner h3 {
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer-inner .copyright {
  margin-top: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.56);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1000px) {
  .platform-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 0.8rem;
  }

  .side-title {
    grid-column: 1 / -1;
    margin-bottom: 0.3rem;
  }

  .side-link {
    margin-top: 0;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .page-hero {
    margin-top: 146px;
  }

  .page-hero-logo-img {
    right: 4%;
    width: 200px;
    height: 200px;
    opacity: 0.06;
  }

  .page-hero-watermark-img {
    width: 260px;
    height: 260px;
    left: 75%;
    opacity: 0.035;
  }

  .platform-page-logo-bg {
    width: 220px;
    height: 220px;
    right: -20px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100% - 28px, 1200px);
  }

  .page-hero {
    padding: 4.8rem 0 4rem;
  }

  .platform-page {
    padding: 3.6rem 0 4.5rem;
  }

  .side-nav {
    display: block;
  }

  .side-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
  }

  .side-title {
    margin-bottom: 1rem;
  }

  .side-link {
    text-align: center;
    margin-top: 0.7rem;
  }

  .content-area {
    padding: 1.45rem 1.35rem;
    border-radius: 24px;
  }

  .content-logo-decor {
    top: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    opacity: 0.1;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .panel-title {
    align-items: flex-start;
  }

  .panel-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .logo-text {
    font-size: 1.08rem;
  }

  .logo-subtext {
    font-size: 0.6rem;
  }

  .footer-logo-box {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 520px) {
  .navbar-inner {
    gap: 1rem;
  }

  .top-nav a {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
  }

  .page-hero h1 {
    font-size: 2.1rem;
  }

  .page-desc {
    font-size: 0.94rem;
  }

  .logo-img {
    width: 48px;
    height: 48px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-subtext {
    display: none;
  }

  .page-hero-logo-img,
  .page-hero-watermark-img,
  .platform-page-logo-bg {
    display: none;
  }

  .panel-title {
    flex-direction: column;
    gap: 0.8rem;
  }

  .panel-logo {
    display: none;
  }

  .resource-card {
    padding: 1.18rem;
  }

  .card-logo-badge {
    top: 12px;
    right: 12px;
    width: 58px;
    height: 58px;
    padding: 7px;
    opacity: 0.18;
  }

  .card-title {
    padding-right: 64px;
  }

  .footer-logo-box {
    width: 78px;
    height: 78px;
  }
}