:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #0a0a0a;
  --text-color: #ffffff;
  --card-bg: rgba(30, 30, 30, 0.6);
  --mouse-x: 0.5;
  --mouse-y: 0.5;
}

/* 引入金渍社德正字体 */
@font-face {
  font-family: 'JinzisheDezheng-Regular_minified';
  src: url('https://fonts-cdn.doubi.ren/JinzisheDezheng-Regular_minified.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 修改字体设置 */
body, html {
  font-family: 'JinzisheDezheng-Regular_minified', 'Microsoft YaHei', 'Source Han Sans SC', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  height: 100%;
  width: 100%;
}

/* 应用到按钮等元素 */
button, select, optgroup, option, textarea, blockquote, dd, dl, figure, form, pre, 
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: 'JinzisheDezheng-Regular_minified', 'Microsoft YaHei', 'Source Han Sans SC', Arial, sans-serif;
}

.hero-container {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* 背景动画 */
.background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at calc(var(--mouse-x) * 100%) calc(var(--mouse-y) * 100%), 
    var(--secondary-color) 0%, 
    var(--primary-color) 30%, 
    var(--background-color) 70%
  );
  opacity: 0.3;
  z-index: -2;
}

/* 噪点覆盖层 */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
  opacity: 0.4;
  z-index: -1;
}

/* 导航栏 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 2.5rem;
  width: auto;
}

.logo span {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

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

.cta-buttons {
  display: flex;
  gap: 1rem;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 主要内容 */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 5rem 0;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.description {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.7;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* 特性卡片 */
.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  width: 300px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(121, 40, 202, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  opacity: 0.7;
  line-height: 1.6;
}

/* 浮动元素 */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 0, 128, 0.2), rgba(121, 40, 202, 0.1));
  filter: blur(20px);
  animation: float 20s infinite ease-in-out;
  animation-delay: var(--delay);
  top: var(--top);
  left: var(--left);
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, 20px) scale(1.1);
  }
  50% {
    transform: translate(0, 40px) scale(0.9);
  }
  75% {
    transform: translate(-50px, 20px) scale(1.05);
  }
}

/* 脉冲动画 */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 128, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 0, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 128, 0);
  }
}

/* 故障文字效果 */
.glitch-text.glitch {
  animation: glitch 0.2s linear;
  position: relative;
}

.glitch-text.glitch::before,
.glitch-text.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glitch-text.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00ffff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  4% {
    clip: rect(69px, 9999px, 43px, 0);
  }
  8% {
    clip: rect(37px, 9999px, 29px, 0);
  }
  12% {
    clip: rect(8px, 9999px, 90px, 0);
  }
  16% {
    clip: rect(75px, 9999px, 5px, 0);
  }
  20% {
    clip: rect(53px, 9999px, 5px, 0);
  }
  24% {
    clip: rect(91px, 9999px, 85px, 0);
  }
  28% {
    clip: rect(15px, 9999px, 5px, 0);
  }
  32% {
    clip: rect(83px, 9999px, 92px, 0);
  }
  36% {
    clip: rect(4px, 9999px, 91px, 0);
  }
  40% {
    clip: rect(37px, 9999px, 5px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 99px, 0);
  }
  4% {
    clip: rect(40px, 9999px, 24px, 0);
  }
  8% {
    clip: rect(87px, 9999px, 59px, 0);
  }
  12% {
    clip: rect(16px, 9999px, 79px, 0);
  }
  16% {
    clip: rect(51px, 9999px, 57px, 0);
  }
  20% {
    clip: rect(46px, 9999px, 80px, 0);
  }
  24% {
    clip: rect(5px, 9999px, 59px, 0);
  }
  28% {
    clip: rect(65px, 9999px, 23px, 0);
  }
  32% {
    clip: rect(51px, 9999px, 75px, 0);
  }
  36% {
    clip: rect(62px, 9999px, 31px, 0);
  }
  40% {
    clip: rect(10px, 9999px, 56px, 0);
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
  }
  
  .features {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

/* 页脚 */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
  text-decoration: underline;
}