:root {
    --primary: #2d8cf0;
    --accent: #00e5ff;
    --dark: #0f1a30;
    --darker: #0a1429;
    --light: #e6f7ff;
    --glass: rgba(25, 50, 80, 0.5);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(15, 26, 48, 0.7);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

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

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* 主内容区 */
.main-content {
    flex: 1 0 auto;
    padding-top: 4.5rem;
}

.container {
    padding: 1.5rem 5%;
	background: var(--dark);
}

/* 轮播图区域 */
.slider-section {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
	height: 90%; /* 从70%增加到90% */
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(0, 229, 255, 0.2);
	aspect-ratio: 16/6; /* 强制宽高比 */
}

.slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    flex: 0 0 100%;
	min-width: 100%;
	height: 100%;
	background-size: cover; /* 改为contain确保完整显示 */
	background-repeat: no-repeat;
	background-position: center center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.slide h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.slide p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4);
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent);
}

/* 产品展示区域 */
.products-section {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #1a3a5f, #0a2a4a);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 1rem;
}

.product-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.product-content p {
    color: #a0b3c6;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.news-link {
    display: flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.news-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* 横幅广告 */
.banner-section {
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.banner-content {
    margin: 0 auto;
    padding: 2rem;
    background: var(--glass);
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.banner-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #c0d4e6;
}

/* 资讯区域 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.news-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.news-icon {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    overflow: hidden;
    padding: 5px;
}

.news-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1rem;
}

.news-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.news-content p {
    color: #a0b3c6;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-grid, .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid, .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slider-section {
        height: 60vh;
    }
    
    .slider-container {
        height: 85%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    
    .news-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    .slide h2 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
}