
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 导航栏容器 */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);  
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 导航栏主体 */
nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}


/* 微光动画效果 */ 
.logo::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(

        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shine 3s infinite;
}
@keyframes shine {
    100% {
        left: 200%;
    }
}
.logo {
    text-decoration: none; 
}

.logo-text {
    color: #333;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
} 


/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00B4D8; /* 科技蓝 */
    transition: width 0.3s;
}

.nav-link:hover {
    color: #7CFC94; /* 未来绿 */
}

.nav-link:hover::after {
    width: 100%;
}


/*右侧功能区 */
.nav-utils {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* 用户入口样式 */
.user-portal-wrapper {
    position: relative;
}

.user-portal-trigger {
    background: #00B4D8;
    color: #0A192F;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.user-portal-trigger:hover {
    background: #7CFC94;
    transform: translateY(-2px);
}

.user-portal-trigger .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* 用户菜单 */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(10,25,47,0.95);
    border-radius: 6px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.menu-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,180,216,0.2);
}

.menu-section:last-child {
    border-bottom: none;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(0,180,216,0.1);
    color: #7CFC94;
    padding-left: 1.8rem;
}

/* 登录状态控制 */
[data-logged-in="true"] {
    display: block;
}

[data-logged-in="false"] {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-menu {
        right: -20px;
        width: 180px;
    }
    
    .user-portal-trigger span {
        display: none;
    }
}


/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        color: #333;
        font-size: 1.5rem;
        cursor: pointer;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 新增轮播样式 */

.banner-slides {
    position: absolute;
    top: -80px; /* 抵消导航栏padding */
    left: 0;
    width: 100%;
    height: calc(100% + 80px); /* 补偿顶部偏移 */
    z-index: 1;
}


.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}
/* 调整原有样式层级 */
#particles-canvas {
    z-index: 2;
}
.text-container {
    z-index: 3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
#banner { height: 100vh; position: relative; overflow: hidden; padding-top: 80px; }


/* 新增banner区域 */
#banner {
    height: 100vh;
    position: relative;
    background: #0A192F;
    overflow: hidden;
    padding-top: 80px;
    background-image: url(./背景图\(1\).jpg);
    background-repeat: no-repeat;
}
.banner-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}



#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-content {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* 改为居中布局 */
}

.text-container {
    max-width: 800px;
    color: white;
    z-index: 2;
    text-align: center; /* 添加居中文本 */
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00B4D8, #7CFC94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    color: #00B4D8;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center; /* 按钮居中 */
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    transition: transform 0.3s;
    border: 2px solid #00B4D8;
}

.primary-cta {
    background: #00B4D8;
    color: #0A192F;
}

.secondary-cta {
    background: transparent;
    color: #00B4D8;
}

.cta-button:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* 产品展示区样式 */
.products-section {
    padding: 5rem 2rem;
    background: #0A192F;
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #00B4D8;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #7CFC94;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(10,25,47,0.8);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(0,180,216,0.3);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,180,216,0.2);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.product-name {
    font-family: 'Orbitron', sans-serif;
    color: #7CFC94;
    margin-bottom: 1rem;
}
.product-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    min-height: 72px;
    margin-bottom: 1.5rem;
}
.product-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #00B4D8;
    color: #0A192F;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s;
}
.product-cta:hover {
    background: #7CFC94;
    transform: translateY(-2px);
}
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
}


/* 底部导航 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

footer {
    background: #0A192F;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(0, 180, 216, 0.2);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.5fr;
    gap: 3rem;
}
/* 快速链接 */
.footer-section h3 {
    color: #00B4D8;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: #7CFC94;
}

.quick-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quick-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s;
}

.quick-links a:hover {
    color: #7CFC94;
    transform: translateX(5px);
}

/* 联系方式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #00B4D8;
    transform: translateY(-3px);
}

/* 二维码样式 */
.qr-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.qr-item {
    text-align: center;
    transition: transform 0.3s;
}

.qr-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border: 2px solid #00B4D8;
    border-radius: 8px;
    padding: 4px;
    background: white;
}

.qr-text {
    display: block;
    color: #7CFC94;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-family: 'Roboto', sans-serif;
}

/* 调整原有社交图标样式 */
.qr-item:hover {
    transform: translateY(-5px);
}
.qr-img {
    transition: transform 0.3s;
}

.qr-img:hover {
    transform: scale(1.1);
    cursor: pointer;
}


/* 订阅表单 */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-input {
    padding: 1rem;
    border: 1px solid #00B4D8;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.subscribe-btn {
    background: #7CFC94;
    color: #0A192F;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: transform 0.3s;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .qr-codes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-img {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .qr-codes {
        grid-template-columns: 1fr;
    }
    
    .qr-item {
        margin: 0 auto;
        max-width: 150px;
    }
}

/* 备案信息样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}
.footer-record {
    background-color: #1a1a1a;
    width: 100%;
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.record-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.icp-info, .copyright {
    color: #888;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 5px 0;
}

.icp-info a, .copyright a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover, .copyright a:hover {
    color: #00B4D8;
    text-decoration: underline;
}

.divider {
    color: #555;
    margin: 0 10px;
    font-size: 0.8em;
}


    