/* 公共样式文件 - 顶部导航和底部样式 */

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 30% 70%, rgba(135, 206, 250, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(173, 216, 230, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(176, 224, 230, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #e3f2fd 50%, #f8f9fa 75%, #ffffff 100%);
}

#particles-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(135, 206, 250, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 250, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

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

/* 顶部导航 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.9));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.2);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.98), rgba(59, 130, 246, 0.95));
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
    transform: scale(1.05);
}

.nav-links a.active {
    color: #ff6b35;
}

.nav-links a.active::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #fff;
}

.contact-item .icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.beian-info {
    font-size: 0.75rem;
    color: #94a3b8;
}

.beian-info a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-section {
        text-align: center;
    }
}
