/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav__logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header.scrolled .nav__logo {
    color: var(--text-color);
}

.nav__logo i {
    font-size: 28px;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.header.scrolled .nav__link {
    color: var(--text-color);
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__toggle {
    display: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

.header.scrolled .nav__toggle {
    color: var(--text-color);
}

/* 首页轮播样式 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 200px 20px;
    text-align: center;
    color: var(--white);
}

.slide__content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide__content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.slide__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.slider__controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider__prev,
.slider__next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.slider__prev:hover,
.slider__next:hover {
    background: var(--white);
    color: var(--primary-color);
}

.slider__dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
}

/* 产品展示样式 */
.products {
    padding: 100px 0;
    background: var(--light-gray);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card__image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-card__content {
    padding: 30px;
}

.product-card__content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-card__content p {
    color: #666;
    margin-bottom: 20px;
}

.product-card__features {
    list-style: none;
    margin-bottom: 20px;
}

.product-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-card__features i {
    color: var(--primary-color);
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__text h3 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about__text p {
    color: #666;
    margin-bottom: 30px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.stat__label {
    color: #666;
}

.about__image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* 团队介绍样式 */
.team {
    padding: 100px 0;
    background: var(--light-gray);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-card__image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.team-card__content {
    padding: 30px;
    text-align: center;
}

.team-card__content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.team-card__title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-card__bio {
    color: #666;
    margin-bottom: 20px;
}

.team-card__social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-card__social a {
    color: #666;
    font-size: 20px;
    transition: var(--transition);
}

.team-card__social a:hover {
    color: var(--primary-color);
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact__info {
    display: grid;
    gap: 30px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact__item i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact__item h3 {
    margin-bottom: 10px;
}

.contact__item p {
    color: #666;
}

.contact__form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
}

.contact__form h3 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚样式 */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer__info p {
    color: #999;
}

.footer__links h4,
.footer__social h4 {
    margin-bottom: 20px;
}

.footer__links ul {
    list-style: none;
}

.footer__links a {
    color: #999;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #999;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.active {
        display: block;
    }

    .nav__toggle {
        display: block;
    }

    .header.scrolled .nav__menu {
        background: var(--white);
    }

    .slide__content h1 {
        font-size: 36px;
    }

    .slide__content p {
        font-size: 18px;
    }

    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .about__image {
        height: 300px;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 1001;
    transition: width 0.1s ease;
}