:root {
    --bg-color: #050505;
    --text-primary: #f0f0f0;
    --text-secondary: #888; /* 稍微调亮一点灰色 */
    --accent-color: #fff;
    --line-color: #222;
    --link-hover: #00ffff; /* 赛博青色，用于链接悬停 */
    --font-main: 'Montserrat', sans-serif;
    --font-mono: 'Space Mono', monospace; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- 装饰网格线 --- */
.grid-line {
    position: absolute;
    background-color: var(--line-color);
    z-index: 0;
}
.vertical-line {
    width: 1px;
    height: 100%;
    left: 38%; /* 黄金分割点附近 */
}
.horizontal-line {
    width: 100%;
    height: 1px;
    top: 50%;
    display: none; 
}

/* --- 主容器 --- */
.container {
    width: 90vw;
    height: 80vh;
    display: flex;
    
    max-width: 1400px;
}

/* --- 左侧视觉区 --- */
.visual-section {
    flex: 0 0 38%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 修改：不再黑白，稍微增加对比度和饱和度让图片更有质感 */
    filter: contrast(1.1) saturate(1.1); 
    display: block;
    position: relative;
    z-index: 2;
}

.avatar-border {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--text-secondary);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* 鼠标悬停头像时，边框会有微动 */
.avatar-wrapper:hover .avatar-border {
    transform: translate(-5px, 5px);
}

.deco-text {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 10px;
    margin-top: 25px;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* --- 右侧信息区 --- */
.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 80px;
}

/* --- 故障风标题 --- */
.glitch-name {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    position: relative;
    color: var(--text-primary);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.glitch-name::before,
.glitch-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch-name::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-name::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

/* --- 简介 --- */
.bio-wrapper {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.bracket { color: var(--text-secondary); }

/* --- 新增：链接样式 --- */
.links-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.tech-link {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.tech-link:hover {
    color: var(--link-hover);
    border-bottom: 1px solid var(--link-hover);
    text-shadow: 2px 0px 0px rgba(255, 0, 0, 0.5); /* 悬停时文字也有轻微故障感 */
}

.separator {
    color: #333;
}

/* --- 状态点 --- */
.status-indicator {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* --- 动画关键帧 --- */
@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); }
    20% { clip: rect(80px, 9999px, 100px, 0); }
    40% { clip: rect(10px, 9999px, 60px, 0); }
    60% { clip: rect(90px, 9999px, 20px, 0); }
    80% { clip: rect(40px, 9999px, 50px, 0); }
    100% { clip: rect(70px, 9999px, 100px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(90px, 9999px, 10px, 0); }
    20% { clip: rect(10px, 9999px, 40px, 0); }
    40% { clip: rect(50px, 9999px, 80px, 0); }
    60% { clip: rect(20px, 9999px, 90px, 0); }
    80% { clip: rect(80px, 9999px, 30px, 0); }
    100% { clip: rect(30px, 9999px, 60px, 0); }
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
    .glitch-name { font-size: 3.5rem; }
    .vertical-line { display: none; }
}

@media (max-width: 768px) {
    body { height: auto; min-height: 100vh; padding: 40px 0; }
    .container { flex-direction: column; height: auto; width: 85vw; }
    
    .visual-section { margin-bottom: 40px; flex: auto; }
    .avatar-wrapper { width: 200px; height: 200px; }
    .avatar-border { top: 15px; left: 15px; }
    
    .info-section { padding-left: 0; align-items: flex-start; }
    .glitch-name { font-size: 2.5rem; margin-bottom: 20px; }
    .bio-wrapper { font-size: 1rem; margin-bottom: 30px; }
    
    .status-indicator { margin-top: 40px; }
}