/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00f3ff;
    --secondary-color: #0088ff;
    --dark-bg: #0a0e1a;
    --darker-bg: #050810;
    --card-bg: #141824;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --glow: 0 0 20px rgba(0, 243, 255, 0.5);
    --font-tech: 'Orbitron', sans-serif;
    --font-main: 'Rajdhani', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-tech);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 0;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown .arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-top: none;
    min-width: 160px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
}

.menu-toggle span::before {
    transform: translateY(-8px);
}

.menu-toggle span::after {
    transform: translateY(8px);
}

/* 首页轮播 */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.slide-content h1 {
    font-family: var(--font-tech);
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: var(--glow);
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.slide-content p {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 30px;
    animation: fadeInUp 1s 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s 0.4s both;
}

.cta-button:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: var(--glow);
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: var(--primary-color);
    box-shadow: var(--glow);
}

/* 产品区域 */
.products-section {
    padding: 100px 0;
    background: var(--darker-bg);
}

.section-title {
    font-family: var(--font-tech);
    font-size: 48px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: var(--glow);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    letter-spacing: 3px;
}

.product-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.features {
    list-style: none;
}

.features li {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.05);
}

.stat-number {
    display: block;
    font-family: var(--font-tech);
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
}

.about-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-color);
}

/* 联系我们 */
.contact-section {
    padding: 100px 0;
    background: var(--darker-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    background: rgba(0, 243, 255, 0.1);
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.info-content p {
    color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 16px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: var(--glow);
}

/* 页脚 */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 243, 255, 0.3);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: var(--text-secondary);
    margin-top: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.link-group h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.link-group a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: var(--glow);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    }

    .nav-menu a {
        padding: 15px 20px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 36px;
    }

    .container {
        max-width: 580px;
        padding: 0 10px;
    }
}
