@font-face {
    font-family: "Maple Mono NF CN";
    src: url("fonts/MapleMono-NF-CN-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Maple Mono NF CN";
    src: url("fonts/MapleMono-NF-CN-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --accent: #2b6cb0;
    --dim: #718096;
    --border: #e2e8f0;
    --code-bg: #f7fafc;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: "Maple Mono NF CN", "Consolas", "Menlo", monospace;
    font-size: 1.1rem;
    margin: 0;
    padding: 4rem 2rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    margin-bottom: 4rem;
    border-bottom: 2px solid var(--fg);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.breadcrumb {
    color: var(--dim);
    font-size: 0.9rem;
}

.terminal-header {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.prompt { color: var(--accent); font-weight: bold; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background: var(--accent);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink { 50% { opacity: 0; } }

section { margin-bottom: 3rem; }

h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-size: 0.7rem;
    background: var(--fg);
    color: var(--bg);
    padding: 2px 6px;
    margin-right: 1rem;
    margin-top: 4px;
    border-radius: 3px;
}

.project-content { flex: 1; }

.project-title {
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    text-decoration: none;
    width: 100%;
}

.project-title:hover { text-decoration: underline; }

.project-desc {
    font-size: 0.9rem;
    color: var(--dim);
    margin-top: 0.2rem;
}

.sub-links {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    font-size: 0.85rem;
}

.sub-links a {
    color: var(--fg);
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    padding: 2px 0;
}

.sub-links a:hover { color: var(--accent); }

footer {
    margin-top: 6rem;
    font-size: 0.8rem;
    color: var(--dim);
    text-align: center;
}

@media (max-width: 600px) {
    body { padding: 2rem 1rem; }
    header { flex-direction: column; align-items: flex-start; }
    .breadcrumb { margin-top: 0.5rem; }
}

#terminal { cursor: text; }

#terminal-history {
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

#terminal-history::-webkit-scrollbar { width: 4px; }
#terminal-history::-webkit-scrollbar-thumb { background: var(--border); }

/* Vim 模式样式 */
.vim-selected {
    border-left: 4px solid var(--accent) !important;
    padding-left: 0.8rem !important;
    background: rgba(43, 108, 176, 0.05);
    transition: all 0.1s ease;
    display: inline-block;
    width: 100%;
}

#vim-status {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--fg);
    color: var(--bg);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1000;
    text-transform: uppercase;
}

.history-item { margin-bottom: 0.8rem; }
.history-cmd { opacity: 0.6; margin-bottom: 0.2rem; }
.history-out { 
    color: var(--dim); 
    padding-left: 0.8rem; 
    border-left: 2px solid var(--border);
    white-space: pre-wrap;
}

.glitch-out {
    animation: glitch 0.3s infinite;
    filter: brightness(2) contrast(3);
    background: #000 !important;
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); }
    40% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, 5px); }
    80% { transform: translate(5px, -5px); }
    100% { transform: translate(0); }
}
