/* ===== 共享变量与基础样式 ===== */
:root {
  --agri-900: #0f3d2e;
  --agri-800: #175a42;
  --agri-700: #1f7a58;
  --agri-600: #2a9d6e;
  --agri-500: #3eb884;
  --agri-100: #e6f4ec;
  --agri-50:  #f2faf5;

  --tech-900: #0c2a5c;
  --tech-800: #143d7a;
  --tech-700: #1e56a6;
  --tech-600: #2e73c9;
  --tech-500: #4a8fe0;
  --tech-100: #e3edf9;
  --tech-50:  #f1f6fd;

  --ink-900: #1a1f2c;
  --ink-800: #2a3142;
  --ink-700: #3d4558;
  --ink-500: #6b7388;
  --ink-400: #9aa2b5;
  --ink-200: #d8dbe3;
  --ink-100: #eceef3;
  --ink-50:  #f6f7fa;
  --paper:   #fafbfc;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 60, 0.04), 0 1px 3px rgba(20, 30, 60, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 30, 60, 0.06), 0 8px 24px rgba(20, 30, 60, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 30, 60, 0.08), 0 24px 60px rgba(20, 30, 60, 0.10);
}

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

html, body {
  height: 100%;
}

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--paper);
  color: var(--ink-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(42, 157, 110, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(46, 115, 201, 0.05) 0%, transparent 45%),
    linear-gradient(rgba(20, 60, 100, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 60, 100, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ===== Navbar ===== */
.navbar {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(250, 251, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.nav-brand-text {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-brand-text .accent-green { color: var(--agri-700); }
.nav-brand-text .accent-blue  { color: var(--tech-700); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink-800); }

.nav-links a.active {
  color: var(--ink-900);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--agri-600);
  border-radius: 1px;
}

/* ===== Page Layout ===== */
.page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 32px;
  flex: 1;
}

/* ===== Page Header ===== */
.page-header {
  text-align: center;
  padding: 56px 0 40px;
}

.page-title {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--ink-500);
  letter-spacing: 0.5px;
}

.section-title {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-100);
  letter-spacing: 1px;
}

.section-title .accent {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--agri-600);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: -3px;
}

.section {
  margin-bottom: 56px;
}

/* ===== Cards (通用) ===== */
.card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  line-height: 1;
}

.btn-primary {
  background: var(--agri-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--agri-700);
  box-shadow: 0 4px 14px rgba(42, 157, 110, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--tech-700);
  border: 1px solid var(--tech-200, #cddff3);
}
.btn-outline:hover {
  background: var(--tech-50);
  border-color: var(--tech-500);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: var(--ink-400);
  font-size: 13px;
  letter-spacing: 0.5px;
  width: 100%;
  padding: 24px 32px;
  border-top: 1px solid var(--ink-100);
  margin-top: 40px;
}

.footer .lab-name {
  color: var(--ink-500);
  font-weight: 500;
}

.footer .lab-name strong {
  color: var(--ink-700);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .page-header { padding: 40px 0 28px; }
  .section { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .navbar-inner {
    padding: 0 16px;
    height: 56px;
  }
  .nav-brand-text { font-size: 13px; }
  .nav-logo { width: 28px; height: 28px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .page { min-height: calc(100vh - 56px); }
  .container { padding: 0 16px; }
  .page-header { padding: 32px 0 20px; }
  .footer { font-size: 12px; padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
