/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(to right, #1a237e, #0d47a1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #90caf9;
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 通用标题样式 */
.section-title {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #1a237e;
    margin: 10px auto;
}

/* 轮播图样式 */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
    height: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slider-item {
    flex: 0 0 100%;
    position: relative;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 80%;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s ease;
}

.slider-item.active .slider-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.slider-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.2s;
}

.slider-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.3s;
}

.slider-content .btn {
    transform: translateY(20px);
    transition: transform 0.5s ease 0.4s;
    background: rgba(255,255,255,0.9);
    color: #1a237e;
    font-weight: bold;
    padding: 1rem 2rem;
}

.slider-content .btn:hover {
    background: white;
    transform: translateY(20px) scale(1.05);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-nav-item {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.slider-nav-item:hover {
    background: rgba(255,255,255,0.8);
}

.slider-nav-item.active {
    background: white;
    width: 50px;
}

/* 轮播图控制按钮 */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-control:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

@media (max-width: 768px) {
    .slider {
        height: 400px;
    }

    .slider-content h2 {
        font-size: 2rem;
    }

    .slider-content p {
        font-size: 1.1rem;
    }

    .slider-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 首页网格布局 */
.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.home-grid .card {
    margin: 0;
}

.home-grid .card:hover {
    transform: translateY(-10px);
}

/* 产品展示网格 */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    text-align: center;
    padding: 1rem;
}

.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* 浮动联系按钮 */
.float-contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #1a237e;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, background 0.3s;
    z-index: 1000;
}

.float-contact:hover {
    transform: scale(1.1);
    background: #0d47a1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        margin-top: 1rem;
        flex-direction: column;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .slider-content h2 {
        font-size: 1.8rem;
    }

    .slider-content p {
        font-size: 1rem;
    }
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0d47a1;
}

/* 图片容器 */
.img-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.img-container img:hover {
    transform: scale(1.05);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* 特色内容样式 */
.feature-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    padding: 3rem 0;
    margin: 2rem -2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: #1a237e;
    margin: 1rem 0;
}

.feature-icon {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 1rem;
} 