/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 地平线风格配色 */
    --primary-color: #0078d4;
    --secondary-color: #005a9e;
    --accent-color: #00bcf2;
    --bg-dark: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 顶部导航栏 - 地平线6风格 */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 120, 212, 0.3);
}

.nav-link.active {
    background: var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 120, 212, 0.5);
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    min-height: calc(100vh - 200px);
}

/* 卡片容器 */
.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
}

/* 标题样式 */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* 主页介绍卡片 */
.hero-card {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.2), rgba(0, 188, 242, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.hero-card h1 {
    font-size: 3rem;
    border: none;
    margin-bottom: 1rem;
}

.hero-card .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* 功能模块网格 */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 120, 212, 0.3);
}

.module-card h3 {
    margin-top: 0;
    color: var(--accent-color);
}

.module-card p {
    font-size: 0.95rem;
}

/* 列表样式 */
ul, ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

/* 时间线样式（用于简历） */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: rgba(0, 120, 212, 0.3);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 联系表单样式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-item h3 {
    margin-top: 0;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 链接列表 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.link-item:hover {
    background: rgba(0, 120, 212, 0.2);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 10rem 1rem 2rem;
    }
    
    .hero-card h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}
