:root {
    --primary-color: #ed6e2e;
    --primary-color-hover: #ff7e5f;
    --secondary-color: #333;
    --text-color: #333;
    --background-color: #fff;
    --accent-color: #f1f3f4;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lora', serif;
    --header-height: 60px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.mainBg {
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -10;
    overflow: hidden;
    width: 100%;
}

.mainBgPurple {
    background-color: rgba(193, 113, 255, .2);
    transform: translate3d(-100%, -80%, 0);
}
.mainBgRed {
    background-color: hsla(0, 100%, 72%, .2);
    transform: translate3d(-20%, -40%, 0);
}
.mainBgYellow {
    background-color: rgba(255, 219, 113, .2);
    transform: translate3d(60%, -70%, 0);
}
.mainBgGreen {
    background-color: rgba(113, 255, 225, .2);
    transform: translate3d(80%, -10%, 0);
}
.mainBgBlue {
    background-color: rgba(113, 225, 255, .2);
    transform: translate3d(-80%, -10%, 0);
}
.mainBgColor {
    border-radius: 100%;
    bottom: 0;
    filter: blur(100px);
    height: 50%;
    left: 0;
    margin: auto;
    opacity: .6;
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
}

/* 统一 Header 和 Hero 的 Wrapper 渐变背景 */
.header-hero-wrapper {
    color: var(--text-color);
}

/* Header 部分样式 */
header {
    padding: 20px 0;
    transition: background-color 0.3s ease;
}

.logo {
    width: 36px;
    height: 36px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style-type: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: var(--font-secondary);
}

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

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    background: transparent;
    color: var(--text-color);
}

#hero .hero-content {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #555;
    max-width: 660px;
    padding: 0 20px;
}

#hero h1 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-secondary);
}

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

.cta-button img.cta-icon {
    filter: brightness(0) invert(1); /* 将图标颜色反转以适应白色文字 */
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.demo-video {
    max-width: 800px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 40px auto;
    padding-bottom: 25%; 
    padding-left: 10px;
    padding-right: 10px;
}

.demo-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

section {
    padding: 66px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

#demo-video {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 50%;
}

.feature-image {
    flex: 1;
    max-width: 50%;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.feature-item h3 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: var(--font-secondary);
}

.testimonial-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial, .team-member {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.testimonial cite {
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px; /* 添加左右内边距 */
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* 确保padding不会增加元素的总宽度 */
}

textarea {
    height: 150px;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer .logo {
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
}

.social-links img {
    width: 24px;
    height: 24px;
}

.legal-links {
    margin-left: 20px;
}

.legal-links a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 新增或修改的响应式样式 */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .feature-item, .feature-item.reverse {
        flex-direction: column;
    }
    
    .feature-content, .feature-image {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        font-size: 1rem;
    }
    
    .demo-video {
        padding-bottom: 56.25%; /* 16:9 宽高比 */
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    form {
        width: 100%;
    }
    
    .language-switcher {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    /* h2 {
        font-size: 1.8rem;
    } */
    
    .feature-item h3 {
        font-size: 1.5rem;
    }
    
    form {
        padding: 0 10px; /* 在更小的屏幕上减少内边距 */
    }

    input, textarea {
        font-size: 16px; /* 增加字体大小,防止iOS自动缩放 */
    }
}

.language-switcher {
    position: relative;
    display: inline-block;
}

#language-toggle {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 10px;
    transition: background-color 0.3s ease;
}

#language-toggle:hover {
    color: var(--primary-color-hover);
}

#language-toggle svg {
    margin-right: 5px;
}

/* 修改现有的 #language-dropdown 样式 */
#language-dropdown {
    position: absolute;
    top: 100%;
    right: 0; /* 改为右对齐 */
    background-color: white;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 0;
    margin: 5px 0 0;
    list-style: none;
    z-index: 1000;
    min-width: 120px; /* 设置最小宽度 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#language-dropdown li {
    padding: 0; /* 移除内边距 */
}

#language-dropdown a {
    color: var(--text-color);
    text-decoration: none;
    display: block; /* 使链接占满整个li */
    padding: 8px 15px; /* 增加内边距以提高可点击区域 */
    transition: background-color 0.3s ease;
}

#language-dropdown a:hover {
    color: var(--primary-color);
}

#language-dropdown.hidden {
    display: none;
}

#language-dropdown li {
    padding: 5px 10px;
}

#language-dropdown a {
    color: var(--text-color);
    text-decoration: none;
}

#language-dropdown a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }

  .menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

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

  .nav-menu li {
    margin: 10px 0;
  }

  .language-switcher {
    position: static;
  }

  #language-dropdown {
    position: static;
    display: none;
    margin-top: 10px;
    box-shadow: none;
    border: none;
  }

  #language-dropdown.active {
    display: block;
  }

  .demo-video {
    margin: 20px;
    padding: 0;
    padding-bottom: 56.25%;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }
}

/* 添加移动端样式 */
@media (max-width: 768px) {
    section {
        padding: 20px 0;
    }
  /* 导航栏样式 */
  nav {
    padding: 10px 5%;
  }

  .logo-container {
    flex: 1;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }

  .menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
  }

  /* 英雄区域样式 */
  #hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* 功能区域样式 */
  .feature-item, .feature-item.reverse {
    flex-direction: column;
  }

  .feature-content, .feature-image {
    max-width: 100%;
  }

  .feature-item h3 {
    font-size: 1.8rem;
  }

  /* 用户评价样式 */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* 联系我们表单样式 */
  form {
    padding: 0 10px;
  }

  /* 页脚样式 */
  .footer-bottom {
    flex-direction: column;
  }

  .legal-links {
    margin-top: 10px;
    margin-left: 0;
  }
}

/* 更小屏幕的额外调整 */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    font-size: 14px;
    padding: 8px 16px;
  }

  h2 {
    font-size: 1.6rem;
  }

  .feature-item h3 {
    font-size: 1.5rem;
  }
}

/* 在现有的 CSS 中添加或修改以下样式 */

header {
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    header {
        position: relative;
        z-index: 1001; /* 确保 header 在 nav-menu 之上 */
    }

    header.menu-active {
        background-color: white;
    }

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