/* 基础样式 */
:root {
  --vh: 1vh;
  --primary-color: #00c2a8;
  --primary-dark: #007F87;
  --secondary-color: #4cefdf;
  --dark-bg: #1a2634;
  --darker-bg: #0f1a2c;
  --text-light: #ffffff;
  --text-muted: #a0b0c0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh; /* Fallback */
  min-height: calc(var(--vh, 1vh) * 100);
  background-image: linear-gradient(to bottom, rgba(10, 20, 35, 0.9), rgba(15, 26, 44, 0.95)), url('https://images.unsplash.com/photo-1621336337207-de6a4beb9efd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(0, 194, 168, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(76, 239, 223, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

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

/* 科技感元素 */
.tech-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 194, 168, 0.1);
  border: 1px solid rgba(0, 194, 168, 0.2);
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

.tech-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -150px;
}

.tech-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -100px;
}

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

/* 头部样式 */
header {
  background-color: rgba(15, 26, 44, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 194, 168, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo {
  font-size: 40px;
  font-weight: bold;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 10px;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
  bottom: 5px;
  right: 0;
  box-shadow: 0 0 10px var(--primary-color);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 语言切换按钮 */
.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 194, 168, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  touch-action: manipulation;
  color: var(--text-light);
}

.lang-btn:hover {
  background-color: rgba(0, 194, 168, 0.1);
  border-color: var(--primary-color);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--darker-bg);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 194, 168, 0.5);
}

/* 主要内容区域 */
main {
  margin-top: 80px;
  min-height: calc(100vh - 160px); /* Fallback */
  min-height: calc(calc(var(--vh, 1vh) * 100) - 160px);
  width: 100%;
  position: relative;
}

.hero {
  padding: 60px 0;
  text-align: center;
  width: 100%;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.tagline {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 15px;
  text-shadow: 0 2px 10px rgba(0, 194, 168, 0.3);
  position: relative;
  display: inline-block;
}

.tagline::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.subtext {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

/* 特性部分 */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 50px 0;
  width: 100%;
}

.feature {
  background: rgba(15, 26, 44, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 194, 168, 0.2);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 194, 168, 0.2);
  border-color: rgba(0, 194, 168, 0.4);
}

.feature i {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 194, 168, 0.3));
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

/* CTA 区域 */
.cta-section {
  margin: 40px 0;
  width: 100%;
  padding: 0 15px;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.cta {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subscribe-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  position: relative;
}

.subscribe-form::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: rgba(0, 194, 168, 0.05);
  border-radius: 10px;
  z-index: -1;
}

.subscribe-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 1px solid rgba(0, 194, 168, 0.3);
  background: rgba(15, 26, 44, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.subscribe-form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 194, 168, 0.3);
}

.subscribe-form input::placeholder {
  color: var(--text-muted);
}

.subscribe-form button {
  padding: 14px 25px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--darker-bg);
  font-weight: 600;
  border: none;
  border-radius: 0 5px 5px 0;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  box-shadow: 0 5px 15px rgba(0, 194, 168, 0.3);
  position: relative;
  overflow: hidden;
}

.subscribe-form button::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: all 0.6s ease;
}

.subscribe-form button:hover::before {
  left: 100%;
}

.subscribe-form button:hover {
  box-shadow: 0 5px 20px rgba(0, 194, 168, 0.5);
  transform: translateY(-2px);
}

.subscribe-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-note.success {
  color: var(--primary-color);
  font-weight: 500;
}

/* 页脚 */
footer {
  background-color: rgba(10, 20, 35, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  border-top: 1px solid rgba(0, 194, 168, 0.2);
}

.social-links {
  margin-bottom: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
  margin: 0 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(0, 194, 168, 0.3);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--darker-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 194, 168, 0.3);
}

.copyright {
  color: var(--text-muted);
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
  }
  
  header {
    padding: 10px 0;
  }
  
  main {
    margin-top: 120px;
  }
  
  .features {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
  }
  
  .feature {
    width: 100%;
    max-width: 350px;
    padding: 25px;
  }
  
  .tagline {
    font-size: 32px;
  }
  
  .subtext {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .subscribe-form {
    flex-direction: column;
    align-items: center;
  }
  
  .subscribe-form input {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
  }
  
  .subscribe-form button {
    width: 100%;
    border-radius: 5px;
  }
  
  .cta-section {
    margin: 30px 0;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
    margin: 0 8px;
  }
  
  .tech-circle-1, .tech-circle-2 {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 32px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .hero {
    padding: 30px 0;
  }
  
  .tagline {
    font-size: 28px;
  }
  
  .cta {
    font-size: 20px;
  }
  
  .feature {
    padding: 20px;
  }
  
  .feature i {
    font-size: 30px;
    margin-bottom: 10px;
  }
  
  .feature h3 {
    font-size: 18px;
  }
  
  .feature p {
    font-size: 14px;
  }
  
  .form-note {
    font-size: 12px;
  }
  
  .copyright {
    font-size: 12px;
  }
  
  main {
    margin-top: 110px;
  }
}
