/* 字体声明 */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

:root {
    --primary: #00ff9d;
    --secondary: #00b8ff;
    --dark: #0a192f;
    --light: #ffffff;
    --neon-glow: 0 0 10px var(--primary),
                0 0 20px var(--primary),
                0 0 30px var(--primary);
    --neon-glow-cyan: 0 0 10px var(--secondary),
                    0 0 20px var(--secondary),
                    0 0 30px var(--secondary);
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a2a, #1a1a4a);
    color: var(--light);
    min-height: 100vh;
    position: relative;
}

/* 背景网格 */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(255,0,255,0.15) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(0deg, rgba(255,0,255,0.15) 1px, transparent 1px) 0 0 / 40px 40px;
    z-index: -1;
    overflow: hidden;
}

/* 添加多组激光效果 */
.grid-background::before,
.grid-background::after,
.grid-background .laser-1,
.grid-background .laser-2,
.grid-background .laser-3 {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(90deg,
            transparent 0%,
            transparent 49%,
            rgba(255,0,255,0.3) 50%,
            transparent 51%,
            transparent 100%
        ) 0 0 / 100% 2px;
    animation: laserScan 2s linear infinite;
    overflow: hidden;
}

.grid-background::after {
    background: 
        repeating-linear-gradient(90deg,
            transparent 0%,
            transparent 49%,
            rgba(0,255,255,0.3) 50%,
            transparent 51%,
            transparent 100%
        ) 0 0 / 100% 2px;
    animation: randomLaser 1.5s linear infinite;
}

.grid-background .laser-1 {
    background: 
        repeating-linear-gradient(90deg,
            transparent 0%,
            transparent 49%,
            rgba(255,0,255,0.2) 50%,
            transparent 51%,
            transparent 100%
        ) 0 0 / 100% 2px;
    animation: laserScan 2.5s linear infinite;
    animation-delay: 0.5s;
}

.grid-background .laser-2 {
    background: 
        repeating-linear-gradient(90deg,
            transparent 0%,
            transparent 49%,
            rgba(0,255,255,0.2) 50%,
            transparent 51%,
            transparent 100%
        ) 0 0 / 100% 2px;
    animation: randomLaser 2s linear infinite;
    animation-delay: 1s;
}

.grid-background .laser-3 {
    background: 
        repeating-linear-gradient(90deg,
            transparent 0%,
            transparent 49%,
            rgba(255,0,255,0.25) 50%,
            transparent 51%,
            transparent 100%
        ) 0 0 / 100% 2px;
    animation: laserScan 3s linear infinite;
    animation-delay: 1.5s;
}

/* 修改动画效果 */
@keyframes laserScan {
    0% { 
        transform: translateY(-100%) translateX(0);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(50%) translateX(20%);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(100%) translateX(0);
        opacity: 0.5;
    }
}

@keyframes randomLaser {
    0% { 
        transform: translateY(-100%) translateX(0);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(25%) translateX(30%);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(50%) translateX(-30%);
        opacity: 0.8;
    }
    75% { 
        transform: translateY(75%) translateX(30%);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(100%) translateX(0);
        opacity: 0.3;
    }
}

/* 修改浮动元素样式 */
.floating-element {
    position: absolute;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, 
        transparent,
        var(--primary),
        transparent
    );
    animation: laserFloat 3s infinite;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 15px var(--primary);
}

@keyframes laserFloat {
    0% { 
        transform: translateY(-100%) translateX(0);
        opacity: 0;
    }
    20% { 
        transform: translateY(20%) translateX(30%);
        opacity: 1;
    }
    40% { 
        transform: translateY(40%) translateX(-30%);
        opacity: 1;
    }
    60% { 
        transform: translateY(60%) translateX(30%);
        opacity: 1;
    }
    80% { 
        transform: translateY(80%) translateX(-30%);
        opacity: 1;
    }
    100% { 
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
}

/* 导航栏样式 */
.navbar {
    background: rgba(10, 25, 47, 0.95);
    border-bottom: 2px solid var(--primary);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
}

.navbar-brand {
    font-size: 28px;
    color: var(--primary);
    text-shadow: var(--neon-glow);
    animation: textFlicker 2s infinite;
}

.nav-link {
    font-size: 16px;
    color: var(--light);
    margin: 0 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: var(--neon-glow);
}

/* 搜索框样式 */
.search-box {
    position: relative;
    margin: 0;
    width: 300px;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary);
    color: var(--light);
    padding: 10px 20px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding-right: 40px;
}

.search-input:focus {
    box-shadow: var(--neon-glow);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--secondary);
    text-shadow: var(--neon-glow-cyan);
}

/* 按钮样式 */
.cyber-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 25px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-btn:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--neon-glow);
}

/* 卡片样式 */
.cyber-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.cyber-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

/* 特性卡片样式 */
.feature-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.feature-icon {
    font-size: 24px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.feature-text h4 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--light);
    font-size: 12px;
    opacity: 0.8;
}

/* 图片容器样式 */
.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
}

.image-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

/* 统计数字样式 */
.stats-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary);
    border-radius: 10px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    color: var(--primary);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: var(--neon-glow);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--light);
    font-size: 12px;
    opacity: 0.8;
}

/* 移动端适配 */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 25, 47, 0.95);
        padding: 15px;
        border-radius: 10px;
        margin-top: 15px;
        border: 2px solid var(--primary);
    }

    .nav-link {
        padding: 10px 0;
        text-align: center;
    }

    .search-box {
        width: 100%;
        margin: 15px 0;
    }

    .search-input {
        width: 100%;
        transform: none;
    }

    .search-input:focus {
        width: 100%;
        transform: none;
    }

    .feature-item {
        padding: 15px;
    }

    .image-wrapper {
        margin: 20px 0;
    }

    .stats-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 24px;
    }

    .feature-item {
        padding: 12px;
    }

    .feature-icon {
        font-size: 20px;
        min-width: 35px;
        height: 35px;
    }

    .feature-text h4 {
        font-size: 14px;
    }

    .feature-text p {
        font-size: 11px;
    }

    .image-wrapper img {
        height: 200px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* 动画效果 */
@keyframes textFlicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    51% { opacity: 1; }
    52% { opacity: 0.8; }
    53% { opacity: 1; }
    100% { opacity: 1; }
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    box-sizing: border-box;
}

/* 行样式 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0px;
    width: 100%;
    box-sizing: border-box;
}

/* 列样式 */
[class*="col-"] {
    padding: 0 15px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 视频背景样式 */
.video-background {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 50px;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.video-content {
    position: relative;
    z-index: 3;
    color: var(--light);
    text-align: center;
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页脚链接样式 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: var(--neon-glow);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 新闻动态链接样式 */
.news-card .btn-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    font-size: 14px;
}

.news-card .btn-link:hover {
    color: var(--secondary);
    text-shadow: var(--neon-glow-cyan);
}

.news-card .btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.news-card .btn-link:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: var(--neon-glow);
    backdrop-filter: blur(10px);
    animation: dropdownFade 0.3s ease;
}

.dropdown-item {
    color: var(--light);
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    text-shadow: 0 0 5px var(--light);
}

.dropdown-item:hover {
    color: var(--primary);
    background: rgba(255, 0, 255, 0.1);
    text-shadow: var(--neon-glow);
    transform: translateX(5px);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端下拉菜单适配 */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 25, 47, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        border: 1px solid var(--primary);
        box-shadow: var(--neon-glow);
    }

    .navbar-nav {
        margin-top: 15px;
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-link {
        color: var(--light) !important;
        padding: 10px 0;
        text-align: center;
        font-size: 16px;
    }

    .search-box {
        width: 100%;
        margin: 15px 0;
    }

    .search-input {
        width: 100%;
        transform: none;
    }

    .search-input:focus {
        width: 100%;
        transform: none;
    }

    .dropdown-menu {
        background: rgba(10, 25, 47, 0.95);
        border: 1px solid var(--primary);
        margin-top: 5px;
        padding: 10px;
    }

    .dropdown-item {
        color: var(--light);
        padding: 10px;
        text-align: center;
    }

    .dropdown-item:hover {
        background: rgba(255, 0, 255, 0.1);
        color: var(--primary);
    }

    .navbar-toggler {
        border-color: var(--primary);
        padding: 8px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 0, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler:focus {
        box-shadow: var(--neon-glow);
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .about-text h3 {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-text p {
        font-size: 0.9rem;
        text-align: center;
    }

    .about-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .feature-item {
        padding: 15px;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 20px;
        min-width: 35px;
        height: 35px;
        margin: 0 auto;
    }
    
    .feature-text h4 {
        font-size: 16px;
        text-align: center;
    }
    
    .feature-text p {
        font-size: 13px;
        text-align: center;
    }

    .image-wrapper {
        margin: 20px auto;
        width: 100%;
        max-width: 500px;
    }
    
    .image-wrapper img {
        height: 200px;
    }

    .stats-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        align-items: center;
    }

    .stat-item {
        padding: 10px;
        background: rgba(255, 0, 255, 0.05);
        border-radius: 8px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2rem;
        text-align: center;
    }

    .stat-label {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 50px 0;
    }

    .about-tag {
        font-size: 0.8rem;
        padding: 6px 15px;
        display: block;
        text-align: center;
        margin: 0 auto 15px;
    }

    .about-text h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-text p {
        font-size: 0.85rem;
        text-align: center;
    }

    .feature-item {
        padding: 12px;
        text-align: center;
    }

    .feature-icon {
        font-size: 18px;
        min-width: 30px;
        height: 30px;
        margin: 0 auto;
    }

    .feature-text h4 {
        font-size: 15px;
        text-align: center;
    }

    .feature-text p {
        font-size: 12px;
        text-align: center;
    }

    .image-wrapper {
        margin: 20px auto;
        width: 100%;
        max-width: 400px;
    }

    .image-wrapper img {
        height: 180px;
    }

    .stats-wrapper {
        padding: 10px;
        align-items: center;
    }

    .stat-item {
        padding: 8px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 1.8rem;
        text-align: center;
    }

    .stat-label {
        font-size: 0.75rem;
        text-align: center;
    }
}

.about-image {
    position: relative;
    height: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
    opacity: 0;
    transition: all 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

/* 产品服务板块样式 */
.products-section {
    padding: 100px 0;
    position: relative;
}

.product-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary);
}

.product-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: var(--neon-glow);
}

.product-card p {
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.product-card .btn {
    width: 100%;
    margin-top: auto;
}

/* 确保一行显示三个产品 */
.products-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0px;
}

.products-section .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 10px 15px;
}

@media (max-width: 991px) {
    .products-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .products-section .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 新闻动态板块样式 */
.news-section {
    padding: 100px 0;
    position: relative;
}

.news-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary);
}

.news-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: var(--neon-glow);
    font-size: 1.2rem;
}

.news-card p {
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.news-card .btn-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    font-size: 14px;
}

.news-card .btn-link:hover {
    color: var(--secondary);
    text-shadow: var(--neon-glow-cyan);
}

.news-card .btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.news-card .btn-link:hover::after {
    width: 100%;
}

/* 确保一行显示三个新闻 */
.news-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0px;
}

.news-section .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 10px 15px;
}

@media (max-width: 991px) {
    .news-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .news-section .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 底部版权信息样式 */
.copyright-section {
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.95) 0%, rgba(26, 43, 76, 0.98) 100%);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.copyright-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    animation: footerGlow 8s ease-in-out infinite;
}

.copyright-section p {
    color: var(--light);
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.copyright-section p::before,
.copyright-section p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--primary);
    box-shadow: var(--neon-glow);
}

.copyright-section p::before {
    left: -40px;
}

.copyright-section p::after {
    right: -40px;
}

@media (max-width: 576px) {
    .copyright-section {
        padding: 15px 0;
    }
    
    .copyright-section p {
        font-size: 0.8rem;
    }
    
    .copyright-section p::before,
    .copyright-section p::after {
        width: 20px;
    }
    
    .copyright-section p::before {
        left: -25px;
    }
    
    .copyright-section p::after {
        right: -25px;
    }
} 