/* 全局设置 - 复古配色方案 */
:root {
    /* 核心配色变量 */
    --bg-color: #f2efe4;
    /* 复古奶油米黄 */
    --card-bg: #f9f7f0;
    /* 比背景稍微亮一点的米白 */

    --text-primary: #1a1515;
    /* 墨黑色，接近纯黑但柔和一点 */
    --text-secondary: #5a4a42;
    /* 深棕灰色，用于次要文字 */

    --accent-color: #d9383a;
    /* 复古红 - 核心视觉中心 */
    --accent-sub: #c27844;
    /* 焦糖棕 - 辅助色 */

    --line-color: #1a1515;
    /* 装饰线条颜色 */
}

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

body {
    /* 字体建议更换为衬线体或更复古的无衬线体，更有味道 */
    font-family: "Georgia", "Times New Roman", serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: transparent;
    z-index: 100;
}

.brand {
    font-size: 1.8rem;
    font-weight: 900;
    /* 加粗 */
    color: var(--accent-color);
    /* 品牌名用红色 */
    text-decoration: none;
    text-transform: uppercase;
    /* 大写更有复古海报感 */
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    /* 增加一点硬阴影 */
}

.nav-center {
    display: flex;
    gap: 2rem;
}

.nav-center a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-center a:hover,
.nav-center a.active {
    color: var(--accent-color);
}

/* 图标颜色 */
.nav-center a i {
    color: var(--accent-sub);
}

.nav-right {
    display: flex;
    gap: 1.2rem;
}

.nav-right a {
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.nav-right a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* 主体区域 */
.hero-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 5vh;
    z-index: 5;
    /* 让内容层级高于飘落的图形 */
}

/* 背景轨道动画 - 改为实线或深色虚线，增强插画感 */
/* Background Grid - Graph Paper Style */
.retro-bg-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Grid pattern using linear gradients */
    background-image:
        linear-gradient(var(--line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-color) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Grid cell size */
    background-position: center center;
    opacity: 0.05;
    /* Very subtle */
    z-index: 0;
    /* Vignette effect to focus on center */
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* New Retro Shapes */
.shape-zigzag {
    position: absolute;
    width: 60px;
    height: 20px;
    background:
        linear-gradient(135deg, var(--accent-sub) 25%, transparent 25%) -10px 0,
        linear-gradient(225deg, var(--accent-sub) 25%, transparent 25%) -10px 0,
        linear-gradient(315deg, var(--accent-sub) 25%, transparent 25%),
        linear-gradient(45deg, var(--accent-sub) 25%, transparent 25%);
    background-size: 20px 20px;
    background-color: transparent;
    top: 70%;
    left: 5%;
    opacity: 0.7;
    transform: rotate(-15deg);
    animation: float 7s ease-in-out infinite 1s;
}

.shape-square-hollow {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--text-primary);
    top: 10%;
    right: 8%;
    transform: rotate(15deg);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite 2s;
}



.planet-1 {
    top: 20%;
    left: 10%;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
    /* 硬阴影复古风 */
    font-size: 20px;
    color: var(--text-primary);
}

.planet-2 {
    bottom: 15%;
    left: 25%;
    width: 40px;
    height: 40px;
    background-color: var(--accent-sub);
    /* 焦糖色 */
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
}

/* 卡片容器布局 */
.profile-card-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10;
    gap: -40px;
}

/* 信息卡片 - 复古风格 */
.info-card {
    background: var(--card-bg);
    padding: 3rem 5rem 3rem 3rem;
    border-radius: 4px;
    /* 圆角变小，更硬朗 */
    border: 3px solid var(--text-primary);
    /* 黑色粗边框 */
    box-shadow: 10px 10px 0px var(--text-primary);
    /* 经典的复古硬阴影 */
    width: 460px;
    position: relative;
    z-index: 2;
}

.card-header {
    margin-bottom: 1rem;
}

.label {
    font-family: sans-serif;
    /* 标签用无衬线体形成对比 */
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-sub);
    /* 焦糖色 */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.name {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
    margin: 0;
    /* 覆盖 h1 默认外边距，避免排版跳动 */
}

.name::before {
    content: "$";
    font-family: "Courier New", monospace;
    color: var(--accent-sub);
    font-size: 1.2rem;
    line-height: 1;
    -webkit-text-stroke: 0;
    text-shadow: none;
    opacity: 0.82;
}

.name-text {
    font-family: "Impact", sans-serif;
    /* 粗壮的字体 */
    font-size: 3.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    /* 文字描边效果 */
    -webkit-text-stroke: 1px var(--text-primary);
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.name-caret {
    width: 0.68ch;
    height: 1.2em;
    background: var(--text-primary);
    border-radius: 1px;
    box-shadow: inset 0 0 0 1px var(--card-bg);
    align-self: flex-end;
    transform: translateY(2px);
    opacity: 0.9;
}

.name-caret.blink {
    animation: caret-blink 0.9s steps(2, start) infinite;
}

@keyframes caret-blink {
    to {
        opacity: 0;
    }
}

.divider {
    height: 3px;
    background-color: var(--text-primary);
    width: 100%;
    margin: 1.5rem 0;
}

.card-body {
    text-align: right;
}

.roles-list {
    list-style: none;
}

.roles-list li {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: monospace;
    /* 打字机风格字体 */
    position: relative;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    cursor: default;
}

.roles-list li::before,
.roles-list li::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
    text-shadow: none;
}

.roles-list li::before {
    color: var(--accent-color);
}

.roles-list li::after {
    color: var(--accent-sub);
}

.roles-list li:hover {
    text-shadow: 2px 2px 0 var(--accent-sub);
}

.roles-list li:hover::before,
.roles-list li:hover::after {
    opacity: 0.8;
    animation: glitch-shift 0.28s steps(2, end) 2;
}

@keyframes glitch-shift {
    0% {
        transform: translate(0, 0);
    }

    30% {
        transform: translate(-2px, -1px);
    }

    60% {
        transform: translate(2px, 1px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* 头像部分 */
.avatar-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-left: -40px;
    z-index: 3;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* 复古风格边框 */
    border: 4px solid var(--text-primary);
    box-shadow: 5px 5px 0px var(--accent-color);
    /* 红色硬阴影 */
    background-color: var(--card-bg);
}

.floating-icon {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--text-primary);
    box-shadow: 2px 2px 0px var(--text-primary);
    z-index: 4;
}

.floating-icon i {
    color: var(--accent-color);
}

/* 飘落堆积的图形层 */
/* 移动端适配 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-center {
        display: none;
    }

    .profile-card-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .avatar-container {
        margin-left: 0;
    }

    .info-card {
        width: 90%;
        padding: 2rem;
        text-align: center;
    }

    .card-body {
        text-align: center;
    }

    .name {
        justify-content: center;
        width: 100%;
    }

    .name-text {
        font-size: 3rem;
    }
}

/* === 新增：复古装饰元素 === */
.retro-shape {
    position: absolute;
    z-index: 0;
    /* 放在最底层 */
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

/* 左上角的红色实心圆 */
.shape-circle {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    /* 复古红 */
    border-radius: 50%;
    border: 3px solid var(--text-primary);
    /* 黑边框 */
    box-shadow: 5px 5px 0px var(--text-primary);
    /* 硬阴影 */
    top: 15%;
    left: 10%;
}

/* 右下角的空心三角形 (用边框模拟) */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--accent-sub);
    /* 焦糖色 */
    filter: drop-shadow(5px 5px 0px var(--text-primary));
    /* 给不规则形状加阴影 */
    bottom: 20%;
    right: 15%;
    animation-delay: 1s;
    /* 错开动画时间 */
}

/* 一个装饰性的黑色叉叉 */
.shape-cross {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    top: 25%;
    right: 25%;
    animation: float 5s ease-in-out infinite reverse;
    /* 反向浮动 */
}

/* 浮动动画：上下轻微移动 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}