:root {
    --primary: #FBC902;
    --secondary: #4361EE;
    --accent: #06D6A0;
    --dark: #1A1A2E;
    --light: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面内容样式 */
.page-content {
    /* 页面上方边距空出导航栏的距离 */
    padding: 70px 0 0px;
    min-height: 100vh;
    background-color: #fff;
}

.hero-slider {
    /* 占据浏览器视口高度的55% */
    height: 55vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* 添加加载动画 */
    transition: background 0.3s ease;
}

.slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* 关键属性：确保背景图片适配 */
    /* 覆盖整个区域 */
    background-size: cover;
    /* 居中显示 */
    background-position: center;
    /* 不重复 */
    background-repeat: no-repeat;
    /* 添加背景图加载完成后的淡入效果 */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.loaded {
    opacity: 1;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-nav {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    display: flex;
    gap: 10px;
    position: absolute; /* 绝对定位 */
    bottom: 30px;
    left: 50%; /* 水平居中 */
    transform: translateX(-50%); /* 精确居中 */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.content-card {
    padding: 30px;
    margin-top: 80px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);去掉*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content-card img {
    height: auto;
    margin-bottom: 15px;
}

.card-text{
    font-weight: bold;
    font-size: 20px;
    text-indent: 2em;
}
.btn {
    padding: 3px 15px;
    margin: 15px;
    color: white;
    background-color: black;
    border-radius: 30px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-slider {
    /* 占据浏览器视口高度的65% */
    height: 65vh;
    width: 90%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-top: -10px;
    margin-bottom: -70px;
}

.product-slider-container {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.product-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* 关键属性：确保背景图片适配 */
    /* 覆盖整个区域 */
    background-size: cover;
    /* 居中显示 */
    background-position: center;
    /* 不重复 */
    background-repeat: no-repeat;
}

.product-slider-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-slider-nav {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-slider-nav button {
    background: transparent; /* 透明背景 */
    border: none;
    width: 60px; /* 增加宽度 */
    height: 60px; /* 增加高度 */
    border-radius: 0; /* 移除圆角 */
    color: #999; /* 灰色 */
    font-size: 36px; /* 增大字体 */
    font-weight: bold; /* 加粗 */
    cursor: pointer;
    transition: color 0.3s; /* 颜色过渡效果 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slider-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
}


/* 响应式设计 */
@media (max-width: 800px) {
    .nav {
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    /* 优化 logo 在小屏下的表现 */
    .logo img {
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }
    
    /* 小屏设备下的轮播图优化 */
    .hero-slider {
        height: 60vh; /* 小屏设备稍微降低高度 */
    }
    
    .content-card img {
        height: 60px;
    }
}