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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* 粒子效果容器 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4757;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff4757;
}

.nav-links a.active {
    color: #ff4757;
    border-bottom: 2px solid #ff4757;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #f0f0f0;
}

.lang-btn.active {
    background-color: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #ff4757;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 功能区域样式 */
.features {
    padding: 6rem 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #333;
}

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

.feature-card {
    background-color: #f9fafb;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.feature-card i {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
}

/* 白皮书和OpenClaw区域样式 */
.whitepaper-section, .openclaw-section {
    padding: 6rem 0;
    text-align: center;
}

.whitepaper-section {
    background-color: #f0f4f8;
}

.openclaw-section {
    background-color: #fff;
}

.whitepaper-content, .openclaw-content {
    max-width: 800px;
    margin: 0 auto;
}

.whitepaper-content h2, .openclaw-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.whitepaper-content p, .openclaw-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #666;
}

/* 关于我们样式 */
.about {
    padding: 6rem 0;
    background-color: #f9fafb;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.about > p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #666;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.about-card p {
    color: #666;
}

/* 联系我们样式 */
.contact {
    padding: 6rem 0;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #333;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 2.5rem;
    color: #ff4757;
    margin-bottom: 1rem;
}

.contact-item span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ff4757;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-links a:hover {
    color: #ff4757;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    width: 100%;
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    text-decoration: none;
    color: #aaa;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ff4757;
}

/* 白皮书页面样式 */
.whitepaper-content {
    padding: 4rem 0;
}

.whitepaper-content h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.whitepaper-download {
    text-align: center;
    margin-bottom: 4rem;
}

.whitepaper-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.whitepaper-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.whitepaper-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #333;
}

.whitepaper-section p {
    margin-bottom: 1rem;
    color: #666;
}

.whitepaper-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.whitepaper-section li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* OpenClaw教程页面样式 */
.openclaw-content {
    padding: 4rem 0;
}

.openclaw-content h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.tutorial-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tutorial-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.tutorial-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #333;
}

.tutorial-section p {
    margin-bottom: 1rem;
    color: #666;
}

.tutorial-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.tutorial-section li {
    margin-bottom: 0.5rem;
    color: #666;
}

.tutorial-section pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.tutorial-section code {
    font-family: 'Courier New', Courier, monospace;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.faq-item p {
    color: #666;
    margin-left: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0.5rem 1rem;
    }

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .features h2,
    .whitepaper-content h2,
    .openclaw-content h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }

    .whitepaper-section,
    .openclaw-section,
    .features,
    .about,
    .contact {
        padding: 4rem 0;
    }
}

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

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }

    .feature-card,
    .about-card,
    .contact-item {
        padding: 1.5rem;
    }

    .whitepaper-section,
    .tutorial-section {
        padding: 1.5rem;
    }
}

/* 自定义动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 动画类 */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

/* 文字渐变效果 */
.text-gradient {
  background: linear-gradient(90deg, #ff4757, #ff6b81);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 增强科技感的样式 */
.hero h1 {
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff4757, #ff6b81);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.hero h1:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 增强卡片hover效果 */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 71, 87, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover i {
  transform: scale(1.2);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.8);
}

/* 增强按钮效果 */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

/* 导航栏增强 */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff4757;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 数字计数动画 */
.counter {
  font-size: 2rem;
  font-weight: 700;
  color: #ff4757;
}

/* 科技感背景 */
.tech-bg {
  background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
  position: relative;
}

.tech-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 71, 87, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero h1::after {
    bottom: -5px;
  }
}