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

/* 全局样式 */
:root {
    /* 颜色变量 */
    --primary-color: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary-color: #2E7D32;
    --accent-color: #FF9800;
    --dark-color: #333333;
    --light-color: #f5f5f5;
    --white-color: #ffffff;
    --gray-color: #666666;
    --light-gray: #e0e0e0;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #f44336;
    
    /* 尺寸变量 */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* 阴影变量 */
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* 动画变量 */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
    
    /* 字体变量 */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 36px;
    --font-size-3xl: 48px;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

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

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow-hover);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.navbar-logo:hover {
  transform: scale(1.05);
}
.navbar-logo img{
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-item {
  margin-left: 30px;
  position: relative;
}

.navbar-link {
  color: var(--dark-color);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  transition: color var(--transition);
  padding: 5px 0;
  position: relative;
}

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

.navbar-link:hover {
  color: var(--primary-color);
}

.navbar-link:hover::after {
  width: 100%;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white-color);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

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

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

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
  color: var(--white-color);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1B5E20, var(--secondary-color));
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), #F57C00);
  color: var(--white-color);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #F57C00, #E65100);
}

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

/* 英雄区域样式 */
.hero {
  background: linear-gradient(135deg, #07c160 0%, #06a854 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 70px;
}

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

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* 特性区域样式 */
.features {
  padding: 80px 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0) 70%);
  z-index: 0;
}

.section-title {
  text-align: center;
  font-size: var(--font-size-2xl);
  margin-bottom: 60px;
  color: var(--dark-color);
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  margin: 15px auto 0;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
  box-shadow: var(--box-shadow);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.03), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-top-color: var(--primary-color);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature-description {
  color: var(--gray-color);
  font-size: var(--font-size-base);
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, #2c2c2c, var(--dark-color));
  color: var(--white-color);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.footer-links li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 12px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #ccc;
  position: relative;
  z-index: 1;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  font-size: 18px;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

/* 响应式设计 */
/* 移动端设备 */
@media (max-width: 767px) {
    :root {
        --font-size-xs: 12px;
        --font-size-sm: 14px;
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-xl: 24px;
        --font-size-2xl: 30px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* 导航栏 */
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
        z-index: 1000;
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-menu ul {
        flex-direction: column;
    }
    
    .navbar-menu ul li {
        margin: 8px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 24px;
    }
    
    /* 英雄区域 */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 60px 0 40px;
    }
    
    .hero-text {
        margin-bottom: 30px;
    }
    
    .hero-text h1 {
        font-size: var(--font-size-2xl);
        line-height: 1.3;
    }
    
    .hero-image {
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* 特性区域 */
    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item,
    .advantage-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* 产品功能详情页 */
    .feature-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-detail-content {
        margin-bottom: 30px;
    }
    
    .tech-specs-grid {
        grid-template-columns: 1fr;
    }
    
    /* 微信开放平台 */
    .wechat-section .section-content {
        flex-direction: column;
    }
    
    .wechat-features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        padding: 0;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .step-icon {
        margin-bottom: 15px;
    }
    
    /* 关于我们页面 */
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .about-image img,
    .contact-form {
        width: 100%;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 联系表单 */
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-form,
    .contact-form {
        width: 100%;
        padding: 20px;
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 平板设备 */
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --font-size-xl: 28px;
        --font-size-2xl: 36px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 40px;
    }
    
    .features-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-detail-content {
        margin-bottom: 30px;
    }
    
    .wechat-features-grid,
    .tech-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕桌面 */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .features-grid,
    .advantages-grid {
        gap: 25px;
    }
    
    .process-steps {
        padding: 0 20px;
    }
}

/* 微信开放平台特定样式 */
.wechat-platform {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.platform-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.platform-steps {
  margin: 40px 0;
}

.step-item {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  background-color: #07c160;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-content p {
  color: #666;
}

/* 联系我们样式 */
.contact {
  padding: 80px 0;
  background-color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

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

/* 服务优势样式 */
.advantages {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.advantage-item {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.advantage-icon {
  font-size: 40px;
  color: #07c160;
  margin-bottom: 20px;
}

.advantage-title {
  font-size: 20px;
  margin-bottom: 15px;
}

.advantage-description {
  color: #666;
}