/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2f5d43;
  --primary-dark: #1f3d2c;
  --primary-light: #5b8a6a;
  --accent: #b88947;
  --accent-dark: #8f682f;
  --bg: #f6f4ec;
  --bg-alt: #ece7d8;
  --card: #ffffff;
  --text: #2a251d;
  --text-soft: #574d3d;
  --text-muted: #8a7c66;
  --border: #ded6c4;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "Times New Roman", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(246, 244, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-logo .latin {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0;
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-menu a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--primary);
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(91, 138, 106, 0.35), transparent 42%),
    radial-gradient(circle at 82% 62%, rgba(184, 137, 71, 0.30), transparent 46%),
    linear-gradient(135deg, #2f5d43 0%, #1f3d2c 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 30, 20, 0.25) 0%,
    rgba(31, 61, 44, 0.55) 60%,
    rgba(20, 30, 20, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 920px;
}

/* 首行：作者姓名占位（全部以 # 符号作为占位符显示） */
.author-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.author-row__icon {
  font-size: 14px;
  opacity: 0.8;
}

.author-row__name {
  font-family: var(--serif);
  letter-spacing: 5px;
  font-weight: 600;
}

.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 24px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-pinyin {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 2px;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 8px;
}

.hero-latin {
  font-family: var(--sans);
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin: 24px auto 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-meta-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
}

.hero-meta-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-meta-item span {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  animation: float 2.4s ease-in-out infinite;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.5);
  margin: 8px auto 0;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== Container & Sections ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--primary-light);
}

.section-title::before { right: calc(100% + 16px); }
.section-title::after { left: calc(100% + 16px); }

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Plant Directory Grid ===== */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.plant-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(31, 61, 44, 0.3);
  border-color: var(--pc, var(--primary-light));
  text-decoration: none;
}

.plant-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.plant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.plant-card:hover .plant-thumb img {
  transform: scale(1.06);
}

.plant-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.plant-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pc, var(--primary-light)), var(--pcd, var(--primary)));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.plant-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.plant-latin {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
}

.plant-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: 6px;
}

.plant-go {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pc, var(--primary));
}

/* ===== Article (About) ===== */
.article {
  background: var(--card);
  border-radius: 16px;
  padding: 48px 56px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.article h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.4;
}

.article p {
  font-size: 15.5px;
  color: var(--text-soft);
  line-height: 1.95;
  margin-bottom: 16px;
  text-align: justify;
  text-indent: 2em;
}

.article .lead {
  text-indent: 0;
  font-size: 17px;
  color: var(--text);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.footer-tagline {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto 24px;
}

.footer-copy {
  font-size: 12px;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .article {
    padding: 32px 28px;
  }
}

@media (max-width: 720px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  section {
    padding: 70px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .article {
    padding: 24px 20px;
  }
  .article p {
    text-indent: 1.5em;
  }
  .section-title::before,
  .section-title::after {
    display: none;
  }
  .hero {
    min-height: 80vh;
  }
}

@media (max-width: 480px) {
  .hero-meta-item {
    padding: 8px 12px;
    font-size: 12px;
  }
  .hero-meta-item span {
    font-size: 14px;
  }
}
