/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff9d;
    --secondary-color: #00b8ff;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent-color: #ff0055;
    --text-color: #e0e0e0;
    --border-color: #2a2a2a;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 雪花样式 */
.snowflake {
    position: fixed;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.6;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 容器样式 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.1);
    border-radius: 5px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.1;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary-color);
    color: var(--primary-color);
}

.title {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* 章节样式 */
section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.1);
    border-color: var(--primary-color);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

section:hover::before {
    opacity: 1;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 联系方式样式 */
.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

/* 时间线样式 */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.date {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* 技能网格样式 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: rgba(20, 20, 20, 0.9);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}

.skill-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-item ul {
    list-style: none;
    padding-left: 1rem;
}

.skill-item li {
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
}

.skill-item li::before {
    content: '▹';
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.skill-details {
    display: none;
    margin-left: 1.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

.skill-details.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.skill-name {
    font-weight: bold;
    color: var(--secondary-color);
    display: inline-block;
    margin-bottom: 0.3rem;
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
}

.skill-name::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.skill-name.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.skill-details p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.9;
}

.skill-item li:hover .skill-details {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* 打印样式 */
@media print {
    body {
        background-color: #fff;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    section {
        box-shadow: none;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
}

/* 备案信息样式 */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.beian {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.beian a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian a:hover {
    color: var(--primary-color);
} 