/* 通用样式文件 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-black: #1a1a1a;
  --gold: #d4af37;
  --white: #ffffff;
  --light-green: #a8d5ba;
  --medium-green: #7ab893;
  --dark-green: #2d5a3d;
  --light-gray: #f5f5f5;
  --text-gray: #666;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: var(--primary-black);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
}

/* 顶部导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo a {
  display: block;
  height: 100%;
}

.logo img {
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-black);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--primary-black);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 10px 0;
  display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--dark-green);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* 页面头部 */
.page-hero {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  margin-top: 80px;
}

.page-hero-content h1 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.page-hero-content p {
  font-size: 20px;
  opacity: 0.95;
}

/* 内容区域 */
.content-section {
  padding: 100px 40px;
  background: var(--white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 300;
  color: var(--primary-black);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.section-title p {
  color: var(--text-gray);
  font-size: 18px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto;
}

/* 两列布局 */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.two-column-layout.reverse {
  direction: rtl;
}

.two-column-layout.reverse>* {
  direction: ltr;
}

.content-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-black);
}

.content-text p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.feature-list {
  list-style: none;
  margin-bottom: 30px;
}

.feature-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-gray);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--medium-green);
  font-weight: bold;
  font-size: 18px;
}

.content-image {
  height: 400px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.content-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.3), rgba(122, 184, 147, 0.2));
}

.content-image .image-placeholder {
  position: relative;
  z-index: 1;
}

.image-placeholder {
  text-align: center;
  font-size: 48px;
}

/* 按钮 */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--primary-black);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
  background: #e8c547;
}

/* 特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  border-color: var(--medium-green);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(122, 184, 147, 0.2);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-black);
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.8;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.5), rgba(122, 184, 147, 0.3));
}

.card-image>* {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.card-content {
  padding: 30px;
}

.card-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-black);
}

.card-content p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.card-price {
  font-size: 28px;
  color: var(--dark-green);
  font-weight: 600;
}

/* 底部导航 */
.footer {
  background: var(--primary-black);
  color: var(--white);
  padding: 80px 40px 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-section h4 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--gold);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* 动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .nav-container {
    padding: 0 20px;
    height: 70px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .page-hero {
    height: 300px;
    margin-top: 70px;
  }

  .page-hero-content h1 {
    font-size: 32px;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-section {
    padding: 60px 20px;
  }

  .card-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}