/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a0e9;
    --accent-color: #00ff88;
    --dark-color: #0a0a0a;
    --dark-gray: #1a1a1a;
    --light-gray: #333333;
    --white-color: #ffffff;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
}

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

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

/* 导航栏样式 */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 60px;
    transition: all 0.3s ease;
}

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

.nav-item {
    margin-left: 40px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-color);
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-gray) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%230066cc" stroke-width="0.5" opacity="0.1"/></svg>');
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 102, 204, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--dark-gray);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.5);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 160, 233, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
    transform: translateY(-2px);
}

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.section-divider {
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--accent-color);
}

/* 产品展示 */
.products-section {
    padding: 100px 0;
    background-color: var(--dark-gray);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%2300ff88" opacity="0.1"/></svg>');
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.product-card {
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.4);
}

.product-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.5);
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    font-size: 24px;
    color: var(--white-color);
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 产品页面 */
.products-page {
    padding: 120px 0;
    background-color: var(--dark-gray);
    position: relative;
}

.product-overview {
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
}

.product-overview h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.product-overview p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background-color: var(--dark-color);
    position: relative;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.5);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.7);
}

.about-page {
    padding: 120px 0;
    background-color: var(--dark-color);
    position: relative;
}

/* 公司优势 */
.advantages-section {
    padding: 100px 0;
    background-color: var(--dark-gray);
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.4);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 102, 204, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.advantage-card h3 {
    font-size: 20px;
    color: var(--white-color);
    margin-bottom: 15px;
}

.advantage-card p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 联系我们 */
.contact-section {
    padding: 100px 0;
    background-color: var(--dark-color);
    position: relative;
}

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

.contact-info {
    flex: 1;
}

.info-item {
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.4);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 204, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.info-item h3 {
    font-size: 18px;
    color: var(--white-color);
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--dark-gray);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

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

.contact-page {
    padding: 120px 0;
    background-color: var(--dark-color);
    position: relative;
}

/* 页脚 */
.footer {
    background-color: var(--dark-gray);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 18px;
    color: var(--white-color);
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

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

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

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

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 102, 204, 0.2);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--light-gray);
    font-size: 14px;
    color: var(--text-secondary);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-text,
    .about-image,
    .contact-info,
    .contact-form {
        flex: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 15px;
    }

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

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

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-card-inner {
        height: 350px;
    }

    .contact-form {
        padding: 20px;
    }

    .info-item {
        padding: 20px;
    }
}

/* 移动端菜单 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

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