/* Vib Coding Theme - Typecho博客主题样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

html, body {
    background-color: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    overflow-y: auto;
}

/* 主内容区域 */
#main {
    min-height: calc(100vh - 300px); /* 为底部终端留出足够空间 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 320px; /* 确保内容不被终端遮挡 */
}

#content {
    width: 100%;
    max-width: 1200px;
}

/* 自我介绍文本框 */
#introduction {
    text-align: center;
    padding: 40px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-container {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 代码括号装饰 */
.code-brackets {
    font-size: 8rem;
    color: #00ff00;
    opacity: 0.3;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: bracket-pulse 2s infinite alternate;
}

@keyframes bracket-pulse {
    from { opacity: 0.3; transform: scale(0.95); }
    to { opacity: 0.6; transform: scale(1.05); }
}

.intro-content {
    flex: 1;
    padding: 0 40px;
}

.typewriter {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    overflow: hidden;
    border-right: 3px solid #00ff00;
    white-space: nowrap;
    margin: 0 auto 20px auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ff00 }
}

.intro-container p {
    font-size: 1.2rem;
    color: #00cc00;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sub-title {
    font-style: italic;
    margin-top: 30px !important;
}

.sub-title .command {
    color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-style: normal;
}

/* 动态文本效果 */
.dynamic-text {
    margin-top: 30px;
    min-height: 24px;
    font-size: 1.1rem;
    color: #009900;
}

.dynamic-text::before {
    content: '> ';
    color: #00ff00;
    font-weight: bold;
}

/* 悬停效果 */
.intro-container:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    border-color: #00ff66;
    transition: all 0.3s ease;
}

/* 替换terminal-output样式为command-output，保持样式一致性 */

/* 终端输出区域 */
#command-output {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    background-color: transparent;
    padding: 10px 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    min-height: 300px;
    max-height: calc(100vh - 200px);
}

/* 命令输出内容样式 */
#command-output .command-result {
    color: #00ff00;
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 错误消息样式 */
#command-output .error {
    color: #ff3333;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(255, 51, 51, 0.1);
    border-left: 3px solid #ff3333;
}

/* 帮助信息样式 */
#command-output .help-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

#command-output .help-info h3 {
    color: #ff9900;
    margin-top: 0;
    margin-bottom: 10px;
}

/* 加载中样式 */
#command-output .loading {
    color: #ffff00;
    font-style: italic;
    display: inline-block;
    margin: 10px 0;
}

/* 命令提示样式 */
#command-output .command-info {
    color: #ff9900;
    margin-bottom: 10px;
}

/* 命令高亮样式 */
#command-output .command {
    background-color: rgba(255, 153, 0, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
    color: #ff9900;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* 操作提示样式 */
#command-output .action-hint {
    color: #999999;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9em;
}

#command-output.hidden {
    display: none;
}

/* 文章列表样式 */
.list-header {
    color: #00cc00;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.post-list {
    margin: 1rem 0;
}

.post-item {
    display: flex;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #333;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-item:hover {
    border-color: #00cc00;
    background-color: rgba(0, 204, 0, 0.1);
    transform: translateY(-2px);
}

.post-id {
    color: #666;
    font-family: 'Courier New', monospace;
    margin-right: 1rem;
    min-width: 40px;
    display: flex;
    align-items: flex-start;
    padding-top: 0.2rem;
}

.post-info {
    flex: 1;
}

.post-title {
    color: #00cc00;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.post-title:hover {
    text-decoration: underline;
    color: #00ff00;
}

.post-meta {
    color: #66ff66;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-action {
    color: #999;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    font-style: italic;
}

/* 文章详情样式 */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.article-title {
    color: #00cc00;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
}

.back-button {
    background-color: rgba(0, 204, 0, 0.2);
    color: #00cc00;
    border: 1px solid #00cc00;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(0, 204, 0, 0.3);
    color: #00ff00;
    transform: translateY(-2px);
}

.post {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #333;
}

.post h1 {
    color: #00cc00;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.meta-item {
    color: #66ff66;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #333, transparent);
    margin: 1.5rem 0;
}

.post-content {
    color: #eee;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 图片响应式适配 */
.post-content img,
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.post-content h2 {
    color: #00cc00;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content pre {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.article-content h1 {
    color: #00ff00;
    font-size: 1.8rem;
    margin: 1.2rem 0 0.8rem;
    line-height: 1.3;
}

.article-content h2 {
    color: #00cc00;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    color: #00cc00;
    font-size: 1.3rem;
    margin: 1rem 0 0.6rem;
}

.article-content h4,
.article-content h5,
.article-content h6 {
    color: #66ff66;
    margin: 0.8rem 0 0.5rem;
}

.post-content ul, .article-content ul,
.post-content ol, .article-content ol {
    padding-left: 1.4rem;
    margin: 0.6rem 0 1rem;
}

.post-content li, .article-content li {
    margin: 0.3rem 0;
}

.post-content blockquote, .article-content blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-left: 3px solid #00cc00;
    color: #ccc;
}

.post-content hr, .article-content hr {
    height: 1px;
    border: none;
    background: linear-gradient(to right, transparent, #333, transparent);
    margin: 1.2rem 0;
}

.post-content table, .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    overflow-x: auto;
    display: block;
}

.post-content thead, .article-content thead {
    background-color: rgba(0, 0, 0, 0.6);
}

.post-content th, .article-content th,
.post-content td, .article-content td {
    border: 1px solid #333;
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.post-content th, .article-content th {
    color: #00cc00;
}

.post-content tbody tr:nth-child(even), .article-content tbody tr:nth-child(even) {
    background-color: rgba(0, 255, 0, 0.03);
}

.article-content code {
    color: #ff6600;
    background-color: rgba(255, 102, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #00ff00;
}

.post-content kbd, .article-content kbd {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 0.1rem 0.3rem;
    color: #00ff00;
    box-shadow: inset 0 -1px 0 #111;
}

.post-content code {
    color: #ff6600;
    background-color: rgba(255, 102, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #00ff00;
}

.post-tags {
    color: #66ff66;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.action-hint {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.8rem;
    margin: 0 0.2rem;
    text-decoration: none;
    color: #00cc00;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: rgba(0, 204, 0, 0.2);
    border-color: #00cc00;
    color: #00ff00;
}

.pagination-current {
    background-color: rgba(0, 204, 0, 0.3) !important;
    border-color: #00cc00 !important;
    color: #fff !important;
    font-weight: bold;
}

.pagination-prev, .pagination-next {
    font-weight: bold;
}

.pagination-ellipsis {
    background-color: transparent !important;
    border: none !important;
    color: #666 !important;
    cursor: default;
}

/* 底部命令行界面 */
#terminal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-top: 2px solid #00ff00;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.7);
    z-index: 9999; /* 更高的z-index确保覆盖所有元素 */
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    animation: terminal-slide-up 0.5s ease-out;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 终端背景纹理 - 增加技术感 */
#terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes terminal-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.terminal-header {
    background-color: #333;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #006600;
    background-image: linear-gradient(to right, #222, #333, #222);
}

.terminal-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

.control-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.control-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.control-btn.close { background-color: #ff3b30; }
.control-btn.minimize { background-color: #ffcc00; }
.control-btn.maximize { background-color: #34c759; }

.terminal-title {
    color: #00ff00;
    font-weight: bold;
    flex: 1;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.terminal-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #00cc00;
    flex-shrink: 0;
}

.terminal-content {
    padding: 15px;
    min-height: 150px;
    max-height: 40vh;
    overflow-y: auto;
    color: #00ff00;
    flex: 1;
    background-color: #0a0a0a;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 自定义滚动条 */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-left: 1px solid #006600;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #006600;
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #009900;
}

.terminal-prompt {
    color: #00cc00;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #0a0a0a;
    border-top: 1px solid #003300;
    position: relative;
}

/* 响应式设计 - 媒体查询 */
@media (max-width: 768px) {
    /* 主容器布局调整 */
    .container {
        padding: 10px;
        width: calc(100% - 20px);
    }
    
    /* 主内容区域调整 */
    .main-content {
        height: calc(100vh - 180px);
        min-height: 300px;
    }
    
    /* 终端区域调整 */
    .terminal-container {
        height: 40vh;
        min-height: 200px;
    }
    
    /* 命令输出区域字体大小调整 */
    #terminal-output {
        font-size: 14px;
    }
    
    /* 文章列表响应式调整 */
    .article-list {
        padding: 10px;
    }
    
    .article-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    /* 树形结构响应式调整 */
    .archive-tree {
        padding: 10px;
        font-size: 14px;
    }
    
    /* 命令帮助信息响应式调整 */
    .help-content {
        padding: 10px;
    }
    
    /* 博主简介响应式调整 */
    .about-content {
        padding: 10px;
    }
    
    .about-profile {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* 文章详情响应式调整 */
    .article-content {
        padding: 15px;
    }
    
    /* 分页响应式调整 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* 隐藏一些小屏幕上不需要的元素 */
    .terminal-header .header-info {
        display: none;
    }
}

@media (max-width: 480px) {
    /* 移动端进一步优化 */
    .main-content {
        height: calc(100vh - 160px);
    }
    
    .terminal-container {
        height: 35vh;
    }
    
    #terminal-output {
        font-size: 13px;
    }
    
    .command-prompt {
        font-size: 13px;
    }
    
    /* 移动端文章列表优化 */
    .article-title {
        font-size: 16px;
    }
    
    .article-meta {
        font-size: 12px;
    }
    
    /* 树形结构移动端优化 */
    .year-label, .month-label {
        font-size: 14px;
    }
    
    .post-label {
        font-size: 13px;
    }
    
    /* 确保输入框在小屏幕上正常工作 */
    .terminal-input {
        font-size: 14px;
        min-width: 150px;
    }
    
    /* 移动端隐藏欢迎信息中的一些内容 */
    .welcome-message .system-info {
        font-size: 12px;
    }
}

/* 横屏移动设备优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        height: calc(100vh - 140px);
    }
    
    .terminal-container {
        height: 45vh;
    }
    
    .welcome-message {
        font-size: 14px;
    }
}

.terminal-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #00ff00, transparent);
}

.prompt {
    color: #00cc00;
    font-weight: bold;
    margin-right: 10px;
    font-family: 'Courier New', monospace;
    user-select: none;
}

#command-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    caret-color: #00ff00;
    caret-shape: block;
}

#command-input::placeholder {
    color: #006600;
    font-style: italic;
}

/* 终端底部提示栏 */
.terminal-footer {
    background-color: #0d0d0d;
    padding: 6px 15px;
    border-top: 1px solid #003300;
    font-size: 12px;
}

.terminal-hint {
    color: #008800;
    display: block;
    text-align: center;
    font-style: italic;
}

/* 命令样式 */
.command {
    color: #00ff00;
    font-weight: bold;
}

/* 树形结构样式 - Vib Coding 风格 */
.archive-tree {
    font-family: 'Courier New', monospace;
    color: #00cc00;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    border: 1px solid #333;
    margin-top: 15px;
    line-height: 1.6;
    overflow-x: auto;
}

/* 根目录样式 */
.tree-root {
    color: #ff6600;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}

.file-count, .month-count, .post-count {
    color: #999;
    font-weight: normal;
    font-size: 0.9em;
}

/* 树节点基础样式 */
.tree-item {
    position: relative;
    margin: 4px 0;
    user-select: none;
}

/* 展开/折叠图标 */
.expand-icon {
    color: #ff6600;
    font-size: 0.8em;
    cursor: pointer;
    margin-right: 5px;
    transition: transform 0.2s ease;
    display: inline-block;
    width: 12px;
    text-align: center;
}

.expand-icon:hover {
    color: #ff9900;
    transform: scale(1.2);
}

/* 树形结构前缀 */
.tree-prefix {
    margin-right: 5px;
    color: #66ff66;
}

/* 年份节点样式 */
.year-item .year-label {
    color: #ff6600;
    font-weight: bold;
}

.year-item:hover .year-label {
    color: #ff9900;
    text-decoration: underline;
}

/* 月份节点样式 */
.month-item .month-label {
    color: #00ff00;
    font-weight: bold;
}

.month-item:hover .month-label {
    color: #66ff66;
    text-decoration: underline;
}

/* 文章节点样式 */
.post-item {
    cursor: default;
}

.post-item .post-label {
    color: #00ccff;
    transition: all 0.2s ease;
}

.post-item .post-label:hover {
    color: #00ffff;
    text-decoration: underline;
    transform: translateX(2px);
}

/* 子节点容器 */
.tree-children {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 命令信息样式 */
.command-info {
    color: #00cc00;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border-left: 3px solid #00cc00;
}

/* 终端动画效果 */
@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

#command-input:focus + .cursor,
#command-input:not(:placeholder-shown) + .cursor {
    content: '|';
    color: #00ff00;
    animation: blink-cursor 1s infinite;
    margin-left: 2px;
}

/* 错误提示样式 */
.error-message {
    color: #ff3b30;
    margin: 10px 0;
    padding: 5px 10px;
    background-color: rgba(255, 59, 48, 0.1);
    border-left: 3px solid #ff3b30;
    border-radius: 3px;
    animation: error-shake 0.5s ease-in-out;
}

/* 错误震动动画 */
@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* 命令建议样式 */
.suggestion-message {
    color: #ffcc00;
    margin: 5px 0 10px 0;
    padding: 5px 10px;
    font-style: italic;
    background-color: rgba(255, 204, 0, 0.1);
    border-left: 3px solid #ffcc00;
    border-radius: 3px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #004400;
    border-radius: 50%;
    border-top-color: #00ff00;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 博主简介页面样式 - Vib Coding Style */
.about-container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    border: 1px solid #333;
    padding: 0;
    overflow: hidden;
}

/* 终端风格标题栏 */
.terminal-header {
    background-color: #222;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* 终端头部装饰按钮 */
.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-controls .control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555;
    display: inline-block;
    transition: all 0.2s ease;
}

.terminal-controls .control-btn:hover {
    transform: scale(1.1);
}

.terminal-controls .control-btn:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-controls .control-btn:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-controls .control-btn:nth-child(3) {
    background-color: #27c93f;
}

/* 命令行样式增强 */
.command-line {
    margin-bottom: 8px;
    animation: fadeIn 0.2s ease-in;
}

.command-prompt {
    color: #00ff00;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.command-text {
    color: #ffcc00;
}

/* 光标闪烁动画 */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-red {
    background-color: #ff5f56;
}

.terminal-yellow {
    background-color: #ffbd2e;
}

.terminal-green {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: auto;
    color: #999;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* 个人资料区域 */
.profile-section {
    padding: 0;
}

.profile-info {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 6px;
    overflow: hidden;
}

.profile-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
}

/* 个人资料头部 */
.profile-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00ff00, #008800);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    position: relative;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    z-index: 1;
}

.avatar-text {
    position: relative;
    z-index: 2;
    color: #00ff00;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.name-role-container {
    flex: 1;
}

.user-name {
    color: #00ff00;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.user-role {
    color: #66ff66;
    font-size: 1.1rem;
}

.command-prompt, .command {
    color: #ff6600;
    font-weight: bold;
}

/* 信息区块样式 */
.bio-section,
.skills-section,
.contact-section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border-left: 3px solid #00ff00;
}

.info-label {
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 个人简介内容 */
.bio-content {
    color: #ccc;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #333;
}

/* 技能列表 */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.2);
}

/* 联系方式 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-type {
    color: #00ff00;
    font-weight: bold;
    min-width: 80px;
}

.contact-value {
    color: #ccc;
}

.contact-value a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #66ff66;
    text-decoration: underline;
}

/* 操作提示 */
.action-hint {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .typewriter {
        font-size: 1.8rem;
    }
    
    .intro-container {
        padding: 20px;
    }
    
    #terminal {
        font-size: 14px;
    }
    
    .terminal-header {
        padding: 6px 10px;
    }
    
    #terminal-output,
    .terminal-input-container {
        padding: 10px;
    }
}

/* 触摸优化样式 */
.touch-optimized {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 确保输入框在移动设备上有足够的点击区域 */
.terminal-input-container {
    padding: 8px 0;
}

#command-input {
    touch-action: manipulation;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 增加可点击元素的触摸区域 - 伪元素方法 */
.expand-icon, .post-label, .article-title, .pagination a, .back-button {
    position: relative;
}

.expand-icon::before, .post-label::before, .article-title::before, .pagination a::before, .back-button::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
}

/* 防止移动设备上的双击缩放 */
* {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

@media (max-width: 480px) {
    .typewriter {
        font-size: 1.5rem;
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .intro-container p {
        font-size: 1rem;
    }
    
    #terminal {
        font-size: 12px;
    }
}

/* VIB CODING 风格增强 - 动画效果 */

/* 页面元素加载动画 */
.main-content > div {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 按钮悬停高级动画 */
button, .back-button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

button:hover, .back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button::before, .back-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, .back-button:hover::before {
    width: 300px;
    height: 300px;
}

/* 选择文本样式增强 */
::selection {
    background-color: rgba(0, 255, 0, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(0, 255, 0, 0.3);
    color: #ffffff;
}

/* 链接样式增强 */
a {
    color: #00ccff;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

a:hover {
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #00ffcc;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* 命令执行成功响应样式 */
.success-response {
    color: #00cc00;
    padding: 5px 0;
    animation: successFade 0.5s ease-out;
}

@keyframes successFade {
    0% { color: #ffffff; }
    50% { color: #00ff00; }
    100% { color: #00cc00; }
}

/* 命令执行加载动画 */
.loading-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    border-top-color: #00ff00;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 代码块样式增强 */
.code-block, pre, code {
    background-color: #1e1e1e;
    border-left: 3px solid #00cc00;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 命令行动画效果 */
.command-line {
    animation: commandExecute 0.3s ease-out;
}

@keyframes commandExecute {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 页面背景微动画 */
body {
    background-color: #121212;
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(0, 255, 0, 0.02) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(0, 255, 0, 0.03) 2px, transparent 0);
    background-size: 100px 100px;
    animation: subtleBackgroundMove 60s linear infinite;
}

@keyframes subtleBackgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* 终端闪烁光标优化 */
.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: #00ff00;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-top;
}
