/* 全局样式 */
:root {
    --primary-color: #353f75;
    --secondary-color: #454f8f;
    --accent-color: #1abc9c;
    --text-color: #333;
    --light-bg: #f5f9fa;
    --gray-bg: #f0f2f5;
    --dark-bg: #242b56;
    --navbar-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--gray-bg);
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* 导航栏样式 - 渐变色 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--navbar-height);
    background: linear-gradient(135deg, rgba(53, 63, 117, 0.95) 0%, rgba(69, 79, 143, 0.95) 50%, rgba(26, 188, 156, 0.95) 100%);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(53, 63, 117, 0.98) 0%, rgba(69, 79, 143, 0.98) 50%, rgba(26, 188, 156, 0.98) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: calc(var(--navbar-height) - 10px);
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 10px 0;
    border-radius: 4px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 5px;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

nav ul li a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 主内容区域 */
main {
    padding-top: var(--navbar-height);
}

.section {
    padding: 80px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section h1 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section h1:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

/* 视频容器 */
.video-container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
}

/* 特性展示 */
.features {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1200px;
    width: 85%;
    margin: 0 auto;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature-text {
    flex: 1;
    padding-right: 30px;
    max-width: 40%;
}

.feature-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-gif {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.feature-gif img {
    max-width: 100%;
    width: 650px;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-gif:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 图片弹出层 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 20px;
    color: white;
    z-index: 2001;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 认证部分 */
.certifications {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

.cert-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.cert-container h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.cert-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cert-item {
    text-align: center;
}

.cert-item img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    border: 4px solid white;
}

.cert-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cert-item p {
    font-size: 0.9rem;
    color: #666;
}

/* 联系我们 */
.contact-info {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: block;
}

.phone-icon::before {
    content: "📞";
}

.email-icon::before {
    content: "📧";
}

.address-icon::before {
    content: "🏢";
}

.contact-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.email-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#copy-email {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

#copy-email:hover {
    background-color: var(--secondary-color);
}

.copy-icon {
    font-size: 1rem;
}

/* 页脚 */
footer {
    background-color: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 40px 5%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .company-name {
        font-size: 1.3rem;
    }
    
    nav ul li {
        margin-left: 25px;
    }
    
    nav ul li a {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 5%;
    }
    
    .company-name {
        margin-bottom: 15px;
        text-align: center;
        padding: 5px 0;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 15px;
    }
    
    .feature-item {
        flex-direction: column;
        width: 95%;
    }
    
    .feature-text {
        padding-right: 0;
        padding-bottom: 20px;
        text-align: center;
        max-width: none;
    }
    
    .feature-gif img {
        width: 100%;
        height: auto;
        max-height: 450px;
    }
    
    .section h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 60px 5%;
    }
    
    .contact-item {
        min-width: 100%;
    }
}

/* 调整产品认证和联系我们之间的距离 */
#product-cert {
    min-height: auto;
    padding-bottom: 40px;
}

#contact-us {
    min-height: auto;
    padding-top: 40px;
}

@media screen and (max-width: 1200px) {
    .feature-item {
        width: 90%;
    }
    
    .feature-text {
        max-width: none;
    }
}

/* 背景 */
.page-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #e6e9f0 0%, #d4d7dd 100%);
    filter: blur(5px);
}

/* 删除粒子背景的旧样式 */
#particles-js {
    display: none;
} 