:root {
    --hot-pink: #ff3366;
    --bright-cyan: #00ffcc;
    --yellow: #ffe600;
    --purple: #9340ed;
    --dark-purple: #340065;
    --black: #070019;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

.bg-art {
    position: fixed;
    z-index: 0;
    top: 0; left: 0; 
    width: 100vw; 
    height: 100vh;
    pointer-events: none;
    
    /* 使用 bg.png 作为背景 */
    background-image: url('../bg.png');
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-out;
}

/* 渐变蒙版 */
.bg-art::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        120deg, 
        rgba(162, 89, 255, 0.6) 0%, 
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* 粒子效果容器 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: float-particle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(var(--random1), var(--random2));
    }
    50% {
        transform: translate(var(--random3), var(--random4));
    }
    75% {
        transform: translate(var(--random5), var(--random6));
    }
}

.logo-container {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-container img {
    width: 180px;
    height: auto;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

#hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.slogan-container {
    margin-bottom: 40px;
    transform: skew(-5deg);
}

.line1, .line2 {
    font-family: 'Luckiest Guy', cursive;
    display: block;
    letter-spacing: 0.05em;
    line-height: 1;
}

.line1 {
    font-size: 8vw;
    color: var(--hot-pink);
    margin-bottom: 0.1em;
}

.line2 {
    font-size: 10vw;
    color: var(--bright-cyan);
}

/* 文字动画效果 */
.animate-text {
    opacity: 0;
    animation: pop-in 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.line1.animate-text {
    animation-delay: 0.3s;
}

.line2.animate-text {
    animation-delay: 0.8s;
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 在 css/style.css 中找到 .cta-button 样式并修改/替换为以下内容 */
.cta-button {
    display: inline-block;
    background-color: #ffe600; /* 纯黄色 */
    color: #000;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 35px;
    margin: 30px 0;
    position: relative;
    z-index: 10; /* 提高z-index确保可见 */
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 230, 0, 0.7);
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite 2s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 230, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 230, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 230, 0, 0);
    }
}

.cta-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 230, 0, 0.5);
    animation: none;
}

/* 修改 .subtitle 样式，使其在一行显示且不倾斜 */
.subtitle {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem; /* 略微减小字号以适应一行 */
    color: #fffc82; /* 淡黄色，与按钮呼应 */
    letter-spacing: 0.05em;
    text-shadow: 3px 3px 0 rgba(255, 45, 122, 0.7);
    transform: rotate(0deg); /* 不倾斜 */
    margin-top: 35px;
    white-space: nowrap; /* 强制在一行显示 */
    max-width: none; /* 移除宽度限制 */
    line-height: 0.2;
}

/* 媒体查询，在小屏幕上调整字号 */
@media (max-width: 768px) {
    .subtitle {
        font-size: 0.9rem; /* 在移动设备上缩小字号 */
        white-space: normal; /* 在小屏幕上允许换行 */
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 在css/style.css文件中添加以下样式 */

/* 修改footer样式 */
footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    z-index: 2;
    position: relative;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.social-icon span {
    font-family: 'Baloo 2', 'Arial', sans-serif;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .line1 {
        font-size: 38px;
    }
    .line2 {
        font-size: 48px;
    }
    .cta-button {
        font-size: 1.2rem;
        padding: 12px 30px;
    }
    .logo-container img {
        width: 120px;
    }
    .subtitle {
        font-size: 1.1rem;
    }
}
/* 在CSS文件末尾添加以下内容 */

/* 频闪故障效果 */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1.5s ease-out 2.5s forwards;
    pointer-events: none;
  }
  
  .glitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 1px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(255, 255, 255, 0.03) 2px
    );
    animation: glitchLines 0.3s steps(1) infinite;
  }
  
  .glitch-text {
    font-family: 'Luckiest Guy', cursive;
    font-size: 5rem;
    color: #fff;
    text-shadow: 
      2px 2px 0px #ff3366,
      -2px -2px 0px #00ffcc;
    animation: glitchText 0.5s ease-in-out infinite alternate;
    letter-spacing: 5px;
  }
  
  @keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
  }
  
  @keyframes glitchLines {
    0%, 100% { opacity: 1; transform: translateX(0); }
    25% { opacity: 0.8; transform: translateX(5px); }
    50% { opacity: 0.9; transform: translateX(-5px); }
    75% { opacity: 0.7; transform: translateX(3px); }
  }
  
  @keyframes glitchText {
    0% {
      text-shadow: 
        2px 2px 0px #ff3366,
        -2px -2px 0px #00ffcc;
      transform: translateX(0);
    }
    25% {
      text-shadow: 
        -2px 2px 0px #ff3366,
        2px -2px 0px #00ffcc;
      transform: translateX(2px);
    }
    75% {
      text-shadow: 
        2px -2px 0px #ff3366,
        -2px 2px 0px #00ffcc;
      transform: translateX(-2px);
    }
    100% {
      text-shadow: 
        -2px -2px 0px #ff3366,
        2px 2px 0px #00ffcc;
      transform: translateX(0);
    }
  }
  
  /* 按钮爆炸出现效果 */
  .cta-button {
    opacity: 0; /* 初始隐藏 */
    transform: scale(0.5);
  }
  
  .boom-in {
    animation: boomIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s forwards;
  }
  
  @keyframes boomIn {
    0% {
      opacity: 0;
      transform: scale(0.1);
      box-shadow: 0 0 0 0 rgba(255, 230, 0, 0.8);
    }
    50% {
      opacity: 1;
      transform: scale(1.2);
      box-shadow: 0 0 30px 10px rgba(255, 230, 0, 0.5);
    }
    80% {
      transform: scale(0.9);
      box-shadow: 0 0 10px 5px rgba(255, 230, 0, 0.3);
    }
    100% {
      opacity: 1;
      transform: scale(1);
      box-shadow: 0 0 5px 2px rgba(255, 230, 0, 0.2);
    }
  }
  
  /* 其他元素的延迟出现 */
  .main-slogan, .subtitle {
    opacity: 0;
  }
  
  .fade-in-delay {
    animation: fadeIn 1s ease-out 3.2s forwards;
  }
  
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  .explosion-particle {
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 9;
  }