/* --- 小伙子主题：Bootstrap 5 扩展样式 --- */
:root {
    --accent: #667eea;
    --sec-color: #e53e3e;
    --mkt-color: #d69e2e;
    --mgr-color: #319795;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
}

body.page-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* 背景光球 */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
.orb-1 {
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.2);
    top: -50px; left: -50px;
    animation: floatDrift 10s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: rgba(118,75,162,0.3);
    bottom: -100px; right: -100px;
    animation: floatDrift 12s ease-in-out infinite reverse;
    animation-delay: -4s;
}
.orb-3 {
    width: 220px; height: 220px;
    background: rgba(102,126,234,0.35);
    top: 40%; left: 55%;
    animation: floatDrift 9s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes floatDrift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(18px, -28px); }
    66% { transform: translate(-14px, 16px); }
}

/* 毛玻璃卡片 + 入场 */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: cardIn 0.7s ease-out both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 头像呼吸 + 在线点脉冲 */
.avatar-wrap img {
    animation: avatarBreathe 4s ease-in-out infinite;
}
@keyframes avatarBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.status-dot {
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
}

/* 分隔线呼吸 */
.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.45), transparent);
    animation: dividerBreathe 3.5s ease-in-out infinite;
}
@keyframes dividerBreathe {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}

/* 标签 */
.badge-sec { background-color: rgba(229,62,62,0.08); color: var(--sec-color); }
.badge-mkt { background-color: rgba(214,158,46,0.08); color: var(--mkt-color); }
.badge-mgr { background-color: rgba(49,151,149,0.08); color: var(--mgr-color); }
.badge-tech { background-color: rgba(102,126,234,0.08); color: var(--accent); }

.tag-cloud .badge {
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    animation: badgePop 0.4s ease-out both;
}
.tag-cloud .badge:nth-child(1)  { animation-delay: 0.05s; }
.tag-cloud .badge:nth-child(2)  { animation-delay: 0.08s; }
.tag-cloud .badge:nth-child(3)  { animation-delay: 0.11s; }
.tag-cloud .badge:nth-child(4)  { animation-delay: 0.14s; }
.tag-cloud .badge:nth-child(5)  { animation-delay: 0.17s; }
.tag-cloud .badge:nth-child(6)  { animation-delay: 0.20s; }
.tag-cloud .badge:nth-child(7)  { animation-delay: 0.23s; }
.tag-cloud .badge:nth-child(8)  { animation-delay: 0.26s; }
.tag-cloud .badge:nth-child(9)  { animation-delay: 0.29s; }
.tag-cloud .badge:nth-child(10) { animation-delay: 0.32s; }
.tag-cloud .badge:nth-child(11) { animation-delay: 0.35s; }
.tag-cloud .badge:nth-child(12) { animation-delay: 0.38s; }
.tag-cloud .badge:nth-child(13) { animation-delay: 0.41s; }
.tag-cloud .badge:nth-child(14) { animation-delay: 0.44s; }
.tag-cloud .badge:nth-child(15) { animation-delay: 0.47s; }
.tag-cloud .badge:nth-child(16) { animation-delay: 0.50s; }
.tag-cloud .badge:nth-child(17) { animation-delay: 0.53s; }

@keyframes badgePop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.badge-sec:hover, .badge-mkt:hover, .badge-mgr:hover, .badge-tech:hover {
    color: #fff;
    transform: scale(1.05);
}
.badge-sec:hover { background-color: var(--sec-color); }
.badge-mkt:hover { background-color: var(--mkt-color); }
.badge-mgr:hover { background-color: var(--mgr-color); }
.badge-tech:hover { background-color: var(--accent); }

/* Contact CTA */
.btn-contact {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn-contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: shineSweep 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shineSweep {
    0%, 60% { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}
.btn-contact:hover {
    background-color: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.45);
}

.hl-sec { color: var(--sec-color); font-weight: 600; }
.hl-mkt { color: var(--mkt-color); font-weight: 600; }
.hl-mgr { color: var(--mgr-color); font-weight: 600; }

/* 站点顶栏 / 页脚 */
.site-top {
    width: 100%;
    max-width: 820px;
}
.site-top a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.site-top a:hover { color: #fff; }
.site-footer {
    width: 100%;
    max-width: 820px;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}
.site-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.site-footer a:hover { color: #fff; }

/* 文章列表 / 正文 */
.post-list-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.18);
}
.post-list-item a {
    color: inherit;
    text-decoration: none;
}
.post-list-item a:hover { color: var(--accent); }

.entry-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4a5568;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    color: #1a202c;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.entry-content a { color: var(--accent); }
.entry-content pre, .entry-content code {
    background: rgba(102,126,234,0.08);
    border-radius: 0.35rem;
}
.entry-content pre {
    padding: 1rem;
    overflow-x: auto;
}
.entry-content code { padding: 0.1em 0.35em; }
.entry-content pre code { padding: 0; background: transparent; }

.page-nav .page-navigator {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.page-nav .page-navigator li a,
.page-nav .page-navigator li span {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.9);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
}
.page-nav .page-navigator li.current a,
.page-nav .page-navigator li.current span {
    background: var(--accent);
    color: #fff;
}

/* 评论 */
#comments .comment-list {
    list-style: none;
    padding: 0;
}
#comments .comment-list .comment-list {
    padding-left: 1.5rem;
}
#comments .comment-body {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(102,126,234,0.12);
}
#comments .comment-author {
    font-weight: 600;
}
#comments .comment-meta {
    font-size: 0.8rem;
    color: #718096;
}

/* 隐藏文章元信息（作者 / 日期 / 分类）— 兜底 */
ul.list-inline.text-secondary.small.mb-3 {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .bg-orb, .glass-card, .avatar-wrap img, .status-dot,
    .divider-glow, .tag-cloud .badge, .btn-contact::after {
        animation: none !important;
    }
    .btn-contact, .tag-cloud .badge, .post-list-item {
        transition: none !important;
    }
}
