:root {
    --primary-color: #00f7ff;
    --secondary-color: #7b2ff7;
    --background-color: #0a192f;
    --text-color: #e6f1ff;
    --border-color: #233554;
    --chat-user-bg: #00f7ff;
    --chat-ai-bg: #7b2ff7;
    --neon-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(45deg, #0a192f, #233554);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 5vh;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    z-index: 1000;
}

.nav-links {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: var(--neon-shadow);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
}

.nav-links a.active,
.nav-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* 主要内容区样式 */
.main-content {
    margin-top: 5vh;
    min-height: calc(95vh - 200px);
    position: relative;
    padding-right: 0;
}

/* 内容区块样式 */
.content-section {
    display: none;
    width: 100%;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 轮播图样式 */
.carousel {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--neon-shadow);
    border: 1px solid var(--primary-color);
}

.carousel-container {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

.carousel-controls button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 关于我页面样式 */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

.profile-info {
    flex: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    box-shadow: var(--neon-shadow);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 作品展示页面样式 */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: rgba(35, 53, 84, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    box-shadow: var(--neon-shadow);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    animation: glow 2s infinite;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    padding: 1rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
}

/* 对话侧边栏样式 */
.chat-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 25, 47, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--neon-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--background-color);
}

/* 底部样式 */
.footer {
    padding: 2rem;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    height: 200px;
    border-top: 1px solid var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    min-width: 80px;
}

.social-link i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: var(--neon-shadow);
}

.social-link span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.social-link:hover i {
    animation: glow 2s infinite;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding-right: 0;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 50vh;
        top: auto;
        bottom: 0;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-link {
        min-width: 60px;
    }
    
    .social-link i {
        font-size: 1.5rem;
    }
    
    .social-link span {
        font-size: 0.8rem;
    }
} 

/* 添加动画效果 */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.message {
    position: relative;
}

.user-message::after,
.ai-message::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    filter: blur(8px);
    z-index: -1;
}

.user-message::after {
    background: var(--primary-color);
}

.ai-message::after {
    background: var(--secondary-color);
}

.portfolio-item:hover {
    animation: glow 2s infinite;
}

.profile-image img {
    animation: float 6s ease-in-out infinite;
}

/* 添加科幻背景动画 */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

.lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        var(--primary-color) 50px,
        var(--primary-color) 51px
    );
    opacity: 0.05;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50px); }
}

/* 添加科幻文字样式 */
.cyber-title {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: var(--neon-shadow);
}

.cyber-text {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.personal-data {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--neon-shadow);
}

.personal-data p {
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--text-color);
}

.personal-data p::before {
    content: '>';
    color: var(--primary-color);
    margin-right: 0.5rem;
} 