/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a i {
    margin-right: 5px;
    font-size: 1.1em;
}

/* 轮播图样式 */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    transform: scale(1.1); /* 防止模糊边缘出现白边 */
}

.slide.active img {
    filter: blur(0);
    -webkit-filter: blur(0);
    transition: filter 0.5s ease-in-out, -webkit-filter 0.5s ease-in-out;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: white;
}

/* 英雄区域样式 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 60px;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* 产品区域样式 */
.products-section {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
    min-height: 300px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-right: 2rem;
    background-color: #f5f5f5;
    padding: 1rem;
}

.product-card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding-bottom: 100px;
}

.product-card h3 {
    padding: 0.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.product-card p {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1.1rem;
}

.product-card .learn-more {
    margin: 0;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    padding: 0;
    font-size: 14px;
    position: absolute;
    right: 0;
    bottom: 0;
}

.product-card .learn-more:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

/* 关于我们区域样式 */
.about-section {
    padding: 5rem 5%;
    text-align: center;
    background-color: #fff;
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content p {
    margin: 1.5rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
    text-align: left;
    padding: 0 2rem;
}

.about-content p:first-child {
    margin-top: 0;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* 联系我们区域样式 */
.contact-section {
    padding: 5rem 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
} 