/* Reset & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #4e54c8, #8f00ff);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: #ff6ec7;
}
a:hover {
    color: #fff;
}

/* 通用容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题 */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #8f00ff, 0 0 20px #4e54c8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(90deg, #4e54c8, #8f00ff);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 0 10px #8f00ff;
    text-align: center;
}
.btn:hover {
    background: linear-gradient(90deg, #8f00ff, #4e54c8);
    box-shadow: 0 0 25px #ff6ec7;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
nav .logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
nav ul li a {
    font-weight: 600;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
}

/* 首页 Banner */
.banner {
    position: relative;
    text-align: center;
    height: 60vh;
    background: url('banner.jpg') no-repeat center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: bannerMove 20s infinite alternate;
}
@keyframes bannerMove {
    0% {background-position: center top;}
    50% {background-position: center center;}
    100% {background-position: center bottom;}
}
.banner h1 {
    font-size: 40px;
    margin-bottom: 15px;
    text-shadow: 0 0 25px #ff6ec7, 0 0 50px #4e54c8;
}
.banner p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #4e54c8;
}

/* 页面段落 */
.section {
    padding: 50px 0;
}

/* 卡片模块 */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.card-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-align: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.card-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card-item h3 {
  color: #fff;
  margin: 8px 0 5px;
  font-size: 1.1rem;
}

.card-item p {
  color: #ddd;
  font-size: 0.9rem;
}


/* 页脚 */
footer {
    text-align: center;
    padding: 30px 0;
    background: #111;
    font-size: 14px;
    color: #aaa;
}

/* 浮动客服按钮 */
#float-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}
#float-contact a {
    display: block;
    background: linear-gradient(90deg, #4e54c8, #8f00ff);
    color: #fff;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 15px #ff6ec7;
    text-align: center;
    transition: 0.3s;
}
#float-contact a:hover {
    background: linear-gradient(90deg, #8f00ff, #4e54c8);
    box-shadow: 0 0 25px #ff6ec7;
}

/* 响应式 */
@media(max-width: 768px){
    nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: rgba(0,0,0,0.85);
        position: absolute;
        top: 70px;
        right: 10px;
        width: 60%;
        padding: 20px;
        border-radius: 10px;
    }
    nav ul.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .banner h1 {
        font-size: 28px;
    }
    .banner p {
        font-size: 16px;
    }
    .card-list {
        flex-direction: column;
    }
    .card-item {
        flex: 1 1 100%;
    }
    .btn {
        width: 80%;
        padding: 12px 0;
        margin: 0 auto;
        display: block;
    }
}
