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

:root {
    /* 科技感配色 */
    --primary-color: #00f5ff;
    --primary-glow: rgba(0, 245, 255, 0.5);
    --secondary-color: #bf00ff;
    --secondary-glow: rgba(191, 0, 255, 0.5);
    --accent-color: #ff006e;
    --accent-glow: rgba(255, 0, 110, 0.5);
    
    /* 深色背景 */
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #6b7a90;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #bf00ff 100%);
    --gradient-secondary: linear-gradient(135deg, #bf00ff 0%, #ff006e 100%);
    --gradient-bg: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    
    /* 边框和阴影 */
    --border-glow: rgba(0, 245, 255, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 动态背景 */
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-darker);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(191, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 0;
    position: relative;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 2px;
}

/* ==================== 英雄区域 ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    background: var(--gradient-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(191, 0, 255, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 50px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.2s both;
}

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

/* ==================== 按钮 ==================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--primary-glow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    box-shadow: 0 0 40px var(--primary-glow);
}

.btn-small {
    padding: 10px 24px;
    font-size: 14px;
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
    border-radius: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

/* ==================== 关于我们预览 ==================== */
.about-preview {
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 36px;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    line-height: 2;
    font-size: 16px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-glow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-primary);
    opacity: 0.2;
    border-radius: 20px;
    z-index: -1;
    filter: blur(30px);
}

/* ==================== 产品展示 ==================== */
.products-section {
    background: var(--bg-darker);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

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

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

.product-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    display: block;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.8), transparent);
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-image:hover img {
    transform: scale(1.1);
}

/* 产品图片链接悬停提示效果 */
.product-card a.product-image::before {
    content: '点击查看详情';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 245, 255, 0.9);
    color: var(--bg-darker);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 0 20px var(--primary-glow);
}

.product-card a.product-image:hover::before {
    opacity: 1;
}

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

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.product-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

/* ==================== 新闻动态 ==================== */
.news-section {
    background: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.05), transparent);
    transition: var(--transition-slow);
}

.news-card:hover::before {
    left: 100%;
}

.news-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 20px;
    background: var(--gradient-primary);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.news-date .day {
    font-size: 32px;
    font-weight: 700;
    color: var(--bg-darker);
    line-height: 1;
}

.news-date .month {
    font-size: 13px;
    margin-top: 5px;
    color: var(--bg-darker);
    font-weight: 600;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* ==================== 联系信息 ==================== */
.contact-section {
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(191, 0, 255, 0.1) 0%, transparent 50%);
}

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

.contact-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.contact-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glow);
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links h4,
.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-contact p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 56px;
    }
    
    .section-title h2 {
        font-size: 40px;
    }
    
    .about-content {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        border-top: 1px solid var(--border-glow);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 20px 0;
        font-size: 16px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 20px;
    }
    
    .hero-content h2 {
        font-size: 42px;
        letter-spacing: 2px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text h3 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-date {
        flex-direction: row;
        gap: 10px;
        min-width: auto;
        padding: 15px 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .contact-item {
        padding: 30px 20px;
    }
}

/* ==================== 页面特定样式 ==================== */
.page-header {
    background: var(--gradient-bg);
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(191, 0, 255, 0.15) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 56px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    font-size: 16px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* 产品页面筛选 */
.products-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--bg-darker);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

/* 关于我们页面 */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.about-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--bg-darker);
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--primary-glow);
}

@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 40px;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==================== 选中文本样式 ==================== */
::selection {
    background: var(--primary-color);
    color: var(--bg-darker);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--bg-darker);
}
