:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --text-color: #ffffff;
    --dark-bg: #0a192f;
    --card-bg: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 导航栏样式 */
header {
    position: fixed;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 242, 254, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-cn {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.logo-en {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 修改标题样式 */
.company-name {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-name-cn {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.company-name-en {
    display: block;
    font-size: 1.5rem;
    opacity: 0.8;
    font-weight: normal;
    letter-spacing: 1px;
}

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

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    width: 100%;
}

/* 主要内容样式 */
main {
    position: relative;
    z-index: 2;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    padding-top: 0;
}

.glowing-text {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5),
                 0 0 20px rgba(0, 242, 254, 0.3),
                 0 0 30px rgba(0, 242, 254, 0.1);
}

.typewriter {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end),
               blink-caret .75s step-end infinite;
}

.hero-content {
    padding: 2rem;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--light-text);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* 各个部分的通用样式 */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(50vh - 250px);
}

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

/* 产品卡片样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0;
}

.product-card {
    min-height: 200px;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.product-card p {
    color: var(--text-color);
    opacity: 0.8;
}

.product-card:hover p {
    opacity: 1;
}

/* 联系方式样式 */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0;
}

.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.1);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 页脚样式 */
footer {
    background: rgba(10, 25, 47, 0.95);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 242, 254, 0.1);
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.footer-content {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-content:hover {
    opacity: 1;
}

/* 响应式设计增强 */
@media screen and (max-width: 768px) {
    section {
        padding: 4rem 5%;
        min-height: 100vh;
        padding-top: calc(40vh - 200px);
    }
    
    .glowing-text {
        font-size: 1.8rem;
    }
    
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        align-items: center;
    }
    
    .company-name-cn {
        font-size: 1.8rem;
    }
    
    .company-name-en {
        font-size: 1.2rem;
    }
    
    .about-content,
    .product-grid,
    .contact-container {
        margin: 0;
    }
    
    .value-grid,
    .product-grid,
    .contact-container {
        margin-top: 1rem;
    }
}

@media screen and (min-width: 2000px) {
    .hero-content, section {
        max-width: 1800px;
        margin: 0 auto;
    }
    
    .glowing-text {
        font-size: 3.5rem;
    }
}

/* 动画效果 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 添加详情按钮样式 */
.detail-btn {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.detail-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.detail-btn:hover::before {
    width: 300%;
    height: 300%;
}

.detail-btn:hover {
    color: var(--dark-bg);
    text-shadow: none;
}

/* 修改模态框基础样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 2000;
    transition: opacity 0.3s ease;
    overflow: hidden;
    padding: 80px 1rem 1rem;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease forwards;
}

/* 修改模态框内容样式 */
.modal-content {
    background: var(--dark-bg);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    opacity: 0;
    animation: modalContentSlideIn 0.5s ease forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.launch-tag {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

/* 修改关闭按钮样式 */
.close-btn {
    position: fixed;
    right: 1rem;
    top: 65px;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    z-index: 2002;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--primary-color);
    color: var(--dark-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 修改动画关键帧 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 242, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .modal {
        padding: 60px 0.5rem 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 0 auto;
        max-height: calc(100vh - 80px);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .product-description {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .close-btn {
        position: fixed;
        top: 65px;
        right: 1rem;
        background: var(--dark-bg);
        box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
        z-index: 2002;
    }
}

/* 自定义滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* 关于我们部分样式 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
    padding: 0 1rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.value-item p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.value-item:hover p {
    opacity: 1;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .about-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
}

/* 改用单独的动画类，不影响基本显示 */
.animate-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 较大屏幕的优化 */
@media screen and (min-height: 1000px) {
    section {
        padding-top: calc(50vh - 300px);
    }
} 