/* ====================
   涞水县云仓文化发展有限公司 - 企业官网样式
   主色调：翠绿色
   ==================== */

/* CSS变量定义 */
:root {
  --primary-color: #2E8B57;      /* 主色 - 海绿色 */
  --primary-light: #3CB371;      /* 辅助色 - 中海绿色 */
  --primary-dark: #1B5E20;       /* 深色 */
  --primary-bg: #E8F5E9;         /* 浅绿背景 */
  --text-primary: #333333;       /* 主文字 */
  --text-secondary: #666666;     /* 副文字 */
  --text-light: #999999;         /* 浅色文字 */
  --white: #ffffff;
  --bg-light: #f8fdf9;
  --border-color: #e0e0e0;
  --shadow: 0 2px 12px rgba(46, 139, 87, 0.1);
  --shadow-hover: 0 8px 24px rgba(46, 139, 87, 0.15);
  --transition: all 0.3s ease;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
}

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

ul {
  list-style: none;
}

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

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

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 20px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 8px 0;
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ==================== Hero区域 ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #d4edda 100%);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.1) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(46, 139, 87, 0.1);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* ==================== 通用区块 ==================== */
.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ==================== 优势卡片 ==================== */
.advantages {
  background: var(--white);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.advantage-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.advantage-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-bg), #d4edda);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.advantage-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==================== 服务展示 ==================== */
.services {
  background: var(--bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.service-image svg {
  width: 64px;
  height: 64px;
  opacity: 0.9;
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-content .link {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-content .link:hover {
  gap: 10px;
}

/* ==================== 关于我们页面 ==================== */
.page-banner {
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 70px;
}

.page-banner h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.9;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 16px;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-bg), #d4edda);
  border-radius: 20px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image svg {
  width: 120px;
  height: 120px;
  color: var(--primary-color);
  opacity: 0.6;
}

/* 企业文化 */
.culture {
  background: var(--bg-light);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.culture-item {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.culture-item h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.culture-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 时间线 */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding: 30px 0;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.timeline-content h4 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== 产品服务页面 ==================== */
.service-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-content h3 {
  font-size: 26px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.service-detail-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.service-detail-content ul {
  margin-bottom: 24px;
}

.service-detail-content li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.service-detail-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-detail-image {
  background: linear-gradient(135deg, var(--primary-bg), #d4edda);
  border-radius: 20px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-image svg {
  width: 80px;
  height: 80px;
  color: var(--primary-color);
  opacity: 0.6;
}

/* ==================== 联系我们页面 ==================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.contact-item-content h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-item-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 联系表单 */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==================== 底部 ==================== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  padding: 6px 0;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* ==================== 动画 ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
    display: none;
  }

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

  .nav-menu a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .advantage-grid,
  .culture-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-wrapper,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .page-banner {
    height: 200px;
  }

  .page-banner h1 {
    font-size: 32px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 20px;
  }

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

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .advantage-card,
  .culture-item {
    padding: 30px 20px;
  }
}
