:root {
  --bg: #e8f0e8;
  --bg-deep: #dbe9de;
  --text: #2d3d34;
  --text-soft: #6c7972;
  --text-light: #909d96;
  --green: #668f72;
  --green-dark: #4e755a;
  --green-light: #dcebdd;
  --white: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 60px rgba(48, 75, 58, 0.1);
  --shadow-hover: 0 28px 70px rgba(48, 75, 58, 0.16);
  --radius-large: 30px;
  --radius-medium: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "M PLUS Rounded 1c", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 17px;
  color: var(--text);
  background: linear-gradient(135deg, #edf4ed 0%, #e4efe6 45%, #dceae0 100%);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.background {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.background::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -250px;
  left: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 70%);
}

.background::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -300px;
  bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 194, 169, 0.28) 0%, rgba(159, 194, 169, 0) 70%);
}

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 35px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(102, 143, 114, 0.13);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--green-dark); }
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(47, 74, 58, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(102, 143, 114, 0.1);
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  min-height: 330px;
  padding: 62px 70px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.47);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -140px;
  top: -170px;
  border-radius: 50%;
  background: rgba(131, 174, 143, 0.12);
  animation: heroFloat 10s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: 43%;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(45px, 6vw, 70px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -2px;
}

.hero-description {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.avatar-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 45px rgba(47, 74, 58, 0.14);
}

.avatar {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.78);
}

.section { margin-top: 68px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-light);
  font-size: 14px;
}

.section-number {
  color: #9aa69f;
  font-size: 13px;
  letter-spacing: 1px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 30px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 42px rgba(47, 74, 58, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -65px;
  top: -65px;
  border-radius: 50%;
  background: rgba(113, 158, 126, 0.1);
  transition: transform 0.45s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-hover);
}

.card:hover::before { transform: scale(1.45); }

.card-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  border-radius: 15px;
  color: var(--green-dark);
  background: rgba(102, 143, 114, 0.11);
  font-size: 21px;
  font-weight: 700;
}

.card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #304238;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}

.card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.card-arrow {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 26px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.card:hover .card-arrow { transform: translateX(5px); }

.card.featured {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(221, 237, 224, 0.72));
}

.card.featured .card-icon { background: rgba(92, 143, 108, 0.16); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 72px;
  padding: 24px 4px;
  border-top: 1px solid rgba(90, 120, 100, 0.12);
  color: var(--text-light);
  font-size: 13px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.8;
}

.version-badge {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  height: 20px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(37, 55, 44, 0.18);
  cursor: help;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.version-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 55, 44, 0.24);
}

.version-badge .vb-label,
.version-badge .vb-value {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.version-badge .vb-label {
  color: #eef4ef;
  background: #5a6b62;
}

.version-badge .vb-value {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.version-history {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: 220px;
  padding: 14px 16px;
  opacity: 0;
  visibility: hidden;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-hover);
  backdrop-filter: blur(14px);
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.version-badge:hover .version-history,
.version-badge:focus-visible .version-history {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.version-history ul {
  margin: 8px 0 0;
  padding-left: 16px;
  list-style: none;
}

.version-history li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 14px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.version-history li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.version-history li b { color: var(--text); }

.version-history-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 800px) {
  .page {
    width: calc(100% - 28px);
    padding: 18px 0 25px;
  }

  .navbar {
    margin-bottom: 28px;
    flex-wrap: wrap;
  }

  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 45px 25px;
    text-align: center;
    border-radius: 25px;
  }

  .avatar-wrapper {
    order: 1;
    margin-bottom: 28px;
  }

  .hero-text { order: 2; }

  .avatar-ring {
    width: 140px;
    height: 140px;
  }

  .avatar {
    width: 122px;
    height: 122px;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -1.5px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.9;
  }

  .section { margin-top: 48px; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }
  .section-number { font-size: 12px; }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    min-height: 235px;
    padding: 27px;
  }

  .card h2 { font-size: 22px; }

  .card p {
    font-size: 14px;
    line-height: 1.9;
  }

  .card-arrow { font-size: 14px; }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin-top: 50px;
    font-size: 12px;
  }

  .footer-right {
    flex-direction: column;
    gap: 10px;
  }

  .version-history {
    right: 50%;
    transform: translate(50%, 6px);
  }

  .version-badge:hover .version-history,
  .version-badge:focus-visible .version-history {
    transform: translate(50%, 0);
  }
}

@media (max-width: 400px) {
  .hero { padding: 38px 20px; }

  .hero h1 { font-size: 41px; }
  .hero-description { font-size: 14px; }
  .hero-description br { display: none; }

  .card {
    min-height: 220px;
    padding: 24px;
  }

  .card p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before {
    animation: none !important;
    transition: none !important;
  }
}
