/* Global CSS Variables and Base Styles for FloraRend */

:root {
  --color-bg: #FAFAF7;           /* 暖白，接近自然纸张感 */
  --color-text: #1A1A1A;         /* 近黑，柔和不刺眼 */
  --color-muted: #6B6B6B;        /* 中灰，用于副标题、说明文字 */
  --color-accent: #C8A882;       /* 暖金棕，来自干燥花茎的颜色 */
  --color-green: #4A7C59;        /* 深叶绿，用于标签、按钮 */
  --color-border: #E8E4DC;       /* 浅米色 */

  --font-serif: 'Playfair Display', 'Noto Serif SC', serif;
  --font-sans: 'Inter', 'Noto Sans SC', sans-serif;

  --max-width: 1200px;
  --reading-width: 680px;
  --nav-height: 64px;
  --nav-padding-horizontal: 48px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.3;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.reading-container {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography styles */
.text-primary {
  color: var(--color-text);
}

.text-muted {
  color: var(--color-muted);
}

.text-accent {
  color: var(--color-accent);
}

.text-green {
  color: var(--color-green);
}

.bg-green {
  background-color: var(--color-green);
  color: white;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--color-green);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Responsive breakpoints */
@media (min-width: 768px) {
  .container,
  .reading-container {
    padding: 0 48px;
  }
}

/* Utility classes */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Navigation styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: transparent;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  padding: 0 var(--nav-padding-horizontal);
}

.nav-logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav-logo small {
  font-size: 0.7rem;
  color: var(--color-muted);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  margin: 2px 0;
  transition: 0.3s;
}

/* Footer styles */
footer {
  background-color: var(--color-text);
  color: white;
  padding: 2rem 0;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
}

.footer-left {
  font-size: 0.9rem;
}

.footer-center {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-center a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-center a:hover {
  opacity: 0.8;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.footer-subscribe {
  display: flex;
  gap: 0.5rem;
}

.footer-subscribe input {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: none;
  background-color: #333;
  color: white;
}

.footer-subscribe input::placeholder {
  color: #aaa;
}

.footer-subscribe button {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive navigation */
@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-center {
    justify-content: center;
  }

  .footer-right {
    justify-content: center;
  }
}

/* Hero section styles */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-image img {
  border-radius: 8px;
  width: 100%;
  display: block;
}

/* Stats band styles */
.stats-band {
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Features/styles */
.features {
  background-color: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
}

.feature-card h3 {
  margin: 1.5rem 0 1rem 0;
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--color-muted);
}

.feature-icon {
  margin: 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subscribe section */
.subscribe-section {
  padding: 4rem 0;
}

.subscribe-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.subscribe-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background-color: white;
  font-family: var(--font-sans);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Vision page styles */
.vision-page {
  padding: 4rem 0;
}

.vision-page p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

/* Report page styles */
.report-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 4rem 0;
}

.sidebar {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  height: fit-content;
}

.sidebar h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.toc {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-bottom: 0.8rem;
}

.toc a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: var(--color-accent);
}

.report-content {
  padding: 1rem 0;
}

.report-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.report-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.report-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--color-accent);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
}

.abstract {
  background-color: #f9f8f5;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
}

.report-section h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.chart-container {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* About page styles */
.about-page {
  padding: 4rem 0;
}

.status-update {
  background-color: #F0EBE1;
  padding: 24px;
  border-radius: 8px;
  margin: 2rem 0;
}

.contact-methods p {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

/* Button outline variant */
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-green);
  color: var(--color-green);
  margin-left: 1rem;
}

.btn-outline:hover {
  background-color: var(--color-green);
  color: white;
}

/* Common layout classes */
.text-center {
  text-align: center;
}

.ml-2 {
  margin-left: 1rem;
}

/* Reports list styles */
.reports-list {
  margin: 4rem 0; /* 64px margin above the first card */
}

.report-card {
  background-color: white;
  border-radius: 8px;
  padding: 2.5rem; /* 40px padding */
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  position: relative;
  max-width: 800px; /* Maximum width */
  margin-left: auto; /* Center horizontally */
  margin-right: auto; /* Center horizontally */
}

.report-card h2 {
  margin-bottom: 0.8rem;
}

.report-card h2 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.report-card h2 a:hover {
  color: var(--color-accent);
}

.report-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-excerpt {
  color: var(--color-muted);
  line-height: 1.7;
}

.report-link {
  margin-top: 1rem;
  text-align: right;
}

.read-more-link {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 500;
}

.read-more-link:hover {
  text-decoration: underline;
}

.reports-intro {
  color: var(--color-muted);
  font-size: 16px;
  text-align: center;
}

.breadcrumb {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .footer-subscribe {
    width: 100%;
    max-width: 300px;
  }

  .footer-subscribe input {
    flex: 1;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .report-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tags {
    align-self: flex-start;
  }

  .report-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .report-card {
    padding: 1rem;
  }
}
@media (max-width: 1023px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .footer-subscribe {
    width: 100%;
    max-width: 300px;
  }

  .footer-subscribe input {
    flex: 1;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .report-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tags {
    align-self: flex-start;
  }
}