/* ====== 全局基础 ====== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #181c20;
    color: #e6e6e6;
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Arial', sans-serif;
    font-size: 16px; /* 更小的基础字号 */
    min-height: 100vh;
}

/* ====== 顶部导航栏 ====== */
.site-nav {
    width: 100%;
    background: #23272e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: bold;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0;
}
.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 12px;
}
.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 48px;
}
.site-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0 12px 0 0;
    line-height: 48px;
    display: block;
}
.site-title:hover {
    color: #8ab4f8;
}
.site-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 48px;
    flex-wrap: wrap;
    /* gap: 0;  不要gap */
}
.site-menu li {
    margin-left: 0; /* 不要间距 */
    display: flex;
    align-items: center;
    height: 48px;
}
.site-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.2s, background 0.2s;
    padding: 0 10px; /* 更小的内边距 */
    border-radius: 0;
    line-height: 48px;
    display: block;
}
.site-menu a:hover,
.site-menu a:focus {
    background: #4b5563 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-weight: bold;
    box-shadow: none !important;
    text-shadow: none !important;
}
/* 取消当前页高亮 */
.site-menu a.active,
.site-menu a:active {
    background: none !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-weight: bold;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* 手机端导航栏优化 */
.nav-toggle {
    display: none;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
    margin-left: 1rem;
    user-select: none;
}
@media (max-width: 700px) {
    .nav-inner {
        flex-wrap: wrap;
        height: auto;
    }
    .nav-toggle {
        display: block;
    }
    .site-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: #23272e;
        position: absolute;
        left: 0;
        top: 48px;
        z-index: 99;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 0.5rem 0;
    }
    .site-menu.open {
        display: flex;
    }
    .site-menu li {
        margin: 0.2rem 0 0 0.8rem;
        height: 38px;
    }
    .site-menu a {
        line-height: 38px;
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 800px) {
    .nav-inner {
        max-width: 100%;
        padding: 0 6px;
    }
    .site-title {
        font-size: 1rem;
        padding-right: 6px;
    }
    .site-menu {
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    .site-menu li {
        margin-left: 0.5rem;
        height: 38px;
    }
    .site-menu a {
        font-size: 0.95rem;
        padding: 0 3px;
        line-height: 38px;
    }
}
@media (max-width: 500px) {
    .nav-inner, .site-menu {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }
    .site-menu {
        width: 100%;
        margin-top: 2px;
    }
    .site-menu li {
        margin: 0.2rem 0 0 0;
        height: 32px;
    }
    .site-menu a {
        line-height: 32px;
        font-size: 0.95rem;
    }
}

/* ====== 主体内容区域 ====== */
.content {
    max-width: 1400px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog {
    background: #23272e;
    border-radius: 22px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    margin: 2.1rem 0;
    padding: 2.3rem 2.8rem;
    width: 62%;
    min-width: 320px;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s, background 0.2s;
}
.blog:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.28);
    background: #262b33;
}

.blog-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    width: 100%;
}
.blog-title {
    color: #fff;
    font-size: 2.1rem;
    font-weight: bold;
    margin: 0 0 0.7rem 0;
    line-height: 1.22;
    transition: color 0.2s;
}
.blog-title-link:hover .blog-title {
    color: #8ab4f8;
    text-decoration: none;
}

.blog-excerpt {
    color: #b0b0b0;
    font-size: 1.13rem;
    margin-bottom: 1.3rem;
    line-height: 1.7;
}

.blog-meta {
    color: #8ab4f8;
    font-size: 1.05rem;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    .content {
        max-width: 100%;
    }
    .blog {
        width: 90%;
        max-width: 100%;
        padding: 1.2rem 0.8rem;
    }
    .blog-title {
        font-size: 1.3rem;
    }
}
@media (max-width: 700px) {
    .blog {
        width: 100%;
        min-width: 0;
        padding: 0.7rem 0.3rem;
        margin: 0.7rem auto;
        max-width: 100%;
    }
    .blog-title {
        font-size: 1.05rem;
    }
}

/* 文章卡片样式优化 */
.blog, .content > article, .post, .page-content, .post-content {
    background: #23272e;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    margin: 1.1rem auto;
    padding: 1.1rem 1.2rem;
    transition: box-shadow 0.2s, background 0.2s;
    width: 98%;
    max-width: 700px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.blog:hover, .content > article:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    background: #262b33;
}
.title, .title.is-3, .title.is-4, h1, h2, h3, h4 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-size: 1.15rem;
}
.title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.title a:hover {
    color: #8ab4f8;
    text-decoration: underline;
}
.subtitle, .subtitle2, .has-text-grey, .has-text-grey-light {
    color: #b0b0b0;
    margin-bottom: 0.7rem;
    font-size: 0.98rem;
}
.post-excerpt, .blog p, .content > article p {
    color: #d0d0d0;
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
}
.post-meta {
    color: #8ab4f8;
    font-size: 0.92rem;
    margin-top: 0.2rem;
}
@media (max-width: 700px) {
    .blog, .content > article, .post, .page-content, .post-content {
        width: 100%;
        padding: 0.7rem 0.3rem;
        margin: 0.7rem auto;
        max-width: 100%;
    }
    .title, .title.is-3, .title.is-4, h1, h2, h3, h4 {
        font-size: 1rem;
    }
}

/* ====== 文章摘要 ====== */
.post-excerpt, .blog p, .content > article p {
    color: #d0d0d0;
    font-size: 0.98rem;
    margin-bottom: 0.8rem;
}

/* ====== 文章元信息 ====== */
.post-meta {
    color: #8ab4f8;
    font-size: 0.92rem;
    margin-right: 1rem;
}

/* ====== 时间、作者、标签等 ====== */
time, .post-meta, .subtitle2 em {
    color: #b0b0b0;
    font-style: normal;
}

/* ====== 分页导航 ====== */
nav[aria-label="文章分页导航"], nav.pagination {
    text-align: center;
    color: #b0b0b0;
    margin: 1.2rem 0 2rem 0;
}
nav[aria-label="文章分页导航"] a, nav.pagination a {
    color: #8ab4f8;
    margin: 0 0.3rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
}
nav[aria-label="文章分页导航"] a:hover, nav.pagination a:hover {
    text-decoration: underline;
}
.pagination-links {
    display: inline-block;
    margin-left: 0.5rem;
}

/* ====== 页脚样式 ====== */
.site-footer {
    background: #181c20;
    color: #b0b0b0;
    text-align: center;
    padding: 1.2rem 0 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #23272e;
}
.site-footer a {
    color: #8ab4f8;
    text-decoration: none;
    margin: 0 0.3rem;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ====== 响应式布局 ====== */
@media (max-width: 1000px) {
    .content, .site-nav ul, .blog, .content > article, .post, .page-content, .post-content {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}
@media (max-width: 700px) {
    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 0.5rem 0.5rem;
    }
    .site-nav li {
        margin: 0.3rem 0 0 0;
    }
    .site-logo {
        margin-bottom: 0.3rem;
    }
    .footer-inner {
        padding: 0 0.5rem;
        font-size: 0.95rem;
    }
    .blog, .content > article, .post, .page-content, .post-content {
        width: 100%;
        min-width: 0;
        padding: 0.7rem 0.3rem;
    }
}
@media (max-width: 500px) {
    .title, .title.is-3, .title.is-4, h1, h2, h3, h4 {
        font-size: 1rem;
    }
    .site-title {
        font-size: 1rem;
    }
}

/* ====== 滚动条美化 ====== */
body::-webkit-scrollbar {
    width: 8px;
    background: #23272e;
}
body::-webkit-scrollbar-thumb {
    background: #181c20;
    border-radius: 8px;
}

.menu-more {
    position: relative;
}
.menu-more > a {
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 120px;
    background: #23272e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 0.3rem 0;
    z-index: 100;
    margin: 0;
    list-style: none;
}
.menu-more:hover > .dropdown-menu,
.menu-more:focus-within > .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    width: 100%;
}
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    color: #fff;
    background: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: normal;
    transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: #4b5563 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-weight: bold;
}
@media (max-width: 700px) {
    .menu-more {
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0.2rem 0;
    }
    .dropdown-menu a {
        padding: 0.5rem 1rem;
    }
} 