/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-dark: #0a192f;
    --text-light: #ffffff;
    --text-muted: #8892b0;
    --primary-blue: #64B5F6;
    --secondary-blue: #2196F3;
    --dark-bg: #0a1929;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background-dark);
    color: var(--text-light);
    position: relative;
    overflow-x: hidden;
    background-color: var(--dark-bg);
    background-image: url('img/Background_image.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.1s ease;
}

/* 背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(1, 65, 255, 0.05), transparent),
                radial-gradient(circle at 70% 70%, rgba(1, 65, 255, 0.05), transparent);
    pointer-events: none;
    z-index: -1;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.card-text {
    color: var(--text-muted);
}

/* 卡片悬停效果 */
.hover-shadow {
    transition: all 0.3s ease-in-out;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(1, 65, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 主按钮样式 */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1.5rem rgba(1, 65, 255, 0.3);
}

.btn-primary:hover::after {
    opacity: 1;
}

/* 导航栏样式 */
.navbar {
    background: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: var(--text-light);
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
}

/* 页面过渡动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 动态粒子效果 */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(1, 65, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

/* 页脚样式 */
footer {
    background: rgba(10, 25, 47, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* 返回按钮样式 */
.btn-outline-secondary {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

/* 页眉样式 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 25, 41, 0.4);
    backdrop-filter: blur(8px);
    padding: 0.8rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 导航链接 */
.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    to { transform: translateX(0); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link span {
        display: none;
    }
} 