:root {
  --primary-color: #6a9c78; /* 森林绿 */
  --secondary-color: #e8f4ea; /* 浅绿 */
  --accent-color: #d4a574; /* 暖木色 */
  --text-dark: #2c3e2f; /* 深绿灰 */
  --text-light: #5a7160; /* 浅绿灰 */
  --background: #f9fbf7; /* 米白背景 */
  --card-bg: #ffffff; /* 卡片背景 */
  --shadow: 0 8px 24px rgba(106, 156, 120, 0.12);
  --radius: 16px;
}

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

body {
  font-family: "Noto Sans SC", sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.logo-text {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 24px;
  color: var(--primary-color);
}

.logo-subtext {
  font-size: 12px;
  color: var(--text-light);
  margin-top: -4px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

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

nav a:hover::after {
  width: 100%;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(106, 156, 120, 0.3);
}

.cta-button:hover {
  background-color: #5a8a68;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(106, 156, 120, 0.4);
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

/* 主横幅 */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(
    135deg,
    rgba(232, 244, 234, 0.8) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="20" y="50" font-family="Arial" font-size="14" fill="%236a9c78" opacity="0.1">词</text><text x="60" y="80" font-family="Arial" font-size="18" fill="%236a9c78" opacity="0.1">字</text><text x="40" y="30" font-family="Arial" font-size="12" fill="%236a9c78" opacity="0.1">谜</text></svg>');
  background-repeat: repeat;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero-highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(106, 156, 120, 0.2);
  z-index: -1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 功能卡片区域 */
.features {
  padding: 100px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text-dark);
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 15px auto;
  border-radius: 2px;
}

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

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(106, 156, 120, 0.15);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary-color);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 28px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* 页脚样式 */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 70px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-logo {
  font-family: "Ma Shan Zheng", cursive;
  font-size: 28px;
  color: white;
  margin-bottom: 15px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent-color);
  width: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d0d7d2;
  text-decoration: none;
  transition: color 0.3s;
}

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

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0b0a5;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .header-container {
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .features {
    padding: 70px 0;
  }

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

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* 滚动效果 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 装饰元素 */
.leaf-decoration {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.1;
  z-index: 0;
}

.leaf-1 {
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
  color: var(--primary-color);
}

.leaf-2 {
  bottom: 15%;
  right: 8%;
  transform: rotate(-20deg);
  color: var(--accent-color);
}
