/* 基础重置与变量定义 */
:root {
    --bg-color: #0a0a0f;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-1: #00f3ff; /* 霓虹青 */
    --accent-2: #bc13fe; /* 霓虹紫 */
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
}

/* 动态背景画布 */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

/* 环境光晕 */
.glow-orb {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
}
.glow-orb.top-left {
    top: -200px;
    left: -200px;
    background: var(--accent-2);
}
.glow-orb.bottom-right {
    bottom: -200px;
    right: -200px;
    background: var(--accent-1);
}

a {
    color: var(--accent-1);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-1);
}

/* 布局容器 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
.header {
    padding: 60px 0 40px;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to bottom, rgba(10,10,15,0.9), transparent);
}

.header-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Glitch 文字特效 */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-2);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-1);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 98px, 0); }
    5% { clip: rect(62px, 9999px, 12px, 0); }
    10% { clip: rect(31px, 9999px, 85px, 0); }
    15% { clip: rect(89px, 9999px, 14px, 0); }
    20% { clip: rect(24px, 9999px, 73px, 0); }
    25% { clip: rect(51px, 9999px, 22px, 0); }
    30% { clip: rect(93px, 9999px, 44px, 0); }
    100% { clip: rect(10px, 9999px, 98px, 0); }
}

.cyber-text {
    font-size: 1.2rem;
    color: var(--accent-1);
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cyber-text .divider {
    color: var(--text-muted);
    margin: 0 10px;
}

.badges {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cyber-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
    border-radius: 4px;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    color: #fff;
    text-decoration: none;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(188, 19, 254, 0.5);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.15);
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-2);
}

/* 经历条目样式 */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.item-header h3 {
    font-size: 1.2rem;
    color: #fff;
}

.role-tag {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin-left: 10px;
    font-size: 1rem;
}

.item-header .date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--accent-1);
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.experience-item ul {
    list-style-type: none;
}

.experience-item li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.experience-item li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: bold;
}

.highlight {
    color: #fff;
    border-bottom: 1px solid var(--accent-2);
}

/* 技能网格 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.skill-card:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--accent-1);
}

.skill-icon {
    font-size: 2rem;
    color: var(--accent-1);
    margin-bottom: 15px;
}

.skill-card h4 {
    color: #fff;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to top, rgba(10,10,15,0.9), transparent);
}

/* 滚动动画 (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content h1 { font-size: 2.5rem; }
    .cyber-text { font-size: 1rem; }
    .item-header { flex-direction: column; align-items: flex-start; }
    .item-header .date { margin-top: 5px; }
}