:root {
    --primary-color: #2c5282; /* 深蓝色 */
    --secondary-color: #4299e1; /* 中蓝色 */
    --accent-color: #63b3ed;
    --background-color: #ebf8ff; /* 浅蓝色背景 */
    --text-color: #2d3748; /* 深灰色文字 */
    --light-blue: #bee3f8; /* 更浅的蓝色 */
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #63b3ed, #4299e1);
    --gradient-2: linear-gradient(135deg, #90cdf4, #63b3ed);
    --gradient-3: linear-gradient(135deg, #4299e1, #2c5282);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* 导航栏样式 */
.nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(44, 82, 130, 0.1);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 30px;
    width: auto;
}

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

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s;
}

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

/* 添加关键帧动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* 更新英雄区域样式 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--background-color), var(--light-blue));
    overflow: hidden;
}

/* 添加背景光晕效果 */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.2) 0%, rgba(66, 153, 225, 0) 70%);
    animation: rotate 20s linear infinite;
}

.hero::before {
    top: -20%;
    left: -20%;
}

.hero::after {
    bottom: -20%;
    right: -20%;
    animation-direction: reverse;
}

/* 添加浮动圆形装饰 */
.floating-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    background: radial-gradient(circle, rgba(190, 227, 248, 0.6) 0%, rgba(190, 227, 248, 0) 70%);
    border-radius: 50%;
}

.floating-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.floating-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation: float 7s ease-in-out infinite;
}

/* 服务卡片发光效果 */
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0) 70%);
    animation: pulse 3s ease-in-out infinite;
}

/* 更新关于我们区域 */
.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 30% 50%, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0) 50%);
    animation: pulse 4s ease-in-out infinite;
}

/* 服务区域样式 */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    position: relative;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    padding: 30px;
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    transition: transform 0.3s;
    border: 1px solid var(--light-blue);
    box-shadow: 0 4px 6px rgba(44, 82, 130, 0.1);
}

.service-item:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--secondary-color);
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
}

.service-item p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background: var(--background-color);
}

.about h2, .services h2, .contact h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* 联系我们区域样式优化 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7fafc, #e6f6ff);
    position: relative;
    overflow: hidden;
}

/* 添加背景装饰 */
.contact::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(99, 179, 237, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(66, 153, 225, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact > p {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(190, 227, 248, 0.3);
}

.contact-info p {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* 添加悬停效果 */
.contact-info p:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-info {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact h2 {
        font-size: 1.8rem;
    }
}

/* 页脚样式 */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

.beian {
    font-size: 14px;
}

.beian a {
    color: white;
    text-decoration: none;
}

.beian a:hover {
    text-decoration: underline;
}

.beian img {
    height: 14px;
    margin: 0 5px;
    vertical-align: middle;
}

.beian .divider {
    margin: 0 10px;
}

/* 响应式设计 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 2px 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 6px rgba(44, 82, 130, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 15px 0;
    }

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

    .nav-toggle span {
        background: var(--primary-color);
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .animate-text {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
    }
    
    .about p {
        font-size: 1.1rem;
    }
}

/* 添加全局过渡效果 */
.service-item, .nav-menu li a, .beian a {
    transition: all 0.3s ease;
}

/* 添加标题样式 */
h1, h2, h3 {
    font-weight: 600;
}

/* 添加内容区块通用样式 */
section {
    position: relative;
    overflow: hidden;
}

/* 添加服务项图标位置 */
.service-item {
    position: relative;
    padding-top: 50px;
}

/* Hero 区域背景优化 */
.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-color), var(--light-blue));
    opacity: 0.8;
}

.gradient-sphere {
    position: absolute;
    width: 100vw;
    height: 100vw;
    background: radial-gradient(circle, rgba(99, 179, 237, 0.1) 0%, rgba(99, 179, 237, 0) 70%);
    animation: rotate 30s linear infinite;
}

/* 服务区域背景 */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(99, 179, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(66, 153, 225, 0.1) 0%, transparent 50%);
}

/* 服务卡片样式优化 */
.service-item {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.learn-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* CTA 按钮样式 */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    margin-top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(66, 153, 225, 0.2);
}

/* 更新文字渐变效果 */
.animate-text {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

/* 确保文字在渐变背景上可见 */
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* 添加滚动显示动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 优化背景光晕，确保不影响文字可读性 */
.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background-color), var(--light-blue));
    opacity: 0.8;
}

/* 优化关于我们区域文字 */
.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* 添加文字阴影效果，提高可读性 */
.hero h1, .hero p {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* 产品部分样式 */
.products {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.products .section-background {
    background: linear-gradient(135deg, rgba(190, 227, 248, 0.2), rgba(255, 255, 255, 0));
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-item,
.product-item.coming-soon,
section.products .product-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translateZ(0);
}

.product-item:hover,
.product-item.coming-soon:hover,
section.products .product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 82, 130, 0.15);
}

.product-image {
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-item:hover .product-image img {
    transform: scale(1.05);
}

/* 确保所有产品的图片缩放效果 */
.products .product-item:hover .product-image img,
.product-item:hover .product-image .mystery-icon {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

.product-info p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
    text-align: left;
}

.qrcode-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: auto;
    padding: 8px 12px;
    background-color: rgba(66, 153, 225, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
    margin-right: auto;
    min-width: 150px;
    width: 60%;
}

.qrcode-hint:hover {
    background-color: rgba(66, 153, 225, 0.2);
}

.qrcode-hint i {
    margin-right: 8px;
    font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info h3 {
        font-size: 18px;
    }
    
    .product-info p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .qrcode-container {
        padding: 15px;
    }
    
    .mystery-icon {
        font-size: 60px;
    }

    .qrcode-hint {
        width: 80%;
        min-width: 120px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    /* 在小屏幕上减小悬浮高度，使效果更柔和 */
    .product-item:hover,
    .product-item.coming-soon:hover,
    section.products .product-item:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product-image {
        height: 220px;
    }
}

.qrcode-container {
    padding: 20px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 即将上线产品样式 */
.coming-soon {
    position: relative;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px dashed rgba(66, 153, 225, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coming-soon:hover {
    border-color: rgba(66, 153, 225, 0.5);
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 179, 237, 0.1) 25%, transparent 25%, transparent 50%, rgba(99, 179, 237, 0.1) 50%, rgba(99, 179, 237, 0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.5;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.mystery-container {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
}

.mystery-icon {
    font-size: 100px;
    color: rgba(44, 82, 130, 0.3);
    font-weight: bold;
    text-align: center;
    animation: pulse 2s infinite;
}

.coming-soon-hint {
    background-color: rgba(66, 153, 225, 0.15);
    color: var(--primary-color);
    width: 60%;
    min-width: 150px;
}

.coming-soon-hint i {
    animation: rotation 2s infinite linear;
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(359deg); }
} 