/*
 * Theme Name: Light Command Line
 * Description: A minimalist light terminal style theme.
 * Author: Ruonan
 */

body {
    background-color: #fcfcfc;
    color: #2b2b2b;
    font-family: "Courier New", Courier, monospace;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
}

/* Header 独立底色区块 */
.nav-header {
    background-color: #f0f3f6; /* 浅灰偏蓝的底色，区别于纯白 */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    margin-bottom: 30px;
}
.nav-menu {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}
.nav-menu a {
    color: #2b2b2b;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dashed;
}
.nav-menu a:hover {
    background-color: #2b2b2b;
    color: #00ff00;
    text-decoration: none;
}

/* 闪烁的下划线光标 */
/* .cursor {
    font-weight: bold;
    color: #2b2b2b;
    animation: blink 1s step-end infinite;
} */
.cursor {
    display: inline-block;
    width: 1ch; 
    height: 1.2em; 
    background-color: #2b2b2b; 
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 状态框(Status Log)独立区块 */
.status-box {
    background-color: #fafafa;
    border-left: 4px solid #00aa00;
    padding: 15px;
    margin-bottom: 40px;
    box-shadow: 2px 2px 0px #eee;
}

footer {
    color: #888;
}

a { color: #0066cc; text-decoration: none; }
/* a:hover { background-color: #2b2b2b; color: #fcfcfc; } */
a:hover {
    background-color: #2b2b2b; /* 保持黑底 */
    color: #00ff00;            /* 变成黑客绿 */
}

h1, h2, h3 { font-size: 1.2rem; font-weight: bold; margin-top: 30px; }
.post-meta { color: #888; font-size: 0.9rem; }
.command-prompt { color: #00aa00; font-weight: bold; }


/* =========================================
   🚀 Starship 彩虹标签条 (Rainbow Tags)
========================================= */
.tag-rainbow {
    display: inline-flex;
    flex-wrap: wrap;
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden; /* 让两头有圆角，中间色块紧密相连 */
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* 标签条的前缀头部 (类似 Starship 的模块开头) */
.tag-rainbow .st-tag-title {
    background-color: #2b2b2b;
    color: #00ff00;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* 单个标签的基本样式 */
.tag-rainbow .st-tag {
    padding: 2px 10px;
    color: #fff !important; /* 强制覆盖全局链接的颜色 */
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none !important;
}

/* 鼠标悬停变亮 */
.tag-rainbow .st-tag:hover {
    filter: brightness(1.2);
    background-color: inherit; /* 阻止全局 hover 覆盖背景色 */
}

/* 🪄 核心魔法：自动循环分配经典的 Starship 彩虹色 */
.tag-rainbow .st-tag:nth-of-type(1) { background-color: #0366d6; } /* 科技蓝 */
.tag-rainbow .st-tag:nth-of-type(2) { background-color: #ffd33d; color: #2b2b2b !important; } /* 亮黄(字改黑色防看不清) */
.tag-rainbow .st-tag:nth-of-type(3) { background-color: #d73a49; } /* 警告红 */
.tag-rainbow .st-tag:nth-of-type(4) { background-color: #6f42c1; } /* 极客紫 */
.tag-rainbow .st-tag:nth-of-type(5) { background-color: #28a745; } /* 终端绿 */
.tag-rainbow .st-tag:nth-of-type(6) { background-color: #e36209; } /* 活力橙 */
