/* 基础样式重置与配置 */
:root {
    --primary: #165DFF;
    --secondary: #0F172A;
    --accent: #38BDF8;
    --dark: #0F172A;
    --light: #F8FAFC;
    --cursor-size: 20px;
    --cursor-hover-size: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--secondary);
    color: var(--light);
    cursor: none;
    overflow-x: hidden;
}

/* 自定义工具类 */
.content-auto {
    content-visibility: auto;
}

.text-shadow {
    text-shadow: 0 0 10px rgba(22, 93, 255, 0.7);
}

.glow {
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.5);
}

.bg-grid {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 自定义鼠标样式 */
.custom-cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: var(--cursor-hover-size);
    height: var(--cursor-hover-size);
    border-color: var(--accent);
    background-color: rgba(22, 93, 255, 0.2);
}

/* 页面过渡动画 */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 粒子背景效果 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.5s ease;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo i {
    color: var(--primary);
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(22, 93, 255, 0.7);
}

.desktop-nav {
    display: flex;
    gap: 24px;
}

.desktop-nav a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 0;
}

.mobile-nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.mobile-nav a {
    color: var(--light);
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--primary);
}

/* 通用页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部 */
.page-header {
    padding: 100px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-title span {
    color: var(--primary);
}

/* 卡片样式 */
.card {
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(22, 93, 255, 0.2);
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(22, 93, 255, 0.5);
    transform: translateY(-4px);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: rgba(22, 93, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.5);
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(22, 93, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--light);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 32px;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 首页样式 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(22, 93, 255, 0.7);
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 40px;
    color: var(--light);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 36px;
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    padding: 40px 0;
    border-top: 1px solid rgba(22, 93, 255, 0.2);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.footer-logo i {
    color: var(--primary);
    font-size: 24px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(22, 93, 255, 0.7);
}

.footer-text {
    color: #94a3b8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-links a {
    color: #94a3b8;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

.copyright {
    color: #64748b;
    font-size: 14px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: rgba(22, 93, 255, 0.8);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.5);
    opacity: 0;
    visibility: hidden;
    border: none;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav.show {
        display: block;
    }
    
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .card {
        padding: 20px;
    }
}