/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 科技蓝 */
    --primary-color: #0066ff;
    --primary-dark: #0055cc;
    --primary-light: #4d94ff;
    
    /* 次要色调 */
    --accent-color: #00ccff;
    --dark-color: #121c2e;
    --light-color: #f5f8ff;
    --gray-color: #7a8599;
    
    /* 字体相关 */
    --main-font: 'Noto Sans SC', sans-serif;
    --heading-weight: 700;
    --normal-weight: 400;
    --light-weight: 300;
    
    /* 布局相关 */
    --container-width: 1200px;
    --section-padding: 100px 0;
    --element-margin: 20px;
    
    /* 过渡效果 */
    --transition-speed: 0.3s;
}

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* 共用容器样式 */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: var(--heading-weight);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease-in-out;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 段落和标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--heading-weight);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 28, 46, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

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

.logo h1 {
    font-size: 2.4rem;
    color: white;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
}

/* 英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* 添加顶部边距，为导航栏留出空间 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner.jpg') center/cover;
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 50%;
    color: white;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    flex: 0 0 45%;
    position: relative;
    height: 500px;
}

.product-preview {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.product-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 1;
}

.glow-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    filter: blur(30px);
    top: 20%;
    right: -20px;
    z-index: -1;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

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

/* 章节通用样式 */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    margin-top: 15px;
    border-radius: 2px;
}

/* 关于我们样式 */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    min-height: 400px;
    background-color: #e9f0ff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 产品介绍样式 */
.products {
    background-color: var(--light-color);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.05));
}

.product-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 40px;
    position: relative;
}

.product-item.featured {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.product-info {
    flex: 1;
}

.product-image {
    flex: 1;
    min-height: 350px;
    background-color: #e9f0ff;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

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

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
}

.feature:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2.4rem;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

/* 应用场景样式 */
.applications {
    background-color: white;
}

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

.application-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.application-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.application-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.8rem;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

/* 核心竞争力样式 */
.advantages {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0a1530 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/circuit-pattern.svg') center/cover;
    opacity: 0.05;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.advantage-item h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* 服务体系样式 */
.services {
    background-color: var(--light-color);
}

.service-philosophy,
.service-support,
.service-cycle {
    margin-bottom: 80px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.philosophy-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.philosophy-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.8rem;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

.support-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.support-text {
    flex: 1;
}

.support-image {
    flex: 1;
    min-height: 350px;
    background-color: #e9f0ff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cycle-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.cycle-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1;
}

.cycle-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.8rem;
    font-weight: var(--heading-weight);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

/* 联系我们样式 */
.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.6rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    flex: 2;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 1;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-social {
    flex: 1;
}

.footer-social h3 {
    color: white;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cycle-steps::before {
        left: 40px;
        right: 40px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .about-content,
    .product-item,
    .support-content,
    .contact-content,
    .footer-content {
        flex-direction: column;
    }
    
    .product-features,
    .advantages-grid,
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cycle-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .cycle-steps::before {
        display: none;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 60px;
    }
    
    .hero-image {
        width: 80%;
        max-width: 400px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--dark-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: all var(--transition-speed) ease;
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 30px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .product-features,
    .advantages-grid,
    .philosophy-grid,
    .application-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
}

/* 滚动动画样式 */
.product-item, .advantage-item, .application-item, .philosophy-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-item.scrolled, .advantage-item.scrolled, .application-item.scrolled, .philosophy-item.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* 为不同元素设置不同的延迟，创造错落有致的效果 */
.application-item:nth-child(1), .advantage-item:nth-child(1), .philosophy-item:nth-child(1) {
    transition-delay: 0.1s;
}

.application-item:nth-child(2), .advantage-item:nth-child(2), .philosophy-item:nth-child(2) {
    transition-delay: 0.2s;
}

.application-item:nth-child(3), .advantage-item:nth-child(3), .philosophy-item:nth-child(3) {
    transition-delay: 0.3s;
}

.application-item:nth-child(4) {
    transition-delay: 0.4s;
} 