/* 全局样式 */
:root {
    --primary-color: #5694d3;
    --secondary-color: #4fc3f7;
    --accent-color: #29b6f6;
    --text-color: rgba(38, 53, 90, 0.98);
    --text-color2:rgba(197, 204, 223, 0.98));
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --gradient-start: #f5f6fa;
    --gradient-end: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(38, 53, 90, 0.98);
    --nav-text: #ffffff;
    --nav-hover: #040708;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--nav-bg);
    font-size: 14px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 15px rgba(26, 31, 44, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--nav-text);
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--nav-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nav-hover);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover {
    color: var(--nav-hover);
}

.nav-links li a:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* 首页横幅样式 */
.hero {
    height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
}

.hero .container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    max-width: none;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #222e3a;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(44, 62, 80, 0.3), 
        rgba(52, 73, 94, 0.3));
    z-index: 1;
}

.slide > * {
    position: relative;
    z-index: 2;
}

.slide.active {
    opacity: 1;
}

.slide h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    color: var(--white);
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.slide.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-in-out 0.2s;
    color: var(--white);
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

.slide.active p {
    transform: translateY(0);
    opacity: 1;
}

.slide .cta-button {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-in-out 0.4s;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
    border: none;
    cursor: pointer;
}

.slide.active .cta-button {
    transform: translateY(0);
    opacity: 1;
}

.slide .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
}

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

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: var(--white);
}

/* 关于我们样式 */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(41, 182, 246, 0.1));
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(79, 195, 247, 0.05)"/></svg>');
    opacity: 0.1;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.features {
    list-style: none;
    margin-top: 2rem;
}

.features li {
    margin-bottom: 1rem;
}

.features i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* 产品中心样式 */
.products {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.1), rgba(79, 195, 247, 0.1));
    position: relative;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.2);
    border-color: var(--secondary-color);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

 

/* 联系我们样式 */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    padding: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: var(--card-bg);
    border: 1px solid rgba(79, 195, 247, 0.2);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

.submit-button {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--secondary-color), 
        transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
    }
}

.about-text {
    margin-bottom: 2rem;
    color: var(--text-color2);
    font-size: 14px;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 2rem;
}

.about-gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
} 