/* ==========================================================================
   良心云机场 - Botanical Archive & Earthy Minimalist Design System
   植物标本图鉴与生态纸浆风格 | 大地色系与慢生活沉静感
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* 地调色板 / Earthy Palette */
  --bg-paper: #f4efe6;           /* 燕麦麻色 / 未漂白生态纸 */
  --bg-paper-alt: #e8e2d5;       /* 浅灰绿草木纸 */
  --bg-card: #faf7f0;            /* 标本台纸白 */
  --bg-card-hover: #ffffff;      /* 聚焦高亮白 */
  
  --color-sage: #5a705a;         /* 鼠尾草绿 (主品牌色) */
  --color-sage-light: #7a8f7a;   /* 浅鼠尾草绿 */
  --color-sage-dark: #3e503e;    /* 深鼠尾草绿 */
  --color-sage-bg: #eef2ed;      /* 鼠尾草绿浅衬底 */
  
  --color-dried-yellow: #c49b48; /* 风干枯植黄 (状态徽章与核心高亮) */
  --color-dried-yellow-bg: #f9f4e8;
  
  --color-earth-dark: #2c2a26;   /* 泥土暗灰 (主文本) */
  --color-leaf-gray: #686259;    /* 风干叶影灰 (次要文本) */
  --color-border: rgba(138, 126, 107, 0.28); /* 浅褐线 */
  --color-border-strong: rgba(138, 126, 107, 0.55);
  
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(44, 42, 38, 0.05);
  --shadow-card: 0 8px 30px rgba(90, 112, 90, 0.08);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置与背景纹理 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-paper);
  background-image: 
    radial-gradient(var(--color-border) 0.75px, transparent 0.75px),
    linear-gradient(to bottom, rgba(244, 239, 230, 0.8), rgba(232, 226, 213, 0.95));
  background-size: 24px 24px, 100% 100%;
  color: var(--color-earth-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* 浮动落叶微特效 */
.ambient-leaf-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-leaf {
  position: absolute;
  opacity: 0.25;
  filter: blur(0.5px);
  animation: floatLeaf 18s infinite linear;
}

@keyframes floatLeaf {
  0% {
    transform: translateY(-10%) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(110vh) rotate(360deg) translateX(80px);
    opacity: 0;
  }
}

a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-sage-dark);
}

/* 排版类 */
.font-serif {
  font-family: var(--font-serif);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-earth-dark);
  font-weight: 600;
  line-height: 1.35;
}

/* 标本图鉴标签与标尺细节 */
.specimen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-sage-bg);
  color: var(--color-sage-dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-sage-light);
  font-weight: 500;
}

.specimen-badge::before {
  content: '🌿';
  font-size: 0.8rem;
}

.lat-long-badge {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--color-leaf-gray);
  letter-spacing: 0.1em;
  border-left: 2px solid var(--color-dried-yellow);
  padding-left: 8px;
  font-style: italic;
}

/* 页面打孔感装饰 */
.paper-punched {
  position: relative;
}

.paper-punched::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  background-color: var(--bg-paper-alt);
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px rgba(44, 42, 38, 0.2);
}

/* 布局容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 顶部导航栏 */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  transition: all var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-sage);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px solid var(--bg-paper);
  box-shadow: 0 2px 8px rgba(90, 112, 90, 0.3);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-earth-dark);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--color-leaf-gray);
  display: block;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--color-earth-dark);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-sage);
  transition: width var(--transition-fast);
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-sage);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(90, 112, 90, 0.25);
  transition: all var(--transition-fast);
  border: 1px solid var(--color-sage-dark);
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(90, 112, 90, 0.35);
}

.cta-button-outline {
  background-color: transparent;
  color: var(--color-sage) !important;
  border: 1.5px solid var(--color-sage);
  box-shadow: none;
}

.cta-button-outline:hover {
  background-color: var(--color-sage-bg);
  transform: translateY(-2px);
}

/* 首页 Hero 首屏 */
.hero-section {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-tag-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-earth-dark);
}

.hero-title span {
  color: var(--color-sage);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(196, 155, 72, 0.25);
  z-index: -1;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-leaf-gray);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px dashed var(--color-border-strong);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-sage-dark);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-leaf-gray);
}

/* 标本插图展示卡 */
.herbarium-display-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.herbarium-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.herbarium-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-leaf-gray);
}

/* 核心优势板块 */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-leaf-gray);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all var(--transition-normal);
  position: relative;
}

.feature-card:hover {
  background-color: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-sage-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-sage-bg);
  color: var(--color-sage);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-leaf-gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* 套餐价格板块 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--color-sage);
  background-color: #fff;
  transform: scale(1.03);
  box-shadow: var(--shadow-card);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--color-dried-yellow);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.pricing-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  margin-bottom: 16px;
}

.pricing-price span {
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-leaf-gray);
  font-weight: normal;
}

.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-earth-dark);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-sage);
  font-weight: bold;
}

/* 适合人群与场景 */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}

.audience-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

/* 交互式客户端教程Tab */
.tutorial-box {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.tutorial-tabs {
  display: flex;
  background-color: var(--bg-paper-alt);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.tab-btn {
  padding: 16px 28px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-leaf-gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--color-sage-dark);
  border-bottom-color: var(--color-sage);
  background-color: var(--bg-card);
}

.tab-content {
  padding: 40px;
  display: none;
}

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

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  background-color: var(--color-sage);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-serif);
}

.step-body h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.step-body p {
  color: var(--color-leaf-gray);
  font-size: 0.95rem;
}

/* FAQ 常见问题折叠面板 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-earth-dark);
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-sage);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--color-leaf-gray);
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px dashed transparent;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 16px 24px 24px;
  border-top-color: var(--color-border);
}

/* 用户评价列表 */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.testimonial-quote {
  font-style: italic;
  color: var(--color-earth-dark);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  background-color: var(--color-sage-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* 文章目录列表与筛选 */
.article-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 8px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--color-leaf-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--color-sage);
  color: #fff;
  border-color: var(--color-sage);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-sage-light);
}

.article-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.article-tag {
  font-size: 0.75rem;
  color: var(--color-sage-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-summary {
  color: var(--color-leaf-gray);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-leaf-gray);
  border-top: 1px dashed var(--color-border);
  padding-top: 12px;
}

/* 文章详情页内部样式 */
.article-header-meta {
  margin-bottom: 32px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--color-border-strong);
}

.article-header-meta h1 {
  font-size: 2.4rem;
  margin: 16px 0;
  line-height: 1.3;
}

.article-content-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-earth-dark);
}

.article-content-body h2 {
  font-size: 1.7rem;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-sage-dark);
}

.article-content-body h3 {
  font-size: 1.3rem;
  margin: 28px 0 14px;
}

.article-content-body p {
  margin-bottom: 20px;
}

.article-content-body ul, .article-content-body ol {
  margin: 0 0 24px 24px;
}

.article-content-body li {
  margin-bottom: 8px;
}

.article-callout {
  background-color: var(--color-sage-bg);
  border-left: 4px solid var(--color-sage);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-size: 0.98rem;
}

/* 页脚样式 */
.site-footer {
  background-color: #262421;
  color: #c5beba;
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 2px solid var(--color-sage);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #a8a099;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8c857f;
  flex-wrap: wrap;
  gap: 16px;
}

/* Toast 简单提醒 */
.botanical-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-earth-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.botanical-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

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

  .nav-links {
    display: none; /* 可用 Mobile toggle 替代 */
  }

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