/* --- 全局样式 & 背景 --- */
body,
html {
 margin: 0;
 padding: 0;
 height: 100%;
 font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
 overflow-x: hidden;
 /* 蓝紫色科技感渐变：上蓝 -> 下深紫 */
 background: linear-gradient(180deg, #020024 0%, #090979 35%, #2a003f 100%);
 color: #ffffff;
}

/* --- 1. 顶部导航栏 --- */
nav {
 width: 100%;
 padding: 20px 40px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 box-sizing: border-box;
 background: rgba(255, 255, 255, 0.05);
 backdrop-filter: blur(10px);
 position: fixed;
 top: 0;
 z-index: 100;
 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
 font-size: 1.2rem;
 font-weight: bold;
 letter-spacing: 2px;
 text-transform: uppercase;
 text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* --- 2. Slogan 区域 --- */
.hero-section {
 text-align: center;
 padding-top: 60px;
 padding-bottom: 20px;
 position: relative;
 z-index: 2;
 /* 保证文字在藤蔓之上 */
}

.slogan {
 font-size: 3rem;
 font-weight: 300;
 letter-spacing: 10px;
 background: linear-gradient(to right, #fff, #b3e5fc);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 animation: fadeIn 2s ease-in-out;
}

/* --- 3. 轮播图区域 (中间) --- */
.carousel-container {
 position: relative;
 width: 80%;
 max-width: 900px;
 height: 500px;
 margin: 0 auto 50px auto;
 border-radius: 15px;
 overflow: hidden;
 box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
 border: 1px solid rgba(255, 255, 255, 0.1);
 z-index: 10;
 /* 保证轮播图可以点击 */
 background: rgba(0, 0, 0, 0.2);
}

.carousel-track {
 display: flex;
 transition: transform 0.5s ease-in-out;
 height: 100%;
}

.carousel-slide {
 min-width: 100%;
 height: 100%;
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
}

.carousel-slide img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.carousel-caption {
 position: absolute;
 bottom: 20px;
 left: 20px;
 background: rgba(0, 0, 0, 0.6);
 padding: 5px 15px;
 border-radius: 20px;
 font-size: 0.9rem;
 backdrop-filter: blur(4px);
}

.carousel-btn {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 background: rgba(255, 255, 255, 0.1);
 border: none;
 color: white;
 padding: 15px;
 cursor: pointer;
 font-size: 1.5rem;
 transition: background 0.3s;
 border-radius: 50%;
 backdrop-filter: blur(5px);
}

.carousel-btn:hover {
 background: rgba(255, 255, 255, 0.3);
}

.prev-btn {
 left: 10px;
}

.next-btn {
 right: 10px;
}

/* --- 4. 动态花束 Canvas (全屏覆盖) --- */
#flower-canvas {
 position: fixed;
 top: 0;
 /* 从顶部开始 */
 left: 0;
 width: 100%;
 /* 全屏宽 */
 height: 100%;
 /* 全屏高 */
 pointer-events: none;
 /* 关键：让鼠标点击穿透 Canvas，不影响网页操作 */
 z-index: 1;
 /* 层级在背景之上，但在内容之下 */
}

@keyframes fadeIn {
 from {
  opacity: 0;
  transform: translateY(20px);
 }

 to {
  opacity: 1;
  transform: translateY(0);
 }
}