/* 引入 Tailwind CSS (在 header.php 中通过 CDN 引入，这里保留自定义样式) */

:root {
    --status-green: #5abb39;
    --status-yellow: #eab308;
    --status-red: #ef4444;
    --status-blue: #3b82f6;
    --theme-primary: #b074d1; 
    --bg-body: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-y: scroll;
}

/* 仿 Yunyoo 风格的头部 */
.yunyoo-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 状态条 */
.status-bar-main {
    background-color: var(--theme-primary); /* 使用新的主题色 */
    color: white;
    font-weight: 600;
}

/* 时间轴容器 (带淡出效果) */
.timeline-container-fade {
    position: relative;
}
.timeline-container-fade::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e5e7eb 0%, #e5e7eb 75%, rgba(229, 231, 235, 0) 100%);
    z-index: 0;
}

.incident-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.incident-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 状态颜色辅助类 */
.text-status-green { color: var(--status-green); }
.text-status-blue { color: var(--status-blue); }
.text-status-red { color: var(--status-red); }
.text-status-yellow { color: var(--status-yellow); }



.bg-status-green { background-color: var(--status-green); }
.bg-status-blue { background-color: var(--status-blue); }
.bg-status-red { background-color: var(--status-red); }
.bg-status-yellow { background-color: var(--status-yellow); }

/* 时间轴节点样式 */
.update-entry::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: 2px solid #fff;
    z-index: 10;
}

.update-entry.latest::before {
    background-color: var(--theme-primary); /* 使用新的主题色 */
    width: 14px;
    height: 14px;
    left: -22px;
    top: 23px;
}

/* Footer Link */
.footer-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--theme-primary);
    transition: color 0.3s;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--theme-primary);
    transition: width 0.3s;
}

.footer-link:hover::after {
    width: 100%;
}

/* Markdown Typography Fixes */
.prose { max-width: none; }
.prose a { color: var(--theme-primary); text-decoration: none; } /* 使用新的主题色 */
.prose a:hover { text-decoration: underline; }
.prose pre { background-color: #f3f4f6; color: #1f2937; border: 1px solid #e5e7eb; border-radius: 0.375rem; }

/* 自定义颜色覆盖 */
.header-icon {
    color: var(--theme-primary);
}

.post-top-bar {
    background-color: var(--theme-primary);
}

.btn-primary {
    background-color: var(--theme-primary);
}
.btn-primary:hover {
    opacity: 0.9;
}

/* 恢复首页状态条颜色 */
.status-bar-index {
    background-color: var(--status-green);
}

/* 移动端菜单 */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 200px;
    opacity: 1;
}

/* 将文章/页面标题颜色设置为主题色 */
.post-title,
.post-title a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.3s;
}

